Backport 2010-04-10T10:39:16Z!mituharu@math.s.chiba-u.ac.jp from trunk
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fa884f18
CY
12010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * xfns.c (Fx_show_tip): Undo last change.
4
c6981286
CY
52010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6
7 * xfns.c (Fx_show_tip): Call try_window in a loop until
8 fonts_changed_p is zero (Bug#2423).
9
d75c9992
JD
102010-11-04 Jan Djärv <jan.h.d@swipnet.se>
11
31887d45
JD
12 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
13 parent is the root window. Check this after traversing window tree.
14
d75c9992
JD
15 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
16
17 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
18
19 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
20 before traversing window tree (Bug#5721).
21
754996bc
GM
222010-11-03 Glenn Morris <rgm@gnu.org>
23
24 * Makefile.in (CRT_DIR): New variable, set by configure.
25 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
26 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
27
3649d303
JD
282010-11-01 Jan Djärv <jan.h.d@swipnet.se>
29
30 * process.c (kbd_is_on_hold): New variable.
31 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
32 New functions.
33 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
34 select on empty input mask.
35 (init_process): Initialize kbd_is_on_hold to 0.
36
37 * process.h (hold_keyboard_input, unhold_keyboard_input)
38 (kbd_on_hold_p): Declare.
39
40 * keyboard.c (input_available_signal): Declare.
41 (kbd_buffer_nr_stored): New function.
42 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
43 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
44 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
45 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
46 (tty_read_avail_input): If input is on hold, return.
47 Don't read more that free slots in kbd_buffer (Bug#6571).
48
46eadc7a
CY
492010-10-31 Chong Yidong <cyd@stupidchicken.com>
50
51 * xterm.c (x_connection_closed): Print informative error message
52 when aborting on GTK. This requires using shut_down_emacs
53 directly instead of Fkill_emacs.
54
655441b2
MA
552010-10-25 Michael Albinus <michael.albinus@gmx.de>
56
57 * dbusbind.c (Fdbus_call_method_asynchronously)
58 (Fdbus_register_signal, Fdbus_register_method): Check, whether
59 `dbus-registered-objects-table' is initialized.
60
23c261f5
CY
612010-10-24 Chong Yidong <cyd@stupidchicken.com>
62
63 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
64
89baa1df
EZ
652010-10-22 Eli Zaretskii <eliz@gnu.org>
66
67 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
68
69 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
70 Deprecate use as a boolean flag.
71
5419963b
KB
722010-10-18 Ken Brown <kbrown@cornell.edu>
73
74 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
75
31daa5e1
KH
762010-10-15 Kenichi Handa <handa@m17n.org>
77
78 Fix incorrect font metrics when the same font is opened with
79 different pixelsizes.
80
81 * xftfont.c: Include composite.h.
82 (xftfont_shape): New function.
83 (syms_of_xftfont): Set xftfont_driver.shape.
84
9fa82824
DP
852010-10-13 Damyan Pepper <damyanp@gmail.com>
86
87 Fix handling of font properties on Windows (bug#6303).
88 * font.c (font_filter_properties): New function, refactored from
89 ftfont_filter_properties.
90 * font.h (font_filter_properties): Declare.
91 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
92 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
93 (w32font_filter_properties): New function.
94 (w32font_driver): Add w32font_filter_properties.
95
51e4f4a8
JB
962010-10-12 Juanma Barranquero <lekktu@gmail.com>
97
c0943d3d 98 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
99 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
100
a2e35ef5
JD
1012010-10-10 Jan Djärv <jan.h.d@swipnet.se>
102
103 * nsterm.m (Qleft): Declare.
104 (ns_right_alternate_modifier): New variable
105 (NSRightAlternateKeyMask): New define.
106 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
107 ns_right_alternate_modifier isn't Qleft.
108 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
109 as emacs modifier for NSRightAlternateKeyMask.
110 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
111
2e828c79
MA
1122010-10-08 Michael Albinus <michael.albinus@gmx.de>
113
114 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
115 (xd_pending_messages): Catch xd_get_dispatch_status calls.
116
93d50df8
KH
1172010-10-08 Kenichi Handa <handa@m17n.org>
118
2b7c9342 119 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 120
a79b0f28
MA
1212010-10-03 Michael Albinus <michael.albinus@gmx.de>
122
123 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
124 (Fdbus_init_bus): ... here. (Bug#7113)
125
7b2bf907
GM
1262010-10-03 Glenn Morris <rgm@gnu.org>
127
128 * buffer.c (before-change-functions, after-change-functions):
129 Three-year overdue doc fix following 2007-08-13 change.
130
1911a33b
KH
1312010-10-02 Kenichi Handa <handa@m17n.org>
132
133 * coding.c (coding_inherit_eol_type): If parent doesn't specify
134 eol-format, inherit from the system's default.
135 (complement_process_encoding_system): Make a new coding system
136 inherit the original eol-format.
137
fcaf8878
KH
1382010-09-30 Kenichi Handa <handa@m17n.org>
139
140 * coding.c (complement_process_encoding_system): New function.
141
142 * coding.h (complement_process_encoding_system): Extern it.
143
144 * callproc.c (Fcall_process): Complement the coding system for
145 encoding arguments.
146 (Fcall_process_region): Complement the coding system for encoding
147 the input to the process.
148
149 * process.c (Fstart_process): Complement the coding system for
150 encoding arguments.
151 (send_process): Complement the coding system for encoding what
152 sent to the process.
153
18acb5ad
KH
1542010-09-29 Kenichi Handa <handa@m17n.org>
155
156 * xfont.c (xfont_open): Fix setting of font->average_width from
157 :avgwidth property (Bug#7123).
158
dec83468
MA
1592010-09-28 Michael Albinus <michael.albinus@gmx.de>
160
161 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
162 is more portable.
163
164 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
165 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
166 has not defined SIGIO.
167
e0720500
MA
1682010-09-27 Michael Albinus <michael.albinus@gmx.de>
169
11a5af7c 170 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
171 (Bug#7113)
172
42d3022b
J
1732010-09-26 Jan Djärv <jan.h.d@swipnet.se>
174
175 * xgselect.c (xg_select): Clear file descriptors not set from
176 rfds and wfds.
177
fbb3da77
SM
1782010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * syntax.c (back_comment): Detect the case where a 1-char comment
181 starter is also the 2nd char of a 2-char comment ender.
182
2b5b82db
J
1832010-09-17 Jan Djärv <jan.h.d@swipnet.se>
184
185 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
186
5f61a25c
J
1872010-09-12 Jan Djärv <jan.h.d@swipnet.se>
188
189 * xterm.c (get_current_vm_state): New function.
190 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
191 want_fullscreen so set_wm_state calls are few (Bug#7013).
192 (x_handle_net_wm_state): Move code to get_current_vm_state and
193 call that function.
194
65c92e31 1952010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
196
197 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
198
a552b35a
KH
1992010-09-08 Kenichi Handa <handa@m17n.org>
200
201 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
202 we may use designation or locking-shift.
203
396475b7
KH
2042010-09-07 Kenichi Handa <handa@m17n.org>
205
206 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
207 sequence when the source is multibyte.
208
d419e1d9
KH
2092010-08-31 Kenichi Handa <handa@m17n.org>
210
211 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
212 characters.
213
214 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
215 (produce_glyphs): Don't set it->char_to_display here.
216 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
217 (produce_special_glyphs): Set temp_it.char_to_display before
218 calling produce_glyphs.
219
220 * xdisp.c (get_next_display_element): Set it->char_to_display
221 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
222 characters.
223 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
224 calling PRODUCE_GLYPHS.
225 (append_space_for_newline): Save and store it->char_to_display.
226 Set it->char_to_display before calling PRODUCE_GLYPHS.
227 (extend_face_to_end_of_line): Set it->char_to_display before
228 calling PRODUCE_GLYPHS.
229 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
230 character to its byte value.
231 (get_char_glyph_code): New function.
232 (produce_stretch_glyph): Set it2.char_to_display too before
233 calling x_produce_glyphs.
234 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
235 non-ASCII characters. Don't set it->char_to_display here.
236 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 237 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 238
769ae9e1
KH
2392010-08-29 Kenichi Handa <handa@m17n.org>
240
241 * term.c (encode_terminal_code): Encode byte chars to the
242 correspnding bytes.
243
b72e0717
AS
2442010-08-17 Andreas Schwab <schwab@linux-m68k.org>
245
246 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
247 instead of SAFE_ALLOCA.
248
3a7a9129
CY
2492010-08-17 Chong Yidong <cyd@stupidchicken.com>
250
251 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
252 (Bug#6214).
253
983b8302
J
2542010-08-14 Jan Djärv <jan.h.d@swipnet.se>
255
256 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
257
7d1b9df3
J
2582010-08-13 Jan Djärv <jan.h.d@swipnet.se>
259
260 * doc.c (Fsnarf_documentation): Initialize skip_file before
261 build-files test.
262
2294b255
PG
2632010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
264
65b3d997
A
265 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
266 New definitions.
2294b255
PG
267 (HAVE_TERMIO): Remove.
268
7a84eee5
KH
2692010-08-06 Kenichi Handa <handa@m17n.org>
270
271 * charset.c: Include <stdlib.h>
272 (struct charset_sort_data): New struct.
273 (charset_compare): New function.
c0943d3d 274 (Fsort_charsets): New function.
7a84eee5
KH
275 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
276
277 * coding.c (decode_coding_iso_2022): Fix checking of dimension
278 number in CTEXT extended segment.
279
f5f6c0e0
JB
2802010-08-01 Juanma Barranquero <lekktu@gmail.com>
281
282 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
283 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
284
b756c005
JB
2852010-07-30 Juanma Barranquero <lekktu@gmail.com>
286
287 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
288 (Fhash_table_size): Fix typos in docstrings.
289 (Fmake_hash_table): Doc fix.
290
b4f588fa
JB
2912010-07-28 Juanma Barranquero <lekktu@gmail.com>
292
293 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
294 Doc fix (bug#5625).
295
9f8c08a7
KB
2962010-07-27 Ken Brown <kbrown@cornell.edu>
297
298 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
299 the MSDOS definition.
300
a2a0d36b
CS
3012010-07-25 Christoph Scholtes <cschol2112@gmail.com>
302
303 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
304
a77cfeaf
CS
3052010-07-22 Christoph Scholtes <cschol2112@gmail.com>
306
307 * window.c (Fwindow_height): Doc fix (bug#6518).
308
14fb5704
JB
3092010-07-21 Juanma Barranquero <lekktu@gmail.com>
310
311 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
312
499322ce
J
3132010-07-17 Jan Djärv <jan.h.d@swipnet.se>
314
315 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
316 is related to the menu bar (Bug#6499).
317
b78f9767
J
3182010-07-14 Jan Djärv <jan.h.d@swipnet.se>
319
320 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
321
322 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
323
324 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
325 i.e. don't put back ButtonRelease (Bug#6608).
326
327 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
328 instead of Window. Call xg_event_is_for_menubar when
329 USE_GTK (Bug#6499).
330
331 * gtkutil.h (xg_event_is_for_menubar): Declare.
332
333 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
334
1f60c16a
EZ
3352010-07-14 Eli Zaretskii <eliz@gnu.org>
336
337 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
338 when it's the same as the old foreground. (Bug#6609)
339
7c33a057
CY
3402010-07-10 Chong Yidong <cyd@stupidchicken.com>
341
342 * xfaces.c (realize_face): Garbage the frame if a face is removed
343 (Bug#6593).
344
9d70a3fc
AS
3452010-07-05 Andreas Schwab <schwab@linux-m68k.org>
346
347 * keyboard.c: Remove duplicate <setjmp.h>.
348 (read_key_sequence): Remove volatile qualifiers.
349
5a874e95
YM
3502010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
351
352 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
353 (struct glyph_row): New members left_fringe_offset and
354 right_fringe_offset.
355
356 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
357 specially.
358 * w32term.c (w32_draw_fringe_bitmap): Likewise.
359 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
360
361 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
362 Take account of bitmap offset.
363 (draw_window_fringes): Take account of window vscroll.
364 (update_window_fringes): Likewise. Extend top-aligned top indicator
365 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
366 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
367 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
368
0682186e
JB
3692010-07-04 Juanma Barranquero <lekktu@gmail.com>
370
371 * w32fns.c (Qtooltip): Declare.
372 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
373
ad3e6f44
J
3742010-07-03 Jan Djärv <jan.h.d@swipnet.se>
375
376 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
377 grab on just Press (Bug#6499).
378
54ee7410
CY
3792010-07-02 Chong Yidong <cyd@stupidchicken.com>
380
381 * frame.c (Qtooltip): New var.
382 (delete_frame): Use it. Fix faulty if statement. Don't update
383 mode line for tooltip frames. Suggested by Martin Rudalics.
384
385 * xfns.c (x_create_tip_frame):
386 * w32fns.c (x_create_tip_frame): Use it.
387
3d8416fc
NA
3882010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
389
390 * xftfont.c (xftfont_open): Check font width one by one also when
391 spacing is dual.
392
393 * ftfont.c (ftfont_open): Ditto.
394
b1feb9b4
AS
3952010-06-26 Andreas Schwab <schwab@linux-m68k.org>
396
397 * alloc.c (Fmake_byte_code): Don't access undefined argument
398 (Bug#6517).
399
c7dd9743
CY
4002010-06-25 Chong Yidong <cyd@stupidchicken.com>
401
402 * xdisp.c (next_element_from_image): Ensure that after-strings are
403 read the next time we hit handle_stop (Bug#1336).
404
5721b4ed
AS
4052010-06-23 Andreas Schwab <schwab@linux-m68k.org>
406
407 * lread.c (read1): Signal error if #s is not followed by paren.
408
277c5f18
CY
4092010-06-19 Chong Yidong <cyd@stupidchicken.com>
410
52ab9bb2
CY
411 * image.c (free_image): Mark frame as garbaged (Bug#6426).
412
277c5f18
CY
413 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
414
6fda6a0c
GM
4152010-06-15 Glenn Morris <rgm@gnu.org>
416
417 * editfns.c (Fbyte_to_string): Pacify compiler.
418
e454a4a3
SM
4192010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
420
421 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
422 Check `object's type before accessing its guts.
423
657d4c0b
AS
4242010-06-08 Andreas Schwab <schwab@linux-m68k.org>
425
426 * minibuf.c (Fall_completions): Add more checks.
427
9b27fd9f
JB
4282010-06-08 Juanma Barranquero <lekktu@gmail.com>
429
430 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
431
0eb7675e
AS
4322010-06-03 Andreas Schwab <schwab@linux-m68k.org>
433
434 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 435 address. (Bug#6346)
0eb7675e 436
78edd3b7
JB
4372010-06-03 Juanma Barranquero <lekktu@gmail.com>
438
439 * ccl.c (Fccl_program_p): Fix typo in docstring.
440
1ab8293c
SM
4412010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
442
443 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
444 of bug#6305).
445
5ca3929b
CY
4462010-05-27 Chong Yidong <cyd@stupidchicken.com>
447
448 * xdisp.c (redisplay_window): After redisplay, check if point is
449 still valid before setting it (Bug#6177).
450
f5b416d2 4512010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
452
453 * s/netbsd.h: If terminfo is found, use it in preference to
454 termcap. (Bug#6190) [Backport from trunk]
455
aeb77d46
CY
4562010-05-20 Kevin Ryde <user42@zip.com.au>
457
458 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
459 (Voverriding_terminal_local_map, Vsystem_key_alist)
460 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
461
c3bb441d
SM
4622010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
463
464 * editfns.c (Fbyte_to_string): New function.
465
754790b6
CY
4662010-05-18 Chong Yidong <cyd@stupidchicken.com>
467
468 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
469 prevent stack overflow if number of arguments is too large
470 (Bug#6214).
471
c8670ded
EZ
4722010-05-11 Eli Zaretskii <eliz@gnu.org>
473
474 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
475
476 * w32fns.c: Include w32.h.
477 (Fw32_shell_execute): Decode the error message before passing it
478 to `error'. (Bug#6126)
479
3ffd4615 4802010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
481
482 * ftfont.c: Fix incorrect parentheses of #if condition for
483 definining M17N_FLT_USE_NEW_FEATURE.
484
61a808e8
CY
4852010-05-07 Chong Yidong <cyd@stupidchicken.com>
486
487 * Version 23.2 released.
488
5dcde606
AS
4892010-04-30 Andreas Schwab <schwab@linux-m68k.org>
490
491 * composite.c (autocmp_chars): Save point as marker before calling
492 auto-composition-function (Bug#5984).
493
494 * lisp.h (restore_point_unwind): Add prototype.
495
496 * fileio.c (restore_point_unwind): Remove static attribute.
497
c4170e32
KH
4982010-04-23 Kenichi Handa <handa@m17n.org>
499
500 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
501 new feature of libotf and m17n-flt.
65b3d997
A
502 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
503 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
504 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
505 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
506 that OUT is NULL. Use OTF_drive_gsub_with_log and
507 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
508 OTF_drive_gpos.
509 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
510 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
511 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 512
e42cd1a7
JB
5132010-04-19 Juanma Barranquero <lekktu@gmail.com>
514
515 * dired.c (Ffile_attributes): Fix typo in docstring.
516
79353a53
AR
5172010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
518
519 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
520 NSInteger (Bug#5811).
521
658b9b93
YM
5222010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
523
524 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
525 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
526
16009a0e
YM
5272010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
528
529 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
530
f016f225
JD
5312010-04-07 Jan Djärv <jan.h.d@swipnet.se>
532
533 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
534 FRAME_LINE_TO_PIXEL_Y.
535
536 * xterm.c (x_set_window_size_1): Don't add border_width/height to
537 pixelwidth/height.
538
84257d93
CY
5392010-04-05 Chong Yidong <cyd@stupidchicken.com>
540
541 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
542 terminal frames (Bug#5837).
543
95b1abcf
CY
5442010-03-31 Chong Yidong <cyd@stupidchicken.com>
545
546 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
547 * nsterm.h: Fix prototype.
548
4a217bed
EZ
5492010-03-31 Eli Zaretskii <eliz@gnu.org>
550
551 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
552 in this function. (Bug#5703)
553
4f103e04
CY
5542010-03-31 Chong Yidong <cyd@stupidchicken.com>
555
556 * nsterm.h: Fix last change.
557
a6d676d9
CY
5582010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
559
560 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
561
67fee863
JD
5622010-03-30 Jan Djärv <jan.h.d@swipnet.se>
563
564 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
565 invisible (Bug#5766).
566
9ae6e189
CY
5672010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
568
569 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
570 HAVE_NS conditionals.
194d44e7 571 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
572
573 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
574 filename for the title.
575 (ns_set_doc_edited): Do nothing if the selected window is a
576 minibuffer window.
577
578 * nsterm.h: Add prototypes for ns_set_name_as_filename and
579 ns_set_doc_edited.
580
581 * nsterm.m: Remove unneeded prototype.
582
25c72475
GM
5832010-03-28 Glenn Morris <rgm@gnu.org>
584
585 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
586 in the DOC file. (Bug#5336)
587
f79a01db
CY
5882010-03-24 Chong Yidong <cyd@stupidchicken.com>
589
590 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
591
93318cbd
JD
5922010-03-20 Jan Djärv <jan.h.d@swipnet.se>
593
594 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
595
596 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
597
598 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
599
ad13a3ee
YM
6002010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
601
602 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
603 XLoadQueryFont.
604
fbdc1721
KH
6052010-03-16 Kenichi Handa <handa@m17n.org>
606
607 * coding.c (decode_coding_ccl): Fix previous change for the
608 multibyte case.
fb608df3
KH
609 (encode_coding_ccl): Don't setup ccl program here. Fix for the
610 case that the output buffer is fullfilled.
611 (encode_coding): Setup ccl program here.
fbdc1721 612
35cd7cd6
CY
6132010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
614
615 * editfns.c (Fformat): Account for string precision when computing
616 field width (Bug#5710).
617
618db430
SM
6182010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
619
c0335e02
SM
620 Make it possible to C-g in a tight bytecode loop again (bug#5680).
621 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
622 (QUIT): Use it to consolidate code and remove redundancy.
623 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
624
254c06a8
SM
625 * regex.c (regex_compile): Setup gl_state as well.
626
618db430
SM
627 * syntax.c (skip_chars): Setup gl_state (bug#3823).
628 (in_classes): Use CONSP before XCAR/XCDR.
629
233f0c9f
CY
6302010-03-03 Chong Yidong <cyd@stupidchicken.com>
631
632 * keymap.c (Fwhere_is_internal): Use Fequal to compare
633 definitions, so that keyboard macros are correctly handled
634 (Bug#5481).
635
75f80e63
EZ
6362010-03-02 Eli Zaretskii <eliz@gnu.org>
637
638 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
639 text that could be relocated inside the call to emacs_mule_char.
640 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
641 (CODING_DECODE_CHAR): Add a comment describing its purpose.
642
dcfb9bc4
KH
6432010-03-02 Kenichi Handa <handa@m17n.org>
644
fc9a17bc
KH
645 * character.c (parse_str_as_multibyte): Fix handling of the
646 multibyte form of raw-bytes.
647 (str_as_multibyte): Likewise.
648
dcfb9bc4
KH
649 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
650 form of raw-bytes.
651
412c01b6
CY
6522010-02-28 Chong Yidong <cyd@stupidchicken.com>
653
654 * charset.c (load_charset_map_from_file)
655 (load_charset_map_from_vector): Zero out allocated
656 charset_map_entries before using them.
657
df7e1ea0
AS
6582010-02-27 Andreas Schwab <schwab@linux-m68k.org>
659
660 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
661
fe69a722
CY
6622010-02-27 Chong Yidong <cyd@stupidchicken.com>
663
4ed28cf4
CY
664 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
665 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 666
7379cfce
KH
6672010-02-26 Kenichi Handa <handa@m17n.org>
668
f88cc4d6
KH
669 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
670
7379cfce
KH
671 * xdisp.c (reseat_to_string): Fix previous change.
672
cf2fdcfb
CY
6732010-02-26 David Reitter <david.reitter@gmail.com>
674
675 * nsfont.m (nsfont_draw): ns_antialias_text should be a
676 Lisp_Object (Bug#4736).
677
cc6c7c75
KH
6782010-02-25 Kenichi Handa <handa@m17n.org>
679
680 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
681
32e737d7
JD
6822010-02-24 Jan Djärv <jan.h.d@swipnet.se>
683
684 * xterm.c (XTflash): Move declarations before statements.
685
686 * gtkutil.c (xg_get_gdk_display): Remove (unused).
687 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
688 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
689 (xg_create_tool_bar): Remove unused variables.
690 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 691 (xg_create_frame_widgets): Remove variable grav.
32e737d7 692
676cae9f
CY
6932010-02-21 Chong Yidong <cyd@stupidchicken.com>
694
695 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
696
886cc2b8
SM
6972010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
698
699 * term.c (fatal): Add a final \n if needed (bug#5596).
700
ddb2d8e2
CY
7012010-02-18 Chong Yidong <cyd@stupidchicken.com>
702
703 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
704
2a4f8d3d
GM
7052010-02-18 Glenn Morris <rgm@gnu.org>
706
707 * callint.c (Finteractive): Doc fix.
708
ebaf11b6
KH
7092010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
710
886cc2b8
SM
711 * coding.c (record_conversion_result):
712 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
713 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
714 memory allocation error.
715
d0396581
KH
7162010-02-17 Kenichi Handa <handa@m17n.org>
717
886cc2b8
SM
718 * coding.c (decode_coding_ccl): Don't setup ccl program here.
719 Fix for the case that the output buffer is fullfilled.
d0396581
KH
720 (decode_coding): Setup ccl program here. Keep looping when the
721 decoder stopped because the output buffer is
722 fullfilled (bug#5534).
723
724 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
725
98599f74
JD
7262010-02-13 Jan Djärv <jan.h.d@swipnet.se>
727
471e4f04 728 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 729 bug #5571.
886cc2b8 730 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 731 overdrawn.
98599f74 732
182659ae
JD
7332010-02-10 Jan Djärv <jan.h.d@swipnet.se>
734
735 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
736 doing_interact here.
737 (ice_connection_closed): New function.
738 (x_session_check_input, smc_die_CB, ice_io_error_handler)
739 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
740 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
741 returns I/O error.
742 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
743 bug #5512.
744
9be32c4e 7452010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
746
747 * nsfont.m (nsfont_open): The system's value for the font descent
748 is negative, so round it down to avoid clipping.
749
a2f3eb19
CY
7502010-02-06 Chong Yidong <cyd@stupidchicken.com>
751
752 * charset.c (load_charset_map_from_file)
753 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 754 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 755
3088147c
CY
7562010-02-05 Chong Yidong <cyd@stupidchicken.com>
757
758 * charset.c (load_charset_map_from_file): Allocate large
759 charset_map_entries structure on the heap rather than the stack.
760 (Bug#5526).
761
b57d9029
KH
7622010-01-31 Kenichi Handa <handa@m17n.org>
763
764 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 765 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 766
c67d885b
CY
7672010-01-31 Chong Yidong <cyd@stupidchicken.com>
768
769 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
770 <deactivated@gmail.com> (Bug#3605).
771
8fab2362
CY
7722010-01-31 David De La Harpe Golden <david@harpegolden.net>
773
774 * fileio.c (Frename_file): Correctly rename symlinks to
775 directories (Bug#5496).
776
cb2a62f2
CY
7772010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
778
779 * nsterm.m (ns_ring_bell): Handle visible bell like X.
780
944c7a26
AS
7812010-01-30 Andreas Schwab <schwab@linux-m68k.org>
782
783 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
784
c024ac08
CY
7852010-01-29 Chong Yidong <cyd@stupidchicken.com>
786
787 * frame.c (DEFAULT_ROWS): Change default to 35.
788
789 * xfns.c (x_default_font_parameter): Change default XFT font to
790 monospace-10 (Bug#3643).
791
af93af83
EZ
7922010-01-29 Eli Zaretskii <eliz@gnu.org>
793
794 * w32inevt.c (key_event): Remove unnecessary comparison of
795 event->uChar.AsciiChar with 128.
796
ca0eb708
CY
7972010-01-28 Chong Yidong <cyd@stupidchicken.com>
798
b242dbfc
CY
799 * fileio.c (Frename_file): Fix last change (Bug#5487).
800
ca0eb708
CY
801 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
802
803 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
804
45d45af5
JD
8052010-01-28 Jan Djärv <jan.h.d@swipnet.se>
806
807 * xfns.c (Fx_create_frame): Remove window size matching code from
808 2010-01-15.
a73f9c9d 809 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 810
7e233730
JR
8112010-01-27 Jason Rumney <jasonr@gnu.org>
812
813 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 814 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 815
86e893e3
KH
8162010-01-27 Kenichi Handa <handa@m17n.org>
817
818 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 819 pattern string (Bug#4209).
86e893e3 820
8719abec
CY
8212010-01-27 David De La Harpe Golden <david@harpegolden.net>
822
823 * fileio.c (Frename_file): Call copy-directory and
824 delete-directory for directories, in order to handle cross-device
825 renaming (Bug#3353).
826
844794c8
JD
8272010-01-25 Jan Djärv <jan.h.d@swipnet.se>
828
aa3e13b5 829 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 830 sizes 24 and 10. Bug #3643.
844794c8 831
bd4b5750
SM
8322010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
833
8dc1adf6 834 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
835 * keymap.c (shadow_lookup): Add `remap' arg.
836 (describe_map, describe_vector): Update calls to shadow_lookup.
837 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
838 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
839 perform remapping during shadow_lookup check of remapped_sequences.
840
285d07e2
CY
8412010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
842
843 * image.c (png_load): Use png_sig_cmp instead of the obsolete
844 png_check_sig, which has been removed in libpng 1.4.
845
c6d09b8d
CY
8462010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
847
848 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
849 lacks this header file).
850
3d782998
YM
8512010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
852
853 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
854 as in Emacs 22.
855
2aff7c53
YM
8562010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
857
858 * lisp.h (make_pure_string): String pointer arg now points to const.
859
860 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
861 args now point to const.
862
74327f7a
EZ
8632010-01-22 Eli Zaretskii <eliz@gnu.org>
864
865 * lread.c (Fload): Don't treat files without .elc extension as
866 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
867 them. (bug#5303)
868
4d1e6632
KH
8692010-01-20 Kenichi Handa <handa@m17n.org>
870
871 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
872 treat the source as actual byte sequence.
873
1fdede8f
AM
8742010-01-19 Alan Mackenzie <acm@muc.de>
875
876 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 877 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
878 `signal_after_change_p' to `coherent_change_p', and make the
879 invocation of `modify_region' conditional on it.
880
67477f30
JD
8812010-01-19 Jan Djärv <jan.h.d@swipnet.se>
882
883 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
884 for debug purpose.
885 (syms_of_xsettings): Declare xft-settings.
886
244b023e
CY
8872010-01-18 Chong Yidong <cyd@stupidchicken.com>
888
889 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
890
617364fe
CY
8912010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
892
893 * xterm.c (event_handler_gdk): Block input (Bug#5037).
894
4fe22cdf
CY
8952010-01-16 Chong Yidong <cyd@stupidchicken.com>
896
897 * emacs.c (standard_args): Adjust arg priorities to reflect how
898 they are processed in startup.el.
899
e118d2be
AS
9002010-01-16 Andreas Schwab <schwab@linux-m68k.org>
901
902 * Makefile.in (lisp, shortlisp): Update.
903
523ae620
SM
9042010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
905
906 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
907 code, link the new kboard into all_kboard before running Lisp code,
908 and protect the new terminal with GCPRO (Bug#5365).
909 (x_term_init): Remove unused var `atom'.
910 (x_delete_display, x_delete_terminal): Remove unused var `i'.
911
f0d13888
JD
9122010-01-15 Jan Djärv <jan.h.d@swipnet.se>
913
914 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
915 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
916 to find out usable size of the desktop. Don't make frames larger than
ac146f82 917 this. Bug #3643.
f0d13888 918
cc320f07
KH
9192010-01-15 Kenichi Handa <handa@m17n.org>
920
921 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
922
7ffdf101
CY
9232010-01-15 Chong Yidong <cyd@stupidchicken.com>
924
925 * nsterm.m (Qnone): Define.
926
927 * nsfns.m (Qnone): Move definition to nsterm.m.
928
d12bd917
KH
9292010-01-14 Kenichi Handa <handa@m17n.org>
930
931 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
932 systems.
933
d9a7c140
KH
9342010-01-14 Kenichi Handa <handa@m17n.org>
935
936 Make auto-composition work on all buffers even if they are
937 fundamental mode.
938
939 * composite.c (Vauto_composition_mode): New variable.
940 (composition_compute_stop_pos): Check Vauto_composition_mode
941 instead of Vauto_composition_function.
942 (composition_adjust_point, Ffind_composition_internal): Likewise.
943 (syms_of_composite): Declare Lisp variable
944 "auto-composition-mode" here.
945
63286bb2
CY
9462010-01-13 Chong Yidong <cyd@stupidchicken.com>
947
948 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
949 during call to vendor-specific-keysyms (Bug#5365).
950
c2623ee7
YM
9512010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
952
953 * keyboard.c (input_available_signal) [SYNC_INPUT]:
954 Call SIGNAL_THREAD_CHECK (Bug#5333).
955
956 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
957 Call SIGNAL_THREAD_CHECK.
958
0b5397c2
SM
9592010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
960
961 Try to fix bug#5314. This is probably not the final word, tho.
962 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
963 recent-auto-save-p as a side-effect.
964 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
965 * buffer.c (Fkill_buffer, reset_buffer):
966 * editfns.c (Fsubst_char_in_region):
967 * fileio.c (Finsert_file_contents, Fdo_auto_save)
968 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
969
dc954cb2
KH
9702010-01-13 Kenichi Handa <handa@m17n.org>
971
972 Display buffer name, etc. in mode line by composing correctly.
973
974 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
975 STRING is not nil.
0b5397c2 976 (display_mode_element): Adjust for the change of
dc954cb2
KH
977 decode_mode_spec and display_line.
978 (decode_mode_spec): Change arg MULTIBYTE to STRING.
979 (display_string): Handle the case that STRING is non-null and
980 LISP_STRING is not nil.
981
0b5397c2
SM
982 * xterm.c (x_draw_composite_glyph_string_foreground):
983 Pay attention to s->face->overstrike.
dc954cb2
KH
984
985 * composite.c (composition_reseat_it): Don't check PT if STRING is
986 non nil.
987
4a00eaca
YM
9882010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
989
990 * keyboard.c (read_char): Don't apply previous change when current
991 buffer is unchanged by command execution.
992
60abb287
JD
9932010-01-12 Jan Djärv <jan.h.d@swipnet.se>
994
995 * keyboard.c (read_char): Return after executing from special map.
996
893db5bc
GM
9972010-01-12 Glenn Morris <rgm@gnu.org>
998
999 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1000 bug-gnu-emacs rather than emacs-pretest-bug.
1001
4d03ece0
CY
10022010-01-11 Chong Yidong <cyd@stupidchicken.com>
1003
1004 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1005 initializing the Lisp variables that depend on them.
1006
1df47e38
YM
10072010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1008
1009 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1010 Clear areas that will not be updated after change of menu bar lines.
1011 Clear the menu bar window's current matrix when the window gets empty.
1012
2f1c6384
CY
10132010-01-09 Chong Yidong <cyd@stupidchicken.com>
1014
e398c61c
CY
1015 * intervals.h, textprop.c (extend_property_ranges): Return value
1016 and args changed. Discard properties that begin at or after the
1017 new end (Bug#5306).
1018
1019 * editfns.c (Fformat): Caller changed.
1020
e5a29a10
CY
1021 * nsterm.m (ns_set_default_prefs): Delete function.
1022 (syms_of_nsterm): Initialize ns_command_modifier,
1023 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1024 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1025
2f1c6384
CY
1026 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1027 position (Bug#4040).
1028
d427a9fa
EZ
10292010-01-09 Eli Zaretskii <eliz@gnu.org>
1030
1031 * editfns.c (Ffloat_time): Doc fix.
1032
21b9df2f
JD
10332010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1034
1035 * xfns.c (Fx_create_frame): Don't create frame larger than display
1036 by default bug#3643.
1037
4b00d3b1
YM
10382010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1039
1040 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1041 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1042 windows above internal border.
1043
1044 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1045 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1046 windows above internal border.
1047
1048 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1049 tool bar windows specially.
1050
1051 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1052
1053 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1054 specially.
1055 (XTflash): Take account of menu bar height.
1056
1057 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1058 specially.
1059
5075d853
JD
10602010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1061
ac146f82 1062 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1063 also be true before we can return early (bug #5339).
1064
474217c8
CY
10652010-01-06 David Reitter <david.reitter@gmail.com>
1066
1067 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1068 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1069 (Bug#3233).
1070
c0e6d47d
JD
10712010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1072
d0cf45b7
JD
1073 * font.c (font_open_entity): Enable chache and call cached_font_ok
1074 for the driver if defined.
1075 (QCuser_spec): New symbol.
1076 (font_spec_from_name): Save name as user-spec.
1077 (font_load_for_lface): Keep user-spec instead of name.
1078 (font_open_by_name): Save name as user-spec.
1079 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1080 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1081
1082 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1083 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1084 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1085
1086 * font.h (struct font_driver): Add cached_font_ok.
1087
c0e6d47d
JD
1088 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1089
7c583cd8
JD
10902010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1091
1092 * xterm.c (x_new_font): Move code for setting rows/cols before
1093 resizing ...
ac146f82 1094 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1095
1096 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1097 (xg_frame_resized, xg_frame_set_char_size):
1098 Call xg_clear_under_internal_border.
7c583cd8 1099 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1100
03f77f0a
CY
11012010-01-05 Chong Yidong <cyd@stupidchicken.com>
1102
1103 * keyboard.c (read_key_sequence): Catch keyboard switch after
1104 making a new tty frame (Bug#5095).
1105
2a1ef5be
KH
11062010-01-05 Kenichi Handa <handa@m17n.org>
1107
1108 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1109
e3eb1dae
SM
11102010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1111
1112 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1113 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1114 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1115
777013f2
MA
11162010-01-03 Michael Albinus <michael.albinus@gmx.de>
1117
1118 * dbusbind.c (xd_add_watch): Improve debug message.
1119 (xd_remove_watch): Improve debug message. If DATA is the session
1120 bus, unset D-Bus session environment.
1121 (Fdbus_init_bus): Pass the bus as argument to
1122 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1123
8932b1c2
CY
11242010-01-01 Chong Yidong <cyd@stupidchicken.com>
1125
87231e2c
CY
1126 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1127
4801c5fa
CY
1128 * lread.c (syms_of_lread): Make it clearer that these are the
1129 names of loaded files (Bug#5068).
1130
8932b1c2
CY
1131 * eval.c (run_hook_with_args): Handle the case where the global
1132 value has the obsolete single-function form (Bug#5026).
1133
11e3c684
CY
11342009-12-27 Chong Yidong <cyd@stupidchicken.com>
1135
1136 * minibuf.c (Fall_completions): Minor optimization.
1137
5b28ce35
EZ
11382009-12-26 Eli Zaretskii <eliz@gnu.org>
1139
5ce6e4f4
JB
1140 * .gdbinit (pgx): Fix display of composite glyphs.
1141 Display cmp.from and cmp.to as well.
1142 (pitx): Fix last change.
5b28ce35 1143
bcffff46
KH
11442009-12-25 Kenichi Handa <handa@m17n.org>
1145
1146 * composite.h (composition_adjust_point): Update prototype.
1147
1148 * composite.c (composition_reseat_it): Don't make a composition
1149 spanning over point.
1150 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1151 composable characters.
1152 (composition_adjust_point): New arg NEW_PT. Callers changed.
1153
1154 * keyboard.c (command_loop_1): Force redisplay if the last point
1155 was within a composition.
1156 (adjust_point_for_property): Don't adjust point for automatic
1157 composition when called after buffer modification.
1158
3f670e9a
EZ
11592009-12-19 Eli Zaretskii <eliz@gnu.org>
1160
5ce6e4f4
JB
1161 * .gdbinit (pitx): Don't use enum names, use their values.
1162 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1163 (pgx): Don't use enum names, use their values.
1164 (pitmethod): New helper command.
1165 (pitx): Use it to display iteration method.
1166 (pgrowit): New command.
1167
ad903955
EZ
1168 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1169
3f670e9a
EZ
1170 Update dependencies in Makefile.in.
1171
1172 * Makefile.in (alloc.o): Depend on termhooks.h.
1173 (atimer.o): Depend on blockinput.h.
1174 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1175 and frame.h.
1176 (callint.o): Depend on systime.h, coding.h, and composite.h.
1177 (callproc.o): Depend on buffer.h.
1178 (casefiddle.o): Don't depend on charset.h.
1179 (casetab.o): Depend on character.h.
1180 (ccl.o): Depend on composite.h.
1181 (chartab.o): Depend on ccl.h.
1182 (cm.o): Depend on dispextern.h.
1183 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1184 (coding.o): Don't depend on $(INTERVALS_H).
1185 (composite.o): Don't depend on dispextern.h explicitly (it's in
1186 $(INTERVALS_H)). Depend on ccl.h.
1187 (data.o): Depend on systime.h, coding.h, composite.h,
1188 dispextern.h, font.h, and ccl.h.
1189 (dired.o): Depend on composite.h.
1190 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1191 composite.h (it's in $(INTERVALS_H)).
1192 (doc.o): Depend on systime.h, coding.h, and composite.h.
1193 (editfns.o): Don't depend explicitly on dispextern.h.
1194 (emacs.o): Depend on frame.h and coding.h.
1195 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1196 (fileio.o): Depend on frame.h and commands.h. Don't depend
1197 explicitly on dispextern.h.
1198 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1199 composite.h.
1200 (fns.o): Don't depend on termhooks.h.
1201 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1202 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1203 coding.h, $(INTERVALS_H), window.h, xterm.h.
1204 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1205 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1206 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1207 fontset.h, ccl.h, and ftfont.h.
1208 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1209 (gtkutil.o): Depend on dispextern.h and composite.h.
1210 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1211 termhooks.h, and ccl.h.
1212 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1213 (intervals.o): Depend on systime.h and coding.h.
1214 (keyboard.o): Depend on composite.h and coding.h.
1215 (keymap.o): Depend on coding.h and frame.h.
1216 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1217 (macros.o): Depend on systime.h, coding.h, and composite.h.
1218 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1219 and atimer.h.
1220 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1221 dispextern.h explicitly.
0b5397c2
SM
1222 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1223 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1224 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1225 (regex.o): Don't depend on charset.h.
1226 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1227 (search.o): Don't depend explicitly on composite.h.
1228 (sound.o): Depend on atimer.h and systime.h.
1229 (syntax.o): Don't depend explicitly on composite.h.
1230 (sysdep.o): Depend on coding.h and composite.h.
1231 (term.o): Depend on xterm.h and buffer.h.
1232 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1233 (textprop.o): Don't depend on dispextern.h explicitly.
1234 (undo.o): Depend on dispextern.h.
1235 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1236 dispextern.h and composite.h explicitly.
1237 (xdisp.o): Depend on ccl.h.
1238 (xfaces.o): Depend on coding.h and ccl.h.
1239 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1240 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1241 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1242 ftfont.h.
1243 (xgselect.o): New dependency.
1244 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1245 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1246 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1247 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1248 (xsmfns.o): Depend on frame.h and dispextern.h.
1249 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1250 sysselect.h.
1251
7a6f7fea
AS
12522009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1253
1254 * font.c (Fclear_font_cache): Pass correct cache argument to
1255 font_clear_cache.
1256
f4c21026
AS
12572009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1258
1259 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1260 twice.
1261
f7ab0997
CY
12622009-12-15 Chong Yidong <cyd@stupidchicken.com>
1263
1264 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1265 calling file-remote-p. Reported by Jim Meyering.
1266
fa8e045a
MA
12672009-12-15 Michael Albinus <michael.albinus@gmx.de>
1268
1269 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1270 avoid compiler warnings. (Bug #5217)
fa8e045a 1271
a63dba42
KH
12722009-12-14 Kenichi Handa <handa@m17n.org>
1273
1274 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1275 in 8-bit encoding.
1276
5ce6e4f4 12772009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1278
1279 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1280 tooltip windows.
1281
223e5fc6
JD
12822009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1283
36acb2a7
JD
1284 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1285 Xatom_net_window_type.
1286
1287 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1288 Xatom_net_window_type.
1289
b8f00677
JD
1290 * xterm.c (my_log_handler): New function.
1291 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1292 so we can filter out buggy messages. (Bug #5120).
b8f00677 1293
e5f0bc9a
JD
1294 * xterm.c (xg_scroll_callback): Parameter list changed,
1295 use parameter GtkScrollType to determine scroll/line/page.
1296 Only allow dragging if a button < 4 is grabbed (bug #5177).
1297 (xg_end_scroll_callback): New function.
1298 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1299 xg_create_scroll_bar.
1300
1301 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1302 (scroll_end_callback): Remove.
1303 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1304 button-release-event. Replace value-changed event with change-value,
1305 bug #5177,
1306 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1307 bug #5177.
1308
1309 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1310 (xg_create_scroll_bar): Add GCallback end_callback.
1311
223e5fc6
JD
1312 * xftfont.c (QClcdfilter): New variable.
1313 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1314 (syms_of_xftfont): Initialize QClcdfilter.
1315
3c055b77
JD
13162009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * xsettings.c (struct xsettings): Add member seen.
1319 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1320 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1321 (apply_xft_settings): Only update Xft settings with what member seen
1322 indicates as new.
1323
05fe33ff
EZ
13242009-12-12 Eli Zaretskii <eliz@gnu.org>
1325
1326 * dispextern.h (struct text_pos): Use EMACS_INT;
1327 (struct glyph): Use EMACS_INT for charpos.
1328 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1329 region_beg_charpos, region_end_charpos,
1330 redisplay_end_trigger_charpos, and also for
1331 iterator_stack_entry.end_charpos and
1332 iterator_stack_entry.stop_charpos.
1333
e8d7886a
JD
13342009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1335
5ce6e4f4 1336 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1337 (xg_create_scroll_bar): Call scroll_end_callback on button release
1338 event (bug #5177).
1339 (xg_event_is_for_scrollbar): != replaced with ==.
1340
d0db2ec8
KH
13412009-12-12 Kenichi Handa <handa@m17n.org>
1342
1343 * ftfont.c (struct ftfont_info): New member matrix.
1344 (ftfont_open): Setup xftfont_info->matrix.
1345 (MFLTFontFT): New member matrix.
1346 (FLOOR, CEIL, ROUND): New macros.
1347 (ftfont_get_metrics): Handle matrix transformation.
1348 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1349
1350 * xftfont.c (struct xftfont_info): New member matrix.
1351 (xftfont_open): Setup xftfont_info->matrix.
1352
13532009-12-10 Kenichi Handa <handa@m17n.org>
1354
1355 * xdisp.c (append_space_for_newline): Consider face-remapping.
1356
2cc7b62f
AS
13572009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1358
b87dd913
AS
1359 * xsettings.c: Include "keyboard.h".
1360
eba5eb94
AS
1361 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1362
2cc7b62f
AS
1363 Fix implicit function declarations.
1364 * cmds.c: Include "frame.h".
1365 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1366 * frame.h: Move declaration of delete_frame outside of
1367 HAVE_WINDOW_SYSTEM.
1368
a4ef73c8
CY
13692009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1370
1371 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1372
1373 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1374 GTK builds.
1375
944a300c
AS
13762009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1377
1378 * unexelf.c (unexec): Don't search for .data twice.
1379
022eef62
CY
13802009-12-05 Chong Yidong <cyd@stupidchicken.com>
1381
426ac949
CY
1382 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1383 if push failed.
1384 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1385 of push_display_prop (Bug#5000).
1386
022eef62
CY
1387 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1388 value of font_list_entities (Bug#5085).
1389
be95bee9
JB
13902009-12-04 Juanma Barranquero <lekktu@gmail.com>
1391
1392 Fix `string-to-number' to deal consistently with integers and floats.
1393 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1394 trailing characters, not just whitespace.
1395 (read1): Pass new arg 0 to keep old behavior.
1396 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1397 trailing chars, as it is already done for integers. Doc fixes.
1398 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1399
24c2d7ce
EZ
14002009-12-04 Eli Zaretskii <eliz@gnu.org>
1401
0b5397c2
SM
1402 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1403 Delete unused enumeration value.
24c2d7ce 1404
7e694795
EZ
14052009-12-03 Eli Zaretskii <eliz@gnu.org>
1406
1407 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1408
84b31826
SM
14092009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1410
1411 * process.c (Fmake_network_process): Fix up the tests for
1412 "connectionless socket", so they DTRT for seqpacket sockets as well.
1413
f00c449b
SM
14142009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1415
1416 * process.c (Qseqpacket): New symbol.
1417 (HAVE_SEQPACKET): New macro.
1418 (Fmake_network_process): Accept new :type `seqpacket'.
1419 (init_process): Add `seqpacket' feature when applicable.
1420 (syms_of_process): Initialize Qseqpacket.
1421
8096a0ff
YM
14222009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1423
1424 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1425 if entity is Qnil.
1426
3e0de07f
SM
14272009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1428
1429 * print.c (print_preprocess): Preprocess the key_and_value table of
1430 hashtables, even tho they're "hidden" (bug#5082).
1431
abeafb2a
JD
14322009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1433
1434 * frame.c (frame_make_pointer_invisible)
1435 (frame_make_pointer_visible): Declare f before statements.
1436
4bf47195
EZ
14372009-11-28 Eli Zaretskii <eliz@gnu.org>
1438
1439 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1440 omitted dependencies on lisp.h.
1441
c525b3f2
JD
14422009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1443
ece2d4ed
JD
1444 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1445 is NULL.
1446
1447 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1448
1449 * frame.c (frame_make_pointer_invisible)
3e0de07f 1450 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1451 frame.
1452
c525b3f2
JD
1453 * search.c (simple_search): Remove warning by making *p const.
1454
2f00e299
DN
14552009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1456
1457 * xdisp.c (power_letter): Remove duplicate const.
1458
084b049b
JD
14592009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1460
a1fadc6f
JD
1461 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1462
5ce6e4f4 1463 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1464 defaults (bug #5025).
1465
28259cac
SM
14662009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1467
1468 * insdel.c (adjust_markers_for_delete): Move it in the
1469 right direction! (bug#4803)
1470
e8e14166
YM
14712009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1472
1473 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1474
1475 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1476
86677b58
GM
14772009-11-24 Glenn Morris <rgm@gnu.org>
1478
1479 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1480
581e51e8
JD
14812009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1482
cfc86c7a
JD
1483 * Makefile.in: Must create deps for ecrt0.o in its rule.
1484
581e51e8
JD
1485 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1486 because that is what Gtk+ font dialog understands.
1487
1488 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1489 of Fcopy_sequence.
1490 (font_open_by_name): Put name given into QCname for font-object returned.
1491
1492 * frame.c (x_set_font): Save original font name as frame parameter
1493 font-parameter.
1494
1495 * xsettings.c (set_default_xft_settings): New function.
1496 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1497 is found.
1498
8b264ecb
AS
14992009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1500
1501 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1502 searching backwards through multibyte buffer.
1503
872870b2
JD
15042009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1505
1506 * xterm.c: #include xgselect.h.
1507 (x_initialize): Call xgselect_initialize.
1508
1509 * xsettings.c (something_changedCB): C++ comments => C comments.
1510 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1511 does that now.
1512
1513 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1514 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1515 (scroll_bar_button_cb): Remove.
5ce6e4f4 1516 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1517 event.
1518 (xg_create_scroll_bar): Don't bind button-press-event and
1519 button-release-event.
1520
1521 * process.c: Include xgselect.h if defined (USE_GTK) ||
1522 defined (HAVE_GCONF).
1523 (wait_reading_process_output): Call xg_select for the same condition.
1524
1525 * xgselect.c (xg_select): New function to better integrate with
1526 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1527
1528 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1529
1530 * Makefile.in (XOBJ): Add xgselect.o.
1531
62a6e103
AS
15322009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1533
0b5397c2
SM
1534 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1535 Remove ignored second argument. All callers changed.
62a6e103
AS
1536 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1537 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1538 * xdisp.c (string_char_and_length): Likewise.
1539
b0ca0f33
DN
15402009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1541
1542 * xterm.c (x_new_font):
1543 * print.c (print_object):
1544 * cmds.c (Fself_insert_command): Move declarations before statements.
1545
dd5a6279
CY
15462009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1547
1548 * s/cygwin.h: Remove unneeded linker flags.
1549
4a8e097d
JD
15502009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1551
0d1d0d26
JD
1552 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1553
1554 * xsettings.h: Declare xsettings_get_system_font.
1555
1556 * xsettings.c (xsettings_get_system_font): New function.
1557 (init_gconf): No use initiating gconf unless we have Xft also.
1558 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1559 HAVE_GCONF.
1560
4a8e097d
JD
1561 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1562 add a blank entry so it doesn't collapse into nothing.
1563
8ab1650e
SM
15642009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * lread.c (Funintern): Comment out last change.
1567
82c602f0
RS
15682009-11-19 Richard Stallman <rms@gnu.org>
1569
1570 * lread.c (Funintern): Error if symbol is t or nil.
1571
87e32266
SM
15722009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1573
1574 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1575 representation of Lisp integers.
1576 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1577
1b9ac145
AS
15782009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1579
1580 * lisp.h: Remove declaration of Ffont_get_system_font.
1581 * xfns.c: Move include of "xsettings.h".
1582 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1583
dfb3c4c6
JD
15842009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1585
87e32266
SM
1586 * xsettings.c (something_changedCB, Ffont_get_system_font):
1587 Check use_system_font.
dfb3c4c6
JD
1588 (syms_of_xsettings): DEFVAR font-use-system-font.
1589
9370c1d8
AS
15902009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1591
25fe851a
AS
1592 * xfns.c (x_default_font_parameter): Remove dead assignment.
1593
9370c1d8
AS
1594 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1595
637fa988
JD
15962009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1597
87e32266 1598 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1599 not have FC_LCD_*. #define them if not there.
a6eb20d8 1600
87e32266 1601 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1602
637fa988
JD
1603 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1604
1605 * xterm.c (handle_one_xevent): Call xft_settings_event for
1606 ClientMessage, PropertyNotify and DestroyNotify.
1607 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1608 Call xsettings_initialize.
1609
1610 * xftfont.c (xftfont_fix_match): New function.
1611 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1612 Call xftfont_fix_match after XftFontMatch.
1613
1614 * xfont.c (xfont_driver): Initialize all members.
1615
87e32266
SM
1616 * xfns.c (x_default_font_parameter):
1617 Try font from Ffont_get_system_font.
637fa988
JD
1618 Do not get font from x_default_parameter if we got one from
1619 Ffont_get_system_font.
87e32266 1620 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1621
1622 * w32font.c (w32font_driver): Initialize all members.
1623
1624 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1625
1626 * lisp.h: Declare syms_of_xsettings.
1627
87e32266
SM
1628 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1629 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1630
1631 * ftfont.c (ftfont_filter_properties): New function.
1632
1633 * frame.c (x_set_font): Remove unused variable lval.
1634
87e32266 1635 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1636
1637 * font.c (font_put_extra): Don't return if val is nil, it means
1638 boolean option is off.
1639 (font_parse_fcname): Collect all extra properties in extra_props
1640 and call filter_properties for all drivers with extra_props and
1641 font as parameter.
87e32266
SM
1642 (font_open_entity): Do not use cache, it does not pick up new
1643 fontconfig settings like hinting.
637fa988
JD
1644 (font_load_for_lface): If spec had a name in it, store it in entity.
1645
a73f9c9d 1646 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1647
1648 * config.in: HAVE_GCONF is new.
1649
1650 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1651 xsettings.o is new.
1652
5a942932
KH
16532009-11-17 Kenichi Handa <handa@m17n.org>
1654
1655 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1656 back to the default font in case that no suitable font is found.
1657
b7c7a4d1
SM
16582009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1659
1660 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1661 Suggested by Chad Brown <yandros@mit.edu>.
1662 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1663
072f1e39
JD
16642009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1665
1666 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1667
5d1e70a2
AS
16682009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1669
87e32266 1670 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1671
a53cfbe5
JD
16722009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1673
473a99b7
JD
1674 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1675 has a parent.
1676
a53cfbe5 1677 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1678 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1679
1680 * config.in: Generated (AUTO_DEPEND).
1681
f04bb9b2
MA
16822009-11-13 Michael Albinus <michael.albinus@gmx.de>
1683
b7c7a4d1 1684 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1685 Vdbus_registered_functions_table, because it contains also
1686 properties. Fix docstring.
b7c7a4d1 1687 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1688
8f11f7ec
SM
16892009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1690
1691 * alloc.c (mark_object): Don't reprocess marked strings.
1692 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1693 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1694
8a605fe8
KH
16952009-11-13 Kenichi Handa <handa@m17n.org>
1696
8f11f7ec 1697 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1698 semantics of Vword_combining_categories.
1699 (Vword_combining_categories): Describe the slight change of the
1700 semantics.
1701
241c4680
EZ
17022009-11-13 Eli Zaretskii <eliz@gnu.org>
1703
1704 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1705
1706 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1707
5d58e44c
SM
17082009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1711
5e13f9d3
JB
17122009-11-12 Juanma Barranquero <lekktu@gmail.com>
1713
1714 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1715
cf54c754
DR
17162009-11-11 David Reitter <david.reitter@gmail.com>
1717
1718 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1719 variables to fix 2009-11-09 change.
1720
a4ada374
DN
17212009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1722
91433552
DN
1723 * process.c (ifflag_def): Make flag_sym constant.
1724 (Fnetwork_interface_info): Use a constant pointer.
1725 (ifflag_table):
1726 * xfns.c (cursor_bits):
1727 * xdisp.c (power_letter):
1728 * termcap.c (speeds, esctab):
1729 * sysdep.c (baud_convert):
1730 * keyboard.c (lispy_accent_codes, modifier_names):
1731 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1732 (jpeg_format, tiff_format, gif_format, svg_format)
1733 (interlace_start, interlace_increment, gs_format):
1734 * gtkutil.c (separator_names):
1735 * fringe.c (swap_nibble):
1736 * fns.c (base64_value_to_char, base64_char_to_value):
1737 * fileio.c (make_temp_name_tbl):
1738 * coding.c (suffixes): Make constant.
1739
f4265f6c
DN
1740 * frame.c (make_initial_frame):
1741 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1742 build_string.
1743 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1744
04420943
DN
1745 * s/freebsd.h:
1746 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1747
0a5d24ae
DN
1748 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1749 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1750
a4ada374
DN
1751 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1752 * xterm.c (syms_of_xterm):
1753 * xfaces.c (syms_of_xfaces):
1754 * xdisp.c (syms_of_xdisp):
1755 * lread.c (syms_of_lread):
1756 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1757 build_string.
91433552 1758
a4ada374
DN
1759 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1760
af98fc7f
SM
17612009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1762
8ab1650e 1763 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1764
e90292a9
JD
17652009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1766
1767 * keyboard.h: Declare timer_check.
1768
1769 * keyboard.c (timer_check_2): New function that does what the old
1770 timer_check did.
1771 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1772 returned, i.e. don't return -1 with timers pending.
1773
1774 * process.c: Remove extern declaration of timer_check.
1775
1776 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1777 even if timer_check returned -1.
1778
af98fc7f
SM
1779 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1780 xg_dialog_data.
e90292a9
JD
1781 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1782 the event loop.
1783 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1784 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1785 Destroy the dialog after xg_dialog_run.
1786
045b83c0
SM
17872009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1788
1789 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1790
1fb99a3a
JD
17912009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1792
1793 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1794
04e452cb
JB
17952009-11-09 Juanma Barranquero <lekktu@gmail.com>
1796
1797 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1798
ef7417fd
SM
17992009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1800
1801 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1802 w32menu.c, and nsmenu.m.
1803 Simplify the obsolete case where position is nil.
1804 (cleanup_popup_menu): New function, moved from nsmenu.m.
1805 (struct skp): Remove slot `notreal'.
1806 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1807 adjust callers.
1808 (single_menu_item): Adjust call to parse_menu_item.
1809 (syms_of_menu): Defsubr x-popup-menu.
1810 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1811 (keymap_panes): Don't export any more.
1812 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1813 (xmenu_show): Declare.
1814 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1815 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1816 * keyboard.h (parse_menu_item): Update declaration.
1817 * xmenu.c (Fx_popup_menu): Remove.
1818 (syms_of_xmenu): Don't defsubr x-popup-menu.
1819 * w32menu.c (Fx_popup_menu): Remove.
1820 (syms_of_w32menu): Don't defsubr x-popup-menu.
1821 * nsmenu.m (cleanup_popup_menu): Remove.
1822 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1823 moved to menu.c's Fx_popup_menu.
1824 (Fx_popup_menu): Remove.
1825 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1826 menu_items (it's done in menu.c already).
1827
424d6179
SM
18282009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1829
1830 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1831 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1832
c0df13a6 18332009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1834
1835 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1836 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1837 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1838 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1839
2de9f71c
SM
18402009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1841
1842 Let integers use up 2 tags to give them one extra bit and thus double
1843 their range.
1844 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1845 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1846 New macros.
1847 (enum Lisp_Type): Use them. Give explicit values.
1848 (Lisp_Type_Limit): Remove.
1849 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1850 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1851 Pay attention to USE_2_TAGS_FOR_INTS.
1852 (INTEGERP): Use LISP_INT_TAG_P.
1853 * fns.c (internal_equal): Simplify the default case.
1854 (sxhash): Use case_Lisp_Int.
1855 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1856 any more.
1857 (Ftype_of): Use case_Lisp_Int.
1858 (store_symval_forwarding): Take into account the fact that Ints can
1859 now have more than one tag.
1860 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1861 buffer_slot_type_mismatch):
1862 * xfaces.c (face_attr_equal_p):
1863 * print.c (print_object):
1864 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1865 Use case_Lisp_Int.
1866
323637a2
EZ
18672009-11-06 Eli Zaretskii <eliz@gnu.org>
1868
7ac65b38
EZ
1869 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1870
323637a2
EZ
1871 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1872 warning.
1873
e511451f
JD
18742009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1875
1876 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1877
1878 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1879
1880 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1881 ButtonPressRelease and MotionNotify (bug#4870).
1882
5e2327cf
DN
18832009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1884
5adc433e
DN
1885 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1886
d67b4f80
DN
1887 * xterm.c (syms_of_xterm):
1888 * xselect.c (syms_of_xselect):
1889 * xmenu.c (syms_of_xmenu):
1890 * xfns.c (syms_of_xfns):
1891 * xfaces.c (syms_of_xfaces):
1892 * xdisp.c (syms_of_xdisp):
1893 * window.c (syms_of_window):
1894 * w32fns.c (syms_of_w32fns):
1895 * undo.c (syms_of_undo):
1896 * textprop.c (syms_of_textprop):
1897 * terminal.c (syms_of_terminal):
1898 * syntax.c (syms_of_syntax):
1899 * sound.c (syms_of_sound):
1900 * search.c (syms_of_search):
1901 * print.c (syms_of_print):
1902 * minibuf.c (syms_of_minibuf):
1903 * macros.c (syms_of_macros):
1904 * keymap.c (syms_of_keymap, initial_define_key)
1905 (initial_define_lispy_key):
1906 * keyboard.c (syms_of_keyboard):
1907 * insdel.c (syms_of_insdel):
1908 * image.c (syms_of_image):
1909 * fringe.c (syms_of_fringe):
1910 * frame.c (syms_of_frame):
1911 * fontset.c (syms_of_fontset):
1912 * fns.c (syms_of_fns):
1913 * fns.c (syms_of_fns):
1914 * fileio.c (syms_of_fileio):
1915 * fileio.c (syms_of_fileio):
1916 * eval.c (syms_of_eval):
1917 * doc.c (syms_of_doc):
1918 * dispnew.c (syms_of_display):
1919 * dired.c (syms_of_dired):
1920 * dbusbind.c (syms_of_dbusbind):
1921 * data.c (syms_of_data):
1922 * composite.c (syms_of_composite):
1923 * coding.c (syms_of_coding):
1924 * cmds.c (syms_of_cmds):
1925 * charset.c (define_charset_internal, syms_of_character):
1926 * ccl.c (syms_of_ccl):
1927 * category.c (syms_of_category, init_category_once):
1928 * casetab.c (syms_of_casetab):
1929 * casefiddle.c (syms_of_casefiddle):
1930 * callint.c (syms_of_callint):
1931 * bytecode.c (syms_of_bytecode):
1932 * buffer.c (keys_of_buffer, syms_of_buffer):
1933 * alloc.c (syms_of_alloc):
1934 * process.c (syms_of_process, init_process):
1935 * lread.c (syms_of_lread, init_obarray):
1936 * font.c (build_style_table):
1937 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1938 intern_c_string, calls to make_pure_string with
1939 make_pure_c_string. Use pure_cons instead of Fcons.
1940
5e2327cf
DN
1941 * process.c (socket_options): Make it const.
1942 (set_socket_option, init_process): Use a const pointer.
1943
1944 * lread.c (intern_c_string): New function.
1945 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1946 (defvar_int): Uset it. Make the name const char*.
1947
1948 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1949 (defvar_int): Update prototypes.
1950 (DEFUN, EXFUN): Support for prototypes is now required.
1951 (intern_c_string): New prototype.
1952 (struct Lisp_Subr): Make symbol_name constant.
1953
1954 * font.c (struct table_entry): Remove unused member. Make NAMES
1955 constant.
1956 (weight_table, slant_table, width_table): Make constant.
1957
1958 * emacs.c (struct standard_args): Make name and longname constant.
1959
1960 * character.h (DEFSYM): Use intern_c_string.
1961
a56eaaef
DN
19622009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1963
1964 * alloc.c (make_pure_c_string): New function.
1965
1966 * eval.c (Fautoload): Purecopy all arguments.
1967
f6a07420
KH
19682009-11-05 Kenichi Handa <handa@m17n.org>
1969
1970 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1971 the buffer in case of replace.
1972
5d28d4b1
DN
19732009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1974
1975 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1976
b349d111
SM
19772009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1978
d528b1ce
SM
1979 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1980 when applicable (bug#4851).
1981
b349d111
SM
1982 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1983 (P_): Support for prototypes is now required.
1984
c38eb027
CY
19852009-10-31 Chong Yidong <cyd@stupidchicken.com>
1986
1987 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1988 (Bug#4827).
1989
0405f8d9
EZ
19902009-10-30 Eli Zaretskii <eliz@gnu.org>
1991
d528b1ce 1992 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1993
ca0a881a
DN
19942009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1995
1996 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1997
d528b1ce
SM
1998 * lread.c (Fload): Purecopy the file name when building
1999 Vpreloaded_file_list.
ca0a881a 2000
47e0e0e4
JR
20012009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2002
2003 * w32fns.c (syms_of_w32fns): Change default value of
2004 w32-scroll-lock-modifier to nil. (Bug#2827)
2005
057bce6f
JB
20062009-10-26 Juanma Barranquero <lekktu@gmail.com>
2007
782a943e 2008 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2009
242bc74c
AS
20102009-10-26 Andreas Schwab <schwab@redhat.com>
2011
2012 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2013
522d013a
JB
20142009-10-26 Juanma Barranquero <lekktu@gmail.com>
2015
2016 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2017 For delta < 0, skip check that only makes sense when the mini-window
2018 is going to be enlarged. (Bug#4534)
2019
18060980
CY
20202009-10-25 Chong Yidong <cyd@stupidchicken.com>
2021
2022 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2023 string in menu maps (Bug#4471).
2024
fec8f0fe
CY
20252009-10-24 Chong Yidong <cyd@stupidchicken.com>
2026
2027 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2028 FRAME_NS_VIEW on terminal frames (Bug#4765).
2029
10d66ec0
AS
20302009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2031
1cae01f7
AS
2032 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2033 DBUS_TYPE_UINTnn separately to get proper sign extension.
2034
58a12889
AS
2035 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2036 can properly handle unsigned types.
d528b1ce 2037 (make_uid, make_gid): Remove.
58a12889 2038
987c9327
AS
2039 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2040 types again.
2041
522d013a 2042 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2043 (system_process_attributes): Likewise.
2044
905a9ed3
DN
20452009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2046
2047 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2048
2049 * eval.c (Fautoload): Purecopy the filename. Simplify.
2050
2051 * category.c (Fdefine_category): Purecopy docstring.
2052
a599b3e8
AS
20532009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2054
7b792fc9
AS
2055 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2056
a599b3e8
AS
2057 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2058
b35ac83e
CY
20592009-10-23 Chong Yidong <cyd@stupidchicken.com>
2060
2061 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2062 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2063 (Bug#4775).
2064
e8903e00
SM
20652009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2066
2067 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2068 (init_fileio_once):
2069 * lisp.h (init_fileio_once): Remove.
2070 * emacs.c (main): Don't call init_fileio_once.
2071
8f43cbf3
DN
20722009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2073
2074 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2075
26898943
AS
20762009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2077
2078 * doprnt.c (doprnt): Fix overflow check.
2079
5c646d5a
JD
20802009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2081
3132a7ea
JD
2082 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2083
5c646d5a
JD
2084 * xterm.h (x_wait_for_event): Declare it.
2085
2086 * xterm.c (pending_event_wait): New variable.
2087 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2088 see pending_event_wait.eventtype.
2089 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2090 (x_new_font): Call change_frame_size with new rows/columns before we
2091 try to resize the frame.
5c646d5a 2092 (x_wait_for_event): New function.
d528b1ce
SM
2093 (x_set_window_size_1): Don't change gravity unless change_gravity
2094 is set.
5c646d5a
JD
2095 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2096 don't change frame size, instead wait for the ConfigureNotify.
2097 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2098 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2099 (x_initialize): Initialize pending_event_wait.
2100
2101 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2102 size.
2103
2104 * widget.c (EmacsFrameSetValues): Add comment.
2105 (EmacsFrameSetCharSize): Just call x_set_window_size.
2106
2107 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2108 x_wait_for_event.
d528b1ce 2109 (flush_and_sync): Remove again.
5c646d5a
JD
2110 (xg_get_font_name): Suggest monospace if no previous font is known.
2111
e9c1637d
SM
21122009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2113
2114 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2115 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2116
5a72cccb
YM
21172009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2118
2119 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2120 processing pending events when event is filtered for input method.
ab04798f 2121 (Bug#3681)
5a72cccb 2122
2629aa37
JB
21232009-10-20 Juanma Barranquero <lekktu@gmail.com>
2124
2125 * fns.c: Add #endif accidentally removed in previous change.
2126
c3417a74
DN
21272009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2128
2129 * fns.c: Remove code for unsupported system: MAC_OS.
2130 * image.c: Likewise. Include setjmp.h.
2131
9685cef2
JD
21322009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2133
2134 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2135 pixel -1 (bug #4742).
2136
d7306fe6
DN
21372009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2138
019d2c4c
DN
2139 * process.c (create_pty): Remove conditionals for no longer
2140 supported systems: UNIPLUS and RTU.
2141
ee6bacd4
DN
2142 * xterm.c:
2143 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2144
d7306fe6
DN
2145 * alloc.c: Do not define struct catchtag.
2146 * eval.c: Move struct catchtag definition ...
2147 * lisp.h: ... here.
2148
2149 * image.c: Move png.h #include earlier to avoid warnings.
2150
2151 * xterm.c:
2152 * xsmfns.c:
2153 * xselect.c:
2154 * xrdb.c:
2155 * xmenu.c:
2156 * xftfont.c:
2157 * xfont.c:
2158 * xfns.c:
2159 * xfaces.c:
2160 * xdisp.c:
2161 * window.c:
2162 * widget.c:
2163 * w32xfns.c:
2164 * w32uniscribe.c:
2165 * w32term.c:
2166 * w32select.c:
2167 * w32reg.c:
2168 * w32proc.c:
2169 * w32menu.c:
2170 * w32inevt.c:
2171 * w32heap.c:
2172 * w32font.c:
2173 * w32fns.c:
2174 * w32console.c:
2175 * w32.c:
2176 * w16select.c:
2177 * vm-limit.c:
2178 * unexsol.c:
2179 * unexec.c:
2180 * unexcw.c:
2181 * unexaix.c:
2182 * undo.c:
2183 * tparam.c:
2184 * textprop.c:
2185 * terminfo.c:
2186 * terminal.c:
2187 * termcap.c:
2188 * term.c:
2189 * syntax.c:
2190 * sound.c:
2191 * sheap.c:
2192 * search.c:
2193 * scroll.c:
2194 * region-cache.c:
2195 * regex.c:
2196 * ralloc.c:
2197 * process.c:
2198 * print.c:
b024548b
DN
2199 * nsterm.m:
2200 * nsselect.m:
2201 * nsmenu.m:
2202 * nsimage.m:
2203 * nsfont.m:
2204 * nsfns.m:
d7306fe6
DN
2205 * msdos.c:
2206 * minibuf.c:
2207 * menu.c:
2208 * marker.c:
2209 * macros.c:
2210 * keymap.c:
2211 * keyboard.c:
2212 * intervals.c:
2213 * insdel.c:
2214 * indent.c:
2215 * gtkutil.c:
2216 * ftxfont.c:
2217 * ftfont.c:
2218 * fringe.c:
2219 * frame.c:
2220 * fontset.c:
2221 * font.c:
2222 * fns.c:
2223 * floatfns.c:
2224 * filelock.c:
2225 * fileio.c:
2226 * emacs.c:
2227 * editfns.c:
2228 * dosfns.c:
2229 * doprnt.c:
2230 * doc.c:
2231 * dispnew.c:
2232 * dired.c:
2233 * dbusbind.c:
2234 * data.c:
2235 * composite.c:
2236 * coding.c:
2237 * cmds.c:
2238 * cm.c:
2239 * chartab.c:
2240 * charset.c:
2241 * character.c:
2242 * ccl.c:
2243 * category.c:
2244 * casetab.c:
2245 * casefiddle.c:
2246 * callproc.c:
2247 * callint.c:
2248 * bytecode.c:
2249 * buffer.c:
2250 * atimer.c: Include setjmp.h. (Bug#4643)
2251
fd5f21e6
SM
22522009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2253
4c0354d7
SM
2254 Remove leftover table unibyte_to_multibyte_table.
2255 * character.c (unibyte_to_multibyte_table): Remove.
2256 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2257 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2258 * character.h (UNIBYTE_TO_CHAR): New macro.
2259 (MAKE_CHAR_MULTIBYTE): Use it.
2260 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2261 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2262 (message_dolog, set_message_1):
2263 * search.c (Freplace_match):
2264 * editfns.c (Fcompare_buffer_substrings):
2265 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2266 (concat):
2267 * insdel.c (copy_text, count_size_as_multibyte):
2268 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2269 * term.c (produce_glyphs):
2270 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2271 * regex.c (RE_CHAR_TO_MULTIBYTE):
2272 * cmds.c (internal_self_insert):
2273 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2274
fd5f21e6
SM
2275 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2276
4418646e
DN
22772009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2278
2279 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2280
35f5c1d2
JB
22812009-10-16 Juanma Barranquero <lekktu@gmail.com>
2282
2283 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2284
a0cd8f6b
AR
22852009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2286
2287 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2288 still needed under Tiger.
2289
2290 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2291
2292 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2293 __Apple__.
2294
2295 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2296
01a8d3fa
KH
22972009-10-15 Kenichi Handa <handa@m17n.org>
2298
2299 * print.c (print_object): Escape a symbol like "2E10" too.
2300
bf6c75c9 23012009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2302
2303 Cleanups and changes for 64-bit compile under Snow Leopard.
2304 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2305
2306 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2307
c5959062 2308 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2309 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2310 cast argument.
2311 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2312 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2313
2314 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2315
2316 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2317 where appropriate.
2318
2319 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2320 where appropriate.
6e4780c5
JB
2321 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2322 Use stringWithUTF8String.
bf6c75c9
AR
2323 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2324
6e4780c5
JB
2325 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2326 Add formal protocol mention to inheritance.
bf6c75c9
AR
2327 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2328
6e4780c5
JB
2329 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2330 Fix printf format.
bf6c75c9
AR
2331 (ns_query_color): Use CGFloat where appropriate.
2332 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2333 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2334 argument.
2335
3d87f118
AR
2336 * config.in (NS_HAVE_NSINTEGER): Drop.
2337
a95c8102
AR
2338 * dbusbind.c (dbus-method-return-internal)
2339 (dbus-method-error-internal): Use long format in printf, and cast
2340 argument.
2341
2342 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2343 in printf, and cast argument.
2344
6873acca 2345 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2346 cast argument.
2347
9ec6f100
GM
23482009-10-11 Glenn Morris <rgm@gnu.org>
2349
2350 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2351
5be883cd
JD
23522009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2353
2354 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2355 menu bar with a small width so it doesn't enlarge the frame.
2356
d7a39b51
JB
23572009-10-08 Juanma Barranquero <lekktu@gmail.com>
2358
2359 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2360
0c2b6f8e
GM
23612009-10-06 Glenn Morris <rgm@gnu.org>
2362
2363 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2364 SOME_MACHINE_LISP (this enters indirectly via DOC).
2365
e02131a2
EZ
23662009-10-05 Eli Zaretskii <eliz@gnu.org>
2367
2368 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2369
b4744254
EZ
23702009-10-04 Eli Zaretskii <eliz@gnu.org>
2371
2372 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2373 Doc fix.
2374
dbf64827
JB
23752009-10-03 Martin Rudalics <rudalics@gmx.at>
2376
2377 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2378
e9a0aef8
MA
23792009-10-02 Michael Albinus <michael.albinus@gmx.de>
2380
d528b1ce 2381 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2382 used anymore outside fileio.c.
2383
2384 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2385
64eb2b56
JB
23862009-10-01 Juanma Barranquero <lekktu@gmail.com>
2387
2388 * lisp.h (Qdelete_directory_internal):
2389 Declare, instead of Qdelete_directory.
2390
2391 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2392
9d28c33e
SM
23932009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2394
2395 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2396
9d8f3bd9
MA
23972009-10-01 Michael Albinus <michael.albinus@gmx.de>
2398
9d28c33e 2399 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2400 Fdelete_directory. It is not a command anymore. It has no file
2401 name handler.
2402
9694740b
SM
24032009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2404
2405 * xdisp.c (get_next_display_element): Use an enum in last change.
2406
748e162f
KH
24072009-09-28 Kenichi Handa <handa@m17n.org>
2408
9694740b 2409 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2410 unibyte_display_via_language_environment in handling
2411 Vnobreak_char_display.
2412
17efd58d
AR
24132009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2414
2415 * nsterm.h (ns_app_name): New extern variable.
2416
2417 * nsterm.m (ns_app_name): New variable.
2418 (ns_term_init): Set and use it.
2419 (ns_term_shutdown): Use it.
2420
2421 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2422 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2423
2424 * nsfns.m (ns_set_name_iconic, ns_set_name)
2425 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2426 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2427
9694740b
SM
2428 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2429 Remove double-casting in client_data comparison.
31c2d412 2430
3208cb35
YM
24312009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2432
2433 * keyboard.c (make_lispy_event): Remember last wheel direction.
2434 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2435
b7d552d6
GM
24362009-09-26 Glenn Morris <rgm@gnu.org>
2437
2438 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2439 internal.elc. Add term/pc-win.elc.
2440 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2441 term/x-win.elc.
2442 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2443 term/w32-win.elc.
2444 (NS_SUPPORT): New.
2445 (lisp): Add NS_SUPPORT.
2446 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2447
4ff670a8
DR
24482009-09-25 David Reitter <david.reitter@gmail.com>
2449
2450 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2451 on Mac OS X 10.6+ (bug#4513).
2452
feabfb6c
JB
24532009-09-24 Juanma Barranquero <lekktu@gmail.com>
2454
2455 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2456 some parts of Emacs code (like font selection) don't grok them.
2457 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2458
de59072a
AS
24592009-09-24 Andreas Schwab <schwab@redhat.com>
2460
2461 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2462
a489517b
JB
24632009-09-24 Juanma Barranquero <lekktu@gmail.com>
2464
2465 * dired.c (Fdirectory_files): Fix typo in docstring.
2466
0592970c
AR
24672009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2468
2469 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2470 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2471 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2472 under GNUstep.
2473 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2474
2475 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2476 glyph advancement.
2477
48e8a88b
AR
24782009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2479
2480 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2481 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2482
2483 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2484 deleted (bug #4492).
2485
e14f0a78
AR
2486 * nsfont.m (Vns_reg_to_script): New lisp variable.
2487 (syms_of_nsfont): Declare it.
2488 (ns_registry_to_script): New function.
2489 (ns_get_req_script): Call it.
2490 (ns_findfonts): Don't give up on non-unicode registry.
2491
2492 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2493
5b650faa
SM
24942009-09-20 Tom Tromey <tromey@redhat.com>
2495
2496 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2497 batch mode (bug#4228).
2498
a489517b 24992009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2500
2501 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2502 carefully. (Bug #4339)
0bae4e09 2503
fcfe06f3
CY
25042009-09-18 Chong Yidong <cyd@stupidchicken.com>
2505
d798ba87 2506 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2507
31642728
AR
25082009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2509
2510 * emacs.c (inhibit_x_resources): Update doc string for NS.
2511 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2512 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2513
2514 * nsterm.h (ns_no_defaults): Remove.
2515
2516 * nsterm.m (ns_no_defaults): Remove.
2517 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2518 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2519 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2520 don't update the NSWindow itself.
2521 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2522 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2523
2524 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2525 ns_use_qd_smoothing.
2526
2527 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2528 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2529 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2530 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2531
8686ac71
JB
25322009-09-17 Juanma Barranquero <lekktu@gmail.com>
2533
2534 * emacs.c (inhibit_x_resources): New variable.
2535 (main) [HAVE_NS]: Don't process --quick command line option.
2536 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2537
2538 * lisp.h (inhibit_x_resources): Declare it extern.
2539
2540 * w32reg.c (x_get_string_resource):
2541 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2542
e227ba05
EZ
25432009-09-17 Eli Zaretskii <eliz@gnu.org>
2544
362654a6
JB
2545 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2546 Add lisp/term/internal.elc.
e227ba05 2547
742d40e8
SM
25482009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2549
2550 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2551 (bug#4461).
2552
005bd5a2
DN
25532009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2554
2555 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2556
2557 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2558 (OBJECTS_MACHINE): Remove, unused.
2559
f9af9719
SM
25602009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2561
2562 * frame.c (x_get_resource_string): Remove unused.
2563
0307c7d2
JD
25642009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2565
2566 * xterm.c (x_new_font): Call change_frame_size before calling
2567 x_set_window_size, in case frame size won't change.
2568
2569 * frame.c (x_set_font): Remove dead code.
2570
428b13d6
SM
25712009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2572
2573 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2574
5766c380
SM
25752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2576
2577 * lread.c (Fload): Don't output a message after loading an obsolete
2578 package any more (done in Lisp now).
2579
2fd0161b
CY
25802009-09-12 Chong Yidong <cyd@stupidchicken.com>
2581
2582 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2583
bc5e75b6
SM
25842009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2585
2586 * keymap.c (Fwhere_is_internal): Use nconc2.
2587
c31c985e
AM
25882009-09-11 Alan Mackenzie <acm@muc.de>
2589
2590 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2591 batch mode.
2592
78012bd2
AS
25932009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2594
2595 * xdisp.c (display_mode_element): Detect cycles.
2596
9d889332
SM
25972009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2598
2599 * keymap.c (where_is_internal): Don't erroneously return nil right after
2600 filling the cache.
2601 (where_is_internal_1): Fix up typo.
2602
7ab5d780
GM
26032009-09-11 Glenn Morris <rgm@gnu.org>
2604
2605 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2606 share a common doc-string.
2607
5238a749
SM
26082009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2609
66d77eda
SM
2610 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2611 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2612
5238a749
SM
2613 * keymap.c (QCadvertised_binding): New constant.
2614 (syms_of_keymap): Initialize it.
2615 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2616 if applicable.
2617
19f48442
SM
26182009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2619
50d4ba39
SM
2620 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2621 (parse_menu_item): Streamline since bindings are recomputed all the
2622 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2623 more and don't support lmenu's menu-alias any more either.
2624
a88a5372
SM
2625 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2626 (where_is_internal): Strip it down to only traverse the keymaps.
2627 Move the cache handling from Fwhere_is_internal to here.
2628 (Fwhere_is_internal): Move the handling of remapping and the choice of
2629 the best binding from where_is_internal to here.
2630 Unify the cached/noncached paths, so remapping is also handled
2631 correctly when the cache is used, and so the cache can be used to
2632 speed up remap-handling when applicable.
2633 Give preference to non-remapped bindings.
2634 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2635 non-remapped bindings.
2636 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2637 command remapping.
2638
19f48442
SM
2639 * xdisp.c (display_mode_element): Move list length limit from 50 to
2640 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2641
599498c3 26422009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2643
2644 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2645
f9b7b5ac
SM
26462009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2647
a53af587
JB
2648 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2649 (Bug#4334)
2650
f9b7b5ac
SM
2651 * keymap.c (where_is_internal): Filter out shadowed remappings.
2652 Assume that where_is_internal returns unshadowed bindings to simplify
2653 the code and get rid of the gotos. Use ASIZE.
2654
04f4b72d
JD
26552009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2656
4da146f2
JD
2657 * xterm.c (x_focus_changed): If we get a focusout and pointer
2658 is invisible, make it visible.
2659
04f4b72d
JD
2660 * xterm.h: Remove condition for declaration of
2661 x_*_window_to_frame.
2662
7cef7ce3
SM
26632009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2664
2665 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2666 initial terminal as well.
2667
a54fa5b7
JD
26682009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2669
2670 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2671 x_menubar_window_to_frame.
a54fa5b7
JD
2672
2673 * xterm.c: Remove declarations also in xterm.h
2674 (XTmouse_position): Do not return valid positions
2675 for clicks in the menubar and the toolbar for Gtk+.
2676
2677 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2678 if the widget for the event has the same top level as a frame,
2679 return the frame.
2680 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2681 internal windows, bug #4122.
2682 (x_non_menubar_window_to_frame): Remove.
2683
5a021dd0
GM
26842009-09-02 Glenn Morris <rgm@gnu.org>
2685
2686 * buffer.c (default-major-mode): Move most of the doc from here...
2687 (major-mode): ... to here.
2688
548fe2f3
NR
26892009-08-30 Nick Roberts <nickrob@snap.net.nz>
2690
2691 * process.c (wait_reading_process_output): Keep the descriptor
2692 when pty is used by a non-child process, e.g., in I/O buffer of
2693 GDB this allows inferior to be restarted.
2694
e0840eef
EZ
26952009-08-29 Eli Zaretskii <eliz@gnu.org>
2696
2697 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2698 both branches into one.
2699
82e98df4
SM
27002009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2701
2702 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2703 (main): Use enable-multibyte-characters rather than
2704 default-enable-multibyte-characters. Output a warning message when
2705 running a unibyte session.
2706
890617cb
YM
27072009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2708
2709 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2710 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2711 (copy_data_segment): Also copy __program_vars section.
2712 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2713 (dump_it) [LC_DYLD_INFO]: Use it.
2714
2715 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2716
e7adeadc
EZ
27172009-08-28 Eli Zaretskii <eliz@gnu.org>
2718
2719 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2720 $(SRC)/buildobj.h.
2721 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2722 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2723 $(SRC)/buildobj.h.
2724 (clean): Add buildobj.h.
2725
3ed8bbdc
TZ
27262009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2727
2728 * print.c (print_object): Set escapeflag to 1 when printing
2729 hashtable keys and values.
2730
155a6764
SM
27312009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2732
2733 * lread.c (read_integer): Use doubles (and potentially return a float
2734 number) as we do in string-to-number.
2735 (read1): Use strtol to read integers, signal errors on strtol's
2736 overflow and use floats if strtol's output is too large for
2737 Elisp integers.
2738
877610de
EZ
27392009-08-27 Eli Zaretskii <eliz@gnu.org>
2740
2741 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2742 (make-buildobj-SH): Fix last change.
2743 (SRC): Move to before where it's first used.
2744
ef73e7be
KH
27452009-08-27 Kenichi Handa <handa@m17n.org>
2746
550c8289
KH
2747 * process.c (send_process): Use encode_coding_object instead of
2748 encode_coding_string to perform eol-conversion even if the string
2749 is unibyte.
2750
60afa08d
KH
2751 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2752 character.
2753
ef73e7be 2754 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2755 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2756
7b3a82d7
DN
27572009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2758
5654bf63
DN
2759 * callproc.c (Fcall_process): Remove always true #if.
2760
7b3a82d7
DN
2761 * lisp.h: Replace #if 0 code for checking with text pointing to
2762 the --enable-checking configure flag.
2763
2764 * emacs.c (main): Mention the --enable-profiling configure flag
2765 instead of using CFLAGS.
2766
878bde49
KR
27672009-08-26 Ken Raeburn <raeburn@raeburn.org>
2768
2769 * Makefile.in (buildobj.h): New target.
2770 (doc.o): Depend on it.
2771 (temacs${EXEEXT}): Don't generate buildobj.lst.
2772 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2773 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2774 ($(BLD)/doc.$(O)): Depend on it.
2775 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2776 provided by Eli Zaretskii.)
2777 ($(TEMACS)): Don't generate buildobj.lst.
2778 * doc.c: Include buildobj.h.
2779 (buildobj): New static variable.
2780 (Fsnarf_documentation): Use it, instead of opening and reading
2781 buildobj.lst.
2782
1574224c
MA
27832009-08-25 Michael Albinus <michael.albinus@gmx.de>
2784
2785 * dbusbind.c (Fdbus_call_method)
2786 (Fdbus_call_method_asynchronously): Use English numeric format for
2787 timeout values in doc string.
2788
d9da2f45
KH
27892009-08-25 Kenichi Handa <handa@m17n.org>
2790
ef73e7be
KH
2791 * alloc.c (mark_char_table): New function.
2792 (mark_object): Use mark_char_table for a char-table.
2793
d9da2f45
KH
2794 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2795 (CHAR_TABLE_REF): Use it.
2796
c8edcc01
KR
27972009-08-23 Ken Raeburn <raeburn@raeburn.org>
2798
2799 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2800 before invoking the newly build emacs to check for load-path
2801 shadowing.
2802
7763401b
GM
28032009-08-22 Glenn Morris <rgm@gnu.org>
2804
2805 * Makefile.in (bootstrap_exe): New variable.
2806 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2807 Use ${bootstrap_exe}.
2808
729eadda
EZ
28092009-08-22 Eli Zaretskii <eliz@gnu.org>
2810
2811 * coding.h (encode_coding_string): Don't encode unibyte strings.
2812 (Bug#4047)
2813
eb4c6ace
MA
28142009-08-22 Michael Albinus <michael.albinus@gmx.de>
2815
2816 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2817
2818 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2819 intended as hotfix only.
2820 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2821
36e34d1b
AR
28222009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2823
2824 * nsterm.m (ns_get_color): Update documentation properly for last
2825 change, and clean up loose ends in the code left by it. Fix
2826 longstanding bug with 16-bit hex parsing, and add support for
2827 yet another X11 format (rgb:r/g/b) for compatibility.
2828 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2829 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2830
f983eb8a
SM
28312009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2832
2833 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2834
3f56d3c6
MA
28352009-08-20 Michael Albinus <michael.albinus@gmx.de>
2836
2837 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2838 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2839 (xd_initialize, xd_pending_messages): Check, whether
2840 $DBUS_SESSION_BUS_ADDRESS is set.
2841
fb641d68
YM
28422009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2843
2844 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2845
2846 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2847
cf59a374
GM
28482009-08-20 Glenn Morris <rgm@gnu.org>
2849
2850 * emacs.c (system-type): Doc fix.
2851
1373f3be
SM
28522009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2853
2854 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2855 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2856
058ed861
MA
28572009-08-18 Michael Albinus <michael.albinus@gmx.de>
2858
1373f3be
SM
2859 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2860 New functions.
058ed861
MA
2861 (xd_initialize): Revert change from 2009-08-16.
2862
563a866e 28632009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2864
2865 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2866 font-group vector, return nil.
5fc05db0 2867
e42bdf01
CY
28682009-08-17 Chong Yidong <cyd@stupidchicken.com>
2869
2870 * process.c (status_notify): Don't perform redisplay.
2871 (Fdelete_process, list_processes_1, process_send_signal):
2872 Expliticly perform redisplay.
2873 (wait_reading_process_output): Always check process status, but
2874 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2875
4230ab74
KR
28762009-08-17 Ken Raeburn <raeburn@raeburn.org>
2877
1373f3be 2878 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2879 (XFLOAT_INIT): New macro for storing a float value.
2880 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2881 * fns.c (sxhash): Copy out the value of a float in order to
2882 examine its bytes.
2883 * dbusbind.c (xd_append_arg): Likewise.
2884
4230ab74
KR
2885 * emacs.c (main): Don't call syms_of_data twice.
2886
a0645cdd
MA
28872009-08-16 Michael Albinus <michael.albinus@gmx.de>
2888
2889 * dbusbind.c (xd_initialize): Add connection file descriptor to
2890 input_wait_mask, in order to let select() detect, whether a new
2891 message has been arrived.
ca4f31ea 2892 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2893
485db0ba
MA
28942009-08-15 Michael Albinus <michael.albinus@gmx.de>
2895
1373f3be
SM
2896 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2897 New functions.
485db0ba
MA
2898
2899 * lisp.h (xd_pending_messages): Declare.
2900
2901 * keyboard.c (readable_events): Call xd_pending_messages.
2902
b5b98ff4
CY
29032009-08-15 Chong Yidong <cyd@stupidchicken.com>
2904
1373f3be 2905 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2906
f8354c6e
CY
2907 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2908
b5b98ff4
CY
2909 * buffer.c (set_buffer_internal_1)
2910 (swap_out_buffer_local_variables): Check for unbound local
2911 variables (Bug#4138).
2912
8b9fc636
EZ
29132009-08-14 Eli Zaretskii <eliz@gnu.org>
2914
2915 * process.c (create_pty): Fix last change.
2916
ce959360
CY
29172009-08-13 Chong Yidong <cyd@stupidchicken.com>
2918
2919 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2920 (xbm_load_image): Caller changed.
64b807c9 2921 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2922
c7baf7e9
NR
29232009-08-13 Nick Roberts <nickrob@snap.net.nz>
2924
2925 * process.c (create_pty): New function.
2926 (Fstart_process): Use it to allow Emacs to just associate a pty
2927 with the buffer. See associated change in gdb-mi.el.
2928 (list_processes_1): Deal with no program name.
2929 (start_process_unwind): Use pid == -2 to mean no process.
2930
1ac9108a
SM
29312009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2932
2933 * cmds.c (nonundocount): New global variable.
2934 (keys_of_cmds): Initialize it.
2935 (Fself_insert_command): Use it to combine upto 20 sequential chars
2936 into a single undo entry, just like the Qself_insert_command code in
2937 keyboard.c does.
2938 Call frame_make_pointer_invisible, also like the Qself_insert_command
2939 code in keyboard.c does.
2940 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2941 than its own local replacement for it.
2942
e267324c
KR
29432009-08-10 Ken Raeburn <raeburn@raeburn.org>
2944
1ac9108a 2945 * fns.c (concat): Don't re-set string length to its current value.
77437343 2946
1ac9108a
SM
2947 * coding.h (decode_coding_string, encode_coding_string):
2948 Use SBYTES macro.
f0bed503 2949
1ac9108a 2950 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2951 (doprnt): Merge with doprnt1, discarding lispstrings code.
2952 * lisp.h (doprnt_lisp): Don't declare.
2953
416e006d
JL
29542009-08-07 Juri Linkov <juri@jurta.org>
2955
2956 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2957
6f7d5780
DN
29582009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2959
2960 * print.c (syms_of_print): Undo previous change.
2961
f19a0f5b
TZ
29622009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2963
2964 * lread.c (read1, syms_of_lread): Read hashtables back from the
2965 readable format.
2966
2967 * print.c (print_preprocess, print_object): Print hashtables fully
2968 and readably.
2969 (syms_of_print): Provide 'hashtable-print-readable.
2970
b9173dc2
AR
29712009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2972
2973 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2974 no family set.
2975 (nsfont_open): Handle case when entity has no family.
2976
1586503c
AR
29772009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2978
2979 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2980 element, not a list, for match case.
2981
087048cd
KH
29822009-07-28 Kenichi Handa <handa@m17n.org>
2983
2984 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2985 rigidly.
2986
2987 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2988 font_parse_xlfd. Check font properties more rigidly.
2989
780c2506
DN
29902009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2991
31fd7c5c
JB
2992 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2993 bsd-common.h.
780c2506 2994
a8c0cc18
KH
29952009-07-27 Kenichi Handa <handa@m17n.org>
2996
2997 * xfaces.c (face_with_height): Call font_clear_prop.
2998
4fbe2306
CY
29992009-07-26 Chong Yidong <cyd@stupidchicken.com>
3000
111d9af3
CY
3001 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3002
3003 * xterm.c (x_term_init): Use Qx.
3004
4fbe2306
CY
3005 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3006
1ac9108a 3007 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3008 (ns_get_color): Revert 2009-07-16 change.
3009
beb0b7f9
EZ
30102009-07-25 Eli Zaretskii <eliz@gnu.org>
3011
3012 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3013 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3014
2baf5e76
KR
30152009-07-25 Ken Raeburn <raeburn@raeburn.org>
3016
1ac9108a
SM
3017 * coding.h (decode_coding_string, encode_coding_string):
3018 Use SCHARS macro.
8890e5f5 3019
2baf5e76 3020 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3021 (load_depth): Delete.
2baf5e76
KR
3022 (Qload_in_progress): New variable.
3023 (load_unwind): Don't reference load_depth or load_in_progress.
3024 (Fload): Likewise; specbind Qload_in_progress instead.
3025 (init_lread): Don't initialize load_depth.
3026 (syms_of_lread): Initialize and protect Qload_in_progress.
3027
1395c6f5
AR
30282009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3029
3030 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3031
4e2f36cf
AR
30322009-07-23 Yavor Doganov <yavor@gnu.org>
3033
3034 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3035
5dd9a6f7
AR
30362009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3037
3038 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3039 Bugs 3792, 3720, 2402.
3040 (ns_lookup_indexed_color): Check for bad index.
3041 (ns_index_color): Init unused slot to 0.
3042 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3043 Bug 3714, possibly 3082.
5dd9a6f7 3044
c902b920
JR
30452009-07-22 Jason Rumney <jasonr@gnu.org>
3046
1ac9108a
SM
3047 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3048 Position IME window at cursor (Bug#2570).
c902b920
JR
3049 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3050 (globals_of_w32fns): Dynamically load functions required above.
3051
3052 * w32term.c (w32_draw_window_cursor): Send message to reposition
3053 any IME window.
3054
090101cf
CY
30552009-07-21 Chong Yidong <cyd@stupidchicken.com>
3056
3057 * fileio.c: Revert 2009-07-16 changes.
3058 (Vauto_save_include_big_deletions): New variable.
3059 (Fdo_auto_save): Disable auto-save only if
3060 auto-save-include-big-deletions is nil.
3061
e6583e3d
CY
30622009-07-21 Chong Yidong <cyd@stupidchicken.com>
3063
3064 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3065 the overflowed pixels into account (Bug#3879).
3066
ece435a5
KR
30672009-07-21 Ken Raeburn <raeburn@raeburn.org>
3068
3069 * lread.c (load_depth): New variable.
3070 (Fload, load_unwind, init_lread): Set it to the load recursion
3071 depth; set load_in_progress as a simple boolean based on the
3072 current load_depth. (Bug#3892)
3073
40b2d973
AR
30742009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3075
3076 * nsfont.m (ns_has_attribute): Remove.
3077 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3078
10be7e0d
JL
30792009-07-18 Juri Linkov <juri@jurta.org>
3080
3081 * process.c (Fset_process_query_on_exit_flag): Mention killing
3082 a buffer in docstring.
3083
fa055055
KH
30842009-07-17 Kenichi Handa <handa@m17n.org>
3085
3086 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3087
042f7b69
YM
30882009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3089
3090 * nsfns.m (Fns_set_alpha): Remove function.
3091 (syms_of_nsfns): Don't defsubr it.
3092
3093 * nsterm.m (ns_get_color): Remove incompatible color formats.
3094 (ns_color_to_lisp): Generate #rrggbb color format string.
3095
4be941e3
RS
30962009-07-16 Richard Stallman <rms@gnu.org>
3097
3098 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3099 (Fset_buffer_auto_saved): Handle save_length = -2.
3100
4e6b227d
CY
31012009-07-16 Chong Yidong <cyd@stupidchicken.com>
3102
3103 * xterm.c (Qx_gtk_map_stock): New var.
3104
3105 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3106 of calling intern each time.
3107
a1856973
YM
31082009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3109
3110 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3111 does tiling.
3112
3113 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3114
497e54d8
KH
31152009-07-14 Kenichi Handa <handa@m17n.org>
3116
72d36834
KH
3117 * font.c (font_vconcat_entity_vectors): New function.
3118 (struct font_sort_data): New member font_driver_preference.
3119 (font_compare): Check font_driver_preference.
3120 (font_sort_entities): The format of the first argument changed.
3121 (font_delete_unmatched): Likewise.
3122 (font_list_entities): The return type changed.
3123 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3124 (font_find_for_lface): Adjuste for the above changes.
3125 Don't suppress the checking of C even if the repertory supports it.
3126 (Flist_fonts): Adjust for the above changes.
72d36834 3127
1ac9108a
SM
3128 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3129 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3130 Reject a font who has adstyle property that is different from a
3131 langname derived from registry property.
1ac9108a 3132 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3133
b6046155
EZ
31342009-07-13 Eli Zaretskii <eliz@gnu.org>
3135
3136 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3137 local copy of dirfilename.
3138
fb6b6049
KH
31392009-07-13 Kenichi Handa <handa@m17n.org>
3140
e2402a5e
KH
3141 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3142 against max_char.
3143
fb6b6049
KH
3144 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3145 calling XSYMBOL (sym).
3146
65156807
EZ
31472009-07-11 Eli Zaretskii <eliz@gnu.org>
3148
1ac9108a
SM
3149 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3150 New function.
3151 (directory_files_internal) [WINDOWSNT]:
3152 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3153 the filesystem of the directory is fast or slow.
3154
3155 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3156 file name.
3157 (is_slow_fs): New function.
3158 (stat): Use it to determine whether to issue more system calls to
3159 get accurate file attributes, when w32-get-true-file-attributes is
3160 `local'.
3161
e0ab5fcf
JD
31622009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3163
3164 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3165 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3166 parameter font-parameter as default to the font dialog.
3167
784ceded
KH
31682009-07-10 Kenichi Handa <handa@m17n.org>
3169
3170 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3171
fb8edc0b
EZ
31722009-07-09 Eli Zaretskii <eliz@gnu.org>
3173
1ac9108a 3174 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3175
fb8edc0b
EZ
3176 * w32.c (stat): Treat UNC file names as residing on remote
3177 drives. (Bug#3542)
3178
635c75b1
KH
31792009-07-09 Kenichi Handa <handa@m17n.org>
3180
3181 * fontset.c (fontset_find_font): Fix previous change.
3182
c1d5ce94
MA
31832009-07-08 Michael Albinus <michael.albinus@gmx.de>
3184
3185 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3186 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3187 error flag.
3188
edb61b39
KH
31892009-07-08 Kenichi Handa <handa@m17n.org>
3190
374bf7e4
KH
3191 * fontset.c (fontset_find_font): Fix the logic of handling
3192 charset_matched.
3193 (font_for_char): Delete unused var.
3194 (generate_ascii_font_name): Delete it.
3195
edb61b39
KH
3196 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3197
3198 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3199 (encode_coding_sjis): Fix the code range check.
3200
0f3f018c
CY
32012009-07-07 Chong Yidong <cyd@stupidchicken.com>
3202
3203 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3204 (Fexpand_file_name): Copy string data properly (Bug#3772).
3205
fcaf6f3a
JD
32062009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3207
3208 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3209 first MapNotify.
3210
6809ca75
KH
32112009-07-07 Kenichi Handa <handa@m17n.org>
3212
3213 * character.h (unibyte_has_multibyte_table): Delete extern.
3214 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3215
3216 * charset.c (Fset_charset_priority): Update charset_unibyte.
3217 (syms_of_charset): Initialize charset_unibyte.
3218
3219 * character.c (unibyte_has_multibyte_table): Delete it.
3220 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3221 charset_unibyte.
3222 (multibyte_char_to_unibyte_safe): Likewise.
3223 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3224
1ac9108a 3225 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3226 (x_produce_glyphs): Likewise.
3227
3228 * .gdbinit (xcharset): Fix the treating $arg0.
3229
ad9e2d54
EZ
32302009-07-04 Eli Zaretskii <eliz@gnu.org>
3231
3232 Emulation of `getloadavg' on MS-Windows.
3233 * w32.c: Include float.h
3234 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3235 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3236 (get_native_system_info, get_system_times): New functions.
3237 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3238 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3239 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3240 g_b_init_get_system_times, and num_of_processors.
3241
0a3472c7
JR
32422009-07-03 Jason Rumney <jasonr@gnu.org>
3243
3244 * w32term.c (w32_initialize): Use standard types.
3245
80904120
EZ
32462009-07-03 Eli Zaretskii <eliz@gnu.org>
3247
3248 * dired.c (Ffile_attributes): Decode user and group names by the
3249 locale's encoding. (Bug#3443)
3250
6978862d
DN
32512009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3252
f8d23104
DN
3253 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3254 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3255
3256 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3257
3258 * term.c (init_tty): Remove spurious #ifdef.
3259
6978862d
DN
3260 * m/mips.h: Mention this file is also used for netbsd.
3261 * m/pmax.h: Remove file.
3262
e044e4fc
JD
32632009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3264
3265 * xterm.h (struct x_display_info): Add invisible_cursor.
3266 (struct x_output): Add current_cursor.
3267
3268 * xterm.c (XTtoggle_invisible_pointer): New function.
3269 (x_define_frame_cursor): Don't define cursor if invisible or the
3270 same as before. Set current_cursor.
3271 (x_create_terminal): Set toggle_invisible_pointer_hook.
3272
3273 * xfns.c (make_invisible_cursor): New function.
3274 (x_set_mouse_color): Call make_invisible_cursor.
3275 Set current_cursor.
3276 (x_window): Set current_cursor.
3277
3278 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3279
3280 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3281 inserting a character.
3282 (read_avail_input): Call frame_make_pointer_visible.
3283
3284 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3285 (frame_make_pointer_invisible, frame_make_pointer_visible):
3286 New functions.
e044e4fc
JD
3287 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3288
3289 * frame.h: Declare frame_make_pointer_invisible and
3290 frame_make_pointer_visible.
3291 (struct frame): Add pointer_invisible.
3292
574c8efa
JD
32932009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3294
7b507248
JD
3295 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3296 frame isn't visible.
3297 (xg_frame_resized): If width/height is -1, get size of window
3298 from X server.
3299
3300 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3301 for MapNotify.
3302
835bdaa7 3303 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3304 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3305 (flush_and_sync): Reintroduce.
574c8efa 3306
3f1c6666 33072009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3308
31fd7c5c 3309 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3310
3311 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3312 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3313
3314 * frame.h: Declare Qsticky.
3315
cad9ef74
JD
3316 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3317
3318 * nsfns.m (ns_frame_parm_handlers): Ditto.
3319
3320 * frame.c: Declare Qsticky.
3321 (frame_parms): Add sticky.
3322
3323 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3324
3325 * xterm.h: Declare x_set_sticky.
3326
3327 * xterm.c (x_set_sticky): New function.
3328
69b16610
JD
3329 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3330 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3331 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3332
3333 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3334
3335 * frame.c: Qmaximized is new.
3336 (x_set_frame_parameters): Do not handle fullscreen specially.
3337 Only set width and height if explicitly set.
3338 (x_set_fullscreen): Handle Qmaximized.
3339 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3340 (syms_of_frame): Initialize Qmaximized.
3341
1ac9108a
SM
3342 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3343 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3344
3345 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3346 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3347 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3348 set gravity to NorthWestGravity when USE_GTK.
3349 (set_wm_state): New function.
31fd7c5c 3350 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3351 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3352 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3353 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3354 to x_real_positions and x_fullscreen_adjust.
3355
3356 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3357 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3358 flush_and_sync.
3359 (xg_height_changed): New function.
3360 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3361 and gtk_window_set_policy. Set frame gravity after parsing the
3362 geometry string.
3f1c6666
JD
3363 (xg_update_frame_menubar, free_frame_menubar)
3364 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3365 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3366 Remove calls to xg_frame_set_char_size.
3367
fd503d99
KH
33682009-07-01 Kenichi Handa <handa@m17n.org>
3369
3370 * keyboard.c (decode_keyboard_code): New function.
3371 (tty_read_avail_input): Decode the input bytes if necessary.
3372
1ac9108a
SM
3373 * coding.c (setup_coding_system):
3374 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3375 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3376 use Qno_conversion.
3377
24ed93fb
YM
33782009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3379
3380 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3381
99061dfc
CY
33822009-06-30 Chong Yidong <cyd@stupidchicken.com>
3383
1ac9108a 3384 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3385
ff90fbde
JR
33862009-06-30 Jason Rumney <jasonr@gnu.org>
3387
3388 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3389 is already loaded.
3390 Set user model ID if supported (bug#1849).
3391
5f445726
JM
33922009-06-29 Jim Meyering <meyering@redhat.com>
3393
3394 Remove useless if-before-xfree test.
3395 * nsfont.m (nsfont_close): Remove useless test.
3396 * term.c (delete_tty): Likewise.
3397 * w32.c (system_process_attributes): Likewise.
3398 * w32font.c (w32font_close): Likewise.
3399 * xfaces.c (x_free_gc): Likewise.
3400 * xselect.c (buffer): Likewise.
3401
b9607587
AS
34022009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3403
3404 * process.c (send_process): Keep decoded string in a local
3405 variable and protect it from GC. (Bug#3521)
3406
89ba96f4
EZ
34072009-06-28 Eli Zaretskii <eliz@gnu.org>
3408
3409 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3410 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3411
098a1589
CY
34122009-06-28 Chong Yidong <cyd@stupidchicken.com>
3413
485422be
CY
3414 * xdisp.c (start_display, handle_face_prop)
3415 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3416 (redisplay_window, try_window_id, produce_image_glyph):
3417 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3418
098a1589
CY
3419 * xterm.c (x_update_window_begin, x_new_focus_frame)
3420 (x_scroll_bar_handle_click, handle_one_xevent)
3421 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3422 (x_make_frame_visible, x_make_frame_invisible)
3423 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3424 code chunks that are now obsolete.
3425
78c38319
MA
34262009-06-28 Michael Albinus <michael.albinus@gmx.de>
3427
3428 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3429 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3430 for hours, when optimzation is enabled.
3431 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3432 (xd_read_message): Make them static.
3433
4189ed40
CY
34342009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3435
3436 * term.c (turn_on_face): Allow simultaneously bold and dim
3437 terminal faces (Bug#3530).
3438
cd9b5e16
CY
34392009-06-27 Chong Yidong <cyd@stupidchicken.com>
3440
4e23bedb
CY
3441 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3442
cd9b5e16
CY
3443 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3444 truncation glyphs (Bug#3686).
3445
07cc3c35
GM
34462009-06-27 Glenn Morris <rgm@gnu.org>
3447
3448 * m/pmax.h: Restore file, with only netbsd portions.
3449
31fd7c5c 34502009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3451
cd9b5e16 3452 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3453
42d4a64f
KH
34542009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3455
3456 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3457 the arg FORCE_SYMBOL.
3458
930fe55b 34592009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3460
3461 * fontset.c (fontset_find_font): When a usable rfont_def is found
3462 in a fallback font-group, make it the first element of the group.
3463
57ebc3fd
CY
34642009-06-24 Chong Yidong <cyd@stupidchicken.com>
3465
3466 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3467
f084f942
KH
34682009-06-24 Kenichi Handa <handa@m17n.org>
3469
3470 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3471 set for C.
3472 (fontset_font): Record the availability of a font for C both in
3473 the realized fontsets of the current one and the default one.
3474
2f686c87
DN
34752009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3476
3477 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3478 conditional, it is always defined on AIX.
3479
666e158e
MB
34802009-06-23 Miles Bader <miles@gnu.org>
3481
3482 * window.c (Vrecenter_redisplay): New variable.
3483 (syms_of_window): Initialize it.
3484 (Qtty): New extern declaration.
3485 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3486
c6da7cd2
JM
34872009-06-23 Jim Meyering <meyering@redhat.com>
3488
1ac9108a
SM
3489 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3490 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3491 pointer dereferences are guaranteed to be valid.
c6da7cd2 3492
678dca3d
KH
34932009-06-23 Kenichi Handa <handa@m17n.org>
3494
74d75424
KH
3495 * emacs.c (main): Call init_font ().
3496
3497 * font.h (Vfont_log): Extern it.
3498 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3499
3500 * font.c (font_sort_entities, font_list_entities)
3501 (font_matching_entity, font_open_entity)
3502 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3503 (Vfont_log): Delete static.
3504 (font_log_env_checked): Delete this variable.
3505 (font_add_log): Don't check font_log_env_checked.
3506 (font_deferred_log): Check Vfont_log.
3507 (init_font): New function.
3508
678dca3d
KH
3509 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3510
3511 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3512
3513 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3514
3515 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3516
3517 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3518 (face_for_char): Don't call font_deferred_log here.
3519 (font_for_char): Likewise.
3520
8a668709
CY
35212009-06-22 Chong Yidong <cyd@stupidchicken.com>
3522
9a01ee33
CY
3523 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3524 rather than its background_width for drawing the overline and
3525 underline (Bug#489).
3526
3527 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3528 rather than its background_width for drawing the overline and
3529 underline (Bug#489).
ec7c9926
CY
3530 (xg_default_icon_file): New variable.
3531 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3532 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3533
8a668709
CY
3534 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3535 (load_overlay_strings): Remove externs.
3536 (fast_find_position): Function deleted.
3537 (mouse_face_from_buffer_pos): New function, based on
3538 fast_find_position. Correctly handle before-strings,
3539 display-strings, and after-strings (Bug#1220).
3540 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3541
4d4c02d8
CY
35422009-06-21 Chong Yidong <cyd@stupidchicken.com>
3543
1ac9108a 3544 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3545 (move_it_in_display_line_to, move_it_in_display_line_to)
3546 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3547
70243478
CY
35482009-06-21 Chong Yidong <cyd@stupidchicken.com>
3549
3550 * Branch for 23.1.
3551
13087e59
JR
35522009-06-21 Jason Rumney <jasonr@gnu.org>
3553
3554 * w32term.c (keyboard_codepage): New static variable.
3555 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3556 (w32_read_socket) [WM_CHAR]: Use it to decode character
3557 input (bug#3237).
3558 (w32_initialize): Initialize it.
3559 (codepage_for_locale): New function.
3560
4735b74e
KR
35612009-06-20 Ken Raeburn <raeburn@raeburn.org>
3562
3563 * process.c (status_message): Pass Faset index argument as a lisp
3564 object, so as to work with USE_LISP_UNION_TYPE.
3565
0e727afa
YM
35662009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3567
3568 * coding.c (Ffind_coding_systems_region_internal):
3569 Cache checked characters.
3570
cf299835
KH
35712009-06-18 Kenichi Handa <handa@m17n.org>
3572
1ac9108a 3573 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3574
90f20d94
AS
35752009-06-18 Andreas Schwab <aschwab@redhat.com>
3576
3577 * xdisp.c (redisplay_internal): Check that the frame is still
3578 live after redisplay of its windows.
3579 (redisplay_windows): Check that the window is still live.
3580
7f1faf1c
KH
35812009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3582
3583 * coding.c (detect_coding_utf_16): Fix previous change.
3584
cc13543e
KH
35852009-06-16 Kenichi Handa <handa@m17n.org>
3586
3587 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3588 UTF-16 by checking the dispersion of Eth and Oth bytes.
3589
977b85f4
AS
35902009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3591
3592 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3593
66bd43d1
KH
35942009-06-15 Kenichi Handa <handa@m17n.org>
3595
3596 * process.c (status_message): Fix previous change. Be sure to
3597 decode a localized string.
3598
cb5ca9c5
YM
35992009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3600
3601 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3602 add comment explaining why.
3603
ec7709ba 36042009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3605
ec7709ba 3606 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3607
4b7f335c
AR
36082009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3609
3610 * nsfont.m (ns_attribute_value): Remove.
3611 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3612 (ns_has_attribute): Shrink the normal range.
3613 (ns_findfonts): Don't worry about requested spec in determining
3614 need for synthItal.
e41820ee 3615 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3616
73b26103
SZ
36172009-06-14 Seiji Zenitani <zenitani@mac.com>
3618
3619 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3620
5753e4da
KH
36212009-06-11 Kenichi Handa <handa@m17n.org>
3622
3623 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3624 overhang for the static composition case.
3625
3561b671
KH
36262009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3627
5753e4da
KH
3628 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3629 overhang for the automatic composition case.
3630
3561b671
KH
3631 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3632 composition case.
3633
852bbd41
CY
36342009-06-10 Chong Yidong <cyd@stupidchicken.com>
3635
3636 * xdisp.c (get_next_display_element): When handling wrap-prefix
3637 and line-prefix, treat \n as a control character (bug#3502).
3638
9903d1e6
KH
36392009-06-10 Kenichi Handa <handa@m17n.org>
3640
3641 * font.c (font_parse_family_registry): Fix for one-char foundry.
3642 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3643
0bcbaaaa
CY
36442009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3645
3646 * process.c (status_message): Fix handling of multibyte signal
3647 string (Bug#3499).
3648
40aa3f13
JM
36492009-06-09 Jim Meyering <meyering@redhat.com>
3650
1f80c7e2
CY
3651 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3652 color name is missing.
40aa3f13 3653
72d51285
KH
36542009-06-09 Kenichi Handa <handa@m17n.org>
3655
3656 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3657 FROM-CODE and TO-CODE are codepoints of CHARSET.
3658
c1d04d84
AR
36592009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3660
3661 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3662
36632009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3664
3665 Changes to support :script/:lang/:otf in NS font driver.
3666 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3667 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3668 indicate not part of font driver interface, and change callers.
3669 (ns_get_family): Remove pointless null check.
3670 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3671 ns_spec_to_descriptor, ns_descriptor_to_entity.
3672 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3673 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3674 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3675 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3676 (ns_get_req_script, ns_accumulate_script_ranges)
3677 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3678 New functions.
3679 (nsfont_list, nsfont_match): Use ns_findfonts.
3680 (nsfont_open): Use font descriptor instead of traits.
3681 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3682 (dump_glyphstring): Rename to ns_dump_glyphstring.
3683
c7eb9816
AR
3684 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3685
c1d04d84
AR
3686 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3687
3688 * fontset.c (fontset_from_font): Remove NS-specific code.
3689
ec7709ba 36902009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3691
3692 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3693 nonactive windows.
3694
31fd7c5c 36952009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3696
1ac9108a 3697 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3698
68852c13 36992009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3700
3701 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3702
6756cd1d
CY
37032009-06-07 Chong Yidong <cyd@stupidchicken.com>
3704
3705 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3706 account for the overflowing of newlines into the last glyph on the
3707 display line (Bug#3482).
3708
28bf482a
DR
37092009-06-05 David Reitter <david.reitter@gmail.com>
3710
ec7709ba
JB
3711 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3712 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3713 Fns_selection_exists_p, Fns_selection_owner_p.
3714
fdb55376
JR
37152009-06-03 Jason Rumney <jasonr@gnu.org>
3716
3717 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3718 available. (Bug#3379)
3719
05129fbe
KH
37202009-05-29 Kenichi Handa <handa@m17n.org>
3721
1ac9108a
SM
3722 * coding.c (get_translation_table):
3723 Check Venable_character_translation.
05129fbe 3724
ec7709ba 37252009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3726
ec7709ba
JB
3727 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3728 (x_make_frame_visible): Move frame to front rather than calling
15891144 3729 ns_raise_frame().
ec7709ba 3730 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3731 isn't key window.
ec7709ba 3732 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3733 drawRect may be called by NSView even if the frame is hidden.
3734
ec7709ba
JB
3735 * nsfns.m (Fx_create_frame): Follow other ports in
3736 determining visibility; default to t. Ensure async_visible is set.
15891144 3737
21f73755
EZ
37382009-05-23 Eli Zaretskii <eliz@gnu.org>
3739
3740 * dired.c (Ffile_attributes): Doc fix.
3741
34001e41
CY
37422009-05-22 Chong Yidong <cyd@stupidchicken.com>
3743
3744 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3745
46306a17
SM
37462009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3747
3748 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3749 and xfont_scratch_props.
3750 (syms_of_xfont): Do it here instead.
3751 (xfont_find_ccl_program): Delete, unused.
3752 (xfont_open): Delete unused var `i'.
3753
ef6e0694
KH
37542009-05-21 Kenichi Handa <handa@m17n.org>
3755
3756 * fontset.c (Qlatin): Don't make it static.
3757
46306a17
SM
3758 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3759 New functions.
ef6e0694
KH
3760 (xfont_scripts_cache, xfont_scratch_props): New variables.
3761 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3762 (xfont_list_pattern): Argument changed. Callers changed.
3763 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3764 (xfont_list): Don't reject a font spec with :script property.
3765 (xfont_has_char): Fix setting of encoding.
3766 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3767 xfont_scratch_props.
3768
37692009-05-19 Kenichi Handa <handa@m17n.org>
3770
46306a17 3771 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3772 Callers changed.
3773
37742009-05-18 Kenichi Handa <handa@m17n.org>
3775
3776 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3777
ac71ced7
SM
37782009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3779
3780 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3781 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3782
1c6d1051
YM
37832009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3784
3785 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3786 (x_delete_terminal): Dissociate resource database from display and
3787 then call XrmDestroyDatabase before closing display.
3788
9b9b779c
AR
37892009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3790
3791 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3792 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3793 whether selected frame is viable before raising it (based on patch
3794 by David Reitter), and improve commentary.
3795 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3796
cccd42d5
KH
37972009-05-15 Kenichi Handa <handa@m17n.org>
3798
3799 * font.c (Ffont_spec): Check arguments.
3800
337fbd17
CY
38012009-05-14 Chong Yidong <cyd@stupidchicken.com>
3802
3803 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3804 weight when testing attributes (Bug#3282).
3805
47a6002f
JD
38062009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3807
3808 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3809 what we expect to get in the next ConfigureNotify event.
3810
9cb363db
YM
3811 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3812 before Xft one (Bug#1696).
3813
b9126609
CY
38142009-05-07 David Reitter <david.reitter@gmail.com>
3815
3816 * nsfns.m (Fx_display_planes): Compute bitplanes using
3817 NSBitsPerPixelFromDepth (Bug#3207).
3818
27a69fd9
CY
38192009-05-10 Chong Yidong <cyd@stupidchicken.com>
3820
3821 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3822
00f37552
TTN
38232009-05-10 Ulrich Mueller <ulm@gentoo.org>
3824
3825 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3826
2d82a920
DR
38272009-05-07 David Reitter <david.reitter@gmail.com>
3828
ec7709ba
JB
3829 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3830 Respect mouse face background.
2d82a920 3831
46b0d52d
DR
38322009-05-07 David Reitter <david.reitter@gmail.com>
3833
ec7709ba
JB
3834 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3835 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3836 in ns_update_begin and ns_update_end.
3837
ce1b23bb
SM
38382009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3839
5996e1b7
SM
3840 * nsfns.m (ns_get_screen): Rewrite.
3841 Don't presume selected-frame is of type `ns'.
3842
ba98e3a0
SM
3843 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3844 all drivers.
3845
ce1b23bb
SM
3846 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3847
bcda200f
YM
38482009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3849
3850 * keyboard.h (add_user_signal): Fix typo in extern.
3851
3852 * lisp.h (add_user_signal): Remove extern.
3853
3854 * unexelf.c (unexec): Consider a section to precede the .bss section
3855 if its addresses overlap that of .bss.
3856 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3857 instead of dumping process.
3858
864660a2
SM
38592009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3860
3861 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3862
50da4e56
SM
38632009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3864
3865 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3866
51520a1a
DN
38672009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3868
3869 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3870 any statements.
3871
409ea3a1
AS
38722009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3873
59c4c60f
AS
3874 * process.c (read_process_output): Make sure the current buffer is
3875 always restored.
3876
409ea3a1
AS
3877 * coding.c (record_conversion_result): Don't modify
3878 Vlast_code_conversion_error for successful result.
3879 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3880
56f00ed2
KH
38812009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3882
3883 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3884 (load_charset_map): Remove unnecessary code.
56f00ed2 3885
4491c9d2
DR
38862009-04-30 David Reitter <david.reitter@gmail.com>
3887
35f5b128 3888 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3889 through f24.
3890
6970f632
CY
38912009-04-30 Chong Yidong <cyd@stupidchicken.com>
3892
3893 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3894
3895 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3896 face_at_buffer_position.
3897 (face_before_or_after_it_pos, get_next_display_element)
3898 (note_mouse_highlight): Update face_at_buffer_position call.
3899
3900 * term.c (term_mouse_highlight):
3901 * msdos.c (IT_note_mouse_highlight):
3902 * fontset.c (Finternal_char_font):
35f5b128 3903 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3904
3905 * dispextern.h (face_at_buffer_position): Update prototype.
3906
0c616f63
KH
39072009-04-30 Kenichi Handa <handa@m17n.org>
3908
35f5b128 3909 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3910
ad3aaf33
AS
39112009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3912
3913 * callproc.c (Fcall_process): Fix GC protection. Make sure
3914 current buffer is always restored.
3915
c3c963a0
YM
39162009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3917
3918 * atimer.c (init_atimer): Also clear stopped_atimers.
3919
3920 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3921
7e3386cb
YM
3922 * process.c (create_process): Clean up merger residues of
3923 2008-07-17 change.
3924
91f68422
CY
39252009-04-29 Ulrich Mueller <ulm@gentoo.org>
3926
3927 * lread.c (Vread_circle): New variable.
3928 (read1): Disable recursive read if Vread_circle is nil.
3929
24b34550
KH
39302009-04-29 Kenichi Handa <handa@m17n.org>
3931
3932 * fontset.h (set_default_ascii_font): Delete extern.
3933
3934 * fontset.c (set_default_ascii_font): Delete this unused function.
3935
3936 * frame.c (x_set_font): When ARG is a font-object, check if the
3937 font-object matches with the ASCII font-spec of the frame's
9c358bda 3938 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3939
77bf07e1
AS
39402009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3941
3942 * fns.c (Flocale_info): Protect vector from GC during decoding.
3943
3944 * process.c (Fstart_process): Protect argv strings from GC during
3945 encoding.
3946
2c55aacf
AS
39472009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3948
3949 * sysdep.c: Include <ctype.h>.
3950
b892d3c9
DR
39512009-04-27 David Reitter <david.reitter@gmail.com>
3952
35f5b128 3953 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3954 Remove commented-out code.
3955
9d0644c4
JB
39562009-04-26 Johan Bockgård <bojohan@gnu.org>
3957
3958 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3959
b7053016
JR
39602009-04-25 Jason Rumney <jasonr@gnu.org>
3961
3962 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3963
4e8231f3
YM
39642009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3965
3966 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3967 Swap bytes in short integer if fringe bitmap width > 8.
3968
493dcf2c
KH
39692009-04-23 Kenichi Handa <handa@m17n.org>
3970
3971 * xfaces.c (Fx_list_fonts): If a font size is specified in
3972 PATTERN, set it in returned scalable fonts.
3973
401e9e57
CY
39742009-04-22 Chong Yidong <cyd@stupidchicken.com>
3975
708e05dc
CY
3976 * keyboard.c (Fset_input_meta_mode): Doc fix.
3977
3978 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3979
1ac9108a 3980 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3981
3982 * coding.c (Fterminal_coding_system): Doc fix.
3983
3984 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3985 (Fx_display_pixel_height, Fx_display_planes)
3986 (Fx_display_color_cells, Fx_server_max_request_size)
3987 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3988 (Fx_display_mm_height, Fx_display_mm_width)
3989 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3990 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3991 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3992 (check_x_display_info): Handle terminal objects instead of
3993 terminal ids.
3994
401e9e57
CY
3995 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3996 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3997 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3998 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3999
df80c7f0
KH
40002009-04-21 Kenichi Handa <handa@m17n.org>
4001
5a8f12af 4002 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4003 (font_score): Check AVGWIDTH too.
908567ef 4004
df80c7f0
KH
4005 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4006 worst case.
1ac9108a
SM
4007 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4008 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4009
705af33f
JR
40102009-04-19 Jason Rumney <jasonr@gnu.org>
4011
4012 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4013 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4014
4015 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4016 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4017 get_phys_cursor_geometry.
4018
b71ac3dd 4019 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4020 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4021 using get_phys_cursor_geometry.
4022
4023 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4024 correctly calculated.
4025
dc2933eb
JD
40262009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4027
1ac9108a
SM
4028 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4029 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4030 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4031 is deprecated.
4032
973e7849
AS
40332009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4034
4035 * font.c (font_put_frame_data): Use xfree instead of free.
4036
314d66f4
JB
40372009-04-17 Juanma Barranquero <lekktu@gmail.com>
4038
4039 * w32font.c (Qja, Qko): Remove declarations.
4040 (syms_of_w32font): Don't DEFSYM them.
4041
cf702558
CY
40422009-04-17 Chong Yidong <cyd@stupidchicken.com>
4043
4044 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4045
4046 * font.h (Qja, Qko): Extern them.
4047
4048 * ftfont.c (Qja, Qko): Remove declarations.
4049
4050 * xfont.c (Qja, Qko): Remove declarations.
4051
b50504f5
KH
40522009-04-17 Kenichi Handa <handa@m17n.org>
4053
bde25748
KH
4054 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4055 string from a vector to handle Latin-1 characters correctly.
4056
b50504f5
KH
4057 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4058 entity even if the cache hits.
4059
f4646fff
AS
40602009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4061
4062 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4063 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4064
e7deaab0
AS
4065 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4066 * lisp.h: Adjust prototypes.
4067
0a0e7d49
CY
40682009-04-16 Chong Yidong <cyd@stupidchicken.com>
4069
4070 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4071 change (Bug#3003).
4072
3c908a57
KH
40732009-04-16 Kenichi Handa <handa@m17n.org>
4074
1ac9108a 4075 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4076
4077 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4078 adstyle.
4079
4080 * ftfont.c (Qja, Qko): Don't make them static.
4081 (enum ftfont_cache_for): New enum.
4082 (fc_charset_table): Undo the previous change.
4083 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4084 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4085 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4086 non-scarable font, try to get AVERAGE_WIDTH.
4087 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4088 Change ft_face_cache from a list of a hash-table. Don't check
4089 `ja' and `ko' adstyle here.
4090 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4091 FTFONT_CACHE_FOR_CHARET.
4092 (ftfont_get_charset): Undo the previous change.
1ac9108a 4093 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4094 (ftfont_close): Likewise.
4095 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4096
4097 * font.c (font_sort_entites): Change the meaning of the arg
4098 BEST-ONLY. Don't optimize for VEC of lenght 1.
4099 (font_select_entity): Just return the value of font_sort_entites.
4100
4101 * xfaces.c (merge_face_vectors): Reflect font properties in
4102 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4103 font_clear_prop if a face attribute doesn't change.
4104
3c908a57
KH
4105 * charset.h (charset_ksc5601): Extern it.
4106
4107 * charset.c (charset_ksc5601): New variable.
4108 (Fdefine_charset_internal): Set charset_ksc5601.
4109 (init_charset_once): Initialize charset_ksc5601 to -1.
4110
d65859c3
DN
41112009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4112
4113 * fileio.c (history_delete_duplicates): Remove unused declaration.
4114
4115 * callint.c (history_delete_duplicates): New declaration.
4116 (Fcall_interactively): Remove command history duplicates when
4117 history_delete_duplicates is true.
4118
3ba010e5
EZ
41192009-04-14 Eli Zaretskii <eliz@gnu.org>
4120
4121 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4122
06f19b91
KH
41232009-04-14 Kenichi Handa <handa@m17n.org>
4124
4125 * font.c (Ffont_info): Fix docstring. Fix the second element of
4126 the returned value (bug#2949).
4127
2cce8bfc
CY
41282009-04-14 Chong Yidong <cyd@stupidchicken.com>
4129
4130 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4131
d156542d
KH
41322009-04-14 Kenichi Handa <handa@m17n.org>
4133
4134 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4135 encoding charset is ascii_compatible.
4136
4137 * charset.c (Fdefine_charset_internal): Make charset
4138 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4139 code_offset is 0, and covers all ASCII characters.
4140
86fa089e
SM
41412009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4142
4143 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4144 (ns_string_to_pasteboard_internal):
4145 * nsmenu.m (process_dialog):
4146 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4147 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4148 * lisp.h (Fx_load_color_file): Declare.
4149
a8a3728b
KH
41502009-04-13 Kenichi Handa <handa@m17n.org>
4151
1ac9108a 4152 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4153 (font_select_entity): Suppress the code to optimize for the same
4154 kind of fonts.
4155 (font_load_for_lface): Get a font that supports at least ASCII
4156 characters.
4157
4158 * ftfont.c (Qja, Qko): New variables.
4159 (fc_charset_table): Delete uniquifier data for iso8859-1.
4160 (ftfont_get_latin1_charset): New function.
4161 (get_adstyle_property): New function.
4162 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4163 bitmap fonts.
4164 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4165 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4166 `ko' or `ja'.
4167 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4168 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4169 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4170 property.
4171 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4172 (syms_of_ftfont): DEFSYM Qja and Qko.
4173
483670b5
KH
41742009-04-09 Kenichi Handa <handa@m17n.org>
4175
12b55765
KH
4176 * charset.c (map_charset_chars): For a charset of `superset'
4177 method, fix calculation of code range.
4178
483670b5
KH
4179 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4180 from the list of extra properties.
4181 (font_clear_prop): Be sure to delete `:name' font property.
4182
57d3b93b
KH
41832009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4184
b4b2c2ca
YM
4185 * dispnew.c (redraw_overlapping_rows): Fix detection of
4186 overlapping for topmost and bottommost rows.
4187
1ac9108a 4188 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4189
472c3609
JR
41902009-04-06 Jason Rumney <jasonr@gnu.org>
4191
4192 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4193
ab193662
KH
41942009-04-06 Kenichi Handa <handa@m17n.org>
4195
4196 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4197
4198 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4199
0c26f026
KH
42002009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4201
4202 * ftfont.c (ftfont_open): Fix checking of the return value of
4203 FT_Load_Char. Fix setting font->underline_thickness.
4204
e173bbce
CY
42052009-04-04 Chong Yidong <cyd@stupidchicken.com>
4206
4207 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4208 (Fterminal_parameters, Fterminal_parameter)
4209 (Fset_terminal_parameter): In doc string, refer to terminal
4210 objects rather than terminal ids.
4211
693a2698
EZ
42122009-04-04 Eli Zaretskii <eliz@gnu.org>
4213
4214 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4215 ret_lim_data. (Bug#2867)
4216
d5221487
CY
42172009-04-03 Chong Yidong <cyd@stupidchicken.com>
4218
4219 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4220 so they don't get wider than the window, matching 2006-01-23
4221 change to the partner function in xdisp.c (Bug#2800).
4222
223509a3
KH
42232009-04-03 Kenichi Handa <handa@m17n.org>
4224
4225 * print.c (print_object): Make each lowest sub_char_table start a
4226 new line (Bug#2866).
4227
74fcd0b1
KH
42282009-04-02 Kenichi Handa <handa@m17n.org>
4229
4230 * fontset.c (fontset_font): Record no-font when a fontset
4231 explicitly tells not to try another font-specs.
4232
c542407d
SM
42332009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4234
4235 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4236
e3869731
KH
42372009-03-30 Kenichi Handa <handa@m17n.org>
4238
d8d2f142
KH
4239 * fontset.c (fontset_from_font): Specify only registry in a
4240 font-spec for all characters supported by that registry.
4241
e3869731
KH
4242 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4243 even if HAVE_M17N_FLT is not defined.
4244
5da5f805
CY
42452009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4246
4247 * ftfont.c: Conditionalize prototyping and use of
4248 ftfont_variation_glyphs.
4249
ab226c50
SM
42502009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4251
9628fed7
SM
4252 * frame.c (delete_frame): Work around compiler bug.
4253
4254 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4255 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4256 Some more EMACS_INT.
4257 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4258
4259 * xdisp.c (dump_glyph): Fix typo.
4260
ae19ba7c
SM
4261 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4262 (adjust_markers_gap_motion, adjust_markers_for_delete)
4263 (adjust_markers_for_insert, adjust_point)
4264 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4265 (make_gap, copy_text, count_size_as_multibyte, insert)
4266 (insert_and_inherit, insert_before_markers)
4267 (insert_before_markers_and_inherit, insert_1)
4268 (count_combining_before, count_combining_after, insert_1_both)
4269 (insert_from_string, insert_from_string_before_markers)
4270 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4271 (insert_from_buffer_1, adjust_after_replace)
4272 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4273 (replace_range_2, del_range, del_range_1, del_range_byte)
4274 (del_range_both, del_range_2, modify_region)
4275 (prepare_to_modify_buffer, signal_before_change)
4276 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4277 for buffer positions and sizes.
4278 * lisp.h: Adjust prototypes accordingly.
4279
4280 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4281 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4282 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4283
ab226c50
SM
4284 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4285
46dfb8fb
JD
42862009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4287
4288 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4289 lines and columns so we keep the same pixel height and width.
4290
4291 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4292 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4293 (x_handle_net_wm_state): New function to update frame parameter
4294 fullscreen.
4295 (x_term_init): Initialize atoms for _NET_WM_STATE.
4296
4297 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4298
d347e494
SM
42992009-03-27 Kevin Ryde <user42@zip.com.au>
4300
4301 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4302 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4303 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4304 (Fgpm_mouse_stop): Pass that new parameter.
4305 * termhooks.h (close_gpm): Adjust prototype.
4306
84db11d6
SM
43072009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4308
c95a5008
SM
4309 * lisp.h (Fx_focus_frame): Declare.
4310
84db11d6
SM
4311 * callint.c (Fcall_interactively): For '^' just delegate the work to
4312 handle-shift-selection.
4313 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4314
0a1958d6
CY
43152009-03-24 Chong Yidong <cyd@stupidchicken.com>
4316
0bfdff23
CY
4317 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4318
0a1958d6
CY
4319 * data.c (Qinteractive_form): New variable.
4320 (Finteractive_form): Use it.
4321
4322 * eval.c (Fcommandp): Use Qinteractive_form.
4323
58aec0d6
JR
43242009-03-24 Jason Rumney <jasonr@gnu.org>
4325
4326 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4327 Calculate total size precisely. Decode environment variables
4328 before substituting. (Bug#38)
4329
553dd618
KH
43302009-03-24 Kenichi Handa <handa@m17n.org>
4331
4332 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4333 encoding (Bug#2722).
553dd618 4334
c39ea606
JD
43352009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4336
4337 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4338 that gdpy is set.
4339
bc9b2b5e
AM
43402009-03-22 Alan Mackenzie <acm@muc.de>
4341
4342 * callint.c (Finteractive): Clarify the doc string - even
4343 promptless elements need \n separators.
4344
9f995a76
JR
43452009-03-22 Jason Rumney <jasonr@gnu.org>
4346
4347 * w32term.c (syms_of_w32term): Doc fix for
4348 x-use-underline-position-properties.
4349
22749e9a
EZ
43502009-03-21 Eli Zaretskii <eliz@gnu.org>
4351
4352 * w32.c (getpwuid): Change argument type to unsigned.
4353 (struct w32_id): Change type of `rid' member to unsigned.
4354 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4355 argument ID to unsigned. All callers changed.
4356 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4357
e00553bf
EZ
43582009-03-20 Eli Zaretskii <eliz@gnu.org>
4359
4360 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4361 negative, produce a float value.
4362
4363 * dired.c (make_uid, make_gid): New functions.
4364 (Ffile_attributes): Use them to avoid negative UID and GID.
4365
f761d6b6
JB
43662009-03-20 Juanma Barranquero <lekktu@gmail.com>
4367
4368 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4369 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4370 Fix typos in docstrings.
4371
d507f8d7
KH
43722009-03-19 Kenichi Handa <handa@m17n.org>
4373
4374 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4375 changed, use font_load_for_lface to get a new font object.
4376 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4377
4378 * frame.c (x_set_font): Handle the case that ARG is a cons.
4379
c68845e0
GM
43802009-03-19 Glenn Morris <rgm@gnu.org>
4381
4382 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4383
bfa49dd1
CY
43842009-03-19 Chong Yidong <cyd@stupidchicken.com>
4385
4386 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4387
8458d4c1
KH
43882009-03-19 Kenichi Handa <handa@m17n.org>
4389
4390 * charset.c (load_charset_map_from_file): When a mapfile can't be
4391 loaded, signal an error.
4392
78e7d1fe
EZ
43932009-03-18 Eli Zaretskii <eliz@gnu.org>
4394
4395 * dired.c (Ffile_attributes): Make sure UID and GID are always
4396 positive, even if the value is too large for a positive EMACS_INT.
4397 Doc fix.
4398
4399 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4400
5da9fdfa
YM
44012009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4402
4403 * xmenu.c (xdialog_show): Move Fredisplay call ...
4404 (Fx_popup_dialog): ... here.
4405
7519c40d
SM
44062009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4407
4408 * dired.c (file_name_completion): Disable the first optimization just
4409 installed, since it is not implemented correctly.
4410
2cd298e2
SM
44112009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4412
4413 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4414 only if the entry can affect bestmatch.
2cd298e2
SM
4415 Stop the search early, as Ftry_completion already does.
4416
48d37adf
CY
44172009-03-17 Chong Yidong <cyd@stupidchicken.com>
4418
e10c9c93 4419 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4420
9286b16a
CY
44212009-03-15 Chong Yidong <cyd@stupidchicken.com>
4422
4423 * keyboard.c (parse_menu_item): Don't display remappings as menu
4424 equivalent bindings (Bug#788).
4425
f7b146dc
JR
44262009-03-15 Jason Rumney <jasonr@gnu.org>
4427
4428 * w32term.h (WM_EMACS_PAINT): New message.
4429 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4430 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4431 before passing to lisp thread. (Bug#950)
4432
f761d6b6 44332009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4434
d93f9575
CY
4435 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4436 variable as it was never reset.
4437 (ns_term_init): Remove initialization of Lisp-settable defaults
4438 and ns_expand_space.
4439 (-setPanelFromDefaultValues): Remove ns_expand_space.
4440 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4441 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4442 i.e. no additional spacing, similar to Carbon port.
4443
d93f9575
CY
4444 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4445 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4446
305018ec
JD
44472009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4448
4449 * sound.c (alsa_configure): Remove call to deprecated
4450 snd_pcm_sw_params_set_xfer_align.
4451
f761d6b6 44522009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4453
4454 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4455 after clicking in a detached tool bar.
4456 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4457
46e722a9
SM
44582009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4459
348db3dd
SM
4460 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4461 int/Lisp_Object mixup).
46e722a9 4462
a3d16f39
KH
44632009-03-13 Kenichi Handa <handa@m17n.org>
4464
4465 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4466 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4467 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4468 (set_fontset_font): Change ARG to a vector. Handle range_list in
4469 ARG correctly.
4470 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4471 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4472 the above change.
4473 (fontset_from_font): Fix previous change.
fe24f56a 4474 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4475 entry. If FONTSET is the default fontset, don't set the extra
4476 slot of the returning char-table.
4477
b066e6b6
JB
44782009-03-12 Juanma Barranquero <lekktu@gmail.com>
4479
4480 * nsfns.m (Fx_close_connection): Doc fix.
4481 (Fns_do_applescript): Reflow docstring.
4482 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4483 (Fx_display_pixel_width, Fx_display_pixel_height)
4484 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4485 Fix typos in docstrings.
4486 (Fns_set_alpha): Fix typos in error messages.
4487
d472514e 44882009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4489
d472514e 4490 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4491 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4492 were used for such events.
4493
d472514e
JB
4494 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4495 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4496
d472514e 4497 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4498 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4499
fb930676
KH
45002009-03-11 Kenichi Handa <handa@m17n.org>
4501
ff85581a
KH
4502 * font.h (font_open_by_spec): Extern it.
4503
c50b7e98
KH
4504 * font.c (font_open_by_spec): New function.
4505 (font_open_by_name): Use font_open_by_spec.
4506
fb930676
KH
4507 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4508 fontset of the frame.
4509
4510 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4511 modify the default font of frames that use this fontset.
4512 (num_auto_fontsets): New variable.
4513 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4514 name. Be sure to set FONTSET_ASCII to the correct font name.
4515 (update_auto_fontset_alist): New function.
4516
df4e8455
JB
45172009-03-11 Juanma Barranquero <lekktu@gmail.com>
4518
4519 * makefile.w32-in: Update dependencies.
4520
0a375797
AR
45212009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4522
4523 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4524
61313fa3
SM
45252009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4526
4527 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4528
b55103fb
CY
45292009-03-10 Chong Yidong <cyd@stupidchicken.com>
4530
4531 * lread.c (Feval_buffer): Doc fix.
4532
dde2559c
KH
45332009-03-09 Kenichi Handa <handa@m17n.org>
4534
4535 * charset.c (Qfile_name_handler_alist): Extern it.
4536 (load_charset_map_from_file): Temporarily bind
4537 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4538
df4e8455 45392009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4540
47f588bb
GM
4541 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4542 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4543
4ddf94bd
AR
45442009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4545
4c9bdfc2
AR
4546 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4547 (x_set_window_size): Change back to calculated method of setting
4548 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4549 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4550 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4551
fe41ae9e
AR
4552 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4553
4c9bdfc2
AR
4554 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4555 accelerator in parens under GNUstep.
4556
825d0875
KH
45572009-03-06 Kenichi Handa <handa@m17n.org>
4558
4559 These changes are to detect incorrect composition sequence without
f3b3be74 4560 looking ahead the source. (Bug#2370)
825d0875
KH
4561
4562 * coding.h: Include "composite.h".
4563 (enum compisition_state): New enum.
4564 (struct compisition_status): New struct.
4565 (struct iso_2022_spec): New member cmp_status.
4566 (struct emacs_mule_spec): New struct.
4567 (struct coding_system): New members ctext_extended_segment_len and
4568 embedded_utf_8. Change the union member
4569 spec.emacs_mule_full_support to spec.emacs_mule.
4570
4571 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4572 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4573 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4574 (ADD_COMPOSITION_DATA): New arg nbytes.
4575 (emacs_mule_char): New arg cmp_status.
4576 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4577 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4578 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4579 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4580 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4581 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4582 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4583 (EMACS_MULE_COMPOSITION_END): New macro.
4584 (emacs_mule_finish_composition): New function.
4585 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4586 (decode_coding_emacs_mule): Avoid long looking ahead while
4587 handling composition.
4588 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4589 (ENCODE_COMPOSITION_RULE): New macro.
4590 (finish_composition): New function.
4591 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4592 (DECODE_COMPOSITION_START): New implementation.
4593 (DECODE_COMPOSITION_END): Likewise.
4594 (STORE_COMPOSITION_RULE): New macro.
4595 (decode_coding_iso_2022): Avoid long looking ahead while handling
4596 composition, CTEXT extended segment, and embedded UTF-8.
4597 (setup_coding_system): For a coding of type iso-2022, reset
4598 CODING_ISO_EXTSEGMENT_LEN (coding) and
4599 CODING_ISO_EMBEDDED_UTF_8 (coding).
4600 (get_translation): Delete arguments last_block, from_nchars,
4601 to_nchars. Callers changed.
4602 (produce_chars): Don't modify charbuf. Adjusted for the change of
4603 get_translation.
98a326f7 4604 (produce_composition): Adjust for the new annotation sequence.
825d0875 4605 (handle_composition_annotation): Likewise.
98a326f7 4606 (consume_chars): Adjust for the change of get_translation.
825d0875 4607
ccbc4452
AR
46082009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4609
4ddf94bd 4610 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4611
988a7ddb
KH
46122009-03-05 Kenichi Handa <handa@m17n.org>
4613
4614 * font.c (font_select_entity): New function.
4615 (font_find_for_lface): Use font_select_entity to select a font.
4616
4617 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4618 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4619 font with C restriction.
4620
98a326f7 46212009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4622
be1bce46 4623 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4624
10ea2b82
JR
46252009-03-04 Jason Rumney <jasonr@gnu.org>
4626
2c93b248 4627 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4628 characters that have already been read. (Bug#2569)
2c93b248 4629
10ea2b82
JR
4630 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4631 Log an error message if check_image_size failed.
4632 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4633 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4634
71a0c011
EZ
46352009-03-02 Eli Zaretskii <eliz@gnu.org>
4636
4637 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4638 when decoding process output.
4639
2f63bba8
RS
46402009-03-01 Richard M Stallman <rms@gnu.org>
4641
4642 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4643
4644 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4645
0a9564cb
EZ
46462009-02-28 Eli Zaretskii <eliz@gnu.org>
4647
4648 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4649 (decode_coding_emacs_mule, decode_coding_iso_2022)
4650 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4651 (decode_coding_raw_text, decode_coding_charset)
4652 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4653 Honor inhibit-eol-conversion. (Bug #2186)
4654
449148b3
JR
46552009-02-28 Jason Rumney <jasonr@gnu.org>
4656
4657 * coding.c (detect_coding_charset): If not checking latin extra,
4658 fail on characters between 0x80 and 0xA0. (Bug#2354)
4659
a4aee864
EZ
46602009-02-28 Eli Zaretskii <eliz@gnu.org>
4661
4662 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4663 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4664
d88bee5a
GM
46652009-02-27 Glenn Morris <rgm@gnu.org>
4666
4667 * callint.c (Finteractive): Doc fix.
4668
a808f22d
KH
46692009-02-27 Kenichi Handa <handa@m17n.org>
4670
4671 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4672
caf8d60c
CY
46732009-02-27 Chong Yidong <cyd@stupidchicken.com>
4674
4675 * font.c (font_style_to_value): Set value for unknown symbols to
4676 100 instead of 255.
b61137ea
CY
4677 (weight_table, slant_table, width_table): Treat "unspecified" as
4678 the default value.
caf8d60c 4679
1a0de25c
JB
46802009-02-26 Juanma Barranquero <lekktu@gmail.com>
4681
4682 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4683
8fc45744
JB
46842009-02-25 Juanma Barranquero <lekktu@gmail.com>
4685
107bd7d1
JB
4686 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4687 error as soon as a recursive load is detected.
8fc45744 4688
f097e223
AR
46892009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4690
4691 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4692 before caching.
4693
8810a12f
KH
46942009-02-24 Kenichi Handa <handa@m17n.org>
4695
4696 * fontset.c (fontset_find_font): Fix the condition for checking
4697 unavailable font.
4698
2c7d1565
GM
46992009-02-24 Glenn Morris <rgm@gnu.org>
4700
4701 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4702 whitespace that confuses documentation.
4703
a20878b6
MB
47042009-02-23 Miles Bader <miles@gnu.org>
4705
4706 * process.c (Flist_system_processes, Fprocess_attributes)
4707 (syms_of_process): Rename `system-process-attributes' to
4708 `process-attributes'.
4709
b3b58c01
AS
47102009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4711
1b3b981b
AS
4712 * coding.h (struct coding_system): Make safe_charsets a pointer to
4713 unsigned char.
4714 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4715 being 255.
4716 (SAFE_CHARSET_P): Likewise.
4717 (setup_iso_safe_charsets): Properly setup safe_charsets.
4718 (Fdefine_coding_system_internal): Likewise.
4719 (setup_coding_system): Likewise. Remove unneeded casts.
4720 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4721 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4722 unneeded casts.
4723
b3b58c01
AS
4724 * insdel.c (del_range_2): Don't modify gap contents when called
4725 from decode_coding_object. (Bug#1809)
4726
0b6f228c
CY
47272009-02-21 Chong Yidong <cyd@stupidchicken.com>
4728
4729 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4730 Qfont_object.
4731 (Ftype_of): Recognize font objects.
4732
4733 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4734
4735 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4736 moved to data.c.
4737
52f8870b
AR
47382009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4739
4740 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4741 async_iconified. Based on a patch by Christian Lynbech
4742 <christian.lynbech@tieto.com>.
4743 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4744
7087d5e9
GM
47452009-02-20 Glenn Morris <rgm@gnu.org>
4746
4747 * syntax.c (Fskip_chars_forward): Fix doc typo.
4748
41d2ceef
CY
47492009-02-20 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4752
1a3b7ca6
CY
47532009-02-19 Chong Yidong <cyd@stupidchicken.com>
4754
4755 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4756
73cce38d
KH
47572009-02-19 Kenichi Handa <handa@m17n.org>
4758
4759 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4760 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4761
a51092ee
DN
47622009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4763
4764 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4765
c423ecca
KH
47662009-02-18 Kenichi Handa <handa@m17n.org>
4767
4768 * font.c (font_check_otf_features): Fix handling of `nil' element.
4769 (Ffont_spec): Describe :lang and :otf in the docstring.
4770
4c1958f4
AS
47712009-02-16 Andreas Schwab <schwab@suse.de>
4772
4773 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4774 string.
4775
5704f39a
KH
47762009-02-16 Kenichi Handa <handa@m17n.org>
4777
4778 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4779 (Bug#1723)
5704f39a 4780
8f0085aa
CY
47812009-02-14 Chong Yidong <cyd@stupidchicken.com>
4782
a057d86a 4783 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4784
4785 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4786 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4787
aff01dd9
EZ
47882009-02-14 Eli Zaretskii <eliz@gnu.org>
4789
4790 * msdos.c (MAX_SCREEN_BUF): New macro.
4791 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4792 Encode the entire run of glyphs sharing the same face, instead of
4793 doing that one glyph at a time (fixes a bug with displaying
4794 double-size characters).
4795
ba301db3
AR
47962009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4797
4798 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4799
4800 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4801 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4802 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4803
4804 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4805 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4806
51d861de
SM
48072009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4808
ac146f82 4809 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4810 invisible areas.
4811
7fed8996
JR
48122009-02-12 Jason Rumney <jasonr@gnu.org>
4813
631ea4fb
JR
4814 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4815 (add_font_entity_to_list): Call check_face_name even when family
4816 is unspecified.
4817
cb4a3e42
JR
4818 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4819 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4820 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4821
7fed8996 4822 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4823 raster fonts. (Bug#2219)
7fed8996 4824
895416e3
KH
48252009-02-12 Kenichi Handa <handa@m17n.org>
4826
4827 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4828 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4829 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4830 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4831 (find_automatic_composition): While looking forward and backward,
4832 check static composition. Fix where to stop looking forward.
4833 (composition_adjust_point): Fix checking of static composition.
4834 (Fcomposition_get_gstring): Pay attention to
1dacf998 4835 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4836
4837 * lisp.h (fast_looking_at): Extern it.
4838
4839 * search.c (fast_looking_at): New function.
4840
51d861de 4841 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4842 <struct glyph>.u.cmp.to.
4843 (append_composite_glyph): Likewise.
4844
51d861de 4845 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4846 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4847 composition.
51d861de 4848 (append_composite_glyph): Adjust for the change of
895416e3
KH
4849 <strcut glyph>.u.cmp.to.
4850
8510724d
JB
48512009-02-11 Juanma Barranquero <lekktu@gmail.com>
4852
4853 * casetab.c (init_casetab_once):
4854 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4855 * font.c (font_update_lface):
4856 * fontset.c (Fnew_fontset):
4857 * ftfont.c (ftfont_drive_otf):
4858 * xfont.c (xfont_open):
4859 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4860
294fa707
SM
48612009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4862
4863 * fileio.c (Fwrite_region): !NILP -> CONSP.
4864
b5bfebec
AS
48652009-02-10 Andreas Schwab <schwab@suse.de>
4866
4867 * process.c (send_process): Properly relocate pointer into data
adab88bd 4868 when using encoded data. (Bug#2272)
b5bfebec 4869
cb84a2be
KH
48702009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4871
4872 * coding.c (detect_coding_charset): Fix previous change.
4873
89e09428
JR
48742009-02-08 Jason Rumney <jasonr@gnu.org>
4875
4876 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4877 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4878
4470a277
AS
48792009-02-07 Andreas Schwab <schwab@suse.de>
4880
4881 * unexelf.c (unexec): Fix error message.
4882
3175b12a
AR
48832009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4884
4885 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4886 when modal window is active. (Bug #2152)
3175b12a
AR
4887 (applicationShouldTerminate:): Remove now-unneeded while loop
4888 around NSRunAlertPanel.
4889
4890 * nsmenu.m (popupSession): New file-global variable.
4891 (pop_down_menu): End the popupSession before closing dialog.
4892 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4893 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4894 don't query NSApp for events (just sleep instead).
4895
8434d0b8
EZ
48962009-02-07 Eli Zaretskii <eliz@gnu.org>
4897
51d861de
SM
4898 * coding.c (syms_of_coding) <translation-table-for-input>:
4899 Modify doc string to discourage use for character code unification.
8434d0b8 4900
aa82edfd
CY
49012009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4902
4903 * atimer.c (run_timers): Update pending_atimers.
4904
2d283c7c
CY
49052009-02-06 Chong Yidong <cyd@stupidchicken.com>
4906
eb306cab
CY
4907 * image.c (svg_load_image): Fix last change.
4908
2d283c7c
CY
4909 * xfns.c (Fx_create_frame): Signal an error if no font is
4910 found (Bug#2147).
4911
4d8e170e
JB
49122009-02-05 Juanma Barranquero <lekktu@gmail.com>
4913
4914 * character.c (syms_of_character) <script-representative-chars>:
4915 Fix typo in docstring.
4916
c96169a0
AR
49172009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4918
4919 * nsmenu.m (pop_down_menu): New function.
4920 (ns_popup_dialog): Call it on unwind.
4921 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4922 call timer_check() (Bug#2154).
4923 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4924 handling_signal is set.
4925 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4926
31fd7c5c 4927 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4928
4929 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4930
4931 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4932
51d861de
SM
4933 * keyboard.c (poll_for_input_1, handle_async_input):
4934 Set handling_signal under HAVE_NS.
c96169a0 4935
aacd8ba1
GM
49362009-02-04 Glenn Morris <rgm@gnu.org>
4937
4938 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4939
4cb75c4b
KH
49402009-02-04 Kenichi Handa <handa@m17n.org>
4941
4942 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4943
4944 * charset.c (Fchar_charset): New optional arg restriction.
4945
4946 * coding.h (coding_system_charset_list): Extern it.
4947
4948 * coding.c (coding_system_charset_list): New function.
4949
4950 * composite.c: Include coding.h and termhooks.h.
4951 (composition_gstring_p): Fix for the terminal case.
4952 (composition_gstring_width): Likewise.
4953 (fill_gstring_body): Likewise.
4954 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4955 the frame.
4956 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4957 is within a composition.
867d4bb3 4958 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4959
4960 * term.c (encode_terminal_code): Fix handling of composition.
4961 (produce_composite_glyph): For static composition, get pixel_width
4962 from struct composition.
4963
826ba17e
AS
49642009-02-02 Andreas Schwab <schwab@suse.de>
4965
4966 * unexelf.c (unexec): Handle unaligned bss offset.
4967
8ad093db
AR
49682009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4969
4970 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4971 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4972
8ad093db
AR
4973 * keyboard.c (handle_interrupt): Don't call
4974 quit_throw_to_read_char() under NS.
d0a76a6e 4975
8ad093db
AR
4976 * blockinput.h: Remove NS-specific code.
4977
4d18a7a2
DN
49782009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4979
db878925
DN
4980 * dispnew.c (window_change_signal): Don't try to get the size of a
4981 suspended tty frame.
4982 * term.c (Fresume_tty): Resize if the size has changed while the
4983 tty was suspended.
4984
4d18a7a2
DN
4985 * alloc.c (mark_stack): Properly conditionalize previous change.
4986
8984df7c
JB
49872009-01-30 Juanma Barranquero <lekktu@gmail.com>
4988
4989 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4990 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4991 Remove; this code is not used on Windows.
4992
75f4f1ac
EZ
49932009-01-30 Eli Zaretskii <eliz@gnu.org>
4994
4995 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4996 EOLs that also has stray ^M characters.
4997
07a1e794
JB
49982009-01-30 Juanma Barranquero <lekktu@gmail.com>
4999
5000 * atimer.c (run_timers, alarm_signal_handler):
5001 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5002 * w32inevt.c (w32_console_read_socket):
5003 * w32term.c (w32_read_socket):
5004 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5005
a8b11cc9
CY
50062009-01-30 Chong Yidong <cyd@stupidchicken.com>
5007
5008 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5009 Initialize it as a relative filename pattern.
5010 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5011 (Fcall_process_region): Simplify temp file creation using
5012 temporary-file-directory.
5013
c279587b
EZ
50142009-01-29 Eli Zaretskii <eliz@gnu.org>
5015
5016 * msdos.c: Rename pending_signals to msdos_pending_signals.
5017 (sig_suspender, sigprocmask): Adjust.
5018
a8fe3242
CY
50192009-01-29 Chong Yidong <cyd@stupidchicken.com>
5020
5021 * keyboard.c (pending_signals): New var.
5022 (poll_for_input, input_available_signal, init_keyboard): Set it.
5023 (process_pending_signals): New function.
5024
5025 * lisp.h (QUIT): Check pending_signals instead of
5026 interrupt_input_pending. Use process_pending_signals.
5027
51d861de 5028 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5029
51d861de 5030 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5031
5032 * sysdep.c (emacs_write): Use process_pending_signals.
5033
5034 * xterm.c (XTread_socket): Update pending_signals.
5035
5036 * w32term.c (w32_read_socket): Update pending_signals.
5037
5038 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5039
6570a1c4
KH
50402009-01-29 Kenichi Handa <handa@m17n.org>
5041
5042 * xftfont.c (xftfont_has_char): New function.
5043 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5044
d72a4afa
AR
50452009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5046
5047 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5048 under GNUstep.
5049 (ns_query_color): New declaration.
5050
5051 * nsterm.m (ns_confirm_quit): New variable.
5052 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5053 (EmacsApp-applicationShouldTerminate:): Use it.
5054 (EmacsPrefsController): Let user set it.
5055 (ns_query_color): New function.
5056 (ns_defined_color): Use it.
5057 (ns_initialize): Drop.
5058 (ns_term_init): Add two lines from ns_initialize(), and set
5059 input_interrupt_mode to nil.
5060
5061 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5062 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5063
9fe78804
KH
50642009-01-28 Kenichi Handa <handa@m17n.org>
5065
5066 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5067 (fontset_get_font_group): Remember that no font-group is specified
5068 for C.
9fe78804 5069
fa57de36
CY
50702009-01-27 Chong Yidong <cyd@stupidchicken.com>
5071
930600e9
CY
5072 * fns.c (concat): Check for string overflow (bug#1787).
5073
fa57de36
CY
5074 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5075 Quadruple undo limits (bug#1501).
5076
7179ce7b
KH
50772009-01-27 Kenichi Handa <handa@m17n.org>
5078
5079 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5080 directly use GT_Get_Char_index.
5081
5082 * xftfont.c (struct xftfont_info): New member `index'.
5083
5084 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5085 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5086
5be8fcc0
CY
50872009-01-26 Kenichi Handa <handa@m17n.org>
5088
5089 * fontset.c (fontset_find_font): Fix handling of non-cons return
5090 value of fontset_get_font_group.
5091 (fontset_font): Revert last change.
5092
19ae3e61
JR
50932009-01-26 Jason Rumney <jasonr@gnu.org>
5094
5095 * w32font.c (w32font_list_internal): Return quickly if registry is
5096 unknown. Simplify final return.
5097 (add_font_entity_to_list): Break complex logic down into more
5098 manageable chunks. Move unknown registry check to
5099 w32font_list_internal.
5100
8612b71a
AR
51012009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5102
5103 Changes to remove Feval calls from GUI under NS.
5104
d8038940
JB
5105 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5106 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5107 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5108
5109 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5110 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5111 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5112 instead of NON_ASCII_KEYSTROKE_EVENT.
5113 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5114 (EmacsApp-applicationShouldTerminate:): Query user.
5115 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5116 instead of Feval.
5117
5118 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5119
5120 * keyboard.c (kbd_buffer_get_event): Check for it.
5121 (keys_of_keyboard): Define lispy keys for
5122 ns-put/unput-working-text.
5123
5124 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5125 versions.
5126 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5127
6288ae55
CY
51282009-01-25 Chong Yidong <cyd@stupidchicken.com>
5129
5130 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5131 setting current_buffer directly. (Bug#2044)
6288ae55 5132
289e7f8f
CY
51332009-01-24 Chong Yidong <cyd@stupidchicken.com>
5134
5ce87308 5135 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5136 any work. (Bug#1952, bug#1990).
5ce87308 5137
64cc3cf6 5138 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5139
b3243e6f
AR
51402009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5141
5142 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5143 (ns_no_defaults): New declaration.
5144 (main): Use it.
e0d2e69a 5145
d900b2af 5146 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5147
d900b2af 5148 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5149
d900b2af
AR
5150 * nsterm.m (ns_no_defaults): New variable.
5151 (ns_initialize): Don't read defaults when ns_no_defaults.
5152 (EmacsView-readSelectionFromPasteboard:)
5153 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5154 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5155 (ns_dumpglyphs_stretch): New function.
5156 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5157 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5158
e0d2e69a
AR
5159 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5160
3ac71f5d
CY
51612009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5162
5163 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5164 call for Sparc64.
5165
3fe53a83
AR
51662009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5167
5168 * nsfns.m:
5169 * nsgui.h:
5170 * nsmenu.m:
5171 * nsselect.m:
5172 * nsterm.h:
5173 * nsterm.m: Remove '23' comments that indicated code added during
5174 update from emacs-20 -> emacs-23.
5175
10f87c6f 51762009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5177
5178 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5179 ns_alternate_modifier. (Bug#1217)
a3b53a85 5180
c7cef62d
AR
5181 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5182 Display all shortcuts, including those w/o super modifier.
5183
575fb8bd
AR
5184 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5185
918b848b
CY
51862009-01-22 Chong Yidong <cyd@stupidchicken.com>
5187
5188 * fileio.c (Vwrite_region_post_annotation_function)
5189 (Vwrite_region_annotation_buffers): New vars.
5190 (build_annotations_unwind): Just reset
5191 Vwrite_region_annotation_buffers.
5192 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5193 Call write-region-post-annotation-function.
5194 (build_annotations): Add to Vwrite_region_annotation_buffers if
5195 buffer changes.
5196
a39e2539
AR
51972009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5198
5199 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5200 Tiger.
51d861de
SM
5201 * nsfns.m (ns_do_applescript):
5202 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5203
35ed44db
AR
52042009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5205
5206 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5207
cbe0b5bf
AR
52082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5209
5210 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5211
6049d3a0
AR
5212 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5213
5214 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5215 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5216 handle Ctrl-tab. (Bug#1841)
5217 (ns_get_color): Use unsigned long long for scanned hex string value.
5218 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5219 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5220 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5221 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5222 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5223 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5224 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5225
d3810c21 5226 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5227 DPI. (Bug#1316)
d3810c21
AR
5228 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5229 values in onTiger section.
4c7077c3 5230
e301e634
CY
52312009-01-19 Chong Yidong <cyd@stupidchicken.com>
5232
7f82490b
CY
5233 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5234 Check return value of font_spec_from_name.
64cc3cf6 5235 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5236
5237 * font.c (font_spec_from_name): Return Qnil if font name could not
5238 be parsed.
5239 (font_parse_name): Treat a `?' character as part of an XLFD.
5240
e301e634
CY
5241 * fns.c (Fsubstring): Doc fix.
5242
1c0db158
KH
52432009-01-19 Kenichi Handa <handa@m17n.org>
5244
51d861de 5245 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5246 (ftfont_list): Likewise.
5247
acf20901
JB
52482009-01-18 Juanma Barranquero <lekktu@gmail.com>
5249
fff4e459
JB
5250 * dbusbind.c (Fdbus_register_signal):
5251 * process.c (conv_sockaddr_to_lisp):
5252 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5253
acf20901
JB
5254 * callproc.c (Fgetenv_internal): Doc fix.
5255
e7abcdfb
CY
52562009-01-16 Chong Yidong <cyd@stupidchicken.com>
5257
5258 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5259 it is not even used.
5260
b60861e6
GM
52612009-01-16 Glenn Morris <rgm@gnu.org>
5262
5263 * font.c (Ffont_variation_glyphs): Silence compiler.
5264
8db52afe
JB
52652009-01-15 Juanma Barranquero <lekktu@gmail.com>
5266
5267 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5268 Reported by David Robinow <drobinow@gmail.com>.
5269
4cddb209
KH
52702009-01-15 Kenichi Handa <handa@m17n.org>
5271
51d861de 5272 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5273
f247f67b
JR
52742009-01-14 Jason Rumney <jasonr@gnu.org>
5275
5276 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5277 never a fontset. (Bug#1562)
f247f67b 5278
f56a4450
KH
52792009-01-14 Kenichi Handa <handa@m17n.org>
5280
5281 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5282 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5283
4e99855e
CY
52842009-01-13 Chong Yidong <cyd@stupidchicken.com>
5285
5286 * font.c (font_clear_prop): If clearing the family, clear the font
5287 width index too.
5288
fff4e459 5289 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5290
24f01470
JB
52912009-01-12 Juanma Barranquero <lekktu@gmail.com>
5292
5293 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5294 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5295 functions, use sizeof.
5296
a41240a3
MR
52972009-01-12 Martin Rudalics <rudalics@gmx.at>
5298
5299 * keyboard.c (read_char): Fix case where last_nonmenu_event
5300 returned a bad value with submenus. (Bug#447)
5301
944636b8
CY
53022009-01-12 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5305 family, clear the font width index too.
5306
0dad7c6f
JR
53072009-01-11 Jason Rumney <jasonr@gnu.org>
5308
5309 * keyboard.c (cmd_error_internal): Exit when errors occur before
5310 frame creation and not in daemon mode. (Bug#1836)
5311
7c2363af
CY
53122009-01-10 Chong Yidong <cyd@stupidchicken.com>
5313
5314 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5315 of a display vector, backtrack.
5316 (try_window_reusing_current_matrix): Check glyph type before
5317 referencing charpos member.
5318
97b1b294
EZ
53192009-01-10 Eli Zaretskii <eliz@gnu.org>
5320
5321 Fix Bug #876:
5322
5323 * coding.c (inhibit_null_byte_detection): New variable.
5324 (detect_coding, detect_coding_system): Don't pay attention to null
5325 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5326 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5327 <inhibit-iso-escape-detection>: Doc fix.
5328
4624b6e3
JR
53292009-01-09 Jason Rumney <jasonr@gnu.org>
5330
5331 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5332 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5333 Only report Unicode Plane 2 fonts as unicode-sip.
5334
323b840c
CY
53352009-01-09 Chong Yidong <cyd@stupidchicken.com>
5336
51d861de
SM
5337 * xfaces.c (Fx_font_family_list): Delete function.
5338 Move compatibility version to faces.el.
323b840c 5339
51d861de 5340 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5341
eba7400d
MR
53422009-01-09 Martin Rudalics <rudalics@gmx.at>
5343
5344 * frame.c (x_set_frame_parameters): Remember requested value for
5345 fullscreen before it's reset by the parameter handler.
5346
4b09796d
GM
53472009-01-09 Glenn Morris <rgm@gnu.org>
5348
5349 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5350 (last_command_event): ... and update all users.
4b09796d
GM
5351 (last_input_char): For clarity, rename to...
5352 (last_input_event): ... and update all users.
5353 (last-command-char, last-input-char): Move to subr.el as aliases.
5354 * cmds.c, commands.h: Update for last_command_char rename.
5355
14ccea62
CY
53562009-01-08 Chong Yidong <cyd@stupidchicken.com>
5357
51d861de 5358 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5359
5f004711
JR
53602009-01-08 Jason Rumney <jasonr@gnu.org>
5361
5362 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5363 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5364 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5365 Don't declare.
fff4e459 5366 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5367 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5368
b71f6f73
KH
53692009-01-07 Kenichi Handa <handa@m17n.org>
5370
50b06221 5371 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5372 remember the coding system used for decoding in
50b06221
KH
5373 coding_system (Bug#1039).
5374
b71f6f73 5375 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5376 breaking the loop. (Bug#870)
b71f6f73
KH
5377 (decode_coding_utf_16, decode_coding_emacs_mule)
5378 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5379 (decode_coding_charset): Likewise.
5380
56f668f7
MR
53812009-01-05 Martin Rudalics <rudalics@gmx.at>
5382
5383 * frame.c (x_set_frame_parameters): Make sure height (width) get
5384 applied when fullwidth (fullheight) is set. (Bug#1522)
5385
5da9424d
JB
53862009-01-04 Juanma Barranquero <lekktu@gmail.com>
5387
5388 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5389 (utc_base): Declare as ULONGLONG, not long double.
5390 (convert_time_raw): Delete.
5391 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5392 (initialize_utc_base): New function.
5393 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5394 (convert_from_time_t): Use initialize_utc_base; compute result with
5395 64-bit arithmetic.
5396 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5397
c4605e09
EZ
53982009-01-03 Eli Zaretskii <eliz@gnu.org>
5399
9acef61c 5400 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5401 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5402 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5403 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5404 [!subprocesses]: Define.
5405 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5406 (Flist_system_processes, Fsystem_process_attributes)
5407 [!subprocesses]: Call list_system_processes and
5408 system_process_attributes instead of returning Qnil.
5409
9acef61c
JB
5410 * dosfns.c (system_process_attributes, list_system_processes):
5411 New functions.
c4605e09
EZ
5412
5413 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5414
5415 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5416 Don't use the default (no-op) implementation.
5417
8b7d0a16
JR
54182009-01-03 Jason Rumney <jasonr@gnu.org>
5419
a6d46bc1
JR
5420 * keyboard.c (parse_modifiers_uncached): Wheel events are
5421 clicks (bug#687).
5422
8b7d0a16
JR
5423 * w32term.c (x_query_colors, x_query_color): New functions.
5424
5425 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5426 (svg_load_image): Cast returned pointers from dynamically loaded
5427 functions. Eliminate W32 specific code.
5428
bfe11752
DN
54292009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5430
89e2438a
DN
5431 * nsfns.m (x_set_foreground_color, x_set_background_color)
5432 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5433 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5434 x_ prefix instead of ns_. Update references.
5435 (syms_of_nsfns): Add a FIXME comment.
5436
5437 * nsterm.m (x_set_cursor_type): New prototype.
5438 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5439
bfe11752
DN
5440 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5441 for Solaris instead of incorrectly providing Qutime and Qcutime.
5442
031da700
EZ
54432009-01-02 Eli Zaretskii <eliz@gnu.org>
5444
5445 * w32.c (process_times): Compute sum of utime and stime.
5446 (system_process_attributes): Add Qtime to the alist.
5447
5448 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5449 and add them to the alist.
5450
5451 * process.c (top level) <Qtime, Qctime>: New variables.
5452 (syms_of_process): staticpro them.
5453 (Fsystem_process_attributes): Add their documentation to the doc
5454 string.
5455
5456 * process.h: Declare Qtime and Qctime.
5457
df23bf08
JR
54582009-01-02 Jason Rumney <jasonr@gnu.org>
5459
9acef61c 5460 * image.c (Qgobject): New symbol.
df23bf08
JR
5461 (syms_of_image): Initialize it.
5462 (init_svg_functions): Load some functions from gobject library.
5463
5bbdf7aa
DN
54642009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5465
5466 * frame.c (make_terminal_frame): Remove redundant code and useless
5467 block.
5468
63136da6
AS
54692009-01-01 Andreas Schwab <schwab@suse.de>
5470
5471 * process.c (conv_sockaddr_to_lisp): Add workaround for
5472 getsockname bug on BSD.
5473
9ef69046
CY
54742009-01-01 Chong Yidong <cyd@stupidchicken.com>
5475
d6fafbe0
CY
5476 * xfns.c (x_create_tip_frame): Set border width of the X window.
5477
51d861de 5478 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5479
f9c34147
JR
54802009-01-01 Jason Rumney <jasonr@gnu.org>
5481
9acef61c 5482 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5483 Don't block input, as per earlier xterm.c changes.
5484
f5497e45
AR
54852008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5486
5487 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5488 (ns_appkit_version_int): New function.
5489 (x-server-version): Use ns_appkit_version_int and follow 21+
5490 convention of returning 3 integers.
5491
c19cab20
KH
54922008-12-30 Kenichi Handa <handa@m17n.org>
5493
5494 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5495 (CHAR_SURROGATE_PAIR_P): New macro.
5496
5497 * font.h (struct font_driver): New member get_variation_glyphs.
5498
9acef61c 5499 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5500 (Ffont_variation_glyphs): New function.
5501 (syms_of_font): Defsubr it.
5502
5503 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5504 ftfont_variation_glyphs.
5505 (setup_otf_gstring): New function.
5506 (ftfont_drive_otf): Use it.
5507 (ftfont_shape_by_flt): Handle variation selector.
5508 (ftfont_variation_glyphs): New function.
5509
28cd591f
MR
55102008-12-30 Martin Rudalics <rudalics@gmx.at>
5511
5512 * frame.c (Vemacs_iconified): Remove.
5513
7f714baf
JR
55142008-12-30 Jason Rumney <jasonr@gnu.org>
5515
5516 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5517 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5518
9d2d22ab
CY
55192008-12-30 Chong Yidong <cyd@stupidchicken.com>
5520
5521 * indent.c (Fvertical_motion): Don't advance iterator if we have
5522 reseated to the desired position.
5523
5524 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5525 checking for pos match.
5526
545312c2
KH
55272008-12-30 Kenichi Handa <handa@m17n.org>
5528
1ede3eb6
KH
5529 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5530 just get the low 8-bit of the code.
5531
545312c2
KH
5532 * font.c (font_intern_prop): Validate str as multibyte.
5533
bd7bbf29
DN
55342008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5535
31e0750e
DN
5536 * dispextern.h (struct face): Move lface and hash from the middle
5537 of bitfields.
5538
bd7bbf29
DN
5539 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5540
b5672e7c
DN
55412008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5542
5543 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5544 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5545 instead of intervals.h.
5546
d704470f
AS
55472008-12-26 Andreas Schwab <schwab@suse.de>
5548
5549 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5550 cons.
5551
54b33868
MR
55522008-12-26 Martin Rudalics <rudalics@gmx.at>
5553
5554 * textprop.c (Qminibuffer_prompt): New variable.
5555 (syms_of_textprop): Initialize it.
5556 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5557 in minibuffer-prompt face. (Bug#1662)
5558
40b615d6
JR
55592008-12-25 Jason Rumney <jasonr@gnu.org>
5560
5561 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5562
baae5c2d
JR
55632008-12-24 Jason Rumney <jasonr@gnu.org>
5564
5565 * ralloc.c (r_alloc_reset_variable): New function.
5566
5567 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5568 record of what points where. (Bug#716)
baae5c2d 5569
a9051c88
DN
55702008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5571
5572 * minibuf.c (read_minibuf): Follow the non-interactive case when
5573 running as a daemon, before detaching.
5574
8b146312
AS
55752008-12-22 Andreas Schwab <schwab@suse.de>
5576
5577 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5578 * gtkutil.c (free_widget_value): Use xfree instead of free.
5579
56f2de10
MR
55802008-12-22 Martin Rudalics <rudalics@gmx.at>
5581
5582 * frame.c (delete_frame): New function derived from
5583 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5584 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5585 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5586 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5587 * frame.h: Extern delete_frame.
5588 * window.c (window_loop):
5589 * terminal.c (delete_terminal):
5590 * xterm.c (x_connection_closed):
5591 * xfns.c (Fx_hide_tip):
9acef61c 5592 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5593
1fc200d6
JR
55942008-12-21 Jason Rumney <jasonr@gnu.org>
5595
5596 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5597 when character maps to .notdef character.
5598
5e252df2
SM
55992008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5600
5601 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5602
99b72cc4
JR
56032008-12-20 Jason Rumney <jasonr@gnu.org>
5604
5605 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5606 a graphical frame on Windows. (Bug#1325)
99b72cc4 5607
acc49a52
JD
56082008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5609
5610 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5611
6ea15123
CY
56122008-12-20 Chong Yidong <cyd@stupidchicken.com>
5613
5614 * minibuf.c (Fread_buffer): Doc fix.
5615
b2dab6c8
JR
56162008-12-20 Jason Rumney <jasonr@gnu.org>
5617
54ea0c87 5618 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5619 server name in UNC paths. (Bug#719)
54ea0c87 5620
b2dab6c8 5621 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5622 charbuf. (Bug#1035)
b2dab6c8 5623
6d1921be
DN
56242008-12-19 Daniel Engeler <engeler@gmail.com>
5625
5626 * sysdep.c (serial_configure): Fix typo.
5627
53934c98
DN
56282008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5629
5630 * sysdep.c: Include alloca.h.
f4f634e8
DN
5631 (system_process_attributes): Add implementation for Solaris.
5632
5633 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5634
06e111a6
DN
56352008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5636
5637 Reorganize implementation of Flist_system_processes and
5638 Fsystem_process_attributes. No functional changes.
5639 * process.c: Don't #include pwd.h, grp.h and limits.h.
5640 (Flist_system_processes): Just call list_system_processes.
5641 (Fsystem_process_attributes): Just call system_process_attributes.
5642 (procfs_list_system_processes, time_from_jiffies)
5643 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5644 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5645
5646 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5647 (list_system_processes): Rename from
5648 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5649 Provide a do nothing implementation.
5650 (system_process_attributes): Rename from
5651 procfs_list_system_processes.
5652 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5653 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5654
5655 * w32.c (list_system_processes): Rename from
5656 w32_list_system_processes.
5657 (system_process_attributes): Rename from
5658 w32_system_process_attributes.
5659
5660 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5661
5662 * process.h (w32_list_system_processes)
5663 (w32_system_process_attributes): Remove.
362654a6
JB
5664 (list_system_processes, system_process_attributes):
5665 New prototypes.
06e111a6 5666
6a705b23
KH
56672008-12-19 Kenichi Handa <handa@m17n.org>
5668
5669 * xfont.c (xfont_decode_coding_xlfd): New function.
5670 (xfont_encode_coding_xlfd): New function.
5671 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5672 (xfont_list): Decode and encode XLFD by iso-8859-1.
5673 (xfont_match): Likewise.
5674 (xfont_list_family): Likewise.
5675 (xfont_open): Likewise.
5676
d66c0241 5677 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5678 names are utf-8.
5679
d66c0241 5680 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5681 names are utf-8.
5682
5a130941
JD
56832008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5684
5685 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5686 changed.
bfd20325
JD
5687 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5688 clicked on a detached tool bar button.
5a130941 5689
fd95644b
DN
56902008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5691
5692 * emacs.c (main): Print and error and exit when no data is read
5693 from the pipe.
5694
e6eee6ae
JR
56952008-12-17 Jason Rumney <jasonr@gnu.org>
5696
5697 * w32font.c (w32font_has_char): Always return -1.
5698
a35dd56b
KH
56992008-12-16 Kenichi Handa <handa@m17n.org>
5700
5701 * font.c (font_open_entity): Fix previous change.
5702
0e3635c2
DN
57032008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5704
5705 * process.c: Include <limits.h>.
5706
d4835507 57072008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5708
5709 * font.c (font_update_drivers): Fix mistake in reconstructing the
5710 driver list.
5711
57122008-12-16 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * font.c (font_clear_cache): Fix format of font cache data.
5715
e2cbc401
CY
57162008-12-15 Chong Yidong <cyd@stupidchicken.com>
5717
5718 * xftfont.c (xftfont_open): Free Xft font pattern if
5719 XftFontOpenPattern fails.
5720
5721 * xterm.c (x_free_frame_resources): Remove extraneous call to
5722 free_frame_faces.
5723
b131d535
CY
57242008-12-13 Chong Yidong <cyd@stupidchicken.com>
5725
5726 * xterm.c (x_delete_display): Move xim_close_dpy call to
5727 x_delete_terminal.
5728 (x_delete_terminal): Call xim_close_dpy.
5729
e6df5336
JR
57302008-12-13 Jason Rumney <jasonr@gnu.org>
5731
5732 * w32font.c (intern_font_name): New function.
5733 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5734 (w32font_open_internal, Fx_select_font): Decode font name.
5735 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5736
5737 * w32font.h (intern_font_name): Declare new function.
5738
5739 * w32uniscribe.c (add_opentype_font_name_to_list):
5740 Use intern_font_name.
5741
20d68145
CY
57422008-12-13 Chong Yidong <cyd@stupidchicken.com>
5743
9f2554de
CY
5744 * frame.c (Fdelete_frame): Call free_font_driver_list.
5745
3d9bec9a
CY
5746 * font.c (free_font_driver_list): Implement missing function.
5747
20d68145
CY
5748 * w32term.c (w32_term_init): Don't initialize the image cache
5749 here; it will be done in init_frame_faces.
5750
5751 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5752 (struct x_display_info): Remove unused member null_pixel. New
5753 member xim_callback_data.
5754
5755 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5756 (xim_initialize): Save pointer to callback function data.
5757 (xim_close_dpy): Free callback function data. Call XCloseIM,
5758 reverting 2008-11-04 change by David Smith.
5759 (x_term_init): Don't initialize the image cache here; it will be
5760 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5761 (x_delete_display): Free x_dnd_atoms member.
5762
96f9306b
KH
57632008-12-13 Kenichi Handa <handa@m17n.org>
5764
6dec9044
JB
5765 * font.c (font_rescale_ratio): Moved from xfaces.c.
5766 Argument type changed. Handle a font-spec too.
96f9306b 5767 (font_score): Check Vface_font_rescale_alist.
6dec9044 5768 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5769
5770 * xfaces.c (font_rescale_ratio): Moved to font.c.
5771
8d5b4964
CY
57722008-12-13 Chong Yidong <cyd@stupidchicken.com>
5773
5774 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5775
e6df5336
JR
57762008-12-12 Jason Rumney <jasonr@gnu.org>
5777
5778 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5779 Vwindow_system_version to the real w32 major version.
5780
97c6058a
DN
57812008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5782
5783 * term.c (init_tty): Move setting the terminal name before the
5784 potential user: maybe_fatal.
5785
ec4e88d7
CY
57862008-12-11 Chong Yidong <cyd@stupidchicken.com>
5787
d4835507
JB
5788 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5789 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5790
b4233ec9
JR
57912008-12-11 Jason Rumney <jasonr@gnu.org>
5792
8ec71e23 5793 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5794 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5795
b4233ec9 5796 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5797 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5798
011a0143
JB
57992008-12-11 Juanma Barranquero <lekktu@gmail.com>
5800
5801 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5802
3c309f34
JB
58032008-12-11 Juanma Barranquero <lekktu@gmail.com>
5804
5805 * process.c (Fsystem_process_attributes, syms_of_process):
5806 Fix typo in name of Ssystem_process_attributes.
5807 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5808
fedc6ab5
JB
58092008-12-11 Juanma Barranquero <lekktu@gmail.com>
5810
5811 * syntax.c (Fmodify_syntax_entry): Doc fix.
5812
ba3de0e8
JB
58132008-12-10 Juanma Barranquero <lekktu@gmail.com>
5814
5815 * font.c (Ffont_spec): Move usage to end of docstring.
5816
174f1c74
JR
58172008-12-10 Jason Rumney <jasonr@gnu.org>
5818
5819 * w32font.c (Qcham): New symbol.
5820 (font_supported_scripts): Add cham, and comments for other new
5821 scripts in bitfield from OpenType spec.
9d32f818
JR
5822 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5823 contain characters beyond the bmp.
174f1c74 5824
7b649478
KH
58252008-12-10 Kenichi Handa <handa@m17n.org>
5826
5827 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5828 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5829 Qunicode_sip.
5830
2133e2d1
JB
58312008-12-10 Juanma Barranquero <lekktu@gmail.com>
5832
5833 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5834 (Fcoding_system_put): Use QCdefault_char.
5835 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5836
9af886ee
CY
58372008-12-09 Chong Yidong <cyd@stupidchicken.com>
5838
74d819eb
CY
5839 * xftfont.c (syms_of_xftfont): Fix typo.
5840
4ccfa1c0 5841 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5842
7c19d3ae
DN
58432008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5844
5845 * emacs.c (main): Close daemon_pipe on exec.
5846
567826bb
CY
58472008-12-08 Chong Yidong <cyd@stupidchicken.com>
5848
5849 * termchar.h (struct tty): New members termcap_term_buffer and
5850 termcap_strings_buffer.
5851
5852 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5853 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5854 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5855 All callers changed.
5856 (init_tty): Store termcap data and string buffers in new struct
5857 tty members termcap_term_buffer and termcap_strings_buffer.
5858 (delete_tty): Free them.
4ccfa1c0 5859 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5860
aa96c42b
SZ
58612008-12-07 Seiji Zenitani <zenitani@mac.com>
5862
5863 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5864 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5865
b7e1d896
CY
58662008-12-06 Chong Yidong <cyd@stupidchicken.com>
5867
5868 * coding.c (make_conversion_work_buffer): Disable buffer
5869 modification hooks in the work buffer.
5870
b5ec91a5
EZ
58712008-12-05 Eli Zaretskii <eliz@gnu.org>
5872
5873 * process.c (procfs_system_process_attributes): If `nread' has a
5874 negative value, assign zero to it.
5875
a5d2a52b
CY
58762008-12-05 Chong Yidong <cyd@stupidchicken.com>
5877
68c5540b 5878 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5879
7bf1bb21
KH
58802008-12-05 Kenichi Handa <handa@m17n.org>
5881
5882 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5883 second character is a combining character.
5884
2fdc7d00
EZ
58852008-12-05 Eli Zaretskii <eliz@gnu.org>
5886
5887 * process.c (procfs_system_process_attributes): Don't use cmd,
5888 cmdsize, and q without initializing them first.
5889
bf6bfba8
JR
58902008-12-04 Jason Rumney <jasonr@gnu.org>
5891
5892 * w32font.c (w32font_draw): Initialize orig_clip before getting
5893 it, and delete it when finished.
5894
a3b1a468
DN
58952008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5896
5897 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5898 case when running as a daemon before detaching.
5899
8b8be8eb
JB
59002008-12-03 Juanma Barranquero <lekktu@gmail.com>
5901
805f2638 5902 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5903
b1bde622
KH
59042008-12-03 Kenichi Handa <handa@m17n.org>
5905
e500c47d
KH
5906 * font.c (font_at): Set `multibyte' at first.
5907
ca516334
KH
5908 * coding.c (decode_coding_charset): Check type of an element of
5909 vector VALIDS.
7bf1bb21 5910 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5911
4ccfa1c0 5912 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5913 (font_for_char): Likewise.
5914
1e5ecd37
CY
59152008-12-03 Chong Yidong <cyd@stupidchicken.com>
5916
d5b01609 5917 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5918 (font_update_lface): Handle fonts with corrupted size specs,
5919 i.e. non-int and non-float.
d5b01609 5920
11e3a6e4 5921 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5922 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5923 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5924
ab06788b
CY
5925 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5926
1e5ecd37 5927 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5928 underline_minimum_offset for underline position.
1e5ecd37 5929
63c125ab
DN
59302008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5931
5932 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5933
5934 * character.c (c_string_width): Specify the type for LEN.
5935
3a8406e1
KH
59362008-12-03 Kenichi Handa <handa@m17n.org>
5937
4ccfa1c0 5938 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5939 (decode_coding_utf_8): Likewise.
4ccfa1c0 5940 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5941 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5942
651df7d9
CY
59432008-12-02 Chong Yidong <cyd@stupidchicken.com>
5944
5945 * keyboard.c (make_lispy_position): Only use PT if the selected
5946 window is current.
5947
1f625c6c
AS
59482008-12-02 Andreas Schwab <schwab@suse.de>
5949
f7741ce9
AS
5950 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5951
1f625c6c
AS
5952 * doprnt.c (doprnt1): Fix size of charbuf.
5953
92bc2678
CY
59542008-12-02 Chong Yidong <cyd@stupidchicken.com>
5955
5956 * keyboard.c (timer_check): Revert last change.
5957
93b9e8cc
JB
59582008-12-02 Juanma Barranquero <lekktu@gmail.com>
5959
5960 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5961
fd7a37d5
JB
59622008-12-01 Juanma Barranquero <lekktu@gmail.com>
5963
5964 * makefile.w32-in: Update dependencies.
5965 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5966
c115043b
AS
59672008-12-01 Andreas Schwab <schwab@suse.de>
5968
5969 * font.c (register_font_driver): Use xmalloc.
5970 (font_put_frame_data): Likewise.
5971
f5668d2a
CY
59722008-12-01 Chong Yidong <cyd@stupidchicken.com>
5973
860d96be
CY
5974 * xfaces.c (realize_x_face): Make abort condition clearer.
5975
f5668d2a
CY
5976 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5977
379c17e7
CY
59782008-11-30 Chong Yidong <cyd@stupidchicken.com>
5979
5980 * keyboard.c (timer_check): After a timer runs, ensure that the
5981 selected window's buffer is current.
5982
35f36d65
JB
59832008-11-30 Juanma Barranquero <lekktu@gmail.com>
5984
f952c61c
JB
5985 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5986 It was accidentally restored by the Unicode merge.
5987
35f36d65
JB
5988 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5989
b23077df
JB
59902008-11-29 Juanma Barranquero <lekktu@gmail.com>
5991
5992 * w32proc.c: Include "coding.h".
5993 (Fw32_short_file_name): Encode filename passed to Windows API.
5994 (Fw32_long_file_name): Encode filename passed to Windows API and
5995 decode back the result. (Bug#1433)
5996
b8ebe9dd
KH
59972008-11-29 Kenichi Handa <handa@m17n.org>
5998
8cc53f96
KH
5999 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6000 not before accessing it.
6001
b8ebe9dd
KH
6002 * charset.c (Fdefine_charset_internal): After calculating
6003 min_char, max_char, and fastmap, copy the charset structure again.
6004 (encode_char): Fix the previous change.
6005
59bc82c0
SZ
60062008-11-28 Seiji Zenitani <zenitani@mac.com>
6007
6008 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6009
6010 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6011
6012 * nsterm.m (x_set_frame_alpha): New function.
6013
32247e3d
EZ
60142008-11-27 Eli Zaretskii <eliz@gnu.org>
6015
6016 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6017
b003e5ff
JB
60182008-11-27 Juanma Barranquero <lekktu@gmail.com>
6019
6020 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6021 pointer to check_face_name.
6022
708550f5
KH
60232008-11-27 Kenichi Handa <handa@m17n.org>
6024
6025 * category.h (SET_CATEGORY_SET): Call set_category_set.
6026 (set_category_set): Extern it.
6027
6028 * category.c (hash_get_category_set): New function.
6029 (Fmodify_category_entry): Adjusted for the change of
6030 char_table_ref_and_range. Call hash_get_category_set to get a
6031 category set to store in the table.
6032
6033 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6034 Funify_charset.
6035
2ae37cf0 6036 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6037 (DECODE_CHAR): Check if the decoder vector is ready.
6038 (ENCODE_CHAR): Check if the encoder char-table is ready.
6039 (maybe_unify_char): Extern it.
6040
6041 * charset.c (Vchar_unified_charset_table): Delete it.
6042 (inhibit_load_charset_map): New variable.
6043 (temp_charset_work): New variable.
6044 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6045 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6046 New macros.
6047 (load_charset_map): Meaning of control_flag changed. If
6048 inhibit_load_charset_map is nonzero, setup a table in
6049 temp_charset_work.
6050 (load_charset): New argument control_flag.
6051 (map_charset_for_dump): New function.
6052 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6053 map_charset_for_dump.
6054 (Fdefine_charset_internal): If the charset method is MAP, load
6055 mapping tables by calling load_charset.
6056 (Funify_charset): Don't load a mapping table but directly set
6057 Vchar_unify_table.
6058 (maybe_unify_char): New function.
6059 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6060 Handle the case of inhibit_load_charset_map being nonzero.
6061 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6062 Handle the case of inhibit_load_charset_map being nonzero.
6063 (Fclear_charset_maps): Just free temp_charset_work.
6064 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6065 variable.
6066
6067 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6068 change of char_table_ref_and_range.
6069 (char_table_ref_and_range): Change the meaning of argument FROM
6070 and TO. Now the caller must provide initial values for *FROM
6071 and *TO.
6072
6073 * fontset.c (fontset_add): Adjusted for the change of
6074 char_table_ref_and_range.
6075 (fontset_get_font_group): Likewise.
6076 (Ffontset_info): Likewise.
6077
6078 * keymap.c (describe_vector): Adjusted for the change of
6079 char_table_ref_and_range. For char-table, put boundary between
6080 non-ASCII and 8-bit characters.
6081
6082 * print.c (print_object): For bool-vector, delete unnecessary
6083 check of ASCII_BYTE_P.
6084
9196133b
JR
60852008-11-26 Jason Rumney <jasonr@gnu.org>
6086
6087 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6088 leading in font height. (Bug#879)
9196133b 6089
9f688acf
GM
60902008-11-26 Glenn Morris <rgm@gnu.org>
6091
6092 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6093 redefinition with ifdef. (Bug#1383)
6094
90d19aff
AR
60952008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6096
6097 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6098
4ccfa1c0 60992008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6100
6101 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6102 New EmacsView methods.
6103 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6104 Fixes bug #1048,1357,1414.
6105
61062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6107
6108 Fix bug #1362.
6109 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6110 is not an indexed color.
6111 * nsterm.m (free_indexed_color): Add argument checking.
6112 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6113
e7d5ecb3
CY
61142008-11-24 Chong Yidong <cyd@stupidchicken.com>
6115
6116 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6117 Document confirm-after-completion value for
6118 minibuffer-completion-confirm.
6119
c285743c
JR
61202008-11-24 Jason Rumney <jasonr@gnu.org>
6121
6122 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6123 warning.
6124
b0857706
JR
61252008-11-23 Jason Rumney <jasonr@gnu.org>
6126
6127 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6128 restored before returning.
6129
6130 * w32font.c (check_face_name): New function.
6131 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6132 fonts. (Bug#642)
b0857706 6133
ee50ff07
MR
61342008-11-22 Martin Rudalics <rudalics@gmx.at>
6135
6136 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6137 confirm-nonexistent-file-or-buffer in doc-string.
6138
b8ff72fa
SM
61392008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6140
6141 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6142 Fix copy/paste typo. Add checks.
6143
cee53ed4
KH
61442008-11-21 Kenichi Handa <handa@m17n.org>
6145
6146 * coding.c (detect_coding_iso_2022): Reject invalid composition
6147 sequence.
6148 (DECODE_COMPOSITION_START): If the current source is the last
6149 block, and the current composition doesn't end, regard this
6150 sequence as invalid.
6151 (decode_coding_iso_2022): Handle invalid composition sequence.
6152
f6ef1e65
MR
61532008-11-20 Martin Rudalics <rudalics@gmx.at>
6154
6155 * window.c (coordinates_in_window): Don't return
6156 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6157 line when the window is not the rightmost one. (Bug#1372)
6158
e08b1705
MR
61592008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6160
6161 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6162
ad98e89f
EZ
61632008-11-15 Eli Zaretskii <eliz@gnu.org>
6164
6165 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6166 and bright_bg if noninteractive is non-zero.
6167
fb098a4b
CY
61682008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6169
6170 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6171 x_draw_glyph_string_background.
6172
6173 * w32term.c (x_draw_glyph_string): Likewise.
6174
ce952b6e
CY
61752008-11-15 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6178 the next glyph string once past the overhang width.
6179
6180 * nsterm.m (ns_draw_glyph_string): Likewise.
6181
6182 * w32term.c (x_draw_glyph_string): Likewise.
6183
26ea7079
CY
61842008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6185
6186 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6187 double file close.
6188
1c33c906
MR
61892008-11-14 Martin Rudalics <rudalics@gmx.at>
6190
6191 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6192 dedicated status of window before attempting to display another
6193 buffer in it.
6194
8fc29035
JB
61952008-11-14 Juanma Barranquero <lekktu@gmail.com>
6196
6197 * msdos.c (Fmsdos_long_file_names):
6198 (syms_of_msdos) <dos-unsupported-char-glyph>:
6199 * dosfns.c (Fint86): Fix typos in docstrings.
6200
55fb4286
EZ
62012008-11-14 Eli Zaretskii <eliz@gnu.org>
6202
6203 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6204
3fda0315
KY
62052008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6206
6207 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6208
7e849c17
CY
62092008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6210
6211 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6212
6213 * frame.h: Negative alpha means "don't touch".
6214
6215 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6216
6217 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6218
b9fd67bd
DN
62192008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6220
6221 * hftctl.c:
6222 * chpdef.h:
6223 * acldef.h: Remove files used only for systems no longer supported.
6224
6225 * Makefile.in: Fix .o alphabetical ordering.
6226 (hftctl.o): Remove dependency, file removed.
6227 (keymap.o, print.o): Depend on charset.h.
6228
d5998e03
KH
62292008-11-10 Kenichi Handa <handa@m17n.org>
6230
2ae37cf0 6231 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6232
be70e183
CY
62332008-11-08 Chong Yidong <cyd@stupidchicken.com>
6234
6235 * dired.c (file_name_completion): If completion_ignore_case is
6236 enabled, ignore case when checking completion-regexp-list.
6237
7cf94eac
EZ
62382008-11-08 Eli Zaretskii <eliz@gnu.org>
6239
6240 * vm-limit.c (get_lim_data): Fix last change.
6241
ee107a89
KH
62422008-11-08 Kenichi Handa <handa@m17n.org>
6243
6244 * character.c (Fget_byte): New function.
6245 (syms_of_character): Defsubr Fget_byte.
6246
5fd15622
CY
62472008-11-07 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6250 cursor position is valid after scrolling.
6251
13d62fad
JB
62522008-11-06 Juanma Barranquero <lekktu@gmail.com>
6253
6254 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6255
a1dd2936
GM
62562008-11-06 Glenn Morris <rgm@gnu.org>
6257
6258 * xterm.c (handle_one_xevent): Don't let popup menus cause
6259 mouse-autoselect-window related window switching. (Bug#1261)
6260
860cd236
CY
62612008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6262
6263 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6264
653a3150
AS
62652008-11-04 Andreas Schwab <schwab@suse.de>
6266
6267 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6268
870f5cac
CY
62692008-11-03 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * xfns.c (Fx_wm_set_size_hint): New function.
6272
1e02f3cb
MR
62732008-11-03 Martin Rudalics <rudalics@gmx.at>
6274
6275 * textprop.c (Fprevious_single_char_property_change): Return 0
6276 when there's no change in a string. (Bug#1301)
6277
e630dfc6
MR
62782008-11-02 Martin Rudalics <rudalics@gmx.at>
6279
6280 * frame.c (do_switch_frame): New argument NORECORD passed to
6281 Fselect_window.
6282 (Fselect_frame): New argument NORECORD passed to
6283 do_switch_frame.
6284 (Fset_frame_selected_window): New argument NORECORD passed to
6285 Fselect_frame.
6286 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6287 in call of do_switch_frame.
6288 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6289 Handle NORECORD argument in call of Fselect_frame.
6290 * lisp.h (do_switch_frame, Fselect_frame)
6291 (Fset_frame_selected_window): Adjust declarations.
6292 * window.c (select_frame_norecord): New function.
6293 (run_window_configuration_change_hook): Use it and call
6294 Fselect_frame with NORECORD set.
6295 (Fselect_window): Pass NORECORD to Fselect_frame.
6296 (Fset_window_configuration): Handle NORECORD argument in call of
6297 do_switch_frame.
6298 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6299 Fset_frame_selected_window.
6300 * keyboard.c (command_loop_1): Handle NORECORD in call of
6301 Fselect_frame (currently ifdefd).
6302
9020b223
GM
63032008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6304
6305 * emacs.c (USAGE2): Untabify.
6306
793ffee8
SM
63072008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6308
6309 * composite.c (fill_gstring_header): Fix copy/paste typo.
6310
ab6d1131
MR
63112008-10-31 Martin Rudalics <rudalics@gmx.at>
6312
6313 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6314 (Fother_window): Rename argument and rewrite doc-string.
6315 (select_window_norecord): Fix return value. (Bug#1276)
6316
601a9cf1
JB
63172008-10-30 Juanma Barranquero <lekktu@gmail.com>
6318
6319 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6320 new frames overriding foreground for tooltips. Based on similar patch
6321 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6322
813b0652
CY
63232008-10-29 Chong Yidong <cyd@stupidchicken.com>
6324
6325 * emacs.c (Fdaemon_initialized): Initialize nfd.
6326
4414f58f
MR
63272008-10-29 Martin Rudalics <rudalics@gmx.at>
6328
6329 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6330 (Fwindow_text_height): Clarify doc-strings.
6331 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6332 doc-string of window-scroll-functions.
6333
ecdcaa09
RS
63342008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6335
6336 * category.c (syms_of_category): Fix typo in docstring.
6337
23fe745a
JB
63382008-10-28 Juanma Barranquero <lekktu@gmail.com>
6339
6340 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6341 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6342 Fix typos in docstrings.
6343
ff808935
DN
63442008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6345
6346 * emacs.c (daemon_pipe): Make non-static.
6347 (IS_DAEMON): Move definition ...
6348 * lisp.h (IS_DAEMON): ... here.
6349 (daemon_pipe): Declare.
6350 (is_daemon): Remove.
6351 * dispnew.c (init_display): Use IS_DAEMON.
6352
fc012771
SM
63532008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6354
6355 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6356 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6357
6358 * emacs.c (is_daemon): Remove.
6359 (main): Don't set is_daemon.
6360 (IS_DAEMON): New macro.
6361 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6362 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6363 parent exits.
6364 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6365
d8bdbe6f
CY
63662008-10-27 Chong Yidong <cyd@stupidchicken.com>
6367
d1a072bf
CY
6368 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6369 over-sized glyph, draw it with the default glyph width.
6370
e2e325aa
CY
6371 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6372 glyph, draw it with the default glyph width.
6373
6374 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6375 glyph, draw it with the default glyph width.
6376
d8bdbe6f
CY
6377 * xdisp.c (try_scrolling): When computing the distance from the
6378 scroll margin to PT, try moving some distance past the window
6379 bottom before giving up.
6380
7bfac547
MR
63812008-10-27 Martin Rudalics <rudalics@gmx.at>
6382
6383 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6384 (Fset_window_buffer): Explain in doc-string that a window can be
6385 "strongly" dedicated to its buffer.
6386
4ff029f6
DN
63872008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6388
6389 * emacs.c (daemon_name): New variable.
6390 (main): Deal with --daemon=SERVER_NAME.
6391 (Fdaemonp): Return a name if one was passed to --daemon.
6392
5790ef40
DN
63932008-10-26 Romain Francoise <romain@orebokech.com>
6394
f9bd0df9 6395 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6396 (main): Create a pipe before forking, make the parent exit only after
6397 the child has closed its end of the pipe. Move closing the
6398 descriptors ...
6399 (Fdaemon_initialized): ... here. New function.
6400
f5385255
SM
64012008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6402
4d632321
SM
6403 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6404 the previous unoptimized table.
6405
f5385255
SM
6406 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6407 the distinction between non-nil and non-t value of `dedicated'.
6408
6c56a0f3
CY
64092008-10-25 Chong Yidong <cyd@stupidchicken.com>
6410
6411 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6412 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6413
fec89261
MR
64142008-10-25 Martin Rudalics <rudalics@gmx.at>
6415
6416 * window.c (Fget_buffer_window, Fdelete_windows_on)
6417 (Freplace_buffer_in_windows): Make buffer argument optional and
6418 rename to buffer_or_name.
6419
34fcddd0
CY
64202008-10-24 Chong Yidong <cyd@stupidchicken.com>
6421
f5385255
SM
6422 * xdisp.c (handle_single_display_spec, handle_display_prop):
6423 Undo 2005-05-16 change.
34fcddd0
CY
6424 (handle_stop): Pop iterator if it's loaded with an empty string.
6425 (get_overlay_strings_1): Don't save iterator if it's loaded with
6426 an empty string (bug#1201).
6427
064766f2
KH
64282008-10-24 Kenichi Handa <handa@m17n.org>
6429
6430 * ftfont.c (ftfont_otf_features): Fix previous change.
6431 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6432 calling ftfont_otf_features.
6433
f9bd0df9 64342008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6435
6436 * font.c (font_match_p): Fix for the case that a vector of
6437 characters is in script-representative-chars.
6438
1dae9197
MA
64392008-10-24 Michael Albinus <michael.albinus@gmx.de>
6440
6441 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6442 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6443 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6444 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6445 macro. (Bug#1186)
1dae9197 6446
f9bd0df9 64472008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6448
6449 * s/sol2-10.h: New file.
6450
878a4584
JB
64512008-10-23 Juanma Barranquero <lekktu@gmail.com>
6452
6453 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6454 poor beast has survived 9+ years and the jump from xterm.c!).
6455
cd265ca6
MR
64562008-10-23 Martin Rudalics <rudalics@gmx.at>
6457
6458 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6459 Reword doc-string.
f5385255 6460 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6461
472a4dc9
JB
64622008-10-23 Juanma Barranquero <lekktu@gmail.com>
6463
6464 * character.c (syms_of_character) <script-representative-chars>:
6465 <unicode-category-table>: Doc fixes.
6466
159bd5a2
NF
64672008-10-23 Noah Friedman <friedman@splode.com>
6468
6469 * coding.c (make_conversion_work_buffer): Check that
6470 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6471 Fget_buffer_create.
6472
49f9c344
KH
64732008-10-23 Kenichi Handa <handa@m17n.org>
6474
6475 * font.c (font_add_log): Check the values of extra properties.
6476
12bb3111
MR
64772008-10-22 Martin Rudalics <rudalics@gmx.at>
6478
6479 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6480 Reword doc-string.
6481 (Fset_window_parameter): Use NILP.
6482 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6483 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6484
bbeb4e99
JB
64852008-10-22 Juanma Barranquero <lekktu@gmail.com>
6486
6487 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6488
64892008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6490
6491 * nsfns.m (ns_appkit_version): New function.
6492 (x-server-version): Use it.
6493 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6494 (x-server-vendor): Don't check_ns().
6495
6496 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6497
a9b555d3
JB
64982008-10-22 Juanma Barranquero <lekktu@gmail.com>
6499
6500 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6501 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6502
4626499f
KH
65032008-10-22 Kenichi Handa <handa@m17n.org>
6504
e3681952
KH
6505 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6506 scripts.
6507
4626499f
KH
6508 * category.c (word_boundary_p): Check scripts instead of charset.
6509 Handle nil value in word-separating-categories and
6510 word-combining-categories.
6511 (syms_of_category): Fix docstrings of word-separating-categories
6512 and word-combining-categories.
6513
1560f91a
EZ
65142008-10-21 Eli Zaretskii <eliz@gnu.org>
6515
6516 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6517 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6518
f4668441
MR
65192008-10-21 Martin Rudalics <rudalics@gmx.at>
6520
6521 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6522 Rename arg "buffer" to "buffer_or_name".
6523 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6524 it optional.
6525 (no_switch_window): Remove since the return value is not used.
a9b555d3 6526 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6527 Consider window as dedicated when Fwindow_dedicated_p returns a
6528 non-nil value.
6529 * lisp.h: Remove prototype for no_switch_window.
6530
fd75ddb2
JD
65312008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6532
6533 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6534 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6535
07295713
KH
65362008-10-21 Kenichi Handa <handa@m17n.org>
6537
6538 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6539 check Vlatin_extra_code_table.
6540
712adc82
EZ
65412008-10-20 Eli Zaretskii <eliz@gnu.org>
6542
6543 * fileio.c (Fset_file_modes): Doc fix.
6544
f549eb0b
MA
65452008-10-19 Michael Albinus <michael.albinus@gmx.de>
6546
6547 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6548 in arrays.
6549
aac0c6e3
MR
65502008-10-19 Martin Rudalics <rudalics@gmx.at>
6551
6552 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6553 Mention kill-buffer in doc-string.
6554 (Fset_window_buffer): Reinsert tem check removed in last commit.
6555 (Fenlarge_window, Fshrink_window): Have argument names and
6556 doc-string follow Elisp manual more closely.
6557
65582008-10-18 Eli Zaretskii <eliz@gnu.org>
6559
6560 * fileio.c (Fset_file_modes): Doc fix.
6561
65622008-10-18 Martin Rudalics <rudalics@gmx.at>
6563
6564 * window.c (Fwindow_width, Fset_window_start)
6565 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6566 (Fdelete_windows_on, Freplace_buffer_in_windows):
6567 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6568 (Fwindow_dedicated_p): Make window argument optional.
6569 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6570 (Fset_window_buffer): Respect any non-nil dedicated value for
6571 window. Rename "buffer" argument to "buffer_or_name".
6572
65732008-10-18 Ulrich Mueller <ulm@gentoo.org>
6574
6575 * m/sh3.h: New file, machine description for SuperH.
6576
65772008-10-17 Martin Rudalics <rudalics@gmx.at>
6578
6579 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6580
65812008-10-17 Kenichi Handa <handa@m17n.org>
6582
6583 * ftfont.c (ftfont_otf_features): Fix indexing
6584 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6585
65862008-10-16 Magnus Henoch <mange@freemail.hu>
6587
6588 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6589 (Fdbus_call_method_asynchronously): Ditto.
6590 This change makes C-h f display the argument list.
6591
65922008-10-16 Chong Yidong <cyd@stupidchicken.com>
6593
6594 * fileio.c (Fexpand_file_name): Doc fix.
6595
6596 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6597 of :foreground and :background equivalent to unspecified (20.x
6598 compatibility).
6599
66002008-10-15 Eli Zaretskii <eliz@gnu.org>
6601
6602 * buffer.c (syms_of_buffer): Doc fix.
6603
66042008-10-14 Kenichi Handa <handa@m17n.org>
6605
6606 * font.c (font_clear_prop): When clearing font width, clear the
6607 average width field too.
6608
66092008-10-12 Andreas Schwab <schwab@suse.de>
6610
6611 * ftfont.c (ftfont_shape_by_flt): Make static.
6612 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6613
6614 * font.c: Don't include <m17n-flt.h>.
6615
66162008-10-10 Eli Zaretskii <eliz@gnu.org>
6617
6618 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6619
66202008-10-09 Eli Zaretskii <eliz@gnu.org>
6621
6622 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6623 away code.
6624
66252008-10-09 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * dispnew.c (update_text_area): Avoid looping due to large glyph
6628 overhangs (bug#1070).
6629
66302008-10-09 Kenichi Handa <handa@m17n.org>
6631
6632 * fontset.c (face_for_char): If face->fontset is negative, just
6633 return ascii_face.
6634
f5385255
SM
6635 * font.c (font_delete_unmatched): Fix previous change.
6636 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6637
66382008-10-09 Martin Rudalics <rudalics@gmx.at>
6639
6640 * frame.c (Fraise_frame): On text-only terminals select frame in
6641 order to make it visible. (Bug#1061)
6642
66432008-10-08 Chong Yidong <cyd@stupidchicken.com>
6644
6645 * fontset.c (fontset_find_font): Check frame validity.
6646
66472008-10-07 Chong Yidong <cyd@stupidchicken.com>
6648
a9b555d3 6649 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6650 (xg_display_close): Allow Emacs to close all displays (bug#985).
6651
66522008-10-06 Andreas Schwab <schwab@suse.de>
6653
f5385255 6654 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6655
66562008-10-06 Chong Yidong <cyd@stupidchicken.com>
6657
f5385255 6658 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6659
a9b555d3 6660 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6661
6662 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6663 during initialization.
6664
66652008-10-04 Eli Zaretskii <eliz@gnu.org>
6666
6667 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6668 whole thing on MSDOS frames as well as on a TTY.
6669
6670 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6671 well as for TTY.
6672 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6673 well as on a TTY.
6674
6675 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6676 as well as for TTY.
6677
6678 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6679
6680 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6681 MSDOS frames as well.
6682
66832008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6684
6685 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6686 correct arguments.
b71ac3dd 6687 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6688
66892008-10-03 Glenn Morris <rgm@gnu.org>
6690
6691 * emacs.c (USAGE1): Add --daemon.
6692
66932008-10-02 Eli Zaretskii <eliz@gnu.org>
6694
6695 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6696 100, so it's in percents as advertised.
6697
66982008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6699
6700 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6701 (ns_output.current_cursor, ns_output.desired_cursor)
6702 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6703 (FRAME_NEW_CURSOR_COLOR): Remove.
6704
6705 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6706 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6707 enumeration (HOLLOW_BOX_CURSOR, etc.).
6708
6709 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6710 (draw_window_cursor): Simplify code.
f5385255
SM
6711 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6712 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6713 updates manually.
a9b555d3
JB
6714 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6715 Use core Emacs cursor types.
aac0c6e3 6716
b8ff72fa 6717 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6718
67192008-10-02 Martin Rudalics <rudalics@gmx.at>
6720
6721 * process.c (Faccept_process_output): Fix doc-string.
6722
67232008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6724
6725 * gmalloc.c (__sbrk): Also define for uClibc.
6726
6727 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6728 for uClibc.
6729
67302008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6731
6732 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6733 styles.
6734 (nsfont_open): Reenable the cache.
6735
67362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6737
6738 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6739 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6740
67412008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6742
6743 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6744 a suspended terminal.
6745
67462008-09-30 Michael Albinus <michael.albinus@gmx.de>
6747
6748 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6749
67502008-09-30 Eli Zaretskii <eliz@gnu.org>
6751
6752 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6753
67542008-09-30 Chong Yidong <cyd@stupidchicken.com>
6755
6756 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6757 in a continued line coincides with a line beginning.
6758
67592008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6760
6761 * nsfont.m (nsfont_trait_distance): Fix bug.
6762 (nsfont_list): Return a list rather than a vector (syncs with Handa
6763 changes of 2008-05-14).
6764 (nsfont_open): Improve logging.
6765
67662008-09-29 Andreas Schwab <schwab@suse.de>
6767
6768 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6769
67702008-09-28 Martin Rudalics <rudalics@gmx.at>
6771
6772 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6773 name as char-resolve-modifiers.
6774 Reported by: Markus Triska <markus.triska@gmx.at>
6775
67762008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6777
6778 * dispnew.c (init_display): Return earlier when running as a daemon.
6779
67802008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6781
6782 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6783
67842008-09-27 Eli Zaretskii <eliz@gnu.org>
6785
6786 * composite.c (Fcomposition_get_gstring)
6787 (Fcompose_region_internal, Fcompose_string_internal)
6788 (Ffind_composition_internal): Doc fix.
6789 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6790 (syms_of_composite) <auto-composition-function>: Doc fix.
6791 (syms_of_composite) <composition-function-table>: Doc fix.
6792
67932008-09-25 Chong Yidong <cyd@stupidchicken.com>
6794
6795 * search.c (wordify): New argument for lax word-ends.
6796 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6797
67982008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6799
6800 * lisp.h (is_daemon): Declare.
6801 * dispnew.c (init_display): Do not try to initialize the terminal
6802 when running as a daemon.
6803
68042008-09-22 Chong Yidong <cyd@stupidchicken.com>
6805
6806 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6807 x_display_pixel_height.
6808
68092008-09-22 Martin Rudalics <rudalics@gmx.at>
6810
6811 * undo.c (record_point): Don't call Fundo_boundary for first
6812 change. (Bug#731)
6813
68142008-09-22 Juanma Barranquero <lekktu@gmail.com>
6815
6816 * emacs.c (Fdaemonp): Doc fix.
6817
68182008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6819
6820 * emacs.c (main): Place #ifdef in the proper place.
6821
68222008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6823
6824 * emacs.c (standard_args): Add --daemon.
6825 (main): Disconnect from the terminal when --daemon is passed.
6826 (is_daemon): New variable.
6827 (Fdaemonp): New function.
6828 (syms_of_emacs): Defsubr it.
6829
68302008-09-20 Chong Yidong <cyd@stupidchicken.com>
6831
6832 * xdisp.c (get_next_display_element): Handle string display
6833 correctly when checking for the end of a box run.
6834
68352008-09-20 Glenn Morris <rgm@gnu.org>
6836
6837 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6838 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6839 (Frename_file): Avoid copying to trash if a rename involves
6840 a delete. (Bug#964).
6841
68422008-09-20 Eli Zaretskii <eliz@gnu.org>
6843
6844 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6845 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6846 frames as well as termcap frames.
6847 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6848 get_named_tty.
6849
68502008-09-19 Eli Zaretskii <eliz@gnu.org>
6851
6852 * process.c (procfs_system_process_attributes): Fix cmdline in
6853 case /proc/PID/cmdline is empty.
6854
6855 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6856 x_display_pixel_height.
6857
68582008-09-19 Juanma Barranquero <lekktu@gmail.com>
6859
6860 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6861
6862 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6863 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6864
68652008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6866
6867 * dispextern.h (struct it): Move line_wrap away from the middle of
6868 bitfields. Move voffset in struct iterator_stack_entry after the
6869 bitfields. Move tab_width near after another short.
6870
68712008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6872
6873 * frame.h (struct frame): Move alpha from the middle of bitfields.
6874
6875 * window.h (struct window): Move frozen_window_start_p after the
6876 rest of the bitfields to reduce padding.
6877
68782008-09-18 Chong Yidong <cyd@stupidchicken.com>
6879
6880 * xterm.h (x_display_info): Remove `height' and `width' members.
6881
6882 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6883
6884 * w32term.h (w32_display_info): Remove `height', `width',
6885 `height_in', and `width_in' members.
6886
b8ff72fa
SM
6887 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6888 New functions.
aac0c6e3
MR
6889 (x_calc_absolute_position): Use them.
6890 (x_term_init): Omit removed `height' and `width' members.
6891
b8ff72fa
SM
6892 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6893 New functions.
aac0c6e3
MR
6894 (w32_read_socket, x_calc_absolute_position): Use them.
6895 (w32_initialize_display_info, w32_term_init): Omit removed members
6896 of w32_display_info.
6897
b8ff72fa
SM
6898 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6899 New functions.
6900 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6901
b8ff72fa
SM
6902 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6903 New functions.
aac0c6e3
MR
6904 (x_calc_absolute_position): Use them.
6905 (x_term_init): Omit removed `height' and `width' members.
6906
6907 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6908 (compute_tip_xy):
6909 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6910 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6911 x_display_pixel_width.
6912
69132008-09-18 Kenichi Handa <handa@m17n.org>
6914
6915 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6916 (composition_compute_stop_pos): Fix handling of static composition.
6917 (Fcomposition_get_gstring): Check FROM and TO at first.
6918
69192008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6920
46e722a9 6921 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6922 mixup (YAILOM).
6923
69242008-09-17 Chong Yidong <cyd@stupidchicken.com>
6925
6926 * indent.c (Fvertical_motion): Use position reported by iterator
6927 instead of PT for determining screen motion (bug#943).
6928
69292008-09-17 Romain Francoise <romain@orebokech.com>
6930
6931 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6932
69332008-09-17 Kenichi Handa <handa@m17n.org>
6934
6935 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6936
6937 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6938 if necessary.
6939
69402008-09-16 Kenichi Handa <handa@m17n.org>
6941
6942 * coding.c (make_conversion_work_buffer): Avoid calling
6943 Fget_buffer_create if it is not necessary.
6944
69452008-09-15 Martin Rudalics <rudalics@gmx.at>
6946
6947 * window.c (Fselect_window): Don't update window_select_count and
6948 use_time when norecord is not nil.
6949
69502008-09-14 Kenichi Handa <handa@m17n.org>
6951
6952 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6953 specpdl_ptr.
6954
69552008-09-12 Kenichi Handa <handa@m17n.org>
6956
6957 * indent.c (scan_for_column): Don't handle automatic composition
6958 if the current buffer is not associated with a window.
6959
6960 * composite.c (composition_reseat_it): If the current buffer is
6961 not associated with a window, ignore the automatic composition.
6962 (find_automatic_composition): Likewise.
6963
69642008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6965
6966 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6967 (Fgpm_mouse_stop): Use it.
6968 * termhooks.h (close_gpm): Declare.
6969 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6970 connection if Gpm_GetEvent fails.
6971
6972 * window.c (set_window_buffer): Always preserve current-buffer.
6973
69742008-09-12 Glenn Morris <rgm@gnu.org>
6975
6976 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6977
69782008-09-11 Glenn Morris <rgm@gnu.org>
6979
6980 * charset.c (charset-map-path): Doc fix.
6981
69822008-09-10 Kenichi Handa <handa@m17n.org>
6983
6984 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6985
6986 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6987 compose a grapheme cluster with the preceding base glyph.
6988
6989 * composite.c (composition_compute_stop_pos): Fix previous change.
6990 Reset cmp_it->id to -1 at first.
6991
69922008-09-10 Glenn Morris <rgm@gnu.org>
6993
6994 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6995
69962008-09-09 Chong Yidong <cyd@stupidchicken.com>
6997
6998 * keyboard.c (read_key_sequence): Reapply translation maps when
6999 switching keyboards.
7000
70012008-09-09 Kenichi Handa <handa@m17n.org>
7002
7003 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7004 characters.
7005
7006 * composite.c (FORWARD_CHAR): Fix calculation
7007 of (POSITION).pos_byte.
7008 (composition_compute_stop_pos): Limit the search of composition to
7009 at most 500 characters ahead. If we reach the limit or find a
7010 newline, set cmp_it->ch to -2 and return 0.
7011 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7012
70132008-09-08 Kenichi Handa <handa@m17n.org>
7014
7015 * indent.c (Fvertical_motion): Be sure to set
7016 it_overshoot_expected if it.cmp_it.id is non-negative.
7017
70182008-09-07 Andreas Schwab <schwab@suse.de>
7019
7020 * callproc.c (Fcall_process): Don't hold references to string data
7021 across garbage collection. Move initialisation of new_argv down
7022 to avoid compiler bug.
7023
70242008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7025
7026 * process.c (Fsystem_process_attributes): Doc fix.
7027
70282008-09-07 Chong Yidong <cyd@stupidchicken.com>
7029
7030 * callproc.c (Fcall_process): Canonicalize current directory name.
7031
7032 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7033 iterator advances to the next line if the current line ends in a
7034 continued tab.
7035
70362008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7037
7038 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7039 member to point to cmp_from.
7040
7041 * xdisp.c: Doc fix for references to gidx data member.
7042
70432008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7044
7045 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7046
70472008-09-07 Kenichi Handa <handa@m17n.org>
7048
7049 * composite.c (FORWARD_CHAR): Check STOP after
7050 incrementing (POSITION).pos.
7051
70522008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7053
7054 * process.c (Fsystem_process_attributes): Doc fix.
7055
70562008-09-06 Chong Yidong <cyd@stupidchicken.com>
7057
7058 * keyboard.c (Ftop_level): Doc fix.
7059
70602008-09-06 Eli Zaretskii <eliz@gnu.org>
7061
7062 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7063 minibuffer, don't let lower part of menu invade the echo area.
7064
7065 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7066 "char *q" to access menu text and advance through it. Revert the
7067 change that displayed ">" instead of ASCII character 0x10.
7068
70692008-09-05 Eli Zaretskii <eliz@gnu.org>
7070
7071 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7072 toggle boxes and radio buttons on MS-DOS as well.
7073
70742008-09-05 Kenichi Handa <handa@m17n.org>
7075
7076 * composite.c (autocmp_chars): Check lookback count.
7077 (composition_compute_stop_pos): Set cmp_it->lookback.
7078 (composition_reseat_it): Check lookback count.
7079 (struct position_record): New struct.
7080 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7081 (find_automatic_composition): New function.
7082 (composition_adjust_point): Use find_automatic_composition.
7083
7084 * dispextern.h (struct composition_it): New member lookback.
7085
70862008-09-02 Chong Yidong <cyd@stupidchicken.com>
7087
7088 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7089 if moving by a single line.
7090
70912008-09-02 Andreas Schwab <schwab@suse.de>
7092
7093 * xterm.c (x_delete_display): Fix merge error.
7094
7095 * fileio.c (Fexpand_file_name): Remove unused variables.
7096
70972008-09-02 Eli Zaretskii <eliz@gnu.org>
7098
7099 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7100 storage on all platforms, not just on DOS_NT.
7101
71022008-09-02 Jason Rumney <jasonr@gnu.org>
7103
b8ff72fa
SM
7104 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7105 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7106
71072008-09-01 Chong Yidong <cyd@stupidchicken.com>
7108
7109 * xfaces.c (Finternal_set_alternative_font_family_alist)
7110 (Finternal_set_alternative_font_registry_alist): Properly copy
7111 entire alist structure.
7112
71132008-09-01 Kenichi Handa <handa@m17n.org>
7114
d66c0241 7115 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7116 representative chars of the script is a vector.
d66c0241
JB
7117 (ftfont_list): Handle the case where the representative chars of
7118 the script is a vector.
aac0c6e3
MR
7119
7120 * character.c (syms_of_character): Docstring of
7121 script-representative-chars fixed.
7122
71232008-08-31 Eli Zaretskii <eliz@gnu.org>
7124
7125 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7126 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7127 the menu. Allocate larger buffer for `text', to account for
7128 possible ^C characters.
7129
71302008-08-31 Martin Rudalics <rudalics@gmx.at>
7131
7132 * xdisp.c (prepare_menu_bars): Don't call
7133 Vwindow_size_change_functions with arg Qt.
7134
71352008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7136
7137 * font.h (font_range):
7138 * fileio.c (report_file_error):
46e722a9
SM
7139 * composite.c (composition_update_it): Yet another int/Lisp_Object
7140 mixup (YAILOM).
aac0c6e3
MR
7141
71422008-08-30 Glenn Morris <rgm@gnu.org>
7143
7144 * data.c (Fmake_variable_frame_local): Doc fix.
7145
7146 * frame.c (Fmodify_frame_parameters): Doc fix.
7147
71482008-08-30 Eli Zaretskii <eliz@gnu.org>
7149
7150 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7151 needed by GetTokenInformation.
7152 (w32_system_process_attributes): Check return values of all system
7153 APIs.
7154
7155 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7156 only when the state changes.
7157 (IT_update_begin, IT_update_end): Add termscript trace.
7158
7159 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7160 clipboard is unavailable. Set dst to NULL if it doesn't point to
7161 malloc'ed data.
7162 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7163 passing random values to xfree.
7164
7165 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7166 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7167
71682008-08-29 Jason Rumney <jasonr@gnu.org>
7169
7170 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7171
71722008-08-29 Eli Zaretskii <eliz@gnu.org>
7173
7174 * composite.c (fill_gstring_body): Avoid compiler warnings.
7175
7176 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7177 LGLYPH_SET_CODE to avoid compiler warnings.
7178
2ae37cf0 7179 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7180
7181 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7182
7183 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7184 LGLYPH_SET_CODE.
7185
71862008-08-29 Kenichi Handa <handa@m17n.org>
7187
7188 * fileio.c (report_file_error): Don't downcase the first character
7189 of errstring if it is still unibyte.
7190
71912008-08-29 Kenichi Handa <handa@m17n.org>
7192
7193 These changes are to re-implement the automatic composition so
7194 that it doesn't use text properties.
7195
7196 * Makefile.in (ftfont.o): Depend on composite.h.
7197 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7198
7199 * character.h (Vunicode_category_table): Extern it.
7200
7201 * character.c (Vunicode_category_table): New variable.
7202 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7203
7204 * chartab.c (optimize_sub_char_table): Perform more greedy
7205 optimization.
7206
b8ff72fa
SM
7207 * composite.h (enum composition_method):
7208 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7209 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7210 (Vcomposition_function_table): Extern it.
7211 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7212 (composition_gstring_put_cache, composition_gstring_from_id)
7213 (composition_gstring_p, composition_gstring_width)
7214 (composition_compute_stop_pos, composition_reseat_it)
7215 (composition_update_it, composition_adjust_point): Extern them.
7216 (Fcomposition_get_gstring): EXFUN it.
7217
d66c0241 7218 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7219 (Vcomposition_function_table)
7220 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7221 (gstring_hash_table, gstring_work, gstring_work_headers):
7222 New variables.
aac0c6e3
MR
7223 (gstring_lookup_cache, composition_gstring_put_cache)
7224 (composition_gstring_from_id, composition_gstring_p)
7225 (composition_gstring_width, fill_gstring_header)
7226 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7227 (composition_reseat_it, composition_update_it)
b8ff72fa 7228 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7229 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7230 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7231 Defsubr composition_get_gstring.
aac0c6e3
MR
7232
7233 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7234 cmp_id.
7235 (struct glyph_string): Delete the member gidx. New members
7236 cmp_id, cmp_from, and cmp_to.
7237 (enum it_method): Delete GET_FROM_COMPOSITION.
7238 (struct composition_it): New struct.
7239 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7240 Delete c, len, cmp_id, cmp_len in u.comp.
7241
7242 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7243 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7244 (enum lglyph_indices): Likewise.
b8ff72fa 7245 (font_range): Adjust extern.
aac0c6e3
MR
7246 (font_fill_lglyph_metrics): Extern it.
7247
7248 * font.c (QCf): New variable.
7249 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7250 (font_prepare_composition): Delete this function.
7251 (font_range): Type and arguments changed.
7252 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7253 (font_fill_lglyph_metrics): New function.
b8ff72fa 7254 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7255 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7256 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7257 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7258
7259 * fontset.h (font_for_char): Extern it.
7260
7261 * fontset.c (font_for_char): New function.
7262
7263 * ftfont.c: Include composite.h.
7264 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7265 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7266
7267 * indent.c: Include composite.h and dispextern.h.
7268 (check_composition): Delete this function.
7269 (scan_for_column): Handle composition by
7270 composition_compute_stop_pos, composition_reseat_it, and
7271 composition_update_it.
7272 (compute_motion): Likewise.
7273 (Fvertical_motion): Fix checking of composition.
7274
7275 * keyboard.c (adjust_point_for_property): Check composition by
7276 composition_adjust_point.
7277
b8ff72fa 7278 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7279 struct glyph_string.
7280
b8ff72fa
SM
7281 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7282 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7283 struct glyph.
7284 (produce_composite_glyph): Likewise.
7285
b8ff72fa
SM
7286 * w32term.c (x_draw_composite_glyph_string_foreground):
7287 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7288 (x_draw_glyph_string): Likewise.
7289
7290 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7291 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7292
7293 * xdisp.c: Include font.h.
7294 (it_props): Delete the entry for Qauto_composed.
7295 (init_iterator): Initialize it->cmp_it.id to -1.
7296 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7297 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7298 (handle_auto_composed_prop): Delete it.
7299 (handle_composition_prop): Handle only static composition.
7300 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7301 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7302 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7303 (pop_it): Likewise.
7304 (get_next_element): Delete next_element_from_composition.
7305 (CHAR_COMPOSED_P): New macro.
7306 (get_next_display_element): For automatic composition, get a face
7307 from the font in the glyph-string.
7308 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7309 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7310 (next_element_from_string): Check if the character at the current
7311 position is composed by CHAR_COMPOSED_P.
7312 (next_element_from_buffer): Likewise.
d66c0241
JB
7313 (next_element_from_composition): Adjust for the change of struct it.
7314 Update it->cmp_it.
b8ff72fa
SM
7315 (dump_glyph): Adjust for the change of struct glyph.
7316 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7317 it and struct glyph. Don't handle automatic composition here.
7318 (fill_gstring_glyph_string): New function.
7319 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7320 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7321 (BUILD_GSTRING_GLYPH_STRING): New macro.
7322 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7323 automatic composition.
b8ff72fa 7324 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7325 struct glyph.
b8ff72fa 7326 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7327
b8ff72fa 7328 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7329 the change of struct glyph_string.
7330 (x_draw_glyph_string): Likewise.
7331
73322008-08-29 Glenn Morris <rgm@gnu.org>
7333
7334 * buffer.c (word-wrap): Doc fix.
7335 * xdisp.c (truncate-partial-width-windows): Doc fix.
7336 Increase default to 50.
7337
73382008-08-29 Chong Yidong <cyd@stupidchicken.com>
7339
7340 * xdisp.c (update_tool_bar_unwind): New function.
7341 (update_tool_bar): Temporarily set selected frame before building
7342 tool-bar items.
7343
73442008-08-28 Michael Albinus <michael.albinus@gmx.de>
7345
7346 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7347 snprintf, respectively.
7348 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7349
73502008-08-28 Chong Yidong <cyd@stupidchicken.com>
7351
7352 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7353 LDFLAGS to GNUstep CC invocation.
7354
73552008-08-27 Chong Yidong <cyd@stupidchicken.com>
7356
7357 * indent.c (Fvertical_motion): Revert last change. Handle the
7358 general case where we are moving forward, and PT spans multiple
7359 screen lines.
7360
7361 * eval.c (find_handler_clause): Temporarily increase
7362 max-lisp-eval-depth while printing the backtrace buffer, to
7363 guarantee that help-mode code can run.
7364
73652008-08-27 Eli Zaretskii <eliz@gnu.org>
7366
7367 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7368 colors under -rv.
7369 (IT_set_frame_parameters): Don't swap foreground and background
7370 colors if `(reverse . t)' is present in the frame properties.
7371 (internal_terminal_init): Call init_frame_faces only for the
7372 initial frame.
7373
73742008-08-27 Andreas Schwab <schwab@suse.de>
7375
7376 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7377
73782008-08-27 Andreas Schwab <schwab@suse.de>
7379
7380 * search.c (search_buffer): Set char_base to zero only at the end.
7381
73822008-08-27 Kenichi Handa <handa@m17n.org>
7383
b8ff72fa 7384 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7385
73862008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7387
7388 * xterm.c (x_term_init): Temporarily hide the partially
7389 initialized terminal while calling vendor-specific-keysyms.
7390
73912008-08-26 Eli Zaretskii <eliz@gnu.org>
7392
7393 * msdos.c (internal_terminal_init): Most initializations done only
7394 once, especially initial_screen_colors[] and termscript open.
7395
73962008-08-26 Chong Yidong <cyd@stupidchicken.com>
7397
7398 * eval.c (Fcondition_case): Doc fix.
7399
7400 * widgetprv.h (EmacsFramePart): Change font member to the new font
7401 struct.
7402
7403 * widget.c: Include character.h and font.h for XSETFONT.
7404 (setup_frame_gcs): Compute X font id from font struct, just once.
7405
74062008-08-26 Eli Zaretskii <eliz@gnu.org>
7407
7408 * term.c (get_named_tty): Fix last change.
7409
74102008-08-26 Chong Yidong <cyd@stupidchicken.com>
7411
7412 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7413 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7414
74152008-08-25 Eli Zaretskii <eliz@gnu.org>
7416
7417 * frame.c (do_switch_frame): Mark previously displayed frame as
7418 obscured for FRAME_MSDOS_P frames as well.
7419
74202008-08-24 Eli Zaretskii <eliz@gnu.org>
7421
7422 * frame.c (make_terminal_frame): Initialize f->terminal,
7423 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7424 Set the top frame to newly created frame.
7425 (Fmake_terminal_frame): Reuse the_only_display_info.
7426
7427 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7428 estimating available memory.
7429
b97439ce 74302008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7431
7432 * nsterm.m (ns_draw_window_cursor): Don't call
7433 NSDisableScreenUpdates and NSEnableScreenUpdates on
7434 non-NS_IMPL_COCOA systems.
7435
74362008-08-23 Andreas Schwab <schwab@suse.de>
7437
7438 * process.c (procfs_system_process_attributes): Fix use of
7439 uninitialized variables.
7440
74412008-08-23 Eli Zaretskii <eliz@gnu.org>
7442
7443 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7444
7445 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7446 calling tty-set-up-initial-frame-faces.
7447
b8ff72fa
SM
7448 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7449 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7450
7451 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7452 addition to output_termcap.
7453
7454 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7455
7456 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7457 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7458 highlight.
7459
7460 * process.c [!subprocesses]: Define QCname.
7461 (syms_of_process): Intern and staticpro it.
7462
7463 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7464 Adjust for changes in encoding/decoding routines.
7465 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7466 encode_coding and decode_coding.
7467
b8ff72fa 7468 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7469
7470 * dosfns.c: Include frame.h before termhooks.h.
7471 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7472 variable termscript.
7473
7474 * s/msdos.h (USER_FULL_NAME): Define.
7475 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7476
7477 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7478 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7479 pw->pw_gecos.
7480
7481 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7482 SELECTED_FRAME as additional (1st) argument.
7483 (tty_read_avail_input): Handle output_msdos_raw in
7484 addition to output_termcap.
7485
7486 * msdos.c: Include frame.h before termhooks.h.
7487 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7488 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7489 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7490 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7491 (IT_set_terminal_modes, IT_reset_terminal_modes)
7492 (IT_set_frame_parameters): Use tty->termscript instead of a global
7493 variable termscript.
7494 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7495 global variable terminal_coding. Don't refer to
7496 Vnonascii_translation_table.
7497 (internal_terminal_init): Set Vwindow_system in current_kboard.
7498 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7499 Announce date and time of session start, if termscript is open.
7500 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7501 term.c:init_tty). Open termscript only of not already open.
7502 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7503 here instead of dos_ttraw. Don't initialize display if this is an
7504 initial tty. Don't set FRAME_FONT.
7505 (Vwindow_system_version): Bump to 23.
7506 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7507 is available, set up mouse_position_hook.
7508 (dos_ttraw, IT_set_terminal_modes): If called with initial
7509 terminal, do nothing.
7510 (IT_set_frame_parameters): Handle the Qtty_type frame
7511 parameter by calling internal_terminal_init.
7512 (dos_set_window_size, show_mouse_face)
7513 (clear_mouse_face, IT_note_mode_line_highlight)
7514 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7515 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7516 (initialize_msdos_display): New function.
7517 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7518 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7519 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7520 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7521 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7522 (request_sigio, unrequest_sigio): Don't define, now defined on
7523 sysdep.c.
7524 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7525
7526 * term.c [MSDOS]: Include msdos.h.
7527 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7528 conditional to DOS_NT. Allow only one call to this function in a
7529 session. Don't allocate a new struct tty_display_info; instead,
7530 reuse the_only_display_info. Call get_tty_size to get screen
7531 dimensions. Call init_baud_rate to set bad_rate.
7532 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7533 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7534 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7535 (get_tty_terminal, get_named_tty, Ftty_type)
7536 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7537 output_termcap.
b8ff72fa
SM
7538 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7539 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7540 only when subprocesses are supported.
aac0c6e3
MR
7541
7542 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7543 f->output_data.x.
7544 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7545 terminal devices.
7546
5582fbc7 7547 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7548 x_output.
7549 (FRAME_FONT): Use output_data.tty.
7550 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7551 (struct x_display_info): Rename from display_info. Update all users in
7552 msdos.c.
aac0c6e3 7553 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7554 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7555 (dos_ttraw): Update prototype.
7556
7557 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7558 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7559
75602008-08-23 Jason Rumney <jasonr@gnu.org>
7561
7562 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7563 (fn_TIFFSetDirectory): New library function used.
7564 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7565 (tiff_load): Use :index to select among multiple images. Set count
7566 property when multiple images exist.
7567 (gif_format): Use :index, not :image.
7568
75692008-08-23 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * xdisp.c (try_scrolling): Check INT_MAX instead of
7572 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7573 to obtain INT_MAX.
7574
75752008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7576
7577 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7578
75792008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7580
7581 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7582 GNUstep library location.
7583
75842008-08-21 Chong Yidong <cyd@stupidchicken.com>
7585
7586 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7587 before using it.
7588
7589 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7590
75912008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7592
7593 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7594 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7595 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7596 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7597 (EmacsApp-cursor_blink_handler): Remove declaration.
7598 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7599 match 01 Feb 2008 changes in xterm.c.
7600 (ns_read_socket): Add cast to avoid warning.
7601 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7602 GNUstep.
7603
76042008-08-20 Chong Yidong <cyd@stupidchicken.com>
7605
7606 * xselect.c (x_get_foreign_selection): Return nil if desired
7607 selection could not be obtained, instead of signalling an error.
7608
76092008-08-20 David Reitter <david.reitter@gmail.com>
7610
7611 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7612 * nsterm.m: Remove ns-specific code for cursor blinking.
7613 (ns_draw_window_cursor): Clear cursor properly rather than
7614 redrawing the area. Respect width of bar cursors.
7615 These changes enable the use of generic blink-cursor-mode and
7616 generic cursor types in NS and support smooth cursor movements (do
7617 not blink off after command).
7618 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7619 Nextstep, too.
7620
76212008-08-19 Kenichi Handa <handa@m17n.org>
7622
7623 * font.c (Vfont_log_deferred): New variable.
7624 (font_add_log): Check Vfont_log_deferred.
7625 (font_deferred_log): New function.
7626
7627 * font.h (font_deferred_log): Extern it.
7628
7629 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7630 for sorting.
7631 (face_for_char): Use deferred log.
7632
76332008-08-18 Kenichi Handa <handa@m17n.org>
7634
7635 * fontset.c (face_for_char): Add font log.
7636
7637 * font.c (font_add_log): Add the font properties :script, :lang,
7638 and :otf in the log.
7639
76402008-08-17 Chong Yidong <cyd@stupidchicken.com>
7641
7642 * xdisp.c: Remove dead code.
7643 (handle_invisible_prop, next_overlay_string): Defer call to
7644 setup_for_ellipsis.
7645 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7646
76472008-08-15 Chong Yidong <cyd@stupidchicken.com>
7648
7649 * xfaces.c (lookup_derived_face): Properly handle possible zero
7650 return value of get_lface_attributes.
7651 (merge_faces): Don't tell lookup_derived_face to signal an error
7652 if face is not found.
7653
7654 * dired.c (Fdirectory_files): Doc fix.
7655
7656 * process.c (make_process): Initialize kill_without_query struct
7657 member.
7658
76592008-08-15 Eli Zaretskii <eliz@gnu.org>
7660
7661 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7662 Alternative calculation of totphys for Visual Studio 6.
7663
7664 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7665
7666 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7667 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7668 All users changed.
7669 (stat): Only root directory passed to GetDriveType. Allow RAM
7670 disk as well as local fixed disk when w32-get-true-file-attributes
7671 is set to `local'.
7672 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7673 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7674 (w32_cached_id, w32_add_to_cache): New functions.
7675 (get_name_and_id): Look account names in the cache before calling
7676 lookup_account_sid.
7677 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7678 New initialization flags.
7679 (globals_of_w32): Initialize them to zero.
7680 (w32_system_process_attributes): Use w32_cached_id and
7681 w32_add_to_cache.
7682
76832008-08-14 Lawrence Mitchell <wence@gmx.li>
7684
7685 * lread.c (Fread_char, Fread_char_exclusive): If no character
7686 event is read before timeout is reached, return nil, rather than
7687 converting to a number.
7688
76892008-08-14 Chong Yidong <cyd@stupidchicken.com>
7690
7691 * fns.c (use_dialog_box): Doc fix.
7692
7693 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7694 on OS X.
7695
76962008-08-13 Chong Yidong <cyd@stupidchicken.com>
7697
7698 * frame.c (Qns_parse_geometry): New var.
7699 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7700
77012008-08-11 Chong Yidong <cyd@stupidchicken.com>
7702
7703 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7704 space character in calculating tabs.
7705
77062008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7707
7708 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7709
77102008-08-10 Glenn Morris <rgm@gnu.org>
7711
7712 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7713 silence gcc "limited range of data type" warnings in some
7714 make_fixnum_or_float calls.
7715
77162008-08-09 Eli Zaretskii <eliz@gnu.org>
7717
7718 * w32.c (w32_system_process_attributes): If the process does not
7719 exist, return nil.
7720
7721 * w32.c: Include thelp32.h, psapi.h and coding.h.
7722 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7723 declarations.
7724 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7725 (Process32Next_Proc): New typedefs.
7726 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7727 (g_b_init_process32_next, g_b_init_open_thread_token)
7728 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7729 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7730 (g_b_init_get_process_working_set_size)
7731 (g_b_init_global_memory_status_ex): New static variables.
7732 (globals_of_w32): Initialize them.
7733 (create_toolhelp32_snapshot, process32_first, process32_next)
7734 (open_thread_token, impersonate_self, revert_to_self)
7735 (get_process_memory_info, get_process_working_set_size)
7736 (global_memory_status, global_memory_status_ex): New wrapper
7737 functions.
7738 (w32_list_system_processes, w32_system_process_attributes)
7739 (enable_privilege, restore_privilege, ltime, process_times):
7740 New functions.
7741 (convert_time_raw): New function.
7742 (convert_time): Remove conversion of FILETIME into time in 100
7743 nsec units, call convert_time_raw instead.
7744
7745 * process.h (w32_list_system_processes, w32_system_process_attributes):
7746 Add prototypes.
7747 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7748 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7749 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7750 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7751
7752 * process.c (Fsystem_process_attributes): Doc fix.
7753
77542008-08-08 Chong Yidong <cyd@stupidchicken.com>
7755
7756 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7757 a continued multi-char glyph; if so, advance to the actual glyph.
7758
77592008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7760
7761 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7762
7763 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7764 (.m.o): Use it.
7765 * config.in: Regenerate.
7766
77672008-08-07 Chong Yidong <cyd@stupidchicken.com>
7768
7769 * xdisp.c (redisplay_window): Revert last change.
7770 (try_window): Check bottom scroll margin too.
7771
77722008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7773
7774 * config.in: Regenerate.
7775
7776 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7777 -list-load-path-shadows'.
7778 (nsgui.h): Reduce number of things depending on it.
7779
77802008-08-06 Chong Yidong <cyd@stupidchicken.com>
7781
7782 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7783 instead of window-end which does the wrong thing at eob.
7784 (try_cursor_movement): Minor optimization.
7785 (redisplay_window): If scroll margin is defined, don't assume
7786 window doesn't need scrolling.
7787
77882008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7789
7790 * config.in: Regenerate.
7791
7792 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7793 (mostlyclean): Don't delete *.d under NS.
7794
7795 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7796
77972008-08-06 Kenichi Handa <handa@m17n.org>
7798
7799 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7800
78012008-08-06 Andreas Schwab <schwab@suse.de>
7802
7803 * config.in: Regenerate.
7804
78052008-08-05 Chong Yidong <cyd@stupidchicken.com>
7806
7807 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7808 forcing a window start.
7809
7810 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7811 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7812
78132008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7814
7815 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7816 argument.
7817
78182008-08-05 Juanma Barranquero <lekktu@gmail.com>
7819
7820 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7821 <scroll-down-aggressively, before-change-functions>:
7822 <after-change-functions>: Reflow docstrings.
7823
78242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7825 Ken Raeburn <raeburn@gnu.org>
7826
7827 Dock menu customization, based on a patch by Ken Raeburn, plus some
7828 other fixes.
7829 * nsmenu.m (dockMenu): New variable.
7830 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7831
7832 * nsterm.h (dockMenu): Declare.
7833
7834 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7835 (ns_term_init): Initialize dockMenu.
7836 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7837 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7838 left.
7839
7840 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7841
78422008-08-04 Chong Yidong <cyd@stupidchicken.com>
7843
7844 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7845
7846 * config.in: Regenerate.
7847
78482008-08-04 Seiji Zenitani <zenitani@mac.com>
7849
7850 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7851
78522008-08-04 Chong Yidong <cyd@stupidchicken.com>
7853
7854 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7855
78562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7857
7858 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7859
7860 * keyboard.h: Comment an #endif.
7861
7862 * lisp.h (have_menus_p): Adjust comment.
7863
7864 * menu.c (find_and_return_menu_selection): Fix comparison with
7865 client_data.
7866
7867 * nsmenu.m (popup_activated_flag): New variable.
7868 (popup_activated): New function.
7869 (menu-or-popup-active-p): New exported lisp definition.
7870 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7871 when popup done.
7872 (ns_popup_dialog): Set popup_activated_flag.
7873
7874 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7875 version for GNUstep (handled by conditional typedef in nsterm.m).
7876 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7877 in rgb.txt).
7878
7879 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7880
7881 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7882
7883 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7884
7885 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7886 shortcircuit if popup_activated like GTK and X toolkit.
7887
7888 * m/inter386.h: Change DARWIN to DARWIN_OS.
7889
7890 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7891 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7892 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7893 comment on NO_SOCK_SIGIO.
7894
78952008-08-03 Chong Yidong <cyd@stupidchicken.com>
7896
7897 * nsterm.m (windowDidResize): Remove stopModal call.
7898
78992008-08-03 Andreas Schwab <schwab@suse.de>
7900
7901 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7902 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7903
79042008-08-02 Chong Yidong <cyd@stupidchicken.com>
7905
7906 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7907 Don't use uninitialized pointer variable when using getrlimit.
7908
79092008-08-02 Jason Rumney <jasonr@gnu.org>
7910
7911 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7912
79132008-08-02 Eli Zaretskii <eliz@gnu.org>
7914
7915 * alloc.c (NSTATICS): Bump to 0x640.
7916
7917 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7918
7919 * lisp.h: Add prototype for directory_files_internal.
7920
7921 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7922 New functions.
7923 (syms_of_process): Defsubr them. Add initializations for various
7924 Q* symbols used in procfs_system_process_attributes.
7925 (procfs_list_system_processes, procfs_system_process_attributes)
7926 [HAVE_PROCFS]: New functions.
7927 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7928 (procfs_get_total_memory): New functions.
7929
79302008-08-01 Juanma Barranquero <lekktu@gmail.com>
7931
7932 * xfaces.c (Fx_load_color_file): Fix previous change;
7933 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7934
79352008-08-01 Michael Albinus <michael.albinus@gmx.de>
7936
7937 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7938
79392008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7940
7941 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7942
79432008-08-01 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7946
7947 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7948 define NSApplicationDelegateReplySuccess.
7949 (EmacsView -converstationIdentifier): Use long instead of
7950 NSInteger for GNUstep, since it doesn't have NSInteger.
7951
7952 * xmenu.c: Revert last change.
7953
7954 * keyboard.h: Fix last change.
7955
79562008-08-01 Juanma Barranquero <lekktu@gmail.com>
7957
7958 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7959 on Windows.
7960
79612008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7962
7963 Warning clearing and clean-up in NS port.
7964 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7965 Add prototypes.
7966 * nsgui.h (FACE_DEFAULT): Remove, unused.
7967 (XGCValues): Change colors to unsigned long.
7968 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7969 nsterm.m.
7970 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7971 (ns_list_fonts): Remove, unused.
7972 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7973 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7974 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7975 (nsfont_draw): Compare face colors to 0, not nil.
7976 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7977 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7978 (-addSubmenuWithTitle:): Use NSMenuItem class.
7979 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7980 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7981 (ns_clip_to_row): Make gc arg a BOOL.
7982 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7983 ns_clip_to_row() call.
7984 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7985 used). Cast FRAME_FONT assignments.
7986 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7987 (ns_string_to_lispmod): Change arg to const char.
7988 (ns_term_init): Use NSMenuItem class.
7989 (EmacsApp -openFile:): Move to different section of file.
7990 (EmacsApp -application:openFiles:): Don't return a value, call
7991 -replyToOpenOrPrint:.
7992 (EmacsView -keyDown:): Fix up cast.
7993 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7994 (EmacsView -menuDown:): Cast tag in call to
7995 find_and_call_menu_selection().
7996 (ns_list_fonts): Remove, unused.
7997 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7998 (ns_fontname_to_xlfd): Make static.
7999 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8000 Remove prototypes (now in keyboard.h).
8001 (next_menubar_widget_id): Remove, unused.
8002 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8003 Remove prototypes (now in keyboard.h).
8004 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8005
80062008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8007
8008 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8009 (floatfns.o): Depend on syssignal.h.
8010 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8011
8012 * systty.h: Fix previous change that removed BSD_TERMIOS.
8013 Add comments to #ifdefs.
8014
80152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8016
8017 * w32fns.c (w32-load-color-file): Remove.
8018 (x-open-connection): Use renamed Fx_load_color_file.
8019 * xfaces.c (x-load-color-file): Add.
8020 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8021 Emacs.clr.
8022 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8023
80242008-07-31 Michael Albinus <michael.albinus@gmx.de>
8025
8026 * dbusbind.c (Fdbus_call_method_asynchronously)
8027 (Fdbus_method_error_internal): New defuns.
8028 (xd_read_message): Handle also reply messages.
8029 (Vdbus_registered_functions_table): Extend docstring.
8030
80312008-07-31 Juanma Barranquero <lekktu@gmail.com>
8032
8033 * keyboard.c (gobble_input): Fix previous change.
8034
80352008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8036
8037 * bitmaps/README:
8038 * xfns.c:
8039 * termcap.c:
8040 * term.c:
8041 * syswait.h:
8042 * systty.h:
8043 * systime.h:
8044 * syssignal.h:
8045 * sysdep.c:
8046 * process.h:
8047 * process.c:
8048 * print.c:
8049 * ndir.h:
8050 * lread.c:
8051 * keyboard.c:
8052 * getpagesize.h:
8053 * floatfns.c:
8054 * fileio.c:
8055 * emacs.c:
8056 * doc.c:
8057 * dispnew.c:
8058 * dired.c:
8059 * data.c:
8060 * callproc.c:
8061 * buffer.c:
8062 * README:
8063 * Makefile.in:
8064 * s/template.h:
8065 * s/msdos.h:
8066 * m/vax.h: Remove VMS support.
8067 * s/vms.h:
8068 * vlimit.h:
8069 * uaf.h:
8070 * temacs.opt:
8071 * param.h:
8072 * ioctl.h: Remove file.
8073
80742008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8075
8076 * s/ms-w32.h (MULTI_KBOARD): Remove.
8077 * xterm.c:
8078 * xselect.c:
8079 * xfns.c:
8080 * window.c:
8081 * w32term.c:
8082 * w32fns.c:
8083 * terminal.c:
8084 * termhooks.h:
8085 * term.c:
8086 * sysdep.c:
8087 * keyboard.h:
8088 * keyboard.c:
8089 * frame.h:
8090 * frame.c:
8091 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8092 * config.in: Regenerate.
8093
80942008-07-30 Jason Rumney <jasonr@gnu.org>
8095
8096 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8097
8098 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8099 (w32font_open_internal): Get unicode version of textmetrics.
8100 Don't enable or disable glyph indices here.
8101 (w32font_open): Disable use of glyph indices.
8102
8103 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8104
81052008-07-30 Chong Yidong <cyd@stupidchicken.com>
8106
8107 * minibuf.c (Vread_buffer_function): Doc fix.
8108
81092008-07-30 John Paul Wallington <jpw@pobox.com>
8110
8111 * minibuf.c (read_buffer_completion_ignore_case): New var.
8112 (Fread_buffer): Use it.
8113
81142008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8115
8116 * systty.h (sensemode): Remove empty #if. Remove reference to
8117 BSD_TERMIOS, unused.
8118
8119 * sysdep.c: Remove reference to DGUX.
8120 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8121
8122 * config.in: Regenerate.
8123
81242008-07-30 Jason Rumney <jasonr@gnu.org>
8125
8126 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8127
81282008-07-29 Jason Rumney <jasonr@gnu.org>
8129
8130 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8131 is populated.
8132 (uniscribe_encode_char): Always use uniscribe.
8133 Avoid using context if cache is populated.
8134
81352008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8136
8137 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8138 open menu.
8139
8140 * gtkutil.c (menu_nav_ended): Remove.
8141 (create_menus): Remove signal connect for menu_nav_ended.
8142
81432008-07-28 Chong Yidong <cyd@stupidchicken.com>
8144
8145 * xdisp.c (redisplay_window): Check return value of
8146 compute_window_start_on_continuation_line before forcing a window
8147 start.
8148
81492008-07-28 Jason Rumney <jasonr@gnu.org>
8150
8151 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8152
8153 * w32term.c (w32_enable_unicode_output, cleartype_active):
8154 Remove obsolete display options.
8155 (x_draw_glyph_string_background): Don't use old cleartype_active
8156 workaround.
8157 (w32_initialize): Remove cleartype_active initialization.
8158 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8159
81602008-07-28 Andreas Schwab <schwab@suse.de>
8161
8162 * lisp.h (init_weak_hash_tables, syms_of_font)
8163 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8164 (remove_hash_entry): Don't declare.
8165 * eval.c (maybe_call_debugger): Make static and move before use.
8166 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8167 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8168 * xterm.h (x_set_frame_alpha): Declare.
8169
81702008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8171
8172 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8173 (create_menus): Connect selection-done to menu_nav_ended.
8174
81752008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8176
8177 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8178 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8179 parameter with read of 'alpha' one.
8180 (Qns_frame_parameter): Remove.
5582fbc7 8181 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8182 (next-selection-coding-system, Vselection_coding_system)
8183 (Vnext_selection_coding_system): Drop.
8184
81852008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8186
8187 * nsfns.m (do-applescript, do_applescript): Rename to
8188 ns-do-applescript, ns_do_applescript, and move within file.
8189
81902008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8191
8192 Remove support for Mac Carbon.
8193 * mactoolbox.c:
8194 * macterm.h:
8195 * macterm.c:
8196 * macselect.c:
8197 * macmenu.c:
8198 * macgui.h:
8199 * macfns.c:
8200 * mac.c: Remove file.
8201 * s/darwin.h:
8202 * m/intel386.h:
8203 * xfaces.c:
8204 * xdisp.c:
8205 * window.c:
8206 * tparam.c:
8207 * termhooks.h:
8208 * termcap.c:
8209 * term.c:
8210 * syssignal.h:
8211 * sysselect.h:
8212 * sysdep.c:
8213 * process.c:
8214 * lread.c:
8215 * lisp.h:
8216 * keyboard.c:
8217 * image.c:
8218 * fringe.c:
8219 * frame.h:
8220 * frame.c:
8221 * fontset.c:
8222 * font.h:
8223 * font.c:
8224 * fns.c:
8225 * fileio.c:
8226 * emacs.c:
8227 * dispnew.c:
8228 * dispextern.h:
8229 * config.in:
8230 * atimer.c:
2ae37cf0 8231 * Makefile.in: Remove code for Carbon.
aac0c6e3 8232
f0131492 82332008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8234
8235 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8236
82372008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8238
8239 * macterm.h (kCGBitmapByteOrder32Host): New define for
8240 non-universal SDKs.
8241
8242 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8243 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8244
8245 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8246 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8247
82482008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8249
8250 * w32inevt.c: Include dispextern.h.
8251
82522008-07-26 Andreas Schwab <schwab@suse.de>
8253
8254 * print.c (print_object): Fix off-by-one in last change.
8255
82562008-07-25 Juanma Barranquero <lekktu@gmail.com>
8257
8258 * term.c (syms_of_term): Don't initialize default_orig_pair,
8259 default_set_foreground and default_set_background on Windows.
8260
82612008-07-25 Jason Rumney <jasonr@gnu.org>
8262
8263 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8264 ScriptItemize. Clean up return value checking. Remove unused
8265 variables.
8266 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8267 shaping engine.
8268
8269 * w32font.c (w32font_has_char): Handle the case where we can't
8270 determine the script for a character.
8271
82722008-07-25 Chong Yidong <cyd@stupidchicken.com>
8273
8274 * term.c (syms_of_term): Initialize default_orig_pair,
8275 default_set_foreground, and default_set_background.
8276
8277 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8278 clash (bug#86).
8279 (getloadavg): Callers changed.
8280
8281 * image.c (svg_load_image): Fix last change.
8282 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8283 image size is valid. Use g_object_unref instead of deprecated
8284 rsvg_handle_free to free rsvg handle.
8285 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8286
82872008-07-25 Jason Rumney <jasonr@gnu.org>
8288
8289 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8290 surrogates before looking up glyph index.
8291 (w32font_text_extents): Encode as surrogates if falling back to
8292 functions that need UTF-16 wide chars.
8293
8294 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8295 BMP as surrogates before looking up glyph index.
8296
82972008-07-25 Chong Yidong <cyd@stupidchicken.com>
8298
8299 * image.c (svg_load_image): Check for failure in return value of
8300 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8301
83022008-07-25 Jason Rumney <jasonr@gnu.org>
8303
8304 * w32font.c (Fx_select_font): Reverse sense of second arg.
8305
83062008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8307
8308 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8309 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8310
8311 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8312 (PURESIZE): Use it.
8313
83142008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8315
8316 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8317 * m/alpha.h (TEXT_END):
8318 * m/ibmrs6000.h (TEXT_END):
8319 * m/macppc.h (TEXT_END):
8320 * s/darwin.h (TEXT_END):
8321 * s/msdos.h (TEXT_END): Remove, unused.
8322 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8323 * s/cygwin.h: Remove comment.
8324
8325 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8326 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8327 * m/intel386.h (DOT_GLOBAL_START):
8328 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8329 (USG): Remove, file not used on USG platforms.
8330
8331 * Makefile.in (HAVE_X11): Remove empty #else.
8332
83332008-07-24 Andreas Schwab <schwab@suse.de>
8334
8335 * fileio.c (Finsert_file_contents): Properly adjust undo list
8336 after format conversion.
8337
83382008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8339
8340 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8341 (menu_nav_ended): Remove.
8342 (create_menus): Remove signal connect for menu_nav_ended.
8343 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8344 create_menus.
8345 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8346
83472008-07-23 Jason Rumney <jasonr@gnu.org>
8348
8349 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8350 with opened font.
8351 (w32font_open): Set font type to gdi.
8352
8353 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8354
83552008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8356
8357 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8358 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8359 defines it.
8360 * unexec.c (ADDR_CORRECT): Define unconditionally.
8361
8362 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8363
8364 * unexec.c: Remove code depending on !COFF and USG, the file is
8365 not used for such systems.
8366
8367 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8368 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8369 (LD_SWITCH_SYSTEM_1): Remove, update users.
8370
8371 * s/darwin.h (DATA_END):
8372 * m/intel386.h (DATA_END):
8373 * m/ibmrs6000.h (DATA_END):
8374 * m/alpha.h (DATA_END): Remove, unused.
8375
8376 * config.in: Regenerate.
8377 * s/ms-w32.h (subprocesses): Define unconditionally.
8378 * s/template.h (subprocesses): Update comment.
8379 * s/vms.h (subprocesses):
8380 * s/usg5-4.h (subprocesses):
8381 * s/hpux10-20.h (subprocesses):
8382 * s/gnu-linux.h (subprocesses):
8383 * s/cygwin.h (subprocesses):
8384 * s/bsd-common.h (subprocesses):
8385 * s/aix4-2.h (subprocesses):
8386 * s/darwin.h (subprocesses): Do not define, defined by default now.
8387
8388 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8389 Remove all references.
8390 (temacs): Add GNUstep specific ld flags.
8391
8392 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8393 similarly to what X does.
8394
83952008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8396
8397 * nsfns.m (x-list-fonts): Remove.
8398 (syms_of_nsfns): Drop the x-list-fonts declaration.
8399 * nsterm.m: Get rid of remaining "//" comments.
8400
84012008-07-22 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8404
8405 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8406 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8407 (Fns_own_selection_internal, Fx_disown_selection_internal)
8408 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8409
8410 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8411 ... */' style of docstrings. Doc fixes.
8412
84132008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8414
8415 * terminfo.c (UP, BC, PC): Undo previous change.
8416
8417 * nsfns.m: Rename ns prefixed functions/variables to the
8418 corresponding x versions. Update references.
8419
84202008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8421
8422 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8423
84242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8425
8426 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8427 Remove forwarding functions.
8428 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8429 non-static.
8430 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8431 non-static.
8432 (ns_frame_parm_handlers): Use the new names.
8433 (syms_of_nsfns): Move to the end of file.
8434
8435 * nsterm.m (syms_of_nsterm): Move to the end of file.
8436
8437 * dispnew.c (init_display): Remove code for X10.
8438
84392008-07-22 Jason Rumney <jasonr@gnu.org>
8440
8441 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8442 bare drive.
8443
84442008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8445
8446 * nsterm.m (syms_of_nsterm): Remove debugging println.
8447
84482008-07-22 David Reitter <david.reitter@gmail.com>
8449
8450 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8451 Carbon implementation of the same functionality: execute arbitrary
8452 AppleScript code.
8453
84542008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8455
8456 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8457 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8458 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8459 (Fx_display_mm_height, Fx_display_mm_width)
8460 (Fx_display_backing_store, Fx_display_visual_class)
8461 (Fx_display_save_under, Fx_open_connection)
8462 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8463 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8464 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8465 (Fx_display_pixel_width, Fx_display_pixel_height)
8466 (Fx_display_usable_bounds, Fx_display_planes)
8467 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8468 ... */' style of docstrings.
8469
84702008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8471
8472 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8473 on this platform.
8474 (mips):
8475 * m/iris4d.h (mips): Do not define.
8476 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8477
8478 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8479
8480 * image.c:
8481 * nsfns.m:
8482 * nsselect.m:
8483 * nsterm.h:
8484 * nsterm.m: Rename ns prefixed functions/variables to the
8485 corresponding x versions. Update references.
8486
8487 * m/ibms390x.h (NO_REMAP): Do not undefine.
8488
8489 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8490
84912008-07-21 Chong Yidong <cyd@stupidchicken.com>
8492
8493 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8494 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8495 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8496 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8497 (Fns_display_mm_height, Fns_display_mm_width)
8498 (Fns_display_backing_store, Fns_display_visual_class)
8499 (Fns_display_save_under, Fns_open_connection)
8500 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8501 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8502 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8503 (Fns_display_pixel_width, Fns_display_pixel_height)
8504 (Fns_display_usable_bounds, Fx_display_planes)
8505 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8506
85072008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8508
8509 * print.c (print_object): Check print_depth before searching for
8510 circularities.
8511
85122008-07-21 Michael Albinus <michael.albinus@gmx.de>
8513
8514 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8515 only sprintf.
8516
85172008-07-21 Kenichi Handa <handa@m17n.org>
8518
8519 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8520
85212008-07-20 Andreas Schwab <schwab@suse.de>
8522
8523 * syntax.c (find_start_pos, find_start_value)
8524 (find_start_value_byte, find_start_begv, find_defun_start)
8525 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8526
85272008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8528
8529 * s/sol2-3.h: Insert contents of s/sol2.h.
8530 (LD_SWITCH_SYSTEM): Remove redundant definition.
8531 * s/sol2.h: Remove, unused.
8532
85332008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8536
85372008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8538
8539 * Makefile.in (ns_appdir): Fix typo in find command.
8540
85412008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8542
8543 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8544
8545 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8546 added not supported anymore.
8547
8548 * s/usg5-4-2.h (LIBS_SYSTEM):
8549 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8550
8551 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8552 * s/lynxos.h (GETPGRP_NO_ARG):
8553 * s/hpux10-20.h (NO_SIOCTL_H):
8554 * s/gnu.h (GETPGRP_NO_ARG):
8555 * s/gnu-linux.h (NO_SIOCTL_H):
8556 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8557 * s/cygwin.h (GETPGRP_NO_ARG):
8558 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8559 (C_DEBUG_SWITCH): Remove duplicate definition.
8560
8561 * m/ibms390.h: Remove boilerplate comments.
8562
8563 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8564
8565 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8566 (wait_reading_process_output): Remove code for SunOS, platform not
8567 supported anymore. Use SOLARIS2 instead of sun.
8568
85692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8570
8571 * font.c (font_open_by_name): Under NS, default lface height to zero.
8572 (font_open_for_lface): Under NS, set size based on frame fontsize.
8573 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8574 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8575
85762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8577
8578 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8579 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8580 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8581 YES/NO.
8582 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8583 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8584 * Makefile.in (clean): Clear out build destination dir.
8585
85862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8587
8588 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8589 xterm, xselect.
8590 * lisp.h: Remove declaration of hash_remove.
8591 * nsgui.h: Remove redefinitions of hash_remove.
8592 * fns.c (hash_remove): Rename to hash_remove_from_table.
8593
85942008-07-19 Seiji Zenitani <zenitani@mac.com>
8595
8596 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8597 strdup() the family UTF8String before modifying it.
8598
85992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8600
8601 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8602 NS_FACE_BACKGROUND with 0 instead of nil.
8603 * nsfont.m (nsfont_draw): Same.
8604
86052008-07-19 Chong Yidong <cyd@stupidchicken.com>
8606
8607 * nsfns.m (ns_set_background_color): Fix crash.
8608
86092008-07-18 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8612
86132008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8614
8615 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8616
86172008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8618
8619 * gtkutil.c: Include <config.h> instead of "config.h".
8620
8621 * lisp.h (Foverlay_buffer): Add EXFUN.
8622
8623 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8624 child process to complete child_setup. Undo 2005-09-21 change.
8625
8626 * s/darwin.h: Mention setsid after vfork.
8627
86282008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8629
8630 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8631 Depend on macgui.h.
8632
8633 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8634 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8635
8636 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8637 and f19.
8638 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8639
8640 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8641 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8642 Remove enumerators.
8643
8644 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8645 Check if FACE_FROM_ID returns NULL.
8646
86472008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8648
8649 * w32inevt.c (change_frame_size): Remove extern declaration.
8650 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8651 change_frame_size.
8652
86532008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8654
8655 * getloadavg.c: Revert last change (2008-07-15).
8656
86572008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8658
8659 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8660 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8661 from configure.
8662
86632008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8664
8665 * s/sol2.h:
8666 * s/sol2-4.h: Reorganize conditionals.
8667
8668 * ecrt0.c: Remove code depending on m68000, not used anymore.
8669
8670 * fns.c (hash_remove): Make static.
8671 * lisp.h (hash_remove): Don't prototype.
8672
8673 * m/ibmrs6000.h:
8674 * m/ibms390x.h:
8675 * m/macppc.h: Remove boilerplate comments.
8676
8677 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8678 Solaris, which does not need them.
8679
8680 * m/vax.h: Remove comments about unsupported systems.
8681
8682 * s/darwin.h: Reorganize ifdefs.
8683
86842008-07-17 Andreas Schwab <schwab@suse.de>
8685
8686 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8687
86882008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8689
8690 Use SDATA. Follow coding convention of placing operators at
8691 beginning of next line rather than end of previous line, and placing
8692 spaces around infix operators.
8693
8694 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8695 in case it was defined already.
8696 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8697 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8698 ns_default.
8699 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8700 Lisp_Objects.
8701 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8702 (ns_defined_color, ns_color_to_lisp): Declare.
8703 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8704 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8705 it's accepted even with USE_LISP_UNION_TYPE.
8706 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8707 (update_frame_tool_bar): Remove apparently obsolete tests for
8708 non-integerness of f->tool_bar_lines.
8709 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8710 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8711 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8712 (nsfont_open): Don't confuse NULL for Qnil.
8713 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8714 * menu.h (find_and_call_menu_selection):
8715 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8716 (find_and_return_menu_selection): Always return something.
8717 * frame.h: Include dispextern.h for Display_Info.
8718 (display_x_get_resource): Declare.
8719
87202008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8721
8722 * syntax.c: Remove stdio.h include accidentally introduced in
8723 Emacs.app commit.
8724 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8725 NS_IMPL_COCOA.
8726 * keyboard.c (handle_async_input, input_available_signal): Remove
8727 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8728
87292008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8730
8731 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8732 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8733 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8734 Use SDATA.
8735
8736 * keymap.c: Remove all NS-specific code.
8737 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8738 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8739 where_is_preferred_modifier, return a different value depending on how
8740 preferred is the binding.
8741 (where_is_internal): Adjust accordingly.
8742 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8743 Adjust to new preferred_sequence_p.
8744 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8745 * keyboard.c (parse_solitary_modifier): Not static any more.
8746 * keyboard.h (parse_solitary_modifier): Declare.
8747
87482008-07-16 Andreas Schwab <schwab@suse.de>
8749
8750 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8751 of easymenu.
8752
87532008-07-16 Chong Yidong <cyd@stupidchicken.com>
8754
8755 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8756 that we don't move off the line.
8757
87582008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8759
8760 * keyboard.c (Qsuper): Remove.
8761 (parse_menu_item): Don't call where_is_internal specially for NS.
8762
87632008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8764
8765 * s/gnu-linux.h: Remove boilerplate comments.
8766
8767 * m/alpha.h (__ELF__): Consolidate conditions.
8768
8769 * m/m68k.h (linux): Use GNU_LINUX instead.
8770 Remove boilerplate comments.
8771
8772 * m/intel386.h: Undo refactoring from previous change.
8773 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8774 too, remove dead code.
8775 (linux): Use GNU_LINUX instead.
8776
87772008-07-16 Jason Rumney <jasonr@gnu.org>
8778
8779 * w32gui.h: Repeat 26 June changes lost by last change.
8780
87812008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8782
8783 * systty.h: Remove code for Aix on 386, unsupported platform.
8784
8785 * s/ms-w32.h: Remove boilerplate comments.
8786 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8787
8788 * s/gnu-linux.h (TERM): Remove support.
8789 (HAVE_SYSVIPC): Remove, unused.
8790 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8791 for this system.
8792
8793 * process.c: Remove support for IRIS, unused.
8794 Remove support for TERM, not relevant anymore.
8795
8796 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8797 used with the definition.
8798
8799 * s/aix4-2.h (static): Do not undef.
8800
8801 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8802 only used on Aix.
8803 (HAVE_SYSVIPC): Remove, unused.
8804
8805 * m/hp800.h (CANNOT_DUMP): Do not undef.
8806
8807 * m/alpha.h: Fix comment.
8808
8809 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8810 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8811 used by this configuration.
8812 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8813 * unexec.c: Remove code depending on HPUX and
8814 USG_SHARED_LIBRARIES, not used with this file. Remove code
8815 depending on IRIS, unused. Remove if 0-ed code.
8816
8817 * s/template.h: Remove comments about static.
8818
8819 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8820 Remove if 0-ed code.
8821 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8822 were the same as the default.
8823 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8824 Remove boilerplate comments.
8825 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8826 (HAVE_SYSVIPC): Remove, unused.
8827 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8828
8829 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8830 Remove boilerplate comments.
8831 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8832 Remove boilerplate comments.
8833 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8834 Remove boilerplate comments.
8835 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8836
8837 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8838 USG systems which do not use DATA_SEG_BITS.
8839 Refactor code. Remove boilerplate comments.
8840
8841 * m/ibms390.h:
8842 * m/m68k.h:
8843 * s/bsd-common.h:
8844 * s/cygwin.h:
8845 * s/darwin.h:
8846 * s/freebsd.h:
8847 * s/gnu.h:
8848 * s/msdos.h: Remove boilerplate comments.
8849
8850 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8851 do not use this file.
aac0c6e3
MR
8852 (IRIS_4D): Remove, unused.
8853
8854 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8855 do not use this file.
aac0c6e3
MR
8856 (SIGN_EXTEND_CHAR):
8857 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8858 * unexmips.c: Remove file, unused.
8859
8860 * editfns.c (Fuser_full_name): Replace the only use of
8861 USER_FULL_NAME with its value.
8862 * config.in: Regenerate.
8863
88642008-07-16 David Reitter <david.reitter@gmail.com>
8865
8866 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8867 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8868
88692008-07-16 Glenn Morris <rgm@gnu.org>
8870
8871 * emacs.c (system-type): Doc fix.
8872
88732008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8874
8875 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8876 If the cache doesn't work, let's fix it, rather than work around it.
8877
88782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8879
8880 * Makefile.in: Correct additions for nsfont.o in last commit.
8881 * nsfont.m: New file (forgot last commit).
8882
88832008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8884
8885 * callproc.c (set_initial_environment): Initialize
8886 Vprocess_environment under CANNOT_DUMP (fixes crash when
8887 batch-compiling for bootstrap).
8888
88892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8890 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8891
8892 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8893 fix crash due to different init order.
8894
88952008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8896
8897 Changes and additions for NeXTstep windowing system (Cocoa and
8898 GNUstep) support.
8899
8900 * Makefile.in:
8901 * config.in: Support defines and build commands for NS port.
8902 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8903 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8904 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8905 windowing.
8906 (struct face): Add synth_ital field.
8907 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8908 (init_display): Initialize Vinitial_window_system to "ns" when so
8909 compiled.
8910 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8911 (display_arg): Use under NS.
8912 (main): Under NS, allocate autorelease pool and handle command line
8913 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8914 (standard_args): Add NS-specific args.
8915 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8916 * font.c (DEFAULT_ENCODING): New variable.
8917 (font_find_for_lface): Use it.
8918 (syms_of_font): Load syms_of_nsfont under NS.
8919 * font.h: Declare nsfont_driver when compiled under NS.
8920 * fontset.c: When compiling under NS, include nsterm.h.
8921 (fontset_from_font): Autoconstruct fontset under NS.
8922 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8923 symbol, document and use it.
8924 (do_switch_frame): When for_deletion under Cocoa, add
8925 Fraise_frame(Qnil).
8926 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8927 (x_get_arg): Allow "yes" and "no" as boolean values.
8928 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8929 Qright under Cocoa.
8930 (focus-follows-mouse): Default to 0 under NS.
8931 * frame.h (enum output_method): Add output_ns.
8932 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8933 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8934 (FRAME_WINDOW_P): NS-specific definition.
8935 * fringe.c (max_used_fringe_bitmap): Make public.
8936 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8937 (getloadavg): Use NeXT code under descendant OS's.
8938 * image.c (includes and header section, x_create_bitmap_from_data)
8939 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8940 (image_background_transparent, x_clear_image_1)
8941 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8942 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8943 (x_to_xcolors, x_from_xcolors, x_disable_image)
8944 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8945 other GUIs, including XPM support using code originally written for
8946 Carbon GUI.
8947 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8948 using NS API.
8949 (image_ascent): Use font metrics macros instead of direct struct field
8950 access.
8951 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8952 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8953 Also, handle NS as GTK for menu bar purposes.
8954 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8955 toolkit where they differ.
8956 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8957 use cachelist, still needed under NS.
8958 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8959 (struct widget_value): Define it here for menu.c.
8960 * keymap.c (includes): Include modifier internals.
8961 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8962 NS.
8963 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8964 support for preferring sequences using certain modifiers, specified by
8965 the FIRSTONLY argument.
8966 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8967 under NS GNUstep implementation.
8968 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8969 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8970 * menu.c: Include nsterm.h under NS.
8971 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8972 (free_menubar_widget_tree_value, update_submenu_strings)
8973 (find_and_call_menu_selection): Treat NS as X and NT.
8974 (find_and_return_menu_selection): New function, used for popup menus.
8975 * nsgui.h:
8976 * nsterm.h:
8977 * nsfns.m:
8978 * nsimage.m:
8979 * nsmenu.m:
8980 * nsselect.m:
8981 * nsterm.m: New files.
8982 * process.c (wait_reading_process_output): Under NS, call ns_select()
8983 instead of plain select().
8984 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8985 beginning of buffer.
8986 * sysselect.h (init_process): Rename when compiling under Cocoa to
8987 avoid name conflict.
8988 * termhooks.h (display_info): Add ns_display_info to union.
8989 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8990 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8991 COCOA environment.
8992 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8993 unexec() signature. (Note, this will dump, but the resulting file
8994 crashes; unexosx is used instead; keeping around for reference and
8995 possible aid in getting dump working under GNUstep.)
8996 * w32gui.h (button_type, widget_value): Remove definitions (now in
8997 keyboard.h).
8998 * window.c: Include nsterm.h when compiling under NS.
8999 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9000 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9001 other GUI windowing systems.
9002 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9003 GTK.
9004 (x_consider_frame_title): Under NS, set icon type and frame
9005 modified-state indicator; use ns_set_name_as_filename() when using
9006 formatted title.
9007 (update_window_cursor): Make public when compiling under NS.
9008 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9009 (hourglass_atimer, Vhourglass_delay
9010 * xfaces.c (header section, init_frame_faces, clear_font_table)
9011 (defined_color, unload_color, x_face_list_fonts)
9012 (prepare_face_for_display): Add NS support parallel to other GUIs.
9013 Emulate GCs like other non-X GUIs.
9014 (split_font_name): Don't lowercase font name under NS.
9015 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9016 under NS.
9017 * s/darwin.h: Add support for compilation under NS.
9018
90192008-07-15 Jason Rumney <jasonr@gnu.org>
9020
9021 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9022 (w32_show_hourglass): Rename from show_hourglass.
9023 (w32_hide_hourglass): Rename from hide_hourglass.
9024 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9025 (Vhourglass_delay): Declare extern.
9026 (hourglass_started): Remove.
9027
9028 * xdisp.c (Vhourglass_delay): Remove static.
9029 (hourglass_started, start_hourglass, cancel_hourglass):
9030 Don't include these versions on WINDOWSNT.
9031
90322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9033
9034 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9035 variables (formerly in xfns.c).
9036 (show_hourglass, hide_hourglass): New prototypes (same).
9037 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9038 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9039 in xfns.c).
9040 (syms_of_xdisp): Declare/initialize display-hourglass,
9041 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9042 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9043 formerly in xfns.c.
9044 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9045 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9046 (start_hourglass, cancel_hourglass): Remove.
9047 (show_hourglass, hide_hourglass): Remove prototypes and static
9048 modifiers.
9049 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9050 hourglass_atimer, hourglass_shown_p declaration/initialization.
9051 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9052 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9053 (start_hourglass, cancel_hourglass): Remove.
9054 (show_hourglass, hide_hourglass): Remove prototypes and static
9055 modifiers.
9056 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9057 hourglass_atimer, hourglass_shown_p declaration/initialization.
9058 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9059 (DEFAULT_HOURGLASS_DELAY): Remove.
9060 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9061 hourglass_shown_p declaration/initialization.
9062
90632008-07-14 Jason Rumney <jasonr@gnu.org>
9064
9065 * w32fns.c (w32_get_arg): Remove wrapper function.
9066 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9067 directly.
9068 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9069
90702008-07-14 Kenichi Handa <handa@m17n.org>
9071
9072 * xfont.c (xfont_open): Add workaround for X's bug.
9073
90742008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9075
9076 * fontset.c: Include <stdio.h> unconditionally.
9077
90782008-07-13 Michael Albinus <michael.albinus@gmx.de>
9079
9080 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9081 for filtering.
9082
90832008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9084
9085 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9086
9087 * m/macppc.h:
9088 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9089
9090 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9091 (SPECIAL_EMACS_INT):
9092 * m/ia64.h (SPECIAL_EMACS_INT):
9093 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9094 * s/gnu.h (NLIST_STRUCT):
9095 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9096 * s/gnu-linux.h (LINUX):
9097 * s/msdos.h (HAVE_FACES):
9098 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9099
9100 * systty.h:
9101 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9102 anymore.
9103
91042008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9105
9106 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9107 always defined as int.
9108
9109 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9110 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9111 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9112 * s/freebsd.h (HAVE_WAIT_HEADER):
9113 * s/bsd-common.h (HAVE_UNION_WAIT):
9114 * s/aix4-2.h (HAVE_WAIT_HEADER):
9115 * m/mips.h (HAVE_UNION_WAIT):
9116 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9117 (COFF, static): Do not define, they are undefined later in the file.
9118
9119 * process.c (update_status): Don't use a union.
9120 (status_convert):
9121 (sigchld_handler): Use int instead of WAITTYPE.
9122
91232008-07-12 Chong Yidong <cyd@stupidchicken.com>
9124
9125 * indent.c (Fvertical_motion): Restore hscroll before moving to
9126 goal column.
9127
91282008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9129
9130 * lisp.h: Remove left over code.
9131
91322008-07-11 Andreas Schwab <schwab@suse.de>
9133
9134 * lisp.h: Fix logic in last change.
9135
9136 * menu.h: New file.
9137 * menu.c: Include it.
9138 * xmenu.c: Likewise.
9139 * Makefile.in: Update dependencies.
9140
91412008-07-11 Kenichi Handa <handa@m17n.org>
9142
9143 * fontset.c (fontset_from_font): Cancel the previous change.
9144
91452008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9146
9147 * lisp.h:
9148 * w32heap.c:
9149 * emacs.c:
9150 * alloc.c: Replace all references of NO_UNION_TYPE with
9151 USE_LISP_UNION_TYPE.
9152
9153 * m/xtensa.h (NO_UNION_TYPE):
9154 * m/vax.h (NO_UNION_TYPE):
9155 * m/template.h (NO_UNION_TYPE):
9156 * m/sparc.h (NO_UNION_TYPE):
9157 * m/mips.h (NO_UNION_TYPE):
9158 * m/macppc.h (NO_UNION_TYPE):
9159 * m/m68k.h (NO_UNION_TYPE):
9160 * m/iris4d.h (NO_UNION_TYPE):
9161 * m/intel386.h (NO_UNION_TYPE):
9162 * m/ibms390x.h (NO_UNION_TYPE):
9163 * m/ibms390.h (NO_UNION_TYPE):
9164 * m/ibmrs6000.h (NO_UNION_TYPE):
9165 * m/ia64.h (NO_UNION_TYPE):
9166 * m/hp800.h (NO_UNION_TYPE):
9167 * m/arm.h (NO_UNION_TYPE):
9168 * m/amdx86-64.h (NO_UNION_TYPE):
9169 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9170 defining it the same.
9171
91722008-07-10 Chong Yidong <cyd@stupidchicken.com>
9173
9174 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9175
91762008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9177
9178 * fileio.c:
9179 * sysdep.c
9180 * systty.h:
9181 * m/ibmrs6000.h:
9182 * m/iris4d.h:
9183 * s/aix4-2.h:
9184 * s/freebsd.h:
9185 * s/gnu-linux.h:
9186 * s/hpux10-20.h:
9187 * s/hpux11.h:
9188 * s/netbsd.h:
9189 * s/sol2-3.h:
9190 * s/sol2-4.h:
9191 * s/sol2.h:
9192 * s/usg5-4.h:
9193 * s/vms.h: Remove references to unused variables.
9194
91952008-07-10 Andreas Schwab <schwab@suse.de>
9196
9197 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9198 pattern before matching the generic family.
9199
92002008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9201
9202 * unexec.c:
9203 * s/vms.h:
9204 * s/usg5-4-2.h:
9205 * s/sol2-5.h:
9206 * s/freebsd.h:
9207 * s/darwin.h: Remove dead code.
9208
9209 * m/template.h:
9210 * m/sparc.h:
9211 * m/mips.h:
9212 * m/m68k.h:
9213 * m/iris4d.h:
9214 * m/intel386.h:
9215 * m/ibms390x.h:
9216 * m/ibms390.h:
9217 * m/ia64.h:
9218 * m/hp800.h:
9219 * m/arm.h:
9220 * m/amdx86-64.h: Remove dead code and references to unused
9221 and compiler defined symbols.
9222
9223 * unexmips.c:
9224 * unexelf.c: Remove references to desupported systems.
9225
9226 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9227
9228 * m/powermac.h: Remove boilerplate comments.
9229 (NO_REMAP): Remove unused definition.
9230
9231 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9232 define them.
9233
92342008-07-10 Kenichi Handa <handa@m17n.org>
9235
9236 * xfont.c (xfont_open): Log the reason of failure.
9237
92382008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9239
9240 * fontset.c (fontset_get_font_group):
9241 * font.c (font_check_otf): Specify argument types.
9242
92432008-07-09 Kenichi Handa <handa@m17n.org>
9244
9245 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9246 non-ASCII char is found.
9247
9248 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9249 (reorder_font_vector): Change the arg preferred_family to font.
9250 Prefer the spec matching with font.
9251 (fontset_get_font_group): New function.
9252 (fontset_find_font): Change the format of an element of a realized
9253 fontset. Use fontset_get_font_group.
9254 (fontset_font): Try the current fontset, the default fontset, the
9255 fallbacks of the current fontset, and the fallbacks of the default
9256 fontset in this order.
9257 (face_for_char): Delete the shortcut to use the current font.
9258 (fontset_from_font): Don't set fonts for Latin in the fontset.
9259
9260 * font.h (font_make_object, font_match_p): Adjust prototypes.
9261
9262 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9263
9264 * font.c (font_make_object): New arg entity and pixelsize.
9265 (font_check_otf_features, font_check_otf): New functions.
9266 (font_match_p): Check :lang, :script, and :otf properties.
9267
9268 * xfont.c (xfont_open): Adjust it for the change of
9269 font_make_object.
9270 (xfont_text_extents): Fix initial setting of metrics.
9271
9272 * ftfont.c (struct ftfont_info): New member index, delete member
9273 fc_charset_idx. Make the member order compatible with struct
9274 xftfont_info.
9275 (fc_charset_table): Change charset names to registry names.
9276 (ftfont_pattern_entity): Delete the args registry and
9277 fc_charset_idx. Change the value of :font-entity property
9278 to (FONTNAME . INDEX). Always set :registry property to
9279 `iso10646-1'.
9280 (struct ftfont_cache_data): New struct.
9281 (ftfont_lookup_cache): New arg for_face.
9282 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9283 (ftfont_driver): Set the member otf_capability.
9284 (ftfont_get_charset): Adjust it for the change of
9285 fc_charset_table.
9286 (OTF_TAG_SYM): New macro.
9287 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9288 for the change of fc_charset_table.
9289 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9290 ftfont_pattern_entity. Add FC_INDEX to objset.
9291 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9292 and ftfont_pattern_entity.
9293 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9294 font_make_object, struct ftfont_info.
9295 (ftfont_has_char): Use ftfont_get_fc_charset.
9296 (ftfont_otf_features, ftfont_otf_capability): New functions.
9297 (ftfont_shape): Use ftfont_get_otf.
9298 (ftfont_text_extents): Fix initial setting of metrics.
9299
9300 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9301 member order compatible with struct ftfont_info.
9302 (xftfont_open): Add FC_CHARSET to the pattern. Set
9303 xftfont_info->ft_size. Don't unlock the face. Check BDF
9304 properties if appropriate.
9305 (xftfont_close): Unlock the face.
9306 (xftfont_anchor_point, xftfont_shape): Deleted.
9307 (syms_of_xftfont): Don't set members anchor_point and shape of
9308 xftfont_driver.
9309
9310 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9311 font_make_object.
9312
9313 * w32font.c (w32font_open): Adjust it for the change of
9314 font_make_object.
9315 (w32font_open_internal): Don't set properties of font_object here.
9316
93172008-07-08 Chong Yidong <cyd@stupidchicken.com>
9318
9319 * macfns.c (x_create_tip_frame):
9320 * w32fns.c (x_create_tip_frame):
9321 * xfns.c (x_create_tip_frame): Pass parameter argument to
9322 face-set-after-frame-default.
9323
9324 * xfaces.c (Finternal_merge_in_global_face): Save merged
9325 attributes for the default face back into the face vector.
9326
93272008-07-08 Andreas Schwab <schwab@suse.de>
9328
9329 * fontset.h: Declare fontset_from_font. Don't declare
9330 new_fontset_from_font and fontset_from_font_name.
9331 * xterm.c: Include "fontset.h".
9332 * Makefile.in (xterm.o): Update dependencies.
9333
93342008-07-08 Glenn Morris <rgm@gnu.org>
9335
9336 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9337 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9338
93392008-07-07 Chong Yidong <cyd@stupidchicken.com>
9340
9341 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9342 (x_set_frame_parameters): Don't bind it.
9343
93442008-07-07 Juanma Barranquero <lekktu@gmail.com>
9345
9346 * w32fns.c (map_w32_filename): Declare extern.
9347
93482008-07-07 Jason Rumney <jasonr@gnu.org>
9349
9350 * w32term.c (WS_EX_LAYERED): Define if not already.
9351
93522008-07-06 Chong Yidong <cyd@stupidchicken.com>
9353
9354 * xfaces.c (set_font_frame_param): Don't try to set the font
9355 parameter if it is still unspecified in the lface.
9356
93572008-07-05 Chong Yidong <cyd@stupidchicken.com>
9358
9359 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9360 face if it didn't already exist.
9361
9362 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9363
93642008-07-05 Andreas Schwab <schwab@suse.de>
9365
9366 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9367
93682008-07-05 Chong Yidong <cyd@stupidchicken.com>
9369
9370 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9371 word-wrapping.
9372 (IT_DISPLAYING_WHITESPACE): New macro.
9373 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9374 when word-wrapping. Simplify word-wrapping logic. Use correct
9375 pixel positions when saving copies of the iterator.
9376 (display_line): Use proper wrap point if the last character on a
9377 line was preceded by whitespace.
9378
93792008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9380
9381 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9382
93832008-07-04 Kenichi Handa <handa@m17n.org>
9384
9385 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9386
9387 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9388
93892008-07-02 Jason Rumney <jasonr@gnu.org>
9390
9391 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9392 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9393
9394 * xdisp.c (next_element_from_display_vector): Move assignment out
9395 of if statement.
9396
93972008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9398
9399 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9400
9401 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9402 (syms_of_fileio): Initialize and export them.
9403 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9404
9405 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9406 (Fsystem_move_file_to_trash): New function.
9407 (syms_of_w32fns): Export it to lisp.
9408
94092008-07-01 Jason Rumney <jasonr@gnu.org>
9410
9411 * w32font.c (w32font_text_extents): Don't count overhang as part
9412 of width.
9413
94142008-06-30 Miles Bader <miles@gnu.org>
9415
9416 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9417 Add `avoid_cursor_p' field.
9418
9419 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9420 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9421 (append_glyph, append_composite_glyph, produce_image_glyph)
9422 (append_stretch_glyph): Initialize avoid_cursor_p.
9423 (get_it_property): Rename from `get_line_height_property'.
9424 (x_produce_glyphs): Use get_it_property.
9425 (handle_line_prefix, push_display_prop): New functions.
9426 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9427 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9428 New variables.
9429 (syms_of_xdisp): Initialize them.
9430
94312008-06-30 Kenichi Handa <handa@m17n.org>
9432
9433 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9434 XftDefaultSubstitute (they are called in XftFontMatch).
9435 (xftfont_open): Fix args to ftfont_font_format.
9436
9437 * ftfont.c (fc_charset_table): New member lang.
9438 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9439 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9440 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9441 (ftfont_open): Fix args to ftfont_font_format.
9442 (ftfont_font_format): New arg filename.
9443
94442008-06-30 Chong Yidong <cyd@stupidchicken.com>
9445
9446 * xfaces.c (Finternal_merge_in_global_face): If default face was
9447 modified, realize it again. Update the font face attribute.
9448
94492008-06-29 Jason Rumney <jasonr@gnu.org>
9450
9451 * w32term.c (x_set_frame_alpha): Fix logic.
9452
94532008-06-29 Kenichi Handa <handa@m17n.org>
9454
9455 * fontset.c (Finternal_char_font): Return font-object instead of
9456 font-name.
9457
9458 * composite.c (get_composition_id): Fix the width calculation for TAB.
9459
94602008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9461
9462 * indent.c (Fvertical_motion): Properly handle float column arg.
9463
94642008-06-28 Jason Rumney <jasonr@gnu.org>
9465
9466 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9467 (pfnSetLayeredWindowAttributes): New function pointer.
9468 (w32_initialize): Initialize it when supported.
9469 (x_set_frame_alpha): New function.
9470
9471 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9472 (w32_frame_parm_handlers): Set alpha handler.
9473
9474 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9475
94762008-06-27 Jason Rumney <jasonr@gnu.org>
9477
9478 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9479 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9480 (w32_to_x_charset, x_to_w32_charset)
9481 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9482 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9483 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9484 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9485 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9486 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9487 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9488 (Qw32_charset_unicode): Remove.
9489 (syms_of_w32fns): Update for above changes.
9490
9491 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9492 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9493 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9494 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9495 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9496 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9497 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9498 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9499 (syms_of_w32font): Update for above changes.
9500
95012008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9502
9503 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9504 removed #if.
9505 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9506
95072008-06-26 Juanma Barranquero <lekktu@gmail.com>
9508 Eli Zaretskii <eliz@gnu.org>
9509
9510 * makefile.w32-in (LOCAL_FLAGS):
9511 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9512
9513 * sysdep.c (_spawnlp, _getpid):
9514 Declare with explicit _cdecl instead of _CRTAPI1.
9515
9516 * editfns.c (Fget_internal_run_time):
9517 Check for WINDOWSNT with #ifdef, not #if.
9518
95192008-06-26 Jason Rumney <jasonr@gnu.org>
9520
9521 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9522
9523 * w32term.c (x_draw_glyph_string_foreground)
9524 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9525 Use FONT_HANDLE macro.
9526 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9527
9528 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9529 (uniscribe_encode_char): Use FONT_HANDLE macro.
9530
9531 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9532 (w32font_text_extents): Use precast w32_font.
9533 (w32font_close): Free cached metrics.
9534 (w32font_open_internal): Allocate space for name on stack.
9535
95362008-06-26 Chong Yidong <cyd@stupidchicken.com>
9537
9538 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9539
95402008-06-26 Jason Rumney <jasonr@gnu.org>
9541
9542 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9543 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9544
95452008-06-26 Juanma Barranquero <lekktu@gmail.com>
9546
9547 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9548
95492008-06-26 Jason Rumney <jasonr@gnu.org>
9550
9551 * w32bdf.c, w32bdf.h: Remove obsolete files.
9552
9553 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9554
9555 * w32gui.h: Don't include w32bdf.h.
9556 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9557 Remove obsolete font support.
9558
9559 * w32font.h (struct w32font_info): Remove compat_w32_font.
9560 Add hfont member.
9561 (FONT_COMPAT): Remove obsolete macro.
9562
9563 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9564 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9565 (w32font_open_internal): Remove compat code. Set new hfont member.
9566 (Fx_select_font): Use new hfont member.
9567
9568 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9569 (uniscribe_encode_char): Use new hfont member.
9570
9571 * w32term.c (x_draw_glyph_string_foreground)
9572 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9573 (x_draw_glyph_string): Use metrics in w32font_info.
9574
95752008-06-26 Kenichi Handa <handa@m17n.org>
9576
9577 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9578
95792008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9580
9581 * unexnext.c:
9582 * m/ews4800.h:
9583 * m/hp9000s300.h:
9584 * m/ibm370aix.h:
9585 * m/mips-siemens.h:
9586 * m/ncr386.h:
9587 * m/next.h:
9588 * m/pmax.h:
9589 * m/powerpcle.h:
9590 * m/tandem-s2.h:
9591 * s/386bsd.h:
9592 * s/bsd386.h:
9593 * s/bsd4-1.h:
9594 * s/bsd4-2.h:
9595 * s/bsdos2-1.h:
9596 * s/bsdos2.h:
9597 * s/bsdos3.h:
9598 * s/bsdos4.h:
9599 * s/nextstep.h:
9600 * s/ultrix4-3.h:
9601 * s/usg5-0.h:
9602 * s/usg5-2-2.h:
9603 * s/usg5-2.h:
9604 * s/usg5-4-3.h:
9605 * s/ux4800.h:
9606 * s/uxpds.h:
9607 * s/uxpv.h: Remove support for obsolete systems.
9608 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9609 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9610 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9611 Remove, insert contents in s/aix4-2.h.
9612 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9613 * s/bsd4-3.h: Rename to ...
9614 * s/bsd-common.h: ... this.
9615 * data.c:
9616 * doc.c:
9617 * ecrt0.c:
9618 * emacs.c:
9619 * fileio.c:
9620 * floatfns.c:
9621 * keyboard.c:
9622 * mem-limits.h:
9623 * print.c:
9624 * process.c:
9625 * sysdep.c:
9626 * syssignal.h:
9627 * systty.h:
9628 * syswait.h:
9629 * term.c:
9630 * unexec.c:
9631 * unexelf.c:
9632 * unexhp9k800.c:
9633 * m/hp800.h:
9634 * m/ibmrs6000.h:
9635 * m/mips.h:
9636 * m/vax.h:
9637 * s/darwin.h:
9638 * s/freebsd.h:
9639 * s/gnu.h:
9640 * s/ms-w32.h:
9641 * s/msdos.h:
9642 * s/netbsd.h:
9643 * s/template.h: Remove references to obsolete variables.
9644
9645 * Makefile.in: Add dependencies for all unexec files.
9646 (admindir): Remove unused variable.
9647 (UNEXEC_SRC): Remove references.
9648
96492008-06-25 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * xfns.c (x_default_font_parameter): If Xft is available, first
9652 try Monospace-12 for the default font.
9653
96542008-06-25 Jason Rumney <jasonr@gnu.org>
9655
9656 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9657
96582008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9659
9660 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9661
9662 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9663
96642008-06-25 Juanma Barranquero <lekktu@gmail.com>
9665
9666 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9667 <scroll-conservatively>: Fix typo in docstring.
9668
9669 * xselect.c (Fx_send_client_event): Doc fix.
9670
96712008-06-25 Kenichi Handa <handa@m17n.org>
9672
9673 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9674
9675 * font.c (font_parse_fcname): Remove unused variables.
9676 (font_sort_entites): Delete the arg SPEC. Caller changed.
9677 Fix for the case of ! best_only.
9678 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9679
9680 * lisp.h (Fstring_to_unibyte): EXFUN it.
9681
9682 * character.h (str_to_unibyte): Extern it.
9683
9684 * character.c (str_to_unibyte): New function.
9685
9686 * fns.c (Fstring_to_unibyte): New function.
9687 (syms_of_fns): Defsubr it.
9688
96892008-06-24 Kenichi Handa <handa@m17n.org>
9690
9691 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9692 DPI too.
9693 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9694
96952008-06-24 Andreas Schwab <schwab@suse.de>
9696
9697 * Makefile.in (${lispsource}loaddefs.el): Rename from
9698 ../lisp/loaddefs.el.
9699 (bootstrap-clean): Do what distclean does but don't remove
9700 Makefile.
9701 (distclean): Depend on bootstrap-clean and remove Makefile.
9702
97032008-06-24 Chong Yidong <cyd@stupidchicken.com>
9704
9705 * buffer.h (struct buffer): New member word_wrap.
9706
9707 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9708 word-wrap.
9709 (init_buffer_once): Initialize them.
9710
9711 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9712 line_wrap enum possessing three possible values.
9713
9714 * termopts.h: Replace truncate_partial_width_windows with
9715 Vtruncate_partial_width_windows.
9716
9717 * dispnew.c (direct_output_for_insert): Avoid direct output when
9718 inserting a space with word wrap on.
9719
9720 * indent.c (compute_motion): Obey integer values of
9721 truncate-partial-width-windows.
9722
9723 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9724 replacing truncate_partial_width_windows.
9725 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9726 truncate only if the window width is below that integer.
9727 (start_display, resize_mini_window, produce_stretch_glyph)
9728 (display_string, move_it_in_display_line_to): Use line_wrap.
9729 (back_to_previous_visible_line_start, reseat_1): Reset
9730 string_from_display_prop_p.
9731 (display_line): Extend default face to end of line when wrapping.
9732
97332008-06-24 Kim F. Storm <storm@cua.dk>
9734
9735 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9736 to wrap continued lines at word boundaries.
9737
97382008-06-24 Jason Rumney <jasonr@gnu.org>
9739
9740 * font.c (Ffont_face_attributes): Multiply pixel size before point
9741 conversion to avoid multiplying rounding error.
9742
97432008-06-23 Jason Rumney <jasonr@gnu.org>
9744
9745 * w32term.c (x_draw_glyph_string_background)
9746 (x_draw_glyph_string): Remove old bdf font code.
9747
9748 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9749
97502008-06-22 Kenichi Handa <handa@m17n.org>
9751
9752 * font.c (font_find_for_lface): Try the adstyle specified in
9753 the property of LFACE_FONT of LFACE (if any).
9754
97552008-06-21 Seiji Zenitani <zenitani@mac.com>
9756 Ryo Yoshitake <ryo@shiftmode.net>
9757
9758 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9759
97602008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9761
9762 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9763 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9764 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9765 (witness-emacs): Remove.
9766 (lisp, shortlisp): Move loaddefs.el earlier.
9767 (mostlyclean): Forget about witness-emacs.
9768
97692008-06-22 Glenn Morris <rgm@gnu.org>
9770
9771 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9772 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9773
97742008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9775
9776 * Makefile.in (PRECOMP): Remove.
9777 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9778 (witness-emacs): Run `compile-first'.
9779 (.el.elc): Use the new compile-onefile target.
9780
97812008-06-21 Kenichi Handa <handa@m17n.org>
9782
9783 * xftfont.c (xftfont_open): Handle QCembolden only when
9784 FC_EMBOLDEN is defined.
9785
97862008-06-21 Andreas Schwab <schwab@suse.de>
9787
9788 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9789 (.el.elc): Likewise.
9790
97912008-06-21 Miles Bader <miles@gnu.org>
9792
9793 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9794 build dir, not the lisp source dir.
9795
97962008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9797
9798 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9799 (bootstrapclean): Remove.
9800 (.el.elc): New rule.
9801 (PRECOMP): New var.
9802 (../lisp/subdirs.el): Remove.
9803 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9804 (witness-emacs): New target.
9805 (mostlyclean): Remove witness-emacs as well.
9806 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9807 Add witness-emacs dependency.
9808
98092008-06-20 Chong Yidong <cyd@stupidchicken.com>
9810
9811 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9812 defined by the font.
9813
98142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9815
9816 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9817 (bootstrap-clean): New target that keeps TAGS around.
9818 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9819 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9820
98212008-06-20 Jason Rumney <jasonr@gnu.org>
9822
9823 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9824 Remove obsolete font code.
9825
9826 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9827 to determine language support.
9828
98292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9830
9831 * sysdep.c (cfsetspeed): New fun extracted from the code.
9832 (cfmakeraw): Move before first use.
9833
98342008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9835
9836 * sysdep.c (cfmakeraw): Provide fallback implementation.
9837 (serial_configure): Provide fallback implementation of cfsetspeed.
9838
98392008-06-20 Kenichi Handa <handa@m17n.org>
9840
9841 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9842 the pattern.
9843
9844 * fontset.c (fontset_from_font): Copy font_spec before changing
9845 the elements.
9846
9847 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9848
98492008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9850
9851 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9852 for explicit `font' parameters.
9853
9854 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9855
98562008-06-19 Kenichi Handa <handa@m17n.org>
9857
9858 * frame.c: Include <ctype.h>.
9859 (x_set_font_backend): Allow spacing characters in the X resource
9860 for FontBackend.
9861
98622008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9863
9864 * w32fns.c, xfns.c (Qfont_param): New var.
9865 (syms_of_w32fns): Initialize it.
9866 (x_default_font_parameter): Record explicit `font' into
9867 `font-parameter'.
9868
98692008-06-18 Kenichi Handa <handa@m17n.org>
9870
9871 * font.c (font_parse_xlfd): Fix previous change.
9872 (font_parse_fcname): Don't use :fc-unknown-spec.
9873 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9874 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9875 (font_add_log): Prepend the driver name to the resulting fonts.
9876
9877 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9878 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9879 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9880
9881 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9882 (QCembolden): New variables.
9883 (syms_of_xftfont): DEFSYM them.
9884 (xftfont_open): Call XftFontMatch. Don't trust the result of
9885 XftTextExtents8 if the pixel_size is less than 5.
9886
98872008-06-18 Andreas Schwab <schwab@suse.de>
9888
9889 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9890 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9891
98922008-06-18 Jason Rumney <jasonr@gnu.org>
9893
9894 * w32font.c (w32font_list, w32font_match): Add logging.
9895
9896 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9897
98982008-06-17 Chong Yidong <cyd@stupidchicken.com>
9899
9900 * font.c (font_parse_fcname): Store divider characters for
9901 unknown-spec list. For known key symbols, intern using correct
9902 symbol name.
9903
99042008-06-17 Kenichi Handa <handa@m17n.org>
9905
9906 * xfaces.c (realize_default_face): If the frame is not on window
9907 system, set the fontset of face to nil.
9908
99092008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9910
9911 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9912
99132008-06-16 Juanma Barranquero <lekktu@gmail.com>
9914
9915 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9916 (build_font_name_from_vector): Delete externs.
9917
9918 * xfaces.c (struct font_name): Don't declare.
9919
99202008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9921
9922 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9923
99242008-06-16 Chong Yidong <cyd@stupidchicken.com>
9925
9926 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9927
99282008-06-16 Juanma Barranquero <lekktu@gmail.com>
9929
9930 * font.c (Ffont_spec): Fix usage in docstring.
9931 (Ffont_face_attributes): Doc fix.
9932
99332008-06-16 Andreas Schwab <schwab@suse.de>
9934
9935 * font.c (Ffont_face_attributes): Fix definition.
9936
99372008-06-16 Jason Rumney <jasonr@gnu.org>
9938
9939 * font.h (font_style_symbolic_from_value): Remove.
9940
9941 * font.c (font_style_symbolic_from_value): Remove.
9942 (font_style_symbolic): Revert to pre 2008-06-13 version.
9943
9944 * w32font.c (w32_to_fc_weight): New function.
9945 (w32font_full_name, logfont_to_fcname): Use it.
9946
99472008-06-16 Kenichi Handa <handa@m17n.org>
9948
9949 * font.c (font_check_object): Delete it.
9950 (font_clear_cache): Check if a font-object is alive.
9951 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9952 font-object to nil.
9953 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9954 (font_at): Don't call font_check_object.
9955 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9956
99572008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9958
9959 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9960
99612008-06-16 Chong Yidong <cyd@stupidchicken.com>
9962
9963 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9964
99652008-06-15 Chong Yidong <cyd@stupidchicken.com>
9966
9967 * font.c (font_parse_fcname): Only one decimal point.
9968 (font_unparse_fcname): Handle data in family and foundry indices
9969 as symbols, not strings.
9970 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9971
9972 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9973
9974 * font.h (font_unparse_gtkname): Add prototype.
9975
99762008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9977
9978 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9979
99802008-06-15 Andreas Schwab <schwab@suse.de>
9981
9982 * font.c (font_update_drivers): Fix crash when no drivers match.
9983
99842008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9985
9986 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9987 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9988
99892008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9990
9991 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9992
99932008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * process.c (Fserial_process_configure, Fprocess_send_eof):
9996 Use EQ to compare Lisp_Objects.
9997
99982008-06-13 Jason Rumney <jasonr@gnu.org>
9999
10000 * w32fns.c (Fw32_select_font): Remove old font API function.
10001
10002 * w32font.c (logfont_to_fcname): New function.
10003 (Fx_select_font): New font dialog function compatible with
10004 GTK/fontconfig version.
10005
10006 * font.c (font_style_symbolic_from_value): New function.
10007 (font_style_symbolic): Use it.
10008
10009 * font.h (font_style_symbolic_from_value): Declare new function.
10010
100112008-06-13 Juanma Barranquero <lekktu@gmail.com>
10012
10013 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10014 <font-width-table>: Fix typos in docstrings.
10015
100162008-06-13 Daniel Engeler <engeler@gmail.com>
10017
10018 These changes add serial port access.
10019 * process.c: Add HAVE_SERIAL.
10020 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10021 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10022 (list_processes_1, select_wrapper, Fstop_process)
10023 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10024 (status_notify): Modify to handle serial processes.
10025 [HAVE_SERIAL] (Fserial_process_configure)
10026 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10027 New functions.
10028 * process.h (struct Lisp_Process): Add `type'.
10029 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10030 New functions.
10031 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10032 serial ports.
b71ac3dd 10033 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10034 * w32.h: Add FILE_SERIAL.
10035 (struct _child_process): Add ovl_read, ovl_write.
10036
100372008-06-13 Kenichi Handa <handa@m17n.org>
10038
10039 * dispextern.h (enum lface_attribute_index): New member
10040 LFACE_FOUNDRY_INDEX.
10041
10042 * font.c (font_score): Delete arg alternate_families. Check only
10043 weight, slant, width, and size. Ignore the difference of alias
10044 style symbols.
10045 (font_sort_entites): Adjust for the above change. Reflect the
10046 order of font-driver to scores.
10047 (font_list_entities): Don't check alternate_familes here.
10048 (font_clear_prop): Handle foundry.
10049 (font_update_lface): Don't parse "foundry-family" form here.
10050 Handle FONT_FOUNDRY_INDEX.
10051 (font_find_for_lface): Likewise. Handle alternate families here.
10052 If registry is nil, try iso8859-1 and ascii-0.
10053 (font_open_for_lface): Pay attention to size in ENTITY.
10054 (font_open_by_name): Simplify by calling font_load_for_lface.
10055 (free_font_driver_list): Delete it.
10056 (font_update_drivers): Preserve the order of backends.
10057 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10058 of font_score and font_sort_entites.
10059 (font_update_sort_order): Likewise.
10060
10061 * xfaces.c (LFACE_FOUNDRY): New macro.
10062 (check_lface_attrs): Check foundry.
10063 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10064 (merge_face_vectors): Check foundry.
10065 (merge_face_ref): Likewise.
10066 (Finternal_set_lisp_face_attribute): Likewise.
10067 (x_update_menu_appearance): Likewise.
10068 (Finternal_get_lisp_face_attribute): Likewise.
10069 (lface_hash): Likewise.
10070 (lface_same_font_attributes_p): Likewise.
10071 (x_supports_face_attributes_p): Likewise.
10072 (tty_supports_face_attributes_p): Likewise.
10073 (Finternal_set_alternative_font_family_alist): Intern strings.
10074 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10075 (realize_default_face): Set LFACE_FOUNDRY (lface).
10076
10077 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10078 font-driver at first.
10079
10080 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10081
100822008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10083
10084 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10085
100862008-06-12 Jim Meyering <meyering@redhat.com>
10087
10088 Make unexec_free handle NULL the same way free does.
10089 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10090
100912008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10092
10093 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10094 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10095 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10096 (WEAK_ALIAS): Simplify.
10097 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10098 when searching a unibyte buffer.
10099
101002008-06-12 Chong Yidong <cyd@stupidchicken.com>
10101
10102 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10103
101042008-06-12 Juanma Barranquero <lekktu@gmail.com>
10105
10106 * w32font.c: Include ctype.h.
10107
101082008-06-11 Jason Rumney <jasonr@gnu.org>
10109
10110 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10111 misreported as space.
10112 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10113 as aliases for registry iso10646-1.
10114
101152008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10116
10117 * buffer.c (clone_per_buffer_values): Skip `name'.
10118
101192008-06-11 Chong Yidong <cyd@stupidchicken.com>
10120
10121 * font.c (font_parse_fcname): Fix last change; accept decimal
10122 points in font size.
10123
101242008-06-10 Jason Rumney <jasonr@gnu.org>
10125
10126 * w32uniscribe.c (add_opentype_font_name_to_list):
10127 Skip non unicode fonts.
10128
101292008-06-10 Chong Yidong <cyd@stupidchicken.com>
10130
10131 * xfns.c (Fx_font_dialog): New function.
10132
10133 * gtkutil.c (xg_dialog_response_cb): Rename from
10134 xg_file_response_callback.
10135 (pop_down_dialog): Rename from pop_down_file_dialog.
10136 (xg_get_file_name): Callers changed.
10137 (xg_get_font_name): New function.
10138
10139 * gtkutil.h (xg_get_font_name): Insert prototype.
10140
101412008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10142
10143 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10144 x_underline_minimum_display_offset.
10145 (syms_of_xdisp): Declare it here rather than in xterm.c.
10146 * dispextern.h (underline_minimum_offset): Declare it.
10147 * w32term.c (x_draw_glyph_string): Use it.
10148 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10149 (syms_of_xterm): Don't declare it any more.
10150 (x_draw_glyph_string): Adjust to the new name.
10151
8719abec 101522008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10153
10154 * xterm.c (x_underline_minimum_display_offset): New var.
10155 (x_draw_glyph_string): Use it.
10156 (syms_of_xterm): Declare it.
10157
101582008-06-10 Chong Yidong <cyd@stupidchicken.com>
10159
10160 * font.c (font_parse_fcname): Accept GTK-style font names too.
10161
101622008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10163
10164 * dired.c (file_name_completion): Don't return t if the match is exact
10165 but with different capitalization.
10166 * minibuf.c (Ftry_completion): Simplify.
10167
10168 * window.c (Vwindow_point_insertion_type): New var.
10169 (set_window_buffer): Use it.
10170 (syms_of_window): Init and export it to Lisp.
10171
101722008-06-10 Kenichi Handa <handa@m17n.org>
10173
10174 * font.h (font_intern_prop): Prototype adjusted.
10175
10176 * font.c (font_intern_prop): New arg force_symbol.
10177 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10178 Adjust for the change of font_intern_prop.
10179
10180 * ftfont.c (ftfont_pattern_entity):
10181 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10182 (w32_registry):
10183 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10184 the change of font_intern_prop.
10185
101862008-06-09 Juanma Barranquero <lekktu@gmail.com>
10187
10188 * w32menu.c (digest_single_submenu): Declare extern.
10189
101902008-06-09 Jason Rumney <jasonr@gnu.org>
10191
10192 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10193
10194 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10195 (parse_single_submenu): Remove.
10196 (digest_single_submenu): Remove.
10197 (syms_of_w32menu): Don't initialise variables that have moved
10198 to menu.c.
10199 (set_frame_menubar): Sync with version in xmenu.c.
10200 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10201
10202 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10203 Make static again.
10204
102052008-06-09 Jason Rumney <jasonr@gnu.org>
10206
10207 Changes to w32 files related to the move of common menu code
10208 to menu.c on 2008-06-08 by Chong Yidong.
10209
10210 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10211 defs to w32gui.h.
10212 (single_keymap_panes, push_menu_item, push_menu_pane):
10213 Make globally visible.
10214
10215 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10216 (local_free, malloc_widget_value, free_widget_value)
10217 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10218 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10219 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10220 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10221 (menu_items, menu_items_allocated, menu_items_used)
10222 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10223 (init_menu_items, finish_menu_items, discard_menu_items)
10224 (grow_menu_items, push_submenu_start, push_submenu_end)
10225 (push_left_right_boundary, push_menu_pane, push_menu_item)
10226 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10227 (free_menubar_widget_tree_value, parse_single_submenu)
10228 (update_submenu_strings): Remove functions.
10229 (xmalloc_widget_value): Remove and declare extern.
10230
10231 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10232 (OBJ1): Build it.
10233
10234 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10235 (local_heap, local_alloc, local_free, malloc_widget_value)
10236 (free_widget_value): Define here.
10237
102382008-06-09 Kenichi Handa <handa@m17n.org>
10239
10240 * font.h (Qascii_0): Extern it.
10241
10242 * font.c (Qascii_0): New variable.
10243 (syms_of_font): DEFSYM it.
10244 (font_open_by_name): If the registry "iso8859-1" fails, try also
10245 "ascii-0".
10246
10247 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10248
102492008-06-08 Kenichi Handa <handa@m17n.org>
10250
10251 * .gdbinit (xfont): New command.
10252
102532008-06-08 Andreas Schwab <schwab@suse.de>
10254
10255 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10256 * Makefile.in (menu.o): Update dependencies.
10257
10258 * Makefile.in (obj): Always add menu.o.
10259 * emacs.c (main): Always call syms_of_menu.
10260 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10261
102622008-06-08 Chong Yidong <cyd@stupidchicken.com>
10263
10264 * Makefile.in: Compile menu.c.
10265
10266 * lisp.h: Declare syms_of_menu.
10267
10268 * emacs.c (main): Call syms_of_menu.
10269
10270 * keyboard.h: Relocate platform-independent menu definitions from
10271 xmenu.c.
10272
10273 * menu.c: New file. Relocate platform-independent menu
10274 definitions from xmenu.c. Suggested by Adrian Robert.
10275
10276 * xmenu.c: Remove platform-independent menu definitions.
10277 (menu_items menu_items_inuse, menu_items_allocated)
10278 (menu_items_used, menu_items_n_panes)
10279 (menu_items_submenu_depth): Move to keyboard.h.
10280 (init_menu_items, finish_menu_items, unuse_menu_items)
10281 (discard_menu_items, restore_menu_items, save_menu_items)
10282 (grow_menu_items, push_submenu_start, push_submenu_end)
10283 (push_left_right_boundary, push_menu_pane, push_menu_item)
10284 (keymap_panes, single_keymap_panes, single_menu_item)
10285 (list_of_panes, list_of_items, find_and_call_menu_selection)
10286 (xmalloc_widget_value, free_menubar_widget_value_tree)
10287 (parse_single_submenu, digest_single_submenu)
10288 (update_submenu_strings): Move to menu.c.
10289
102902008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10291
10292 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10293
102942008-06-06 Miles Bader <miles@gnu.org>
10295
10296 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10297 face, not frame default.
10298
102992008-06-05 Martin Rudalics <rudalics@gmx.at>
10300
10301 * window.c (pop_up_windows, pop_up_frames)
10302 (display_buffer_reuse_frames, Vpop_up_frame_function)
10303 (Vdisplay_buffer_function, Veven_window_heights)
10304 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10305 (Vspecial_display_function, Vsame_window_buffer_names)
10306 (Vsame_window_regexps, split_height_threshold)
10307 (Vsplit_window_preferred_function): Move those vars to window.el.
10308 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10309 (Fdisplay_buffer): Move those functions to window.el.
10310 (syms_of_window): Remove corresponding declarations.
10311 (display_buffer): New function.
10312 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10313 * dispnew.c (Flast_nonminibuf_frame): New function.
10314 * buffer.c (Fpop_to_buffer): Move to window.el.
10315
103162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10317
10318 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10319
103202008-06-05 Kenichi Handa <handa@m17n.org>
10321
10322 * coding.c (detect_coding): Fix previous change.
10323 (detect_coding_system): Likewise.
10324
103252008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10326
10327 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10328
10329 * keymap.c (Vminibuffer_local_filename_must_match_map):
10330 Rename from Vminibuffer_local_must_match_filename_map.
10331 (syms_of_keymap):
10332 * minibuf.c (Fcompleting_read): Adjust accordingly.
10333 * commands.h: Rename declaration as well.
10334
103352008-06-05 Kenichi Handa <handa@m17n.org>
10336
10337 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10338 family name.
10339 (Ffont_put): Likewise.
10340
10341 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10342 current font-spec.
10343
10344 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10345 is unspecified.
10346
10347 * xfaces.c (realize_x_face): If the font-related face attributes
10348 are the same as those of default face, realize a new fontset from
10349 default->fontset.
10350 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10351
103522008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10353
10354 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10355 (move_it_in_display_line): New wrapper.
10356
10357 * window.c (window_scroll_pixel_based_preserve_x)
10358 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10359 (window_scroll_pixel_based, window_scroll_line_based):
10360 Use them to preserve column positions.
10361 (syms_of_window): Initialize them.
10362
10363 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10364 (HPOS . VPOS) pair.
10365
10366 * dispextern.h (move_it_in_display_line): Declare.
10367
103682008-06-05 Juanma Barranquero <lekktu@gmail.com>
10369
10370 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10371 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10372 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10373
103742008-06-04 Juanma Barranquero <lekktu@gmail.com>
10375
10376 * window.c (Fset_window_parameter): Doc fix.
10377 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10378
103792008-06-04 Joakim Verona <joakim@verona.se>
10380
10381 * window.h (struct window): Add new member window_parameters.
10382
10383 * window.c (Fwindow_parameters, Fwindow_parameter)
10384 (Fset_window_parameter): New defuns.
10385 (syms_of_window): Defsubr the new defuns.
10386 (make_window): Initialize window_parameters to nil.
10387
103882008-06-04 John Paul Wallington <jpw@pobox.com>
10389
10390 * eval.c (Fdefmacro): Doc fix.
10391
103922008-06-04 Kenichi Handa <handa@m17n.org>
10393
10394 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10395 Be sure to call setup_coding_system when we find a proper coding system.
10396 (detect_coding_system): Fix handling of coding->head_ascii.
10397
103982008-06-03 Andreas Schwab <schwab@suse.de>
10399
10400 * font.c (font_prop_validate_spacing): Fix last change.
10401
104022008-06-03 Kenichi Handa <handa@m17n.org>
10403
10404 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10405 (font_parse_fcname): Fix handling of unknown key.
10406
10407 * xfont.c (xfont_list): Try an alias.
10408
10409 * charset.c (char_charset): Return NULL if the arg charset_list is
10410 specified and C doesn't belong to any of them.
10411
104122008-06-02 Chip Coldwell <coldwell@redhat.com>
10413
10414 * font.c (font_pixel_size): Don't take cdr of an integer.
10415
104162008-06-02 Jim Meyering <meyering@redhat.com>
10417
10418 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10419 * alloc.c (xfree): Return right away for a NULL arg.
10420 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10421 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10422 * mac.c (create_apple_event_from_event_ref): Likewise.
10423 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10424 Likewise.
10425 * doprnt.c (doprnt1): Likewise.
10426 * frame.c (frame): Likewise.
10427 * keyboard.c (wipe_kboard): Likewise.
10428 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10429 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10430 * term.c (tty_default_color_capabilities, maybe_fatal)
10431 (delete_tty): Likewise.
10432 * w16select.c (string): Likewise.
10433 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10434 * w32bdf.c (w32_free_bdf_font): Likewise.
10435 * w32fns.c (w32_unload_font): Likewise.
10436 * w32font.c (w32font_close): Likewise.
10437 * window.c (size_window): Likewise.
10438 * xselect.c (receive_incremental_selection): Likewise.
10439 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10440 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10441 * w32.c (stat): Likewise.
10442
10443 Remove useless if-before-free tests.
10444 * editfns.c (Fset_time_zone_rule): Likewise.
10445 * lread.c (nosuffix): Likewise.
10446 * ralloc.c (get_bloc): Likewise.
10447 * regex.c (reg_free): Likewise.
10448 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10449 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10450 * xsmfns.c (smc_save_yourself_CB): Likewise.
10451
104522008-06-02 Kenichi Handa <handa@m17n.org>
10453
10454 * font.c (font_find_for_lface): Handle float font size.
10455 (font_open_for_lface): Likewise.
10456
10457 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10458 comparing the properties.
10459
104602008-06-01 Jason Rumney <jasonr@gnu.org>
10461
10462 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10463 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10464 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10465 Don't add empty script list.
10466 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10467
104682008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10469
10470 * Makefile.in (dot, dotdot): Remove, update users.
10471 ".." has been used elsewhere in the file for a long time.
10472 (LIBXT_STATIC): Remove conditional based on unused variable.
10473
104742008-06-01 Miles Bader <miles@gnu.org>
10475
10476 * xfaces.c (Vface_remapping_alist): New variable.
10477 (syms_of_xfaces): Initialize it.
10478 (enum named_merge_point_kind): New type.
10479 (struct named_merge_point): Add `named_merge_point_kind' field.
10480 (push_named_merge_point): Make cycle detection respect different
10481 named-merge-point kinds.
10482 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10483 Remove face-name alias resolution.
10484 (lface_from_face_name): New definition using
10485 `lface_from_face_name_no_resolve'.
10486 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10487 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10488 (get_lface_attributes): New definition that layers face-remapping on
10489 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10490 (lookup_basic_face): New function.
10491 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10492 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10493 `get_lface_attributes'.
10494 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10495 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10496 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10497
10498 * xdisp.c (init_iterator): Pass base_face_id through
10499 `lookup_basic_face' when we actually use it as a face-id.
10500 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10501 DEFAULT_FACE_ID.
10502
10503 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10504 lookup the initial face-id.
10505
10506 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10507
105082008-06-01 Juanma Barranquero <lekktu@gmail.com>
10509
10510 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10511 (Fremove_text_properties): Fix typos in docstrings.
10512
105132008-05-31 Kenichi Handa <handa@m17n.org>
10514
10515 * font.c (font_list_entities): Fix the car part of data to be
10516 stored in the cache.
10517
10518 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10519
105202008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10521
10522 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10523 Add a `test' argument so another predicate than `equal' can be used.
10524 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10525 (map_char_table): Remove unused vars `c' and `i'.
10526 * lisp.h (Foptimize_char_table): Adjust declaration.
10527 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10528
105292008-05-30 Kenichi Handa <handa@m17n.org>
10530
10531 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10532 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10533 defined.
10534
105352008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10536
10537 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10538 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10539 frame-local settings for the same variable.
10540
105412008-05-30 Kenichi Handa <handa@m17n.org>
10542
10543 * fontset.c (Ffont_info): Move to font.c.
10544 (syms_of_fontset): Delete defsubr of Sfont_info.
10545
10546 * font.c (font_style_to_value, font_score): Delete casting of the
10547 args to xstcasecmp.
10548 (register_font_driver): Increment num_font_drivers only when
10549 registering the driver globally.
10550 (Ffont_info): Move from fontset.c. Handle a font object too.
10551 (syms_of_font): Defsubr Sfont_info.
10552
105532008-05-29 Kenichi Handa <handa@m17n.org>
10554
10555 * coding.h (enum define_coding_utf8_arg_index): New enum.
10556 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10557 coding_attr_utf_bom.
10558 (enum utf_bom_type): Rename from utf_16_bom_type.
10559 (struct utf_16_spec): Adjust for the above change.
10560 (struct coding_system): Add utf_8_bom in `spec' union.
10561
10562 * coding.c (CODING_UTF_8_BOM): New macro.
10563 (enum coding_category): Delete coding_category_utf_8, add
10564 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10565 coding_category_utf_8_sig.
10566 (CATEGORY_MASK_UTF_8): Delete it.
10567 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10568 (CATEGORY_MASK_UTF_8_SIG): New macros.
10569 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10570 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10571 CATEGORY_MASK_UTF_8_SIG.
10572 (CATEGORY_MASK_UTF_8): New macro.
10573 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10574 (detect_coding_utf_8): Check BOM.
10575 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10576 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10577 (encode_coding_utf_16): Likewise.
10578 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10579 (detect_coding, detect_coding_system): Handle utf-8-auto.
10580 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10581 (syms_of_coding): Fix setting up of Vcoding_category_table.
10582
105832008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10584
10585 * process.c (Faccept_process_output): If `millisec' is non-nil,
10586 `seconds' default to 0.
10587 (wait_reading_process_output): Also return non-nil if we read output
10588 from a non-running process.
10589
105902008-05-29 Jason Rumney <jasonr@gnu.org>
10591
10592 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10593 `raster' specified.
10594 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10595 in the uniscribe backend, but disallow any font that has no
10596 unicode subrange support.
10597
105982008-05-29 Juanma Barranquero <lekktu@gmail.com>
10599
10600 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10601 Fix typos in docstrings.
10602
106032008-05-29 Kenichi Handa <handa@m17n.org>
10604
10605 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10606 (Fx_family_fonts): Set frame correctly.
10607
106082008-05-28 Jason Rumney <jasonr@gnu.org>
10609
10610 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10611
106122008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10613
10614 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10615 calling build_annotations.
10616
106172008-05-28 Juanma Barranquero <lekktu@gmail.com>
10618
10619 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10620 (Fencode_coding_string):
10621 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10622 <latin-extra-code-table>: Fix typos in docstrings.
10623 (syms_of_coding) <coding-system-alist>: Doc fix.
10624 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10625
106262008-05-28 Kenichi Handa <handa@m17n.org>
10627
10628 * fontset.c (Ffont_info): Don't call font_close_object.
10629
10630 * font.c (font_parse_family_registry): Use Ffont_put to validate
10631 foundry and family.
10632 (font_delete_unmatched): Don't check spacing.
10633 (font_list_entities): Add spacing to the spec to list fonts.
10634
10635 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10636 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10637
10638 * coding.c (encode_coding_raw_text): Fix previous change.
10639 (encode_coding_object): When the dst_object is a buffer and is
10640 different from src_object, move gap to PT.
10641
106422008-05-27 Chong Yidong <cyd@stupidchicken.com>
10643
10644 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10645
106462008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10647
10648 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10649 all branches. Compute it differently.
10650
10651 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10652
106532008-05-27 Juanma Barranquero <lekktu@gmail.com>
10654
10655 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10656 into "else if () ... else ...".
10657
106582008-05-27 Jason Rumney <jasonr@gnu.org>
10659
10660 * w32font.c (w32font_open_internal): Determine if glyph indices
10661 are likely to work here.
10662
106632008-05-27 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10666 draw overlap glyphs with appropriate highlighting.
10667
106682008-05-27 Kenichi Handa <handa@m17n.org>
10669
10670 * xfont.c (xfont_open): Fix calculation of font->average_width.
10671
106722008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10673
10674 * casefiddle.c (casify_object): Try to guess better whether the
10675 argument is a byte or a char.
10676
106772008-05-26 Andreas Schwab <schwab@suse.de>
10678
10679 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10680 Always send multiples of format size.
10681
10682 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10683
106842008-05-26 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10687 (compute_metrics): Don't set failure if we just cleared the cache.
10688 (w32_weight_table): Remove unused variable.
10689 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10690 backwards compatibility.
10691
106922008-05-25 Kenichi Handa <handa@m17n.org>
10693
10694 * w32term.c (x_draw_glyph_string):
10695 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10696
10697 * xfaces.c: Delete unused function prototypes.
10698 (xstrlwr, font_frame): Delete them.
10699 (clear_face_cache): Delete unused variable.
10700
10701 * xftfont.c (xftfont_open): Delete unused variable.
10702 If underline_thickness is not 1, adjust underline_position.
10703
10704 * ftxfont.c (ftxfont_open): Delete unused variable.
10705
10706 * fontset.c (face_for_char): Optimize for the case of no charset
10707 property.
10708
10709 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10710 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10711 (otf_open, font_otf_capability, generate_otf_features)
10712 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10713 Comment out by surrounding "#if 0" and "#endif" for the moment.
10714 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10715 (syms_of_font): Codes for accessing above commented out.
10716
107172008-05-24 Eli Zaretskii <eliz@gnu.org>
10718
10719 * w32proc.c: Include dispextern.h.
10720
10721 * w32.c: Include dispextern.h.
10722
107232008-05-23 Juanma Barranquero <lekktu@gmail.com>
10724
10725 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10726 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10727 Fix typos in docstrings.
10728
107292008-05-23 Jason Rumney <jasonr@gnu.org>
10730
10731 * xsmfns.c: Remove includes that are already included by config.h.
10732
107332008-05-23 Kenichi Handa <handa@m17n.org>
10734
10735 * charset.c (Qemacs, charset_emacs): New variables.
10736 (char_charset): Fix for non-Unicode characters.
10737 (syms_of_charset): Define charset_emacs.
10738
10739 * w32term.c (x_draw_glyph_string): Be sure to update
10740 s->underline_thickness and s->underline_position. Be sure to draw
10741 underline within the current line area.
10742
10743 * xterm.c (x_draw_glyph_string): Be sure to update
10744 s->underline_thickness and s->underline_position. Be sure to draw
10745 underline within the current line area.
10746
10747 * fontset.c: Delete unused variables and add casting for char *
10748 throughout the file.
10749 (fontset_font): Try the fallback fonts of the current fontset
10750 before consulting the default fontset.
10751
10752 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10753
10754 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10755
107562008-05-22 Jason Rumney <jasonr@gnu.org>
10757
10758 * font.c: Don't include strings.h.
10759
10760 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10761
10762 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10763 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10764 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10765 to call xstrcasecmp.
10766
10767 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10768
10769 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10770
10771 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10772
10773 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10774
107752008-05-22 Kenichi Handa <handa@m17n.org>
10776
10777 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10778
10779 * font.c (font_prop_validate_style): Adjust for the format
10780 change of font_style_table.
10781
10782 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10783 two args.
10784
10785 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10786 two args.
10787
107882008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10789
10790 * minibuf.c (keys_of_minibuf): Delete.
10791 * lisp.h (keys_of_minibuf): Delete.
10792 * emacs.c (main): Don't call keys_of_minibuf.
10793
107942008-05-22 Kenichi Handa <handa@m17n.org>
10795
10796 * ftfont.c (ftfont_resolve_generic_family): Rename from
10797 ftfont_list_generic_family. Return a single family for each
10798 generic family.
10799 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10800 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10801 Call font_add_log.
10802 (ftfont_match): Call font_add_log.
10803
10804 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10805 (FONT_DEBUG): Define it.
10806 (font_add_log): Extern it.
10807 (font_assert): Rename from xassert.
10808
10809 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10810 (xfont_list_family): Call font_add_log.
10811 (xfont_match): Likewise.
10812 (memq_no_quit): Delete.
10813
10814 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10815 call of Ffont_xlfd_name.
10816
10817 * xfaces.c (struct table_entry, slant_table, weight_table)
10818 (swidth_table): Move to font.c.
10819
10820 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10821 xassert are changed to font_assert. Delete many unused variables.
10822 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10823 New variables.
10824 (struct table_entry): Move from xfaces.c and modified.
10825 (weight_table, slant_table, width_table): Move from xfaces.c and
10826 contents adjusted for the change of struct table_entry.
10827 (font_style_to_value, font_style_symbolic): Adjust for the
10828 format change of font_style_table.
10829 (font_parse_family_registry): Don't overwrite existing foundry and
10830 family of font_spec.
10831 (font_score): Fix calculation of diff for sizes.
10832 (font_sort_entites): Call font_add_log.
10833 (font_delete_unmatched): Return a newly created list.
10834 (font_list_entities): Fix previous change. Call font_add_log.
10835 (font_matching_entity, font_open_entity, font_close_entity):
10836 Call font_add_log.
10837 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10838 (Finternal_set_font_style_table): Delete.
10839 (BUILD_STYLE_TABLE): New macro.
10840 (build_style_table): New function.
10841 (Vfont_log, font_log_env_checked): New variables.
10842 (font_add_log): New function.
10843 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10844 Declare Lisp variables "font-weight-table", "font-slant-table",
10845 "font-width-table", and "font-log". Initialize font_style_table.
10846
108472008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10848
10849 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10850
108512008-05-21 Seiji Zenitani <zenitani@mac.com>
10852 Ryo Yoshitake <ryo@shiftmode.net>
10853
10854 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10855 (Vframe_alpha_lower_limit): New variable.
10856 (x_set_alpha): New function.
10857
10858 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10859
10860 * xfns.c (x-create-frame, Qalpha):
10861 Initialize the frame parameter `alpha'.
10862 * xterm.c (OPAQUE, OPACITY): New.
10863 (x_set_frame_alpha): New function.
10864 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10865
10866 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10867 * w32fns.c (w32_frame_parm_handlers): Likewise.
10868
108692008-05-20 Jason Rumney <jasonr@gnu.org>
10870
10871 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10872 truetype fonts to opentype list.
10873
108742008-05-20 Juanma Barranquero <lekktu@gmail.com>
10875
10876 * fontset.c (Ffontset_info): Doc fix.
10877 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10878 <ignore-relative-composition>: Fix typos in docstrings.
10879
10880 * font.c (syms-of-font) <font-encoding-alist>:
10881 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10882 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10883 (Ffont_otf_alternates): Doc fixes.
10884
108852008-05-20 Kenichi Handa <handa@m17n.org>
10886
10887 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10888 font.h through out the file.
10889 (FONT_DRIVERS): Rename from FONTOBJ.
10890 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10891 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10892
10893 * emacs.c (main): Call syms_of_font unconditionally.
10894
10895 * font.h (find_font_encoding): Extern it.
10896
10897 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10898 fontset.c.
194d44e7 10899 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10900 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10901 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10902 only when HAVE_WINDOW_SYSTEM is defined.
10903 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10904 when HAVE_WINDOW_SYSTEM is defined.
10905
10906 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10907 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10908
10909 * xfaces.c: Include font.h unconditionally.
10910 (merge_face_ref, merge_face_vectors)
10911 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10912
109132008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10914
10915 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10916 indirect_variable.
10917 * eval.c (lisp_indirect_variable): New fun.
10918 (Fuser_variable_p): Use it.
10919
109202008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * lisp.h (indirect_variable):
10923 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10924 Use Lisp_Symbol pointers rather than Lisp_Object.
10925 Adjust callers.
10926 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10927 To this end, change calling-convention.
10928
10929 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10930 if some non-hidden buffers are selected by string&pred.
10931
109322008-05-19 Chong Yidong <cyd@stupidchicken.com>
10933
10934 * process.c (wait_reading_process_output): Always check status
10935 when in batch mode.
10936
109372008-05-19 Kenichi Handa <handa@m17n.org>
10938
10939 * font.c (font_list_entities): Fix handling of cache.
10940 (font_matching_entity): Likewise.
10941
10942 * ftfont.c (cs_iso8859_1): Delete.
10943 (ft_face_cache): New variable.
10944 (struct ftfont_info): New member fc_charset_idx.
10945 (ftfont_build_basic_charsets): Delete.
10946 (fc_charset_table): New variable.
10947 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10948 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10949 Callers changed.
10950 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10951 (ftfont_spec_pattern): New argument fc_charset_idx.
10952 Check registry more rigidly. Change callers.
10953 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10954 change of :font-entity property of the font.
10955
10956 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10957 property of the font.
10958
109592008-05-18 Juanma Barranquero <lekktu@gmail.com>
10960
10961 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10962 (Funencodable_char_position, Fcheck_coding_systems_region)
10963 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10964 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10965 (Ffind_operation_coding_system, Fset_coding_system_priority)
10966 (Fcoding_system_eol_type): Doc fixes.
10967
109682008-05-17 Glenn Morris <rgm@gnu.org>
10969
10970 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10971
109722008-05-16 Eli Zaretskii <eliz@gnu.org>
10973
10974 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10975 and st_gid.
10976
10977 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10978 HAVE_WINDOW_SYSTEM is not defined.
10979
10980 * xfaces.c (merge_face_ref, merge_face_vectors)
10981 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10982 HAVE_WINDOW_SYSTEM is defined.
10983 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10984
109852008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10986
10987 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10988
109892008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10990
10991 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10992
109932008-05-15 Kenichi Handa <handa@m17n.org>
10994
10995 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10996 preference.
10997
109982008-05-15 Glenn Morris <rgm@gnu.org>
10999
11000 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11001
110022008-05-15 Chong Yidong <cyd@stupidchicken.com>
11003
11004 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11005 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11006
11007 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11008
110092008-05-15 Kenichi Handa <handa@m17n.org>
11010
11011 * ftfont.c (ftfont_list): Downcase family name to check generic
11012 families.
11013
11014 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11015 font-spec for QCfont value.
11016
11017 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11018 buffer. Check the return value of it.
11019
110202008-05-14 Jason Rumney <jasonr@gnu.org>
11021
11022 * w32term.c (w32_get_glyph_overhangs): Remove.
11023 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11024
110252008-05-14 Kenichi Handa <handa@m17n.org>
11026
11027 * font.c (font_prop_validate): Make nil a valid value.
11028 (font_clear_cache): Check if the cached vector of entities is nil
11029 or not.
11030
110312008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11032
11033 * emacs.c (main_thread): Conditionalize on
11034 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11035 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11036
11037 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11038 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11039 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11040
110412008-05-14 Kenichi Handa <handa@m17n.org>
11042
11043 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11044 has no corresponding coding system.
11045
110462008-05-14 Jason Rumney <jasonr@gnu.org>
11047
11048 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11049
11050 * w32font.h (w32font_open_internal): Update declaration.
11051
11052 * w32font.c (w32font_open_internal): Change last argument from
11053 w32font_info struct to font object. Fill in font object from
11054 font_entity. Get Outline metrics if possible. Use them to
11055 calculate underline position and thickness. Use xlfd name as name
11056 property. Don't set codepage.
11057 (w32font_open): Pass font_object to w32font_open_internal. Don't
11058 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11059 (w32font_draw): Use s->font.
11060 (clear_cached_metrics): Don't clear non-existent blocks.
11061
11062 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11063 font was not found.
11064 (x_draw_glyph_string): Use underline position and thickness from font.
11065
11066 * w32uniscribe.c (uniscribe_open): Pass font_object to
11067 w32font_open_internal.
11068
110692008-05-14 Kenichi Handa <handa@m17n.org>
11070
11071 These changes are to delete all legacy font-handling codes, and
11072 make Emacs use only font-backends.
11073
11074 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11075 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11076
11077 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11078
11079 * charset.h (Vcharset_non_preferred_head)
11080 (Vcurrent_iso639_language): Extern them.
11081
11082 * charset.c (Vcharset_non_preferred_head): New variable.
11083 (Vcurrent_iso639_language): New variable.
11084 (syms_of_charset): Declare it as a Lisp variable.
11085 (char_charset): Don't check non preferred charsets. As a last
11086 resort, return charset_unicode.
11087 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11088
11089 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11090 conditionals. Don't check enable_font_backend. Delete all codes
11091 used only when USE_FONT_BACKEND is not defined.
11092
11093 * dispextern.h (struct glyph_string): Change type of `font' to
11094 `struct font *'.
11095 (struct glyph_string): New member underline_position and
11096 underline_thickness.
11097 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11098 (struct face): Change type of `font' to `struct font *'. Remove
11099 members `font_name', `font_info_id'.
11100 (per_char_metric, encode_char): Delete externs.
11101 (calc_pixel_width_or_height): Adjust the prototype.
11102
11103 * emacs.c (enable_font_backend): Delete extern.
11104 (main): Don't set enable_font_backend. Don't check the command
11105 line argument "-disable-font-backend".
11106
11107 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11108 (enum font_property_index): New members FONT_DPI_INDEX,
11109 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11110 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11111 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11112 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11113 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11114 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11115 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11116 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11117 (struct font_spec, struct font_entity): New structs.
11118 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11119 (struct font): Many members from old "struct font_info" moved to
11120 here. Members font and entity deleted.
11121 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11122 the new font-related objects.
11123 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11124 (CHECK_FONT_GET_OBJECT): Likewise.
11125 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11126 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11127 (struct font_driver): New members case_sensitive anc check. Type
11128 of the member list and open changed.
11129 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11130 (font_symbolic_width, font_find_object, font_get_spec)
11131 (font_set_lface_from_name): Delete extern.
11132 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11133
11134 * font.c: Include <strings.h>.
11135 (enable_font_backend): Delete it.
11136 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11137 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11138 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11139 (null_string): Delete it.
11140 (null_vector): Make it static.
11141 (font_family_alist): Delete it.
11142 (Qnormal): Extern it.
11143 (QCextra, QClanguage): Delete it.
11144 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11145 (font_make_spec, font_make_entity, font_make_object)
11146 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11147 the string. Callers changed.
11148 (font_pixel_size): Adjusted for the format change of font-related
11149 objects.
11150 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11151 (font_style_to_value, font_style_symbolic): New function.
11152 (build_font_family_alist): Delete it.
11153 (font_registry_charsets): Use Fassoc_string instead of
11154 assq_no_quit.
11155 (font_prop_validate_symbol): Don't return null_string.
11156 (font_prop_validate_style): Adjusted for the change of
11157 style-related values in a font vector.
11158 (font_property_table): Delete entries for QClanguage and
11159 QCantialias, add entries for QCavgwidth.
11160 (get_font_prop_index): Delete the 2nd argument FROM.
11161 (font_prop_validate): Arguments changed.
11162 (font_put_extra): Adjusted for the change of font-related objects.
11163 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11164 (font_parse_fcname, font_unparse_fcname)
11165 (font_prepare_composition): Likewise.
11166 (font_parse_family_registry): Renamed from font_merge_old_spec.
11167 (otf_open): Delete the 1st arg entity.
11168 (font_otf_capability): Adjusted for the above change.
11169 (font_score): New arg alternate_families. Adjusted for the change
11170 of font-related objects.
11171 (font_sort_entites): New arg best_only.
11172 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11173 Delete them.
11174 (font_match_p): Check alternate families.
11175 (font_find_object): Delete it.
11176 (font_check_object): New function.
11177 (font_clear_cache): Adjusted for the change of font-related objects.
11178 (font_delete_unmatched): New arg.
11179 (font_list_entities): Call font_driver->list with a spec that
11180 doesn't specify style-related properties.
11181 (font_matching_entity): Arguments changed. Caller changed.
11182 (font_open_entity): Adjusted for the change of font-related objects.
11183 (font_close_object, font_has_char, font_encode_char)
11184 (font_get_name, font_get_spec): Likewise.
11185 (font_spec_from_name, font_clear_prop, font_update_lface):
11186 New functions.
11187 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11188 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11189 (font_at): Adjusted for the change of font-related objects.
11190 (font_range): New function.
11191 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11192 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11193 (Fcopy_font_spec, Fmerge_font_spec): New function.
11194 (Ffont_family_list): Renamed from list-families.
11195 (Finternal_set_font_style_table): Arguments changed.
11196 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11197 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11198 change of font-related objects.
11199 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11200
11201 * fontset.h (struct font_info): Delete it. Most members go to
11202 struct font.
11203 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11204 (enum FONT_SPEC_INDEX): Delete it.
11205 (font_info, list_fonts_func, load_font_func, query_font_func)
11206 (set_frame_fontset_func, find_ccl_program_func)
11207 (get_font_repertory_func, new_fontset_from_font_name): Delete
11208 externs.
11209 (fontset_from_font_name): Extern it.
11210 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11211 (FONT_INFO_FROM_FACE): Deleted.
11212 (face_for_font): Adjust prototype.
11213
11214 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11215 conditionals. Don't check enable_font_backend. Delete all codes
11216 used only when USE_FONT_BACKEND is not defined.
11217 (get_font_info_func, list_font_func, load_font_func)
11218 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11219 (get_font_repertory_func): Delete them.
11220 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11221 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11222 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11223 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11224 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11225 (fontset_compare_rfontdef): New function.
11226 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11227 rfont-defs by qsort. Adjusted for the change of font-group vector.
11228 (load_font_get_repertory): Deleted.
11229 (fontset_find_font): Use new macros to ref/set elements of
11230 font-def and rfont-def.
11231 (fontset_font): Fix the timing of remembering that no font for C.
11232 (free_face_fontset): Do nothing if the face has no fontset.
11233 (face_suitable_for_char_p): Use new macros to ref/set elements of
11234 rfont-def.
11235 (face_for_char): Likewise. Call face_for_char with font_object.
11236 (fs_load_font): Delete. Delete #pragma surrounding it.
11237 (fs_query_fontset): Use strcasecmp instead of strcmp.
11238 (generate_ascii_font_name): Adjusted for the format change of
11239 font-spec.
11240 (Fset_fontset_font): Likewise. Use new macros to set elements of
11241 font-def.
11242 (Fnew_fontset): Use font_unparse_xlfd to generate
11243 FONTSET_ASCII (fontset).
11244 (new_fontset_from_font_name): Deleted.
11245 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11246 a fontset is already created for the font. FIx updating of
11247 Vfontset_alias_alist.
11248 (fontset_ascii_font): Deleted.
11249 (Ffont_info): Adjusted for the format change of font-spec.
11250 (Finternal_char_font): Likewise.
11251 (Ffontset_info): Likewise.
11252 (syms_of_fontset): Don't check load_font_func.
11253
11254 * fns.c (internal_equal): Handle PREV_FONT.
11255
11256 * frame.h: Delete USE_FONT_BACKEND conditional.
11257
11258 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11259 conditionals. Don't check enable_font_backend. Delete all codes
11260 used only when USE_FONT_BACKEND is not defined.
11261 (x_set_font): Call x_new_font, not x_new_fontset2.
11262 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11263 already set for the frame.
11264
11265 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11266 a font-entity by font_make_entity. Use font_intern_prop instead
11267 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11268 font property. If a font is scalable, set avgwidth property to 0.
11269 Set font-entity property by font_put_extra.
11270 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11271 (ffont_driver): Adjusted for the change of struct font_driver.
11272 (ftfont_spec_pattern): New function.
11273 (ftfont_list): Return a list, not vector.
11274 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11275 (ftfont_list_family): Don't downcase names.
11276 (ftfont_free_entity): Deleted.
11277 (ftfont_open): Return a font-object. Adjusted for the change of
11278 struct font. Get underline_thickness and underline_position from
11279 font property. Don't update dpyinfo->smallest_font_height and
11280 dpyinfo->smallest_char_width.
11281 (ftfont_close): Don't free `struct font'.
11282 (ftfont_has_char): Adjusted for the format change of font-entity.
11283 (ftfont_encode_char, ftfont_text_extents): Likewise.
11284
11285 * ftxfont.c (ftxfont_list): Return a list, not vector.
11286 (ftxfont_open): Return a font-object. Adjusted for the change of
11287 struct font. Get underline_thickness and underline_position from
11288 font property. Don't update dpyinfo->smallest_font_height and
11289 dpyinfo->smallest_char_width.
11290 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11291 (ftxfont_draw): Adjusted for the change of struct font.
11292
11293 * image.c (image_ascent): Don't include "charset.h". Include
11294 "character.h" and "font.h".
11295
11296 * lisp.h (enum pvec_type): New member PREV_FONT.
11297 (Fassoc_string): EXFUN it.
11298
11299 * print.c: Include font.h.
11300 (print_object): Handle font-related objects.
11301
11302 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11303 conditionals. Don't check enable_font_backend. Delete all codes
11304 used only when USE_FONT_BACKEND is not defined.
11305 (handle_auto_composed_prop): Do nothing if it->f is not on a
11306 window system. Check how many following characters can be
11307 displayed by the same font.
11308 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11309 'struct font *'.
11310 (get_char_face_and_encoding): Assign the whole encoding task to
11311 the `encode-char' method of a font driver.
11312 (fill_composite_glyph_string): Adjusted for the change of `struct
11313 face' and `struct glyph_string'.
11314 (fill_glyph_string): Likewise.
11315 (get_per_char_metric): Arguments changed.
11316 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11317 and `struct glyph_string'.
11318 (produce_stretch_glyph, calc_line_height_property)
11319 (x_produce_glyphs): Likewise.
11320
11321 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11322 conditionals. Don't check enable_font_backend. Delete all codes
11323 used only when USE_FONT_BACKEND is not defined. Use
11324 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11325 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11326 (Qp): Extern them.
11327 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11328 Deleted.
11329 (struct font_name): Deleted.
11330 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11331 (compare_fonts_by_sort_order): New function.
11332 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11333 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11334 Deleted.
11335 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11336 compare_fonts_by_sort_order.
11337 (Fx_font_family_list): Call Ffont_family_list.
11338 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11339 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11340 (face_symbolic_slant, face_symbolic_swidth)
11341 (split_font_name_into_vector, build_font_name_from_vector)
11342 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11343 (font_rescale_ratio, split_font_name, build_font_name)
11344 (free_font_names, sort_fonts, x_face_list_fonts)
11345 (face_font_available_p, sorted_font_list, cmp_font_names)
11346 (font_list_1, concat_font_list, font_list, remove_duplicates):
11347 Deleted.
11348 (Fx_list_fonts): Use Ffont_list.
11349 (LFACE_AVGWIDTH): Deleted.
11350 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11351 by FONTP.
11352 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11353 (set_lface_from_font_name): Delete it.
11354 (set_lface_from_font): Renamed from
11355 set_lface_from_font_and_fontset. Caller changed. Don't set
11356 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11357 for face.
11358 (merge_face_vectors): Copy font-spec if necessary.
11359 Clear properties of the font-spec if necessary.
11360 (merge_face_ref): Clear properties of the font-spec if necessary.
11361 (Finternal_set_lisp_face_attribute): Likewise.
11362 (set_font_frame_param): Use font_load_for_lface to load a
11363 font-object, and call Fmodify_frame_parameters with it.
11364 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11365 font name by Ffont_xlfd_name.
11366 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11367 QCslant, and QCwidth.
11368 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11369 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11370 Compare fonts by EQ.
11371 (lookup_non_ascii_face): Deleted.
11372 (face_for_font): The 2nd argument changed.
11373 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11374 Check atomic font properties by case insensitive.
11375 (realize_non_ascii_face): Set face->overstrike correctly.
11376 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11377 (dump_realized_face): Get font name from
11378 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11379
11380 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11381 conditionals. Don't check enable_font_backend. Delete all codes
11382 used only when USE_FONT_BACKEND is not defined.
11383 (xic_create_xfontset): Original code deleted and renamed from
11384 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11385 (x_make_gc): Don't set GCFont in GCs.
11386 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11387 opened by "fixed".
11388 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11389 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11390 get_font_repertory_func.
11391
11392 * xfont.c: Include <stdlib.h> and "ccl.h".
11393 (struct xfont_info): New structure.
11394 (xfont_query_font): Deleted.
11395 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11396 moved from xterm.c.
11397 (xfont_driver): Adjusted for the change of struct font_driver.
11398 (compare_font_names): New function.
11399 (xfont_list_pattern): Sort font names case insensitively. Make
11400 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11401 (xfont_list): Return a list, not vector.
11402 (xfont_match): If the font doesn't have QCname property, generate
11403 a name from the other font properties.
11404 (xfont_open): Return a font-object. Adjusted for the change of
11405 struct font. Get underline_thickness and underline_position from
11406 font property. Don't update dpyinfo->smallest_font_height and
11407 dpyinfo->smallest_char_width.
11408 (xfont_close): Don't free struct font.
11409 (xfont_prepare_face): Adjusted for the change of struct font.
11410 (xfont_done_face): Deleted.
11411 (xfont_has_char): Adjusted for the change of struct font.
11412 (xfont_encode_char, xfont_draw): Likewise.
11413 (xfont_check): New function.
11414
11415 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11416 callback function.
11417 (xftfont_match): Adjusted for the format change of font-entity.
11418 (xftfont_open): Adjusted for the format change of font-entity and
11419 font-object. Adjusted for the change of struct font. Return a
11420 font-object. Don't update dpyinfo->smallest_font_height and
11421 dpyinfo->smallest_char_width.
11422 (xftfont_close): Block input while calling XftFontClose.
11423 (xftfont_prepare_face): Don't block input while calling
11424 xftfont_get_colors. Adjusted for the change of struct font.
11425 (xftfont_shape): Return value of error case fixed.
11426
11427 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11428
11429 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11430 conditionals.
11431 (FONT_WIDTH): Return (f)->max_width.
11432 (struct x_display_info): Delete member `font'.
11433 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11434 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11435 (struct x_output): Change type of `font' to `struct font *'.
11436
11437 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11438 conditionals. Don't check enable_font_backend. Delete all codes
11439 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11440 (x_per_char_metric, x_encode_char): Deleted.
11441 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11442 (x_compute_glyph_string_overhangs): Adjusted for the change of
11443 `struct face'.
11444 (x_draw_glyph_string_foreground)
11445 (x_draw_composite_glyph_string_foreground): Likewise.
11446 (x_draw_glyph_string): Likewise. Use font->underline_position and
11447 font->underline_thickness.
11448 (x_new_font): Renamed from x_new_fontset2.
11449 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11450 (x_check_font): Call `check' method of a font driver.
11451 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11452 (x_query_font, x_get_font_repertory): Deleted.
11453 (x_find_ccl_program): Renamed and moved to xfont.c.
11454 (x_redisplay_interface): Adjusted for the change of `struct
11455 redisplay_interface'.
11456
11457 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11458 conditionals. Don't check enable_font_backend. Delete all codes
11459 used only when USE_FONT_BACKEND is not defined. Surround non-used
11460 code by "#ifdef OLD_FONT" and "endif".
11461 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11462
11463 * w32font.h (struct w32font_info): New member.
11464 (FONT_COMPAT): New macro.
11465 (w32font_open_internal): Prototype adjusted.
11466
11467 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11468 OLD_FONT" and "endif".
11469
11470 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11471 conditionals. Don't check enable_font_backend. Delete all codes
11472 used only when USE_FONT_BACKEND is not defined.
11473 (w32font_open): Return a font-object. Make a font-object by
11474 font_make_object. Adjusted for the change of struct w32font_info.
11475 (w32font_close): Don't free struct font. Adjusted for the change
11476 of struct w32font_info.
11477 (w32font_encode_char, w32font_text_extents, w32font_draw):
11478 Adjusted for the change of struct w32font_info.
11479 (w32font_draw): Likewise.
11480 (w32font_list_internal): Return a list, not vector.
11481 (w32font_open_internal): Change the 4th arg to font-object.
11482 Adjusted for the change of struct w32font_info and font-object format.
11483 (add_font_name_to_list): Don't downcase names.
11484 (w32_enumfont_pattern_entity): Make a font-entity by
11485 font_make_entity. Adjusted for the format change of font-entity.
11486 Use FONT_SET_STYLE to set a style-related font property. If a
11487 font is scalable, set avgwidth property to 0. Set font-entity
11488 property by font_put_extra.
11489 (font_matches_spec): Adjusted for the format change of font-entity.
11490 (w32_weight_table, w32_decode_weight): New variables.
11491 (w32_encode_weight): New function.
11492 (fill_in_logfont): Adjusted for the format change of font-spec.
11493 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11494 weight value.
11495 (w32font_driver): Adjusted for the change of struct font_driver.
11496
11497 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11498 conditionals. Don't check enable_font_backend. Surround non-used
11499 code by "#ifdef OLD_FONT" and "endif".
11500 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11501 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11502
11503 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11504 conditionals. Don't check enable_font_backend. Delete all codes
11505 used only when USE_FONT_BACKEND is not defined. Surround non-used
11506 code by "#ifdef OLD_FONT" and "endif".
11507
11508 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11509 (uniscribe_open): Return value changed to font-object.
11510 Adjusted for the format change of font-object.
11511 (uniscribe_otf_capability): Adjusted for the change of struct font.
11512 (add_opentype_font_name_to_list): Don't downcase names.
11513 (uniscribe_font_driver): Adjusted for the change of struct
11514 font_driver.
11515
115162008-05-13 Chong Yidong <cyd@stupidchicken.com>
11517
11518 * dispnew.c (update_frame_1): Check if tty output is still valid
11519 before flushing it.
11520
115212008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11522
11523 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11524 to Gtk+ menus.
11525
115262008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11527
11528 * dired.c (file_name_completion): Tweak the code so as to always do it
11529 in a single pass. Tighten the scope of some variables.
11530
11531 * dired.c (Qdefault_directory): New var.
11532 (file_name_completion): Use it instead of Fexpand_file_name.
11533 (syms_of_dired): Initialize it.
11534
115352008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11536
11537 * fileio.c (double_dollars): Remove dead code.
11538
115392008-05-10 Eli Zaretskii <eliz@gnu.org>
11540
11541 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11542 Mention w32-get-true-file-attributes in doc string.
11543
11544 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11545
115462008-05-09 Glenn Morris <rgm@gnu.org>
11547
11548 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11549 2008-04-23.
11550
115512008-05-09 Eli Zaretskii <eliz@gnu.org>
11552
11553 Support for reporting owner and group of each file on MS-Windows:
11554 * dired.c (stat_uname, stat_gname): New functions, with special
11555 implementation for w32.
11556 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11557
11558 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11559 (dflt_group_name): New static variable.
11560 (dflt_group): Rename from the_group.
11561 (init_user_info): Init dflt_group fields. Get user's group name
11562 from LookupAccountSid.
11563 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11564 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11565 New initialization states.
11566 (globals_of_w32): Initialize them to zero. Initialize the default
11567 group name to "None".
11568 (GetFileSecurity_Name): New global var, the name of the function
11569 to call for GetFileSecurity.
11570 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11571 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11572 (get_file_security, get_security_descriptor_owner)
11573 (get_security_descriptor_group, is_valid_sid)
11574 (get_file_security_desc, get_rid, get_name_and_id)
11575 (get_file_owner_and_group): New functions.
11576 (stat): Use get_file_security_desc and get_file_owner_and_group to
11577 report the owner and primary group of each file. Don't ignore the
11578 high 32 bits of file's size, now that st_size is 64-bit wide.
11579 Fix test when to get true file attributes.
11580 (init_user_info): Use get_rid instead of equivalent inline code.
11581 (fstat): Don't ignore the high 32 bits of file's size.
11582
115832008-05-09 Chong Yidong <cyd@stupidchicken.com>
11584
11585 * image.c (png_load): Use correct bit-depth for setting background
11586 color.
11587
115882008-05-08 Eli Zaretskii <eliz@gnu.org>
11589
11590 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11591 epa-hook.elc.
11592
115932008-05-08 Juanma Barranquero <lekktu@gmail.com>
11594
11595 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11596
115972008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11598
11599 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11600 because the original parameters are in pure storage now.
11601 (mac_window): Remove unused params. Update callers.
11602
116032008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11604
11605 * lread.c (substitute_object_recurse): Use lower-level primitives.
11606 Don't signal errors when traversing sub-char-tables.
11607 Don't loop over all the possible characters when traversing char-tables.
11608
11609 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11610 just like we do in print.c.
11611
116122008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * minibuf.c (Ftry_completion): Remove code left over from when we used
11615 scmp instead of Fcompare_strings.
11616
116172008-05-04 Juanma Barranquero <lekktu@gmail.com>
11618
11619 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11620
116212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11622
11623 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11624 Create bitmap context in native byte order.
11625
11626 * macterm.c (XDrawLine)
11627 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11628 context in native byte order.
11629
116302008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11631
11632 * config.in: Regenerate.
11633
11634 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11635 New definitions for Image I/O support.
11636 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11637 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11638 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11639 (mac_data_provider_release_data, image_load_image_io)
11640 [USE_MAC_IMAGE_IO]: New functions.
11641 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11642 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11643 (init_image_func_pointer) [MAC_OSX]: Remove function.
11644 (image_load_quartz2d) [MAC_OSX]: Check availability of
11645 CGImageCreateWithPNGDataProvider at compile time.
11646 Use lowercase `false' for boolean constant.
11647 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11648 Use image_load_image_io.
11649 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11650 Don't check MyCGImageCreateWithPNGDataProvider.
11651 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11652 Don't call init_image_func_pointer.
11653
11654 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11655
11656 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11657 Make variable non-static.
11658 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11659 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11660
11661 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11662 (RED_FROM_ULONG): Mask off higher bits.
11663 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11664
11665 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11666 Include AvailabilityMacros.h.
11667 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11668 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11669
116702008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11671
11672 * chartab.c (Fset_char_table_range): If range is t, really set all
11673 chars to that value.
11674
116752008-05-03 Eli Zaretskii <eliz@gnu.org>
11676
11677 * dired.c (Ffile_attributes): Don't allow the device number become
11678 negative.
11679
116802008-05-02 Daiki Ueno <ueno@unixuser.org>
11681
11682 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11683
116842008-05-02 Juri Linkov <juri@jurta.org>
11685
11686 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11687 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11688 DEFAULT argument as a list of default values in docstrings.
11689
116902008-05-01 Chong Yidong <cyd@stupidchicken.com>
11691
11692 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11693
116942008-05-01 Martin Rudalics <rudalics@gmx.at>
11695
11696 * dispnew.c (change_frame_size_1): Preserve small windows when
11697 shrinking frames by calling set_window_height|width with third
11698 arg 2.
11699
11700 * window.h (struct window): Replace field too_small_ok by field
11701 resize_proportionally.
11702
11703 * window.c (make_window): Initialize resize_proportionally.
11704 (enlarge_window): Temporarily set resize_proportionally to make
11705 sure that shrink_windows does scale the window proportionally.
11706 (shrink_windows): When window has resize_proportionally set try
11707 to shrink it proportionally by stealing from other windows.
11708 (struct saved_window, Fset_window_configuration)
11709 (compare_window_configurations): Handle resize_proportionally.
11710 (WINDOW_TOTAL_SIZE): New macro.
11711 (window_min_size, shrink_windows, size_window): Use it.
11712 (check_min_window_sizes): Remove. Invalid values of
11713 window-min-height|width are handled by window_min_size_2 now.
11714 (size_window, Fsplit_window, enlarge_window)
11715 (adjust_window_trailing_edge, grow_mini_window): Don't call
11716 check_min_window_sizes.
11717 (window_min_size_2, window_min_size_1, window_min_size):
11718 New argument safe_p for retrieving "safe" minimum sizes.
11719 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11720 (adjust_window_trailing_edge, grow_mini_window):
11721 Adjust arguments of window_min_size... functions.
11722 (shrink_windows): Argument min_size removed. New argument
11723 safe_p allows shrinking windows to their safe minimum sizes.
11724 Calculate minimum size and decide whether a window shall be
11725 deleted for each window individually.
11726 (size_window): When nodelete_p equals 2, tell shrink_windows to
11727 delete windows only if their new minimum size is no more safe.
11728 (shrink_window_lowest_first): Call window_min_size_1 to make
11729 sure to preserve modeline of bottom-most window when resizing
11730 the minibuffer.
11731 (Fset_window_configuration, Fcurrent_window_configuration)
11732 (compare_window_configurations): Do not handle
11733 window-min-height|width any more.
11734 (syms_of_window): Clarify window-min-height|width doc-strings.
11735
117362008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11737
11738 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11739 some more. Copy some of the code from Ftry_completions.
11740 Remove special case code that dates back to initial revision when the
11741 slash was only added when necessary and that can't trigger nowadays.
11742
117432008-04-27 Kenichi Handa <handa@m17n.org>
11744
11745 * font.c (font_prop_validate): Signal `error' instead of `font'.
11746
117472008-04-29 Jason Rumney <jasonr@gnu.org>
11748
11749 * w32fns.c (Fw32_battery_status): New defun.
11750 (syms_of_w32fns): Defsubr it.
11751
117522008-04-28 Andreas Schwab <schwab@suse.de>
11753
11754 * dired.c (file_name_completion): Fix another mixing of encoded
11755 and decoded names.
11756
117572008-04-28 Juanma Barranquero <lekktu@gmail.com>
11758
11759 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11760
117612008-04-27 Juanma Barranquero <lekktu@gmail.com>
11762
11763 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11764
117652008-04-27 Andreas Schwab <schwab@suse.de>
11766
11767 * dired.c (file_name_completion): Fix inappropriate mixing of
11768 encoded and decoded names.
11769
11770 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11771
11772 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11773
117742008-04-26 Eli Zaretskii <eliz@gnu.org>
11775
11776 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11777 2008-03-31, it's not needed anymore with `struct stat' definition
11778 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11779 for the same reasons.
11780
117812008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11782
11783 * m/sparc.h: Additional redefinitions for GNU/Linux.
11784
117852008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11786
11787 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11788 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11789 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11790 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11791 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11792 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11793 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11794 Likewise.
11795
11796 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11797 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11798 (mac_ax_number_of_characters): Add externs.
11799 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11800 [USE_MAC_TSM]: Likewise.
11801 (mac_handle_text_input_event) [MAC_OSX]:
11802 Handle kEventTextInputOffsetToPos for no active input area case.
11803 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11804 (mac_handle_document_access_event)
11805 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11806 (install_application_handler) [MAC_OSX]: Register handlers for
11807 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11808 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11809 Register mac_handle_document_access_event.
11810
11811 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11812 Make functions non-static.
11813
118142008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11815
11816 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11817 (read_file_name_completion_ignore_case, insert_default_directory)
11818 (Qdefault_directory): Move to minibuffer.el.
11819 (Fread_file_name): Call the new `read-file-name' instead.
11820
118212008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11822
11823 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11824 Make function non-static.
11825 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11826 Remove function.
11827 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11828 Move to mactoolbox.c.
11829 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11830
11831 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11832 (mac_rect_make): New macro.
11833
11834 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11835 instead of float.
11836 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11837 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11838 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11839 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11840 CGRectMake.
11841 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11842 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11843 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11844 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11845 instead of WindowRef in argument type.
11846 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11847 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11848 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11849 instead of DISPLAY. All uses changed.
11850 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11851 (x_calc_absolute_position): Simplify so as not to use
11852 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11853
11854 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11855 instead of WindowRef in argument type.
11856 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11857 [TARGET_API_MAC_CARBON]: Remove externs.
11858 (create_apple_event, mac_event_parameters_to_lisp)
11859 [TARGET_API_MAC_CARBON]: Add externs.
11860
11861 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11862 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11863 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11864 is clicked.
11865 (x_activate_menubar): Remove extern for saved_menu_event_location.
11866 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11867 Move from mac.c.
11868
118692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11870
11871 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11872 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11873
118742008-04-23 Jason Rumney <jasonr@gnu.org>
11875
11876 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11877 attributes only for local files.
11878
11879 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11880 default to Qlocal.
11881
118822008-04-22 Juri Linkov <juri@jurta.org>
11883
11884 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11885 read-buffer-to-switch instead of using the letter "B".
11886
118872008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * fileio.c (Qdefault_directory): New variable.
11890 (Fread_file_name): Use it to pass `dir' to the completion functions.
11891
118922008-04-20 Chong Yidong <cyd@stupidchicken.com>
11893
11894 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11895
118962008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11897
11898 * keyboard.c (Vpre_help_message): Remove.
11899 (show_help_echo): Remove default C code.
11900
11901 * dired.c (directory_files_internal, file_name_completion):
11902 Only call ENCODE_FILE if the string is indeed decoded.
11903
119042008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11905
11906 * Makefile.in (TOOLKIT_DEFINES): Remove.
11907 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11908
119092008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11910
11911 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11912 (mactoolbox.o): New target.
11913
11914 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11915 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11916
11917 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11918 Use mac_set_frame_window_background instead of XSetWindowBackground.
11919 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11920 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11921 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11922 instead of SetWindowTitleWithCFString.
11923 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11924 Move function to mactoolbox.c.
11925 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11926 Use mac_set_window_modified instead of SetWindowModified.
11927 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11928 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11929 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11930 FrontNonFloatingWindow. Use mac_activate_window instead of
11931 ActivateWindow. Use mac_active_non_floating_window instead of
11932 ActiveNonFloatingWindow.
11933 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11934 Use mac_show_hourglass and mac_hide_hourglass.
11935 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11936 instead of GetGlobalMouse.
11937 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11938 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11939 Use mac_bring_window_to_front instead of BringToFront.
11940 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11941 mactoolbox.c.
11942 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11943 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11944 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11945 mactoolbox.c.
11946
11947 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11948 (XtPointer): Move typedef from macmenu.c.
11949 (enum button_type): Move enum from macmenu.c.
11950 (widget_value): Move typedef from macmenu.c.
11951 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11952 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11953 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11954 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11955 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11956 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11957 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11958 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11959 (Selection): Move typedef from macselect.c.
11960 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11961 macterm.c.
11962 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11963 (mac_is_window_collapsed, mac_bring_window_to_front)
11964 (mac_send_window_behind, mac_hide_window, mac_show_window)
11965 (mac_collapse_window, mac_front_non_floating_window)
11966 (mac_active_non_floating_window, mac_activate_window)
11967 (mac_move_window_structure, mac_move_window, mac_size_window)
11968 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11969
11970 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11971 (enum mac_menu_kind): Move enum to mactoolbox.c.
11972 (min_menu_id): Move variable to mactoolbox.c.
11973 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11974 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11975 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11976 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11977 [TARGET_API_MAC_CARBON]: Likewise.
11978 (XtPointer): Move typedef to macgui.h.
11979 (enum button_type): Move enum to macgui.h.
11980 (widget_value): Move typedef to macgui.h.
11981 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11982 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11983 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11984 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11985 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11986 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11987 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11988 (popup_activated_flag): Make variable non-static.
11989 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11990 (add_menu_item, fill_menu, dispose_menus):
11991 Move functions to mactoolbox.c.
11992 (restore_show_help_function, menu_target_item_handler)
11993 (install_menu_target_item_handler, mac_handle_dialog_event)
11994 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11995 [TARGET_API_MAC_CARBON]: Likewise.
11996 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11997 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11998 (find_and_call_menu_selection, name_is_separator): Make function
11999 non-static.
12000 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12001 to mactoolbox.c.
12002 (set_frame_menubar): Don't call install_menu_quit_handler.
12003 (menu_item_selection): New variable.
12004 (mac_menu_show): Use create_and_show_popup_menu.
12005 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12006 selection but set variable menu_item_selection. All uses changed.
12007 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12008 Call install_menu_quit_handler. Move to mactoolbox.c.
12009
12010 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12011 (Selection): Move typedef to macgui.h.
12012 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12013 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12014 Make variables non-static.
12015 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12016 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12017 Make functions non-static.
12018 (Vmac_service_selection) [MAC_OSX]: Likewise.
12019 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12020 (mac_valid_selection_target_p, mac_clear_selection)
12021 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12022 (mac_put_selection_value, mac_selection_has_target_p)
12023 (mac_get_selection_value, mac_get_selection_target_list)
12024 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12025 Move functions to mactoolbox.c.
12026 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12027 Likewise.
12028 (copy_scrap_flavor_data, mac_handle_service_event)
12029 (install_service_handler) [MAC_OSX]: Likewise.
12030 (syms_of_macselect) <Vmac_dnd_known_types>:
12031 Use mac_dnd_default_known_types.
12032
12033 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12034 Move to mactoolbox.c.
12035 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12036 (Fx_selection_owner_p): Add EXFUN.
12037 (install_window_handler, remove_window_handler, XSetWindowBackground):
12038 Remove externs.
12039 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12040 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12041 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12042 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12043 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12044 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12045 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12046 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12047 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12048 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12049 (mac_valid_selection_target_p, mac_clear_selection)
12050 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12051 (mac_put_selection_value, mac_selection_has_target_p)
12052 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12053 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12054 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12055 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12056 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12057 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12058 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12059 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12060 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12061
12062 * mactoolbox.c: New file.
12063
120642008-04-18 Jason Rumney <jasonr@gnu.org>
12065
12066 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12067
120682008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * character.c (Fmultibyte_char_to_unibyte):
12071 Return latin1 chars unchanged.
12072
12073 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12074 relocated if it points to `name'.
12075
120762008-04-17 Kenichi Handa <handa@m17n.org>
12077
12078 * data.c (Faset): Allow setting a multibyte character in an
12079 ASCII-only unibyte string.
12080
12081 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12082
120832008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12084
12085 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12086 done in config.h.
12087
120882008-04-16 Juanma Barranquero <lekktu@gmail.com>
12089
12090 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12091 (Fchar_direction): Add usage in the docstring.
12092
120932008-04-15 Chong Yidong <cyd@stupidchicken.com>
12094
12095 * keyboard.c (read_key_sequence): Remove always-true checks.
12096
120972008-04-14 Jason Rumney <jasonr@gnu.org>
12098
12099 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12100 compatibility struct, for better underline positioning.
12101
121022008-04-13 David Hansen <david.hansen@gmx.net>
12103
12104 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12105 string.
12106
121072008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12108
12109 * m/hp800.h (XUINT, XSET): Remove.
12110
121112008-04-12 Juanma Barranquero <lekktu@gmail.com>
12112
12113 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12114 previous change.
12115
121162008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12117
12118 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12119 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12120
121212008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12122
12123 * keymap.h (map_keymap_canonical): Declare.
12124 * xmenu.c (single_keymap_panes): Use it.
12125
121262008-04-11 Glenn Morris <rgm@gnu.org>
12127
12128 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12129 set the target's value to that of the alias.
12130
121312008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12132
12133 * term.c (set_tty_color_mode): Left over typo.
12134
121352008-04-10 Michael Albinus <michael.albinus@gmx.de>
12136
12137 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12138 only after check for file name handler functions. Signal, when
12139 native functionality is not supported.
12140 (syms_of_fileio): Declare it unconditionally.
12141
121422008-04-10 Jason Rumney <jasonr@gnu.org>
12143
12144 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12145 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12146
12147 * w32.c (logon_network_drive): Also logon to remote drives that
12148 are mapped to drive letters.
12149
121502008-04-10 Glenn Morris <rgm@gnu.org>
12151
12152 * xdisp.c (truncate-partial-width-windows): Doc fix.
12153
121542008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12155
12156 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12157 Move functions to minibuffer.el.
12158 (syms_of_fileio): Don't declare them.
12159
121602008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12161
12162 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12163 (syms_of_minibuf): Remove its initialization.
12164
12165 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12166
121672008-04-09 Juanma Barranquero <lekktu@gmail.com>
12168
12169 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12170
121712008-04-09 Jason Rumney <jasonr@gnu.org>
12172
12173 * makefile.w32-in (distclean): Delete makefile too.
12174 (maintainer-clean): New target.
12175
12176 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12177
12178 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12179 for new font backend and composite cases.
12180
121812008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12182
12183 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12184 Most of the code moved to run_timers.
12185 (do_pending_atimers): Call run_timers.
12186 (run_timers): New function.
12187
12188 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12189 run atimers.
12190
12191 * process.c (wait_reading_process_output): The same as above.
12192
121932008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12194
12195 * minibuf.c (last_exact_completion): Remove variable.
12196 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12197 (complete_and_exit_1, complete_and_exit_2)
12198 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12199 (Fdisplay_completion_list, display_completion_list_1)
12200 (Fminibuffer_completion_help, Fself_insert_and_exit)
12201 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12202 minibuffer.el.
12203 (syms_of_minibuf): Remove corresponding initializations.
12204
12205 * keyboard.c (Qdeactivate_mark): New var.
12206 (command_loop_1): Use it to call `deactivate-mark'.
12207 (syms_of_keyboard): Initialize it.
12208
12209 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12210 to another frame.
12211 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12212 Don't call set_tty_color_mode.
12213 (store_frame_param): Reset previous_frame rather than call
12214 set_tty_color_mode.
12215 * term.c (set_tty_color_mode): Rewrite.
12216 * dispextern.h (set_tty_color_mode): New type.
12217 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12218
122192008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12220
12221 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12222 for generic chars, which do not exist any more in emacs-unicode.
12223
122242008-04-08 Michael Albinus <michael.albinus@gmx.de>
12225
12226 * coding.c (detect_coding_emacs_mule)
12227 (Ffind_operation_coding_system): Fix typo.
12228
122292008-04-08 Jason Rumney <jasonr@gnu.org>
12230
12231 * w32uniscribe.c (SNAME): Extract only symbol name.
12232
12233 * w32font.h (struct w32_metric_cache): New struct.
12234 (w32font_info): Use it.
12235 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12236 (CACHE_BLOCKSIZE): New constants.
12237
12238 * w32font.c (Qja, Qko, Qzh): New symbols.
12239 (syms_of_w32font): Initialise them.
12240 (font_matches_spec): Use them to filter by language.
12241 (recompute_cached_metrics): Remove function.
12242 (compute_metrics, clear_cached_metrics): New functions.
12243 (w32font_encode_char): Use them to manage metric cache.
12244 (w32font_text_extents): Cache metrics for all glyphs on demand.
12245 Delay converting glyph indices to WORD until needed.
12246 (w32font_open_internal): Initialize metric cache to empty.
12247 (registry_to_w32_charset): Charset should always be a symbol.
12248 (fill_in_logfont, list_all_matching_fonts): Family should
12249 always be a symbol.
12250
122512008-04-06 Jason Rumney <jasonr@gnu.org>
12252
12253 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12254 Give up if glyph indices not supported. Use uniscribe obtained
12255 ABC widths for individual metrics. Map glyph clusters back to
12256 characters using fClusterStart flag. Return number of glyphs
12257 produced, not chars processed.
12258 (uniscribe_shape): Map char at FROM to current glyph.
12259
122602008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12261
12262 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12263 Use SetMenuItemHierarchicalMenu.
12264
122652008-04-05 Jason Rumney <jasonr@gnu.org>
12266
12267 * image.c (pbm_load): Allow color values up to 65535.
12268 Throw an error if max_color_idx is outside the supported range.
12269 Report an error when image size is invalid.
12270 Read two bytes at a time when raw images have max_color_idx above 255.
12271
122722008-04-05 Eli Zaretskii <eliz@gnu.org>
12273
12274 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12275 cFileName a file name that includes `?' characters, use the 8+3
12276 alias in cAlternateFileName instead.
12277
122782008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12279
12280 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12281 append "CCL: Quitted" when the CCL program is quitted.
12282 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12283
12284 * ccl.h (struct ccl_program): New member quit_silently.
12285
122862008-04-05 Chong Yidong <cyd@stupidchicken.com>
12287
12288 * search.c (compile_pattern_1): Treat non-nil and non-string of
12289 search-spaces-regexp as nil.
12290
12291 * minibuf.c (Fassoc_string): Tweak docstring.
12292
122932008-04-05 Eli Zaretskii <eliz@gnu.org>
12294
12295 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12296 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12297 2008-03-14 to force inode be positive.
12298
12299 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12300 _S_* ones, since we now use our own sys/stat.h.
12301 (stat, fstat): Don't mangle the inode number.
12302 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12303
123042008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12305
12306 * frame.h (struct frame): Give one more bit to `visible' since we use
12307 values larger than 1 to indicate obscured frames on ttys.
12308
12309 * keymap.c (Qkeymap_canonicalize): New var.
12310 (Fmap_keymap_internal): New fun.
12311 (describe_map): Use keymap-canonicalize.
12312
12313 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12314 (Fundo_boundary): Set them.
12315 (syms_of_undo): Initialize them.
12316 (record_point): Use them instead of last_point_position*.
12317 (last_undo_buffer): Change type.
12318
123192008-04-04 Jason Rumney <jasonr@gnu.org>
12320
12321 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12322 (recompute_cached_metrics): Don't set ascent and descent per char.
12323
12324 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12325 (uniscribe_check_otf): Add GC protection before consing.
12326 Rearrange loop for counting features.
12327
123282008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12329
12330 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12331 buffer with byte-size of source buffer.
12332
123332008-04-03 Chong Yidong <cyd@stupidchicken.com>
12334
12335 * callint.c (Fcall_interactively): Handle temporary region even
12336 when shift-select-mode is off.
12337
123382008-04-03 Jason Rumney <jasonr@gnu.org>
12339
12340 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12341
123422008-04-03 Kenichi Handa <handa@m17n.org>
12343
12344 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12345 (CATEGORY_MASK_UTF_16): Likewise.
12346 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12347 binary file.
12348 (detect_coding): Add null-byte detection for a binary file.
12349 (detect_coding_system): Likewise.
12350
123512008-04-03 Jason Rumney <jasonr@gnu.org>
12352
12353 * w32uniscribe.c: New file.
12354
12355 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12356
12357 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12358
12359 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12360 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12361 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12362 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12363 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12364 (Qphonetic): New symbols.
12365 (syms_of_w32font): Initialize them.
12366 (font_supported_scripts): Use them.
12367 (w32font_list_family): List all charsets.
12368 (w32font_text_extents, recompute_cached_metrics): Fix metric
12369 calculations.
12370 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12371 Give opentype fonts their own format.
12372 (font_matches_spec): New arguments backend and logfont.
12373 Handle :otf spec for uniscribe backend.
12374 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12375 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12376
12377 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12378 font backend.
12379 (globals_of_w32fns): Initialize uniscribe font backend.
12380
12381 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12382 dependencies.
12383 (w32uniscribe.$(O)): New file to build.
12384 (FONT_OBJ): Include w32uniscribe.$(O).
12385 (LIBS): Add uniscribe libraries.
12386
12387 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12388
123892008-04-02 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * callint.c (Vshift_select_mode): New var.
12392 (Finteractive): Document new ^ spec.
12393 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12394 is present.
12395
12396 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12397 (command_loop_1): Avoid running the direct display versions of
12398 forward-char and backward-char if shift-selection may occur.
12399 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12400 shift-translation takes place.
12401
12402 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12403 avoid clobbering by define-minor-mode.
12404
12405 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12406 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12407
12408 * syntax.c (Fforward_word): Add ^ interactive spec.
12409
12410 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12411 (Fscroll_right): Add ^ interactive spec.
12412
124132008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12414
12415 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12416
12417 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12418
12419 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12420
124212008-03-31 Juri Linkov <juri@jurta.org>
12422
12423 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12424
124252008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12426
12427 * gtkutil.c (xg_set_geometry): Fix indentation.
12428 (xg_resize_outer_widget): Remove.
12429 (x_wm_size_hint_off): Fix indentation.
12430 (xg_frame_set_char_size): Call flush_and_sync after
12431 gtk_window_resize.
12432 (x_wm_set_size_hint): Pass NULL as geometry window to
12433 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12434 Add menu bar and tool bar height to base height.
12435 (xg_update_frame_menubar, free_frame_menubar)
12436 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12437 (update_frame_tool_bar, free_frame_tool_bar):
12438 Change xg_resize_outer_widget to xg_frame_set_char_size.
12439
124402008-03-30 Michael Albinus <michael.albinus@gmx.de>
12441
12442 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12443 (Fdbus_call_method): New parameter TIMEOUT.
12444 (dbus-send-signal): Optimize UNGCPRO call.
12445
124462008-03-29 Juri Linkov <juri@jurta.org>
12447
12448 * window.c (Fdisplay_buffer): Move call to
12449 Vsplit_window_preferred_function out of conditions that check
12450 if window is eligible for vertical splitting.
12451 When Vsplit_window_preferred_function is non-nil, call it and use
12452 its non-nil return value as window. Otherwise, continue doing
12453 vertical splitting using Fsplit_window with arg horflag=nil.
12454 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12455 default value from `split-window' to nil.
12456
124572008-03-29 Juri Linkov <juri@jurta.org>
12458
12459 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12460 for interactive code letters 'b' and 'B'.
12461
124622008-03-29 Eli Zaretskii <eliz@gnu.org>
12463
12464 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12465 multibyte string.
12466
124672008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12468
12469 * keyboard.c (pending_funcalls): New var.
12470 (timer_check): Run it.
12471 (syms_of_keyboard): Initialize it.
12472 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12473 (Vdelete_terminal_functions): New vars.
12474 (syms_of_terminal): Initialize them.
12475 (Fdelete_terminal): Run delete-terminal-functions.
12476 * xdisp.c (safe_eval): Rewrite.
12477 (safe_call2): New fun.
12478 * frame.c (Qdelete_frame_functions): New var.
12479 (syms_of_frame): Initialize it.
12480 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12481 * lisp.h (safe_call2, pending_funcalls): Declare.
12482
124832008-03-28 Andreas Schwab <schwab@suse.de>
12484
12485 * indent.c (Fmove_to_column): Move declaration before statements.
12486
124872008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12488
12489 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12490 (struct frame): Use bit fields for boolean vars.
12491
12492 * process.c (server_accept_connection): Simplify naming.
12493 (emacs_get_tty_pgrp): Use SDATA.
12494
12495 * coding.c (decode_coding_object): Fix last change.
12496
124972008-03-27 Jason Rumney <jasonr@gnu.org>
12498
12499 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12500
125012008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12502
12503 * charset.c (Fdefine_charset_internal): Change the way of
12504 registering charsets in Vcharset_order_list.
12505 (syms_of_charset): Make the charset `eight-bit' supplementary.
12506
125072008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12508
12509 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12510 operations, to avoid having the difference between pointers
12511 overflow.
12512
125132008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12514
12515 * indent.c (check_display_width): New fun.
12516 (scan_for_column): Use it.
12517
12518 * data.c (syms_of_data): Mark most-positive-fixnum and
12519 most-negative-fixnum as constants.
12520
12521 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12522
12523 * indent.c (scan_for_column): Extract from current_column_1.
12524 Merge with the same code from Fmove_to_column.
12525 (current_column_1, Fmove_to_column): Use it.
12526
125272008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12528
12529 * keymap.c (map_keymap_internal): New fun.
12530 (map_keymap): Use it.
12531 (Fmap_keymap_internal): New fun.
12532 (Fmap_keymap): Remove left-out test from before make_save_value.
12533
12534 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12535
12536 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12537 Use XCAR/XCDR.
12538
12539 * process.h (struct Lisp_Process): Remove filter_multibyte.
12540 * process.c (QCfilter_multibyte): Remove.
12541 (setup_process_coding_systems): Don't use filter_multibyte.
12542 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12543 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12544 (Fset_process_filter_multibyte): Change the coding-system to
12545 approximate the previous behavior.
12546 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12547 coding-system.
12548
12549 * coding.c (decode_coding_object): When not decoding into a buffer,
12550 obey the coding system's preference of (uni|multi)byte.
12551
125522008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12553
12554 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12555 every char is changed and has a different byte-length.
12556 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12557 Fix int -> EMACS_INT.
12558
125592008-03-23 David Hansen <david.hansen@gmx.net>
12560
12561 * dbusbind.c (xd_read_message): Remove extra copying of message
12562 strings. Check for NULL `interface' or `member'.
12563
125642008-03-22 Eli Zaretskii <eliz@gnu.org>
12565
12566 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12567 cFileName a file name that includes `?' characters, use the 8+3
12568 alias in cAlternateFileName instead.
12569
125702008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12571
12572 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12573
125742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12575
12576 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12577 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12578 work on current_buffer only instead (that was already the case
12579 for some of the code anyway).
12580 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12581 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12582 (SET_PT, SET_PT_BOTH): Adjust.
12583 * intervals.h (set_point, temp_set_point, set_point_both)
12584 (temp_set_point_both): Remove redundant declarations.
12585
125862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12587
12588 * fileio.c (Finsert_file_contents):
12589 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12590 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12591 when buffer != current_buffer anyway.
12592
125932008-03-20 Andreas Schwab <schwab@suse.de>
12594
12595 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12596 as default.
12597
125982008-03-19 Jason Rumney <jasonr@gnu.org>
12599
12600 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12601 (syms_of_w32fns): Initialize them.
12602 (HOURGLASS_ID): New constant.
12603 (x_window_to_frame): Don't check hourglass_window.
12604 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12605 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12606 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12607 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12608 Only change the cursor if hourglass is not active.
12609 (Fx_create_frame): Initialize frame's current_cursor.
12610 (hourglass_atimer): Remove.
12611 (hourglass_started): New function.
12612 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12613 (show_hourglass): Adapt to w32, changing argument to frame.
12614
12615 * w32term.h (struct w32_output): Remove hourglass_window.
12616 Add current_cursor.
12617
12618 * eval.c (call_debugger, Fsignal):
12619 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12620 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12621 (Fexecute_extended_command, cancel_hourglass_unwind):
12622 * minibuf.c (read_minibuf):
12623 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12624
126252008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12626
12627 * window.c (run_funs): New fun.
12628 (run_window_configuration_change_hook): Use it to run the buffer-local
12629 and the global part of the hook.
12630
12631 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12632 (unwind_format_mode_line): Restore selected window.
12633 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12634
126352008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12636
12637 * editfns.c (Fchar_equal): Check they are valid characters.
12638
12639 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12640
126412008-03-17 Andreas Schwab <schwab@suse.de>
12642
12643 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12644 against a charset.
12645
12646 * lisp.h (Fbuffer_list): Declare.
12647
126482008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12649
aac0c6e3
MR
12650 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12651 handlebox_widget is != 0.
12652
126532008-03-16 Juri Linkov <juri@jurta.org>
12654
12655 * callint.c (Fcall_interactively): For interactive code letters
12656 'b' and 'B' put the buffer list into the list of default "future"
12657 values of the minibuffer.
12658
126592008-03-16 Andreas Schwab <schwab@suse.de>
12660
12661 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12662 modifiers.
12663
12664 * regex.c (re_match_2_internal): Correct matching of a charset
12665 against latin-1 characters.
12666
126672008-03-16 Kenichi Handa <handa@m17n.org>
12668
12669 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12670 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12671 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12672 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12673 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12674 CHAR_STRING_ADVANCE.
12675 (produce_chars): Fix for the case that the source and the
12676 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12677 instead of CHAR_STRING_ADVANCE.
12678 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12679 STRING_CHAR_ADVANCE.
12680
126812008-03-15 Andreas Schwab <schwab@suse.de>
12682
12683 * regex.c (re_match_2_internal): Correct matching of eight bit
12684 characters in unibyte strings.
12685
126862008-03-15 Martin Rudalics <rudalics@gmx.at>
12687
12688 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12689 at end of range when it coincides with the end of the buffer.
12690
126912008-03-14 Eli Zaretskii <eliz@gnu.org>
12692
12693 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12694
12695 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12696
126972008-03-14 Jason Rumney <jasonr@gnu.org>
12698
12699 * editfns.c (initial_tz): New variable.
12700 (syms_of_editfns): Initialize it.
12701 (Fset_time_zone_rule): Set it when first called.
12702 Use it when TZSTRING is nil.
12703
12704 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12705 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12706 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12707 (globals_of_w32fns): Initialize them.
12708 (compute_tip_xy): Use them to position tooltips.
12709
127102008-03-14 Glenn Morris <rgm@gnu.org>
12711
12712 * emacs.c (main): Revert previous change.
12713 (standard_args): Revert -internal-script back to -scriptload,
12714 and remove the long-option form.
12715
127162008-03-13 Glenn Morris <rgm@gnu.org>
12717
12718 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12719 Remove option -enable-font-backend.
12720
127212008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12722
12723 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12724
127252008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12726
12727 * xterm.c (x_connection_closed): For GTK: If this is the last
12728 terminal just exit without closing the display.
12729
127302008-03-11 Jason Rumney <jasonr@gnu.org>
12731
12732 * w32font.c (w32font_full_name): Use floor to round.
12733
f0131492 127342008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12735
12736 * sound.c (alsa_configure): Declare vol at beginning of block.
12737
12738 * fontset.c (Ffontset_info): Remove extra semicolon.
12739
127402008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12741
12742 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12743 size of resulting string.
12744
127452008-03-10 Jason Rumney <jasonr@gnu.org>
12746
12747 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12748
127492008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12750
12751 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12752 Don't pretend as if characters with display property haven't been
12753 consumed for string-replacing-string case.
12754
127552008-03-08 Kim F. Storm <storm@cua.dk>
12756
12757 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12758 (get_next_display_element, next_element_from_string)
12759 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12760
127612008-03-08 Andreas Schwab <schwab@suse.de>
12762
12763 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12764
127652008-03-06 Jason Rumney <jasonr@gnu.org>
12766
12767 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12768 when charset not specified. Only translate ANSI to unicode when
12769 font_type is truetype.
12770 (w32font_coverage_ok): New function.
12771 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12772
127732008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12774
12775 * lread.c (Fread_char): Resolve modifiers.
12776 (Fread_char_exclusive): Likewise.
12777
12778 * character.c (char_resolve_modifier_mask): New function.
12779 (char_string): Use char_resolve_modifier_mask.
12780 (Fchar_resolve_modifiers): New function.
12781 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12782 function.
12783
127842008-03-04 Jason Rumney <jasonr@gnu.org>
12785
12786 * makefile.w32-in: Always include w32font.c in the build.
12787 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12788
127892008-03-04 Andreas Schwab <schwab@suse.de>
12790
12791 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12792 (versionclean): Likewise.
12793
127942008-03-04 Juanma Barranquero <lekktu@gmail.com>
12795
12796 * .cvsignore: Add oo.
12797
127982008-03-03 Andreas Schwab <schwab@suse.de>
12799
12800 * coding.c (decode_coding_object): Inhibit gap shrinking while
12801 decoding in place.
12802
128032008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12804
12805 * w32term.c: Remove unused include "gnu.h".
12806 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12807
12808 * gnu.h: Rename to ...
12809 * emacs-icon.h: ... this.
12810 * xterm.c: Use emacs-icon.h instead of gnu.h.
12811 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12812
128132008-03-03 Juanma Barranquero <lekktu@gmail.com>
12814
12815 * w32font.c: Include math.h.
12816
128172008-03-03 Jason Rumney <jasonr@gnu.org>
12818
12819 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12820 Compute options separately.
12821 (w32font_open_internal): Set glyph_idx before caching metrics.
12822
12823 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12824 Define if system headers don't.
12825 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12826 (w32font_encode_char): Don't declare here.
12827
12828 * w32font.c (Quniscribe, QCformat): New symbols.
12829 (syms_of_w32font): Define them.
12830 (w32font_has_char): Indicate uncertainty.
12831 (w32font_encode_char): Encode as glyph point. Make static.
12832 (recompute_cached_metrics): New function.
12833 (w32font_open_internal): Use it. Set font to use glyph points
12834 initially. Set format based on type of font.
12835 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12836 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12837 on it. Set format based on information available here.
12838 (add_font_entity_to_list): Identify backend based on opentype_only.
12839
128402008-03-02 Andreas Schwab <schwab@suse.de>
12841
12842 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12843
12844 * coding.c (decode_coding_big5, produce_chars):
12845 Fix typos in last change.
12846
128472008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12848
12849 * gnu.h: New icon.
12850
128512008-03-02 Kenichi Handa <handa@m17n.org>
12852
12853 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12854 `dos', don't decode '\r' if that is the last in the source.
12855 (decode_coding_utf_16, decode_coding_emacs_mule)
12856 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12857 (decode_coding_raw_text, decode_coding_charset): Likewise.
12858 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12859
128602008-03-01 Jason Rumney <jasonr@gnu.org>
12861
12862 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12863
128642008-03-01 Kim F. Storm <storm@cua.dk>
12865
12866 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12867
128682008-03-01 Jason Rumney <jasonr@gnu.org>
12869
12870 * w32font.c (w32font_full_name): New function.
12871 (w32font_open_internal): Use it.
12872
128732008-03-01 Kim F. Storm <storm@cua.dk>
12874
12875 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12876
128772008-03-01 Jason Rumney <jasonr@gnu.org>
12878
12879 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12880
128812008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12882
12883 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12884 xg_frame_resized when the event is for the edit widget.
12885
12886 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12887
12888 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12889 set_char_size.
12890 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12891 operations on widgets here. Just set frame size if needed.
12892 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12893 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12894 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12895 the whole frame.
12896 (xg_create_tool_bar): Move attachment of the tool bar to
12897 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12898 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12899
129002008-03-01 Jason Rumney <jasonr@gnu.org>
12901
12902 * w32fns.c (w32_msg_pump): Disable debug code.
12903
129042008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12905
12906 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12907
129082008-02-29 Chong Yidong <cyd@stupidchicken.com>
12909
12910 * xdisp.c (next_overlay_string): Don't set
12911 overlay_strings_at_end_processed_p if we're currently reading from
12912 a display string.
12913
129142008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * xdisp.c (get_overlay_strings_1): Fix typo.
12917
129182008-02-29 Chong Yidong <cyd@stupidchicken.com>
12919
12920 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12921
129222008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12923
12924 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12925
12926 * xdisp.c (display_mode_element): Cancel the previous change.
12927 (decode_mode_spec): Likewise.
12928 (handle_auto_composed_prop): Don't make composition if it->string
12929 is a string.
12930
129312008-02-27 Kim F. Storm <storm@cua.dk>
12932
12933 * lisp.h (GLYPH): Change type from int to struct with separate char
12934 and face_id members.
12935 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12936 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12937 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12938 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12939 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12940 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12941 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12942 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12943 handle new Lisp glyph code encoding, either an integer or a cons.
12944
12945 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12946 (GLYPH_ALIAS): Delete.
12947 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12948 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12949 (GLYPH_FROM_CHAR): Replace macro by ...
12950 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12951
12952 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12953 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12954 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12955 (GLYPH_INVALID_P): New macro.
12956 (spec_glyph_lookup_face): Update prototype.
12957
12958 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12959 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12960 new glyph code encoding.
12961 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12962 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12963
12964 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12965 Adapt to new glyph type and new glyph code encoding.
12966
12967 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12968
12969 * indent.c (current_column, current_column_1, Fmove_to_column)
12970 (compute_motion): Adapt to new glyph code encoding.
12971
12972 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12973
129742008-02-27 Chong Yidong <cyd@stupidchicken.com>
12975
12976 * process.c (wait_reading_process_output): Check for window
12977 changes caused by timers.
12978 Suggested by Johan Bockgård.
12979
129802008-02-27 Glenn Morris <rgm@gnu.org>
12981
12982 * emacs.c (USAGE1): Add `--disable-font-backend'.
12983
129842008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12985
12986 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12987 is made to the buffer.
12988
129892008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12990
12991 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12992 (face_at_string_position):
12993 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12994 (face_at_string_position):
12995 * xdisp.c (display_string, next_overlay_change):
12996 * buffer.h (overlays_at):
12997 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12998 Update callers.
12999
130002008-02-26 Chong Yidong <cyd@stupidchicken.com>
13001
13002 * editfns.c (Fformat): Doc fix.
13003
130042008-02-26 Juanma Barranquero <lekktu@gmail.com>
13005
13006 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13007 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13008 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13009
130102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13011
13012 * buffer.c (Fbuffer_swap_text): New function.
13013 (syms_of_buffer): Defsubr it.
13014
130152008-02-25 Chong Yidong <cyd@stupidchicken.com>
13016
13017 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13018
130192008-02-25 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32font.c (w32font_draw): Draw one character at a time when padding.
13022
130232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13024
13025 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13026 Handle a nil arg. Use run_window_configuration_change_hook.
13027 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13028 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13029 Use run_window_configuration_change_hook.
13030
130312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13032
13033 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13034 1-pixel width.
13035
130362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13037
13038 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13039 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13040 if the glyph in the font is zero pixel with.
13041
13042 * dispextern.h (struct glyph_string): New member padding_p.
13043
13044 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13045
13046 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13047
13048 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13049
13050 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13051
13052 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13053
130542008-02-25 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13057
130582008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13059
13060 Allow fine-grained image-cache flushing.
13061 * dispextern.h (struct image): Add `dependencies' field.
13062 (clear_image_caches): Change arg to Lisp_Object.
13063 * image.c (make_image): Initialize `dependencies' field.
13064 (clear_image_cache): Change arg to allow fine-grained flushing.
13065 Perform the flush even if image-cache-eviction-delay is nil.
13066 (clear_image_caches): Change arg to Lisp_Object.
13067 (Fclear_image_cache): Expand meaning of the argument.
13068 (mark_image): Mark `dependencies' field.
13069 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13070 (lface_hash): Use XHASH rather than XFASTINT.
13071 (face_at_buffer_position): Fix int -> EMACS_INT position.
13072 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13073 (select_frame_for_redisplay): Remove code duplication.
13074 (redisplay_internal): Adapt arg to call to clear_image_caches.
13075
130762008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13077
13078 * s/vms4-0.h:
13079 * s/vms4-2.h:
13080 * s/vms4-4.h:
13081 * s/vms5-5.h: Remove, unused.
13082
13083 * s/irix5-2.h:
13084 * s/irix6-0.h:
13085 * s/riscos5.h:
13086 * s/mach-bsd4-3.h:
13087 * m/mips4.h: Remove files for obsolete systems.
13088
13089 * Makefile.in:
13090 * filelock.c:
13091 * unexmips.c:
13092 * m/hp9000s300.h:
13093 * m/iris4d.h:
13094 * s/aix3-1.h:
13095 * s/hpux.h:
13096 * s/msdos.h:
13097 * s/usg5-0.h:
13098 * s/usg5-2-2.h:
13099 * s/usg5-2.h:
13100 * s/usg5-3.h: Remove references to obsolete variables.
13101
13102 * s/irix5-0.h: Remove, move all the contents ...
13103 * s/irix6-5.h: ... here. Simplify.
13104 * config.in: Regenerate.
13105
131062008-02-24 Jason Rumney <jasonr@gnu.org>
13107
13108 * w32term.c (x_draw_glyph_string_background): Clear the background
13109 manually when cleartype is in use.
13110 (x_draw_glyph_string_foreground): Draw text transparently when
13111 cleartype is in use.
13112
13113 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13114 a font into it unless we have to.
13115
131162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13117
13118 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13119 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13120
aac0c6e3
MR
131212008-02-18 Jason Rumney <jasonr@gnu.org>
13122
13123 * w32fns.c (Fw32_shell_execute): Encode parameters.
13124
131252008-02-09 Eli Zaretskii <eliz@gnu.org>
13126
13127 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13128
131292008-02-05 Juanma Barranquero <lekktu@gmail.com>
13130
13131 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13132
131332008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13134
13135 * xterm.c (x_set_offset): Don't change the gravity if
13136 CHANGE_GRAVITY is -1.
13137
131382008-02-23 Chong Yidong <cyd@stupidchicken.com>
13139
13140 * fileio.c (auto_save_error_occurred): New var.
13141 (auto_save_error): Set it.
13142 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13143 error occurred.
13144
131452008-02-23 Eli Zaretskii <eliz@gnu.org>
13146
13147 * w32.c (globals_of_w32): Add initializations for
13148 g_b_init_get_sid_sub_authority and
13149 g_b_init_get_sid_sub_authority_count.
13150
131512008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13152
13153 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13154 (font_parse_xlfd): Use them for sanity check.
13155 (Finternal_set_font_style_table): Make sure the table is bijective.
13156
13157 Consolidate the image_cache to the terminal struct.
13158 * termhooks.h (P_): Remove redundant def.
13159 (struct terminal): New field `image_cache'.
13160 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13161 of FRAME_X_IMAGE_CACHE.
13162 * xterm.h (struct x_display_info): Remove image_cache field.
13163 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13164 * w32term.h (struct w32_display_info): Remove image_cache field.
13165 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13166 * macterm.h (struct mac_display_info): Remove image_cache field.
13167 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13168 * xterm.c (x_term_init):
13169 * w32term.c (w32_term_init):
13170 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13171 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13172 Remove declarations.
13173 (clear_image_caches, mark_image_cache): New declarations.
13174 * xfaces.c (clear_face_cache):
13175 * xdisp.c (redisplay_internal): Use clear_image_caches.
13176 * image.c (clear_image_cache): Don't check that a frame is on
13177 a window-system before checking if it shares the same cache.
13178 (clear_image_caches): New function.
13179 (Fclear_image_cache): Use it.
13180 (mark_image): Move from allo.c.
13181 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13182 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13183 (mark_object): Don't call mark_image_cache for frames.
13184 (mark_terminals): Call mark_image_cache.
13185
13186 * lisp.h (Fdelete_terminal): Declare.
13187
13188 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13189 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13190 wrong_type_argument.
13191
131922008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13193
13194 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13195 malayalam.el, and tamil.el. Add sinhala.el.
13196
131972008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13198
13199 * xterm.c (x_connection_closed): Consolidate identical tests.
13200 (x_delete_terminal): Don't crash if called via x_connection_closed.
13201
132022008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13203
13204 * xdisp.c (decode_mode_spec): New arg string.
13205 (display_mode_element): Adjust for the above change.
13206
132072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13208
13209 * callint.c (Fcall_interactively): Use AREF.
13210
132112008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13212
13213 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13214
132152008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13216
13217 * xfns.c (Fx_show_tip): Set string to " " if empty.
13218
132192008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13220
13221 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13222 with Qt.
13223
132242008-02-17 Kenichi Handa <handa@m17n.org>
13225
13226 * ftfont.c (ftfont_shape): Return Lispy number.
13227
13228 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13229 for GCs.
13230 (Finternal_set_font_selection_order): Call font_update_sort_order
13231 only when enable_font_backend is set.
13232 (realize_x_face): Set face->font_info to that of default face only
13233 when enable_font_backend is set.
13234
13235 * xdisp.c (handle_composition_prop): Set it->c to the fist
13236 character of the composed region.
13237 (fill_composite_glyph_string): Set base_face->font_info to
13238 s->font_info. Get a face for ascii from base_face->ascii_face.
13239 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13240 with a face already decided.
13241 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13242 non-negative.
13243 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13244 call font_prepare_composition unconditionally.
13245
13246 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13247
13248 * xterm.h (struct x_display_info): New member font.
13249
13250 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13251 (x_set_mouse_face_gc, x_new_font): Likewise.
13252 (x_term_init): Setup display_info->font.
13253 (x_delete_terminal): Free display_info->font.
13254
13255 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13256
13257 * ftxfont.c (ftxfont_default_fid): Delete it.
13258 (ftxfont_open): Set xfont->fid to 0.
13259 (ftxfont_end_for_frame): Clear data specific to the frame and the
13260 font-driver.
13261
13262 * xftfont.c (xftfont_default_fid): Delete it.
13263 (xftfont_open): Set xfont->fid to 0.
13264
13265 * fontset.c (FONTSET_OBJLIST): New macro.
13266 (fontset_find_font): Update font-object list of the fontset.
13267 (free_realized_fontset): New function.
13268 (free_face_fontset): Call free_realized_fontset.
13269 (Ffont_info): Call font_close_object only when enable_font_backend
13270 is set.
13271
13272 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13273 [HAVE_NTGUI]: Include w32term.h.
13274 [MAC_OS]: Include macterm.ch.
13275 (font_otf_ValueRecord): Use make_number.
13276 (font_finish_cache): Fix handling of reference count.
13277 (font_clear_cache): Update num_fonts.
13278 (font_open_entity): Update smallest_char_width and
13279 smallest_font_height of the frame.
13280 (font_close_object): Update num_fonts.
13281 (Fclear_font_cache): Fix finding the target cache data.
13282
132832008-02-16 Glenn Morris <rgm@gnu.org>
13284
13285 * fontset.c (Finternal_char_font): Fix compilation warning.
13286
132872008-02-16 Eli Zaretskii <eliz@gnu.org>
13288
13289 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13290 instead of char arrays. Enlarge the size of array passed to
13291 get_token_information.
13292
13293 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13294 warnings.
13295
132962008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13297
13298 * .gdbinit: Don't set `args', it breaks gdb --args.
13299
133002008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13301
13302 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13303 within a narrowed buffer.
13304
133052008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13306
13307 * coding.c (decode_coding_object, encode_coding_object):
13308 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13309
133102008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13311
13312 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13313 hardcoding 1.
13314 (detect_coding_system):
13315 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13316 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13317 * insdel.c (insert_from_gap):
13318 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13319 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13320 (string_to_multibyte):
13321 * character.c (chars_in_text, multibyte_chars_in_text):
13322 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13323
13324 * character.h (FETCH_STRING_CHAR_ADVANCE)
13325 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13326 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13327 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13328
13329 * casefiddle.c (casify_region): Only call after-change and composition
13330 functions on the part of the region that was changed.
13331
13332 * keyboard.c (read_avail_input):
13333 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13334
133352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13336
13337 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13338 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13339
133402008-02-11 Juanma Barranquero <lekktu@gmail.com>
13341
13342 * w32menu.c (push_submenu_start, push_submenu_end)
13343 (push_left_right_boundary, push_menu_pane, push_menu_item):
13344 * keyboard.c (read_key_sequence): Don't pass args with side effects
13345 to AREF, it fails when compiling with -DENABLE_CHECKING.
13346
133472008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13348
13349 * Makefile.in (${lispsource}international/charprop.el):
13350 Delete this target.
13351
13352 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13353 emacs-unicode-2.
13354
133552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13356
13357 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13358
133592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13360
13361 * frame.c (Qnoelisp): New symbol.
13362 (syms_of_frame): Initialize it.
13363 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13364 harmless Elisp code, from a strong `force' from x_connection_closed.
13365 * frame.h (Qnoelisp): Declare.
13366 * xterm.c (x_connection_closed): Pass `noelisp'.
13367
13368 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13369 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13370 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13371 rather than `int' for the type of `type'.
13372
133732008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13374
13375 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13376
13377 * Makefile.in (GNUC): Remove support for gcc-1.x.
13378
133792008-02-10 Richard Stallman <rms@gnu.org>
13380
13381 * lisp.h (ASET): Use AREF, not ASLOT.
13382
133832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13384
13385 * lisp.h (ASET): Check bounds.
13386
133872008-02-10 Glenn Morris <rgm@gnu.org>
13388
13389 * buffer.c (mode-name): Doc fix.
13390
133912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13392
13393 * Makefile.in:
13394 * emacs.c:
13395 * gmalloc.c:
13396 * keyboard.c:
13397 * lisp.h:
13398 * m/ibm370aix.h:
13399 * process.c:
13400 * regex.c:
13401 * s/hpux.h:
13402 * sysdep.c:
13403 * sysselect.h:
13404 * systty.h:
13405 * unexec.c:
13406 * w32term.c:
13407 * xsmfns.c:
13408 * xterm.c: Remove code that deals with obsolete variables.
13409
13410 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13411
13412 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13413 nothing else needs it anymore.
13414
134152008-02-09 Eli Zaretskii <eliz@gnu.org>
13416
13417 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13418 instead of unibyte_char_to_multibyte.
13419
134202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13421
13422 * s/gnu-linux.h: Remove commented out code.
13423
13424 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13425
13426 * Makefile.in: Update what RMS says about using autoconf.
13427 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13428 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13429 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13430 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13431
134322008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13433
13434 * keymap.c (Fkey_description): Move side effect outside of macro call.
13435
13436 * xfaces.c (Finternal_make_lisp_face):
13437 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13438
13439 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13440 (syms_of_fontset): Use ASET.
13441
13442 * fns.c (concat): Move side effect outside of macro call.
13443 (hash_clear): Use ASET.
13444
134452008-02-08 Richard Stallman <rms@gnu.org>
13446
13447 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13448 If FORCE, and frame has a surrogate minibuffer for another frame,
13449 delete the other frame first.
13450
134512008-02-07 Timo Savola <timo.savola@iki.fi>
13452
13453 * xterm.c (x_detect_focus_change): Handle embed client message.
13454 (handle_one_xevent): Ditto.
13455 (handle_one_xevent): If embedded and we get a button press/release,
13456 request focus.
13457 (xembed_set_info, xembed_send_message): New functions.
13458 (x_make_frame_visible): Call xembed_set_info if embedded.
13459 (x_make_frame_invisible): Call xembed_set_info if embedded.
13460 (x_term_init): Initialize Xatom_XEMBED.
13461 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13462 (x_iconify_frame): Ditto.
13463
13464 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13465 (enum xembed_info, enum xembed_message, enum xembed_focus)
13466 (enum xembed_modifier, enum xembed_accelerator): New.
13467 (xembed_set_info, xembed_send_message): Declare.
13468 (FRAME_X_EMBEDDED_P): New.
13469
13470 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13471 gtk_plug_new.
13472
13473 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13474 window ID of a frame.
13475 (x_window): Reparent frame if embedded.
13476 (Fx_create_frame): Don't set border width if embedded.
13477
13478 * emacs.c (USAGE3): Add --parent-id.
13479 (standard_args): Ditto.
13480
134812008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13482
13483 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13484
134852008-02-07 Jim Meyering <meyering@redhat.com>
13486
13487 Use "do...while (0)", not "if (1)...else" in macro definitions.
13488 The latter provokes a warning from gcc about the empty else, when
13489 followed by ";". Also, without that trailing semicolon, it would
13490 silently swallow up any following statement.
13491 * syntax.h (SETUP_SYNTAX_TABLE)
13492 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13493 * buffer.h (DECODE_POSITION): Likewise.
13494 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13495 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13496 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13497 (FETCH_CHAR_ADVANCE): Likewise.
13498 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13499
135002008-02-07 Jim Meyering <meyering@redhat.com>
13501
13502 * lread.c [lint]: Don't include <sys/inode.h>.
13503
135042008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13505
13506 * xselect.c (x_handle_dnd_message):
13507 * xmenu.c (digest_single_submenu, xmenu_show):
13508 * xdisp.c (with_echo_area_buffer_unwind_data)
13509 (format_mode_line_unwind_data, unwind_format_mode_line)
13510 (display_menu_bar):
13511 * eval.c (Ffetch_bytecode):
13512 * doc.c (store_function_docstring):
13513 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13514 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13515 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13516
135172008-02-07 Kenichi Handa <handa@m17n.org>
13518
13519 * ftxfont.c (ftxfont_open): Don't set
13520 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13521
13522 * ftfont.c (ftfont_open): Fix previous change.
13523
135242008-02-06 Jason Rumney <jasonr@gnu.org>
13525
13526 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13527 Use cached metrics for ASCII characters.
13528 (w32font_open_internal): Don't set font's owning_frame.
13529 Cache metrics for ASCII characters.
13530
13531 * w32font.h (struct w32font_info): Add ascii_metrics.
13532 Remove owning_frame.
13533
135342008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13535
13536 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13537 to negative value.
13538
13539 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13540
13541 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13542
13543 * charset.c (syms_of_charset): Set QCtest and Qeq.
13544
135452008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * process.c (Fstart_process):
13548 * callproc.c (Fcall_process): Handle the case where
13549 Funhandled_file_name_directory returns nil.
13550
13551 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13552 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13553 * font.c (check_gstring): Use them and AREF to access the vector before
13554 we know it's really a gstring.
13555 (Ffont_shape_text): Fix typo.
46e722a9 13556 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13557
13558 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13559 Declare.
13560
13561 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13562
135632008-02-05 Jason Rumney <jasonr@gnu.org>
13564
13565 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13566 Set smallest_font_height and smallest_char_width in display info.
13567
135682008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13569
13570 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13571
135722008-02-05 Miles Bader <miles@gnu.org>
13573
13574 * xfaces.c (get_lface_attributes, merge_named_face)
13575 (lookup_named_face, lookup_derived_face, realize_named_face):
13576 Revert 2008-02-01 change by cyd@stupidchicken.com.
13577
135782008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13579
13580 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13581 fallback fonts.
13582 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13583
135842008-02-04 Jason Rumney <jasonr@gnu.org>
13585
13586 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13587 set full_name.
13588 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13589
135902008-02-03 Jason Rumney <jasonr@gnu.org>
13591
13592 * makefile.w32-in (OBJ1): Include font.o here.
13593 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13594
135952008-02-02 Jason Rumney <jasonr@gnu.org>
13596
13597 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13598
135992008-02-01 Jason Rumney <jasonr@gnu.org>
13600
13601 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13602
13603 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13604
136052008-02-01 Andreas Schwab <schwab@suse.de>
13606
13607 * Makefile.in (shortlisp, lisp): Update for rename of
13608 ../lisp/language/myanmar.el.
13609
136102008-02-01 Chong Yidong <cyd@stupidchicken.com>
13611
13612 * xfaces.c (get_lface_attributes): Delete function.
13613 (merge_named_face, lookup_named_face, lookup_derived_face)
13614 (realize_named_face): Call lface_from_face_name directly, and use
13615 the fact that merge_face_vectors does not alter its FROM argument.
13616
136172008-02-01 Jason Rumney <jasonr@gnu.org>
13618
13619 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13620 input in the default locale. Handle non-Unicode multibyte input.
13621
136222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13623
13624 * fontset.c (reorder_font_vector): Exclude nil elements from the
13625 font group. Don't try multiple fonts.
13626 (fontset_font): Adjust for the above change.
13627 (Finternal_char_font): Return nil if the found font doesn't
13628 contain the character ch.
13629
13630 * Makefile.in (lisp, shortlisp): Add cham.el.
13631
136322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13633
13634 * font.h (FONTP): Make it return 1 also for a font-object.
13635
13636 * .gdbinit (xfontset): New function.
13637
13638 * font.c (font_find_for_lface): Check if the character C is
13639 supported or not only for the first font.
13640
13641 * fontset.c (reorder_font_vector): Fix typo.
13642 (fontset_find_font): Don't add a font-spec specifying a script.
13643 Use 0 (not Qt) for the indication of empty font-group. Change the
13644 format of RFONT-DEF. Return Qt if no font in the font-group
13645 support the character.
13646 (fontset_font): Adjust for the above change. If no font was
13647 found the character, remember that.
13648 (face_for_char): Adjust for the change of RFONT-DEF.
13649 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13650 no font for the target.
13651 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13652
136532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13654
13655 * font.c (font_load_for_face): Handle the case that the font in
13656 face->lface is a string.
13657
136582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13659
13660 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13661
136622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13663
13664 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13665 Fix previous change. If the frame is not on a window system,
13666 signal an error.
13667
136682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13669
13670 * coding.c (decode_coding_object, encode_coding_object): Adjust
13671 marker positions after conversion.
13672
13673 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13674
136752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13676
13677 * font.c (font_find_for_lface): Fix the handling of the return
13678 value of font_has_char.
13679 (Ffont_shape_text): Fix previous change.
13680
13681 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13682 (fontset_ref_and_range): Delete it.
13683 (fontset_find_font): Call char_table_ref_and_range instead of
13684 FONTSET_REF_AND_RANGE.
13685 (make_fontset): Don't setup font groups of Latin here.
13686 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13687 (new_fontset_from_font): Make the specified font the default for
13688 all Latin characters.
13689
136902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13691
13692 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13693 is on a window system before accessing the fontset of the frame.
13694
136952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13696
13697 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13698
13699 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13700 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13701
13702 * font.c (Ffont_shape_text): If the font driver doesn't have a
13703 shaper function, make zero-width glyphs to have at least one-pixel
13704 width. Fix setting of `to' field of glyphs.
13705
137062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13707
13708 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13709 glyphs.
13710
13711 * font.h (struct font_driver): Improve docstring of member `shape'.
13712
137132008-02-01 Kenichi Handa <handa@m17n.org>
13714
13715 * composite.c (syms_of_composite): Fix docstring of
13716 auto-composition-function.
13717
13718 * font.h (LGLYPH_SIZE): New macro.
13719
13720 * font.c (Ffont_fill_gstring): Stop filling when a character not
13721 supported by the font is found.
13722 (Ffont_shape_text): When a shape callback function returns nil,
13723 try at most two more times with larger gstring.
13724 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13725
13726 * xdisp.c (handle_auto_composed_prop): Change the argument to
13727 auto-composition-function.
13728
13729 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13730 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13731 Lispy glyph and store it in the lgstring.
13732
13733 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13734
13735 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13736
137372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13738
13739 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13740
13741 * fontset.c (Vfont_encoding_charset_alist): New variable.
13742 (syms_of_fontset): DEFVAR it.
13743 (reorder_font_vector, fontset_find_font): Optimize for the case of
13744 no need of reordering.
13745 (face_for_char): Map the charset property by
13746 Vfont_encoding_charset_alist.
13747
137482008-02-01 Jason Rumney <jasonr@gnu.org>
13749
13750 * w32font.c (logfonts_match): Don't check adstyle here.
13751 (font_matches_spec): Check here against physical font instead.
13752 (add_font_entity_to_list): Avoid some substitutions.
13753
13754 * font.c (font_parse_fcname): Default weight and slant to normal.
13755 (font_score): Prefer normal fonts if weight or slant unspecified.
13756 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13757 match freetype scores.
13758
137592008-02-01 Jason Rumney <jasonr@gnu.org>
13760
13761 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13762 font, as it may have been deleted.
13763 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13764 most common hyphenless variation.
13765 (logfonts_match): Check generic family.
13766 (font_matches_spec): Don't check generic family here.
13767 (fill_in_logfont): Set generic family based on adstyle.
13768
13769 * w32font.h (w32font_get_cache): Update declaration.
13770
137712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13772
13773 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13774
13775 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13776 If none of the new drivers are available, call font_update_drivers
13777 with the old drivers.
13778
13779 * w32font.c (w32font_get_cache): Adjust the argument type.
13780
13781 * xfont.c (xfont_get_cache): Adjust the argument type.
13782
13783 * font.h (struct font_driver): Change argument type of get_cache.
13784
13785 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13786
13787 * font.c (Ffont_get): Fix arguments to Fassoc.
13788 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13789 (font_clear_cache): New function.
13790 (font_list_entities, font_matching_entity): Use font_get_cache.
13791 (font_update_drivers): Call font_clear_cache when finishing a driver.
13792
13793 * fontset.c (fontset_find_font): Fix previous change.
13794
137952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13796
13797 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13798 dpyinfo->font_table.
13799 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13800 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13801
13802 * font.c (font_at): Handle the case that the arg C is negative.
13803 Handle the unibyte case.
13804 (Ffont_at): Call font_at with the arg C -1.
13805
13806 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13807 the position here, and call font_at with the arg C -1.
13808 Don't check the range of the existing composition at the point.
13809
138102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13811
13812 * fontset.c (fontset_add): New args charset_id and family.
13813 Change caller.
13814 (load_font_get_repertory, fontset_find_font): Assume that
13815 font_spec is always a font-spec object.
13816 (Fset_fontset_font): Always store a font-spec object in a fontset.
13817
13818 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13819 instead of get_property_and_range.
13820
138212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13822
13823 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13824 (xftfont_open): Don't keep locking face.
13825 (xftfont_close): Don't unlock face.
13826 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13827
13828 * fontset.c (fontset_find_font): Don't prefer a font of
13829 supplementary charset.
13830
138312008-02-01 Kenichi Handa <handa@m17n.org>
13832
13833 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13834 script, langsys_tag to langsys, new member script.
13835 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13836 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13837 listing to the script specified in that property. Fix arg to
13838 OTF_check_features.
13839
138402008-02-01 Jason Rumney <jasonr@gnu.org>
13841
13842 * w32font.h: New file.
13843
13844 * w32font.c: Include it.
13845 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13846 (w32font_open): Set owning_frame.
13847 (w32font_text_extents): Use owning_frame.
13848 (struct font_callback_data): Add opentype_only field.
13849 (add_font_entity_to_list): Use it to filter fonts.
13850 Don't check against full name.
13851 (w32font_list_internal): New function.
13852 (w32font_list): Use it.
13853 (w32font_match_internal): New function.
13854 (w32font_match): Use it.
13855 (w32font_open_internal): New function.
13856 (w32font_open): Use it.
13857 (w32font_get_cache, w32font_close, w32font_has_char)
13858 (w32font_encode_char, w32font_text_extents, w32font_draw):
13859 Make non-static.
13860
13861 * makefile.w32-in (w32font.o): Depend on w32font.h.
13862
138632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13864
13865 * charset.c (Fdefine_charset_internal): Record a supplementary
13866 charset at the tail of Vcharset_order_list.
13867
13868 * font.c (Ffont_shape_text): Fix the return value.
13869
13870 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13871
13872 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13873
138742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13875
13876 * ftfont.c (struct OpenTypeSpec): New struct.
13877 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13878 (ftfont_get_open_type_spec): New function.
13879 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13880
13881 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13882
138832008-02-01 Jason Rumney <jasonr@gnu.org>
13884
13885 * w32font.c (add_font_entity_to_list): Compare only the beginning
13886 of full name.
13887
138882008-02-01 Kenichi Handa <handa@m17n.org>
13889
13890 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13891 Never return HANDLED_RECOMPUTE_PROPS.
13892
138932008-02-01 Kenichi Handa <handa@m17n.org>
13894
13895 * font.c (font_gstring_produce): Delete it.
13896
13897 * composite.h (COMPOSITION_METHOD):
13898 Handle COMPOSITION_WITH_GLYPH_STRING.
13899
139002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13901
13902 * xfont.c (Qx): Delete.
13903 (syms_of_xfont): Don't initialize Qx.
13904
13905 * composite.h (enum composition_method):
13906 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13907
139082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13909
13910 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13911 (choose_face_font): Accept new form of font-spec.
13912
13913 * frame.h (font_driver_list): Declare it unconditionally.
13914 (struct frame): Define members font_driver_list and font_data_list
13915 unconditionally.
13916
13917 * fontset.c: Include "font.h" unconditionally.
13918 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13919 (Fset_fontset_font): Accept a font-spec object.
13920
13921 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13922 PIXEL_SIZE part a wild card.
13923
13924 * dispextern.h (struct glyph_string): Define members clip and
13925 num_clips unconditionally.
13926 (struct face): Define members font_info and extra unconditionally.
13927
13928 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13929 ftfont_info only when HAVE_LIBOTF is defined.
13930
139312008-02-01 Andreas Schwab <schwab@suse.de>
13932
13933 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13934 and end.
13935
139362008-02-01 Jason Rumney <jasonr@gnu.org>
13937
13938 * w32font.c (w32font_driver): Add new fields.
13939
139402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13941
13942 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13943 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13944 (LIBES): Add @M17N_FLT_CFLAGS@.
13945
13946 * composite.c (compose_text): Don't treat the new style
13947 composition specially.
13948
13949 * emacs.c (main): Call syms_of_font unconditionally.
13950
13951 * font.h (FONT_ENTITY_NOT_LOADABLE)
13952 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13953 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13954 (struct font_driver): New member shape.
13955 (font_registry_charsets): Extern it.
13956 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13957 (font_otf_capability, font_drive_otf): Delete their externs.
13958
13959 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13960 (font_charset_alist, font_registry_charsets): Move from xfont.c
13961 and rename.
13962 (font_prop_validate_otf): New function.
13963 (font_property_table): Register it for QCotf.
13964 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13965 (font_drive_otf): Delete.
13966 (font_prepare_composition): New arg F. Adjust for the change of
13967 lispy gstring.
13968 (font_find_for_lface): New arg C.
13969 (font_load_for_face): Adjust for the change of font_find_for_lface.
13970 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13971 lispy gstring.
13972 (Ffont_shape_text): New function.
13973 (Fopen_font): If the font size is not given, use 12-pixel.
13974 (Ffont_at): New arg STRING.
c0943d3d 13975 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
13976 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13977 conditionally.
13978
13979 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13980 fonts of the same font-spec. Change the format of RFONT-DEF.
13981 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13982 Adjust for the change of RFONT-DEF.
13983 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13984
13985 * ftfont.h: New file.
13986
13987 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13988 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13989 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13990 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13991 font_otf_capability and font_drive_otf, set ftfont_shape.
13992 (ftfont_list): Adjust for the change of :otf property value.
13993 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13994 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13995 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13996 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13997 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13998 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13999
14000 * w32term.c (x_draw_composite_glyph_string_foreground):
14001 Adjust for the change of lispy gstring.
14002
14003 * xdisp.c (handle_composition_prop): Adjust for the change of
14004 lispy gstring. Call a function for auto-composition with the
14005 third arg it->window.
14006 (fill_composite_glyph_string): Adjust for the change of lispy string.
14007 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14008
14009 * xfaces.c (set_font_frame_param): Adjust for the change of
14010 font_find_for_lface.
14011
14012 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14013 (xfont_registry_charsets): Likewise. Change caller.
14014 (syms_of_xfont): Don't handle x_font_charset_alist.
14015
14016 * xftfont.c: Include "ftfont.h".
14017 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14018 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14019 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14020 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14021 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14022 Set xftfont_driver.shape to xftfont_shape.
14023
14024 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14025 the change of lispy gstring.
14026
140272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14028
14029 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14030
140312008-02-01 Jason Rumney <jasonr@gnu.org>
14032
14033 * w32font.c (w32font_draw): Fill background manually.
14034
140352008-02-01 Jason Rumney <jasonr@gnu.org>
14036
14037 * font.c (Qfontp): Remove unused symbol.
14038 (QCantialias): New symbol.
14039 (syms_of_font): Define it.
14040 (font_property_table): Set a validator for QCantialias.
14041
14042 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14043 Define if not already.
14044 (QCfamily): Share with xfaces.c.
14045 (Qstandard, Qsubpixel, Qnatural): New symbols.
14046 (syms_of_w32font): Define them. Don't define QCfamily here.
14047 (w32_antialias_type, lispy_antialias_type): New functions.
14048 (w32_enumfont_pattern_entity): New arg requested_font.
14049 Set antialias parameter if non-default was requested.
14050 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14051
140522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14053
14054 * lread.c (read1): Undo the previous change.
14055
140562008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14057
14058 * frame.c (Fdelete_frame): Call font_update_drivers only when
14059 USE_FONT_BACKEND is defined.
14060
140612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14062
14063 * font.h (struct font_bitmap): New member bits_per_pixel.
14064 (struct font_driver): New members start_for_frame and end_for_frame.
14065 (struct font_data_list): New struct.
14066 (font_put_frame_data, font_get_frame_data): Extern them.
14067
14068 * frame.h (struct frame): New member font_data_list.
14069
14070 * font.c (font_update_drivers): Call driver->start_for_frame and
14071 driver->end_for_frame at proper timings.
14072 (font_put_frame_data, font_get_frame_data): New functions.
14073 (Ffont_spec): Add usage in the docstring.
14074
14075 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14076 (Fdelete_frame): Call font_update_drivers.
14077
14078 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14079 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14080 (xftfont_get_xft_draw): New function.
14081 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14082 (xftfont_end_for_frame): New function.
14083 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14084
14085 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14086 Change argument. Cache GCs in the per-frame data.
14087 (struct ftxfont_frame_data): New struct.
14088 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14089 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14090 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14091 (ftxfont_end_for_frame): New function.
14092 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14093
14094 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14095
140962008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * xselect.c (Vselection_coding_system)
14099 (Vnext_selection_coding_system): Delete them.
14100 (syms_of_xselect): Don't declare selection-coding-system and
14101 next-selection-coding-system. They are declared in select.el.
14102
141032008-02-01 Jason Rumney <jasonr@gnu.org>
14104
14105 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14106
14107 * w32fns.c: Include imm.h.
14108 (get_composition_string_fn, get_ime_context_fn): New optional
14109 system functions.
14110 (globals_of_w32fns): Load them from imm32.dll.
14111 (ignore_ime_char): New flag.
14112 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14113 WM_IME_ENDCOMPOSITION messages.
14114
14115 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14116 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14117
141182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14119
14120 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14121 (READCHAR_REPORT_MULTIBYTE): New macro.
14122 (readchar): New 2nd arg MULTIBYTE.
14123 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14124 Make symbol's name multibyte according to the multibyteness of the
14125 source.
14126
141272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14128
14129 * xfaces.c (face_for_overlay_string): Call lookup_face with
14130 correct arguments (fix of synching with the trunk).
14131
141322008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14135 (font_prop_validate_non_neg, font_prop_validate_spacing):
14136 Delete argument prop_index.
14137 (font_property_table): Change arguments to validater. Change Callers.
14138 (font_lispy_object): Delete.
14139 (font_at): Use font_find_object instead fo font_lispy_object.
14140
141412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14142
14143 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14144 and file names.
14145
141462008-02-01 Jason Rumney <jasonr@gnu.org>
14147
14148 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14149 (font_matches_spec): Remove debug output.
14150 (add_font_entity_to_list): Avoid using substituted fonts.
14151
141522008-02-01 Jason Rumney <jasonr@gnu.org>
14153
14154 * doc.c (Fsnarf_documentation):
14155 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14156
141572008-02-01 Miles Bader <miles@gnu.org>
14158
14159 * dispextern.h (struct glyph_row): Only define "clip" field if
14160 HAVE_WINDOW_SYSTEM is defined.
14161
141622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14163
14164 Fix up multi-tty merge.
14165
14166 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14167 and indentation.
14168
14169 * xfaces.c (free_realized_face, clear_face_gcs):
14170 Include font_done_for_face in the input_blocked section, just in case.
14171
14172 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14173 (get_char_face_and_encoding): Undo last change and remove the *other*
14174 duplicate definition (i.e. keep the one that's better scoped and that
14175 includes code for the font-backend).
14176
14177 * terminal.c (create_terminal): Default keyboard_coding to
14178 `no-conversion' and terminal_coding to `undecided'.
14179
14180 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14181
14182 * fontset.c (free_realized_fontsets): Check that the table entry does
14183 contain a fontset before trying to compare it to `base'.
14184
14185 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14186 syms_of_charset, and syms_of_coding earlier because init_window_once
14187 now needs Vcoding_system_hash_table to be setup.
14188
14189 * coding.h (default_buffer_file_coding): Remove.
14190
14191 * coding.c (default_buffer_file_coding): Remove.
14192 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14193 than ->symbol, and use the terminal-local coding system.
14194 (syms_of_coding): Don't setup the coding-systems that are not
14195 terminal-local.
14196 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14197
14198 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14199 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14200
14201 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14202 in chartab.c and were re-added here by mistake.
14203 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14204
14205 * doc.c (Fsnarf_documentation):
14206 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14207 src to etc.
14208
14209 * ChangeLog.10: Add mistakenly removed entry.
14210
142112008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14212
14213 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14214
142152008-02-01 Miles Bader <miles@gnu.org>
14216
14217 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14218 Add extra args to FACE_FOR_CHAR.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14223 in sequence.
14224
14225 * chartab.c (map_sub_char_table, map_char_table): If the range
14226 contains just one character, call the function with that character
14227 even if the depth is not 3.
14228
142292008-02-01 Jason Rumney <jasonr@gnu.org>
14230
14231 * w32font.c (w32font_text_extents): Calculate metrics for the
14232 whole string.
14233
142342008-02-01 Jason Rumney <jasonr@gnu.org>
14235
14236 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14237
142382008-02-01 Jason Rumney <jasonr@gnu.org>
14239
14240 * w32term.c (x_set_glyph_string_clipping): Use
14241 get_glyph_string_clip_rects.
14242 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14243 Adjust for the change of struct glyph_string.
14244
14245 * w32font.c (w32font_draw): Do clipping here.
14246
142472008-02-01 Kenichi Handa <handa@m17n.org>
14248
14249 * xftfont.c (xftfont_draw): Adjust for the change of struct
14250 glyph_string.
14251
14252 * xterm.c (x_set_glyph_string_clipping): Use
14253 get_glyph_string_clip_rects.
14254 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14255 Adjust for the change of struct glyph_string.
14256
14257 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14258 the resulting clip(s}.
14259 (expose_overlaps): Add arg r. Change callers. Set it to
14260 row->clip temporarily.
14261 (expose_window): Redraw rows overlapping the exposed area.
14262
14263 * dispextern.h (struct glyph_row): New member clip.
14264 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14265 clip_height, new member clip, and num_clips.
14266
142672008-02-01 Kenichi Handa <handa@m17n.org>
14268
14269 * data.c (Fchar_or_string_p): Fix docstring.
14270
142712008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14274 create a temporary XftDraw object.
14275
142762008-02-01 Kenichi Handa <handa@m17n.org>
14277
14278 * font.c (Ffontp): Fix docstring.
14279
14280 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14281 strong evidence of ISO-2022.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14286 SYNTAX_ENTRY_FOLLOW_PARENT.
14287
142882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14289
14290 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14291 its type.
14292 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14293 Update to the new type of weak_hash_tables and next_weak.
14294
14295 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14296 a plain C pointer to Lisp_Hash_Table.
14297
14298 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14299 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14300 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14301 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14302 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14303 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14304 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14305 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14306 (GC_EQ): Remove since they've been identical to their non-GC_
14307 alter-egos ever since the markbit was eradicated.
14308
14309 * alloc.c:
14310 * buffer.c:
14311 * buffer.h:
14312 * data.c:
14313 * fileio.c:
14314 * filelock.c:
14315 * fns.c:
14316 * frame.h:
14317 * lisp.h:
14318 * macterm.c:
14319 * print.c:
14320 * process.c:
14321 * w32fns.c:
14322 * w32menu.c:
14323 * w32term.c:
14324 * xfns.c:
14325 * xmenu.c:
14326 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * chartab.c (map_sub_char_table): Make it work for the top-level
14331 char-table. Fix handling of parent char-table.
14332 (map_char_table): Adjust for the above change.
14333
143342008-02-01 Jason Rumney <jasonr@gnu.org>
14335
14336 * w32font.c (Qgdi): Rename from Qw32.
14337
143382008-02-01 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32bdf.c (get_quoted_string): Make function static.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14345 bigger ascent and descent than those of the font, use them as
14346 font's ascent and descent.
14347
143482008-02-01 Kenichi Handa <handa@m17n.org>
14349
14350 * Makefile.in (${lispsource}international/charprop.el): Move this
14351 target within "#ifdef HAVE_UNIDATA" and "#endif".
14352
143532008-02-01 Kenichi Handa <handa@m17n.org>
14354
14355 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14356 (shortlisp): Add ../lisp/language/tai-viet.el.
14357
143582008-02-01 Ulrich Mueller <ulm@gentoo.org>
14359
14360 * Makefile.in (${lispsource}international/charprop.el): Depend on
14361 temacs${EXEEXT}.
14362
143632008-02-01 Jason Rumney <jasonr@gnu.org>
14364
14365 * w32font.c (w32font_close): Delete the GDI font object.
14366
14367 * w32menu.c: Include character.h.
14368
14369 * w32proc.c: Likewise.
14370
14371 * w32select.c: Likewise.
14372
14373 * makefile.w32-in (w32proc.o): Depend on character.h.
14374
143752008-02-01 Jason Rumney <jasonr@gnu.org>
14376
14377 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14378
14379 * w32menu.c (syms_of_w32menu): Likewise.
14380
14381 * w32proc.c (syms_of_ntproc): Likewise.
14382
14383 * w32select.c (syms_of_w32select): Likewise.
14384
14385 * w32term.c (syms_of_w32term): Likewise.
14386
143872008-02-01 Jason Rumney <jasonr@gnu.org>
14388
14389 * w32font.c (w32font_draw): Delete brush after using it.
14390
143912008-02-01 Jason Rumney <jasonr@gnu.org>
14392
14393 * w32font.c (w32font_open): Don't set font_idx.
14394 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14395 to font settings.
14396 (w32font_draw): Fill background explicitly.
14397
143982008-02-01 Jason Rumney <jasonr@gnu.org>
14399
14400 * w32term.c (w32_initialize): Don't call w32font_initialize.
14401
14402 * w32font.c (w32font_info): Remove subranges.
14403 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14404 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14405 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14406 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14407 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14408 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14409 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14410 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14411 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14412 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14413 New symbols.
14414 (font_callback_data): New struct.
14415 (w32font_list, w32font_match): Use it.
14416 (w32font_open): Don't populate subranges.
14417 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14418 (w32font_encode_char): Always return unicode code-point as-is.
14419 (w32font_text_extents): Supply a transformation matrix to
14420 GetGlyphOutline. Never look up by glyph index. Avoid looping
14421 twice. Use unicode version of GetTexExtentPoint32 instead of
14422 glyph index version.
14423 (set_fonts_frame): Remove.
14424 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14425 set frame parameter. Use backward compatible fake foundries.
14426 Save generic family in extra slot under QCfamily. Make width slot
14427 constant. Save QCspacing value. Save list of scripts instead of
14428 binary subranges.
14429 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14430 (add_font_entity_to_list): Use font_callback_data struct. Filter
14431 unwanted fonts.
14432 (add_one_font_entity_to_list): Use font_callback_data struct.
14433 (w32_registry): Default to iso10646_1.
14434 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14435 string font registries. Don't fill in font name if it is a generic
14436 family name, fill family instead. Use spacing, family and script
14437 extra info to fill pitch, family and charset fields.
14438 (list_all_matching_fonts): Use font_callback_data struct.
14439 (unicode_range_for_char): Remove.
14440 (font_supported_scripts): New function.
14441 (w32font_initialize): Remove.
14442 (syms_of_w32font): Update which symbols are defined.
14443
144442008-02-01 Jason Rumney <jasonr@gnu.org>
14445
14446 * font.c (font_pixel_size): Reverse assq_no_quit args.
14447
14448 * w32term.h (FONT_WIDTH): Report max width, not average.
14449 (FONT_MAX_WIDTH): Remove.
14450 (FONT_AVG_WIDTH): New macro.
14451
14452 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14453 redefinition of FONT_WIDTH.
14454
14455 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14456 (w32_cache_char_metrics): Use FONT_WIDTH.
14457
14458 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14459
144602008-02-01 Jason Rumney <jasonr@gnu.org>
14461
14462 * w32font.c (w32font_open): Make lfHeight negative.
14463
14464 * w32fns.c (x_default_font_parameter): Use new style font name.
14465 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14466
144672008-02-01 Jason Rumney <jasonr@gnu.org>
14468
14469 * w32font.c (QCsubranges): New symbol.
14470 (w32font_open, w32font_has_char): Get subranges from subproperty
14471 of extra.
14472 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14473 (syms_of_w32font): Define :subranges symbol.
14474
14475 * font.c (font_put_extra): Expose externally.
14476
14477 * font.h (font_put_extra): Move declaration from font.c.
14478
14479 * font.c (Ffont_get): Use font driver to determine otf capability.
14480 (adjust_anchor): Check if driver defines anchor_point before using.
14481
14482 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14483 (w32font_draw): Use options.
14484 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14485 Fix detection of truetype fonts.
14486 (registry_to_w32_charset): Handle charsets other than iso8859-1
14487 expressed as lisp symbols.
14488 (w32_registry): Express charset as lisp symbol.
14489 (fill_in_logfont): Reverse pixel and point height logic.
14490 Don't set width here. Set quality to default.
14491
14492 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14493 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14494
14495 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14496 Remove redundant loop and allocation.
14497
14498 * makefile.w32-in (font.o, w32font.o): New objects.
14499 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14500 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14501
14502 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14503 STORE_XCHARB a valid l-value.
14504
14505 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14506 calculations for non-Truetype fonts.
14507 (x_draw_glyph_string): Sync with xterm.c.
14508 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14509 Remove redundant code.
14510 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14511
14512 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14513 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14514
14515 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14516 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14517
14518 * w32font.c: New file for w32 font backend.
14519
145202008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * term.c: Don't include "buffer.h" twice.
14523
145242008-02-01 Kenichi Handa <handa@m17n.org>
14525
14526 * character.c (Funibyte_string): New function.
14527 (syms_of_character): Defsubr it.
14528
145292008-02-01 Jason Rumney <jasonr@gnu.org>
14530
14531 * w32term.c [USE_FONT_BACKEND]:
14532 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14533 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14534 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14535 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14536 (x_free_frame_resources): Sync with xterm.c.
14537
145382008-02-01 Andreas Schwab <schwab@suse.de>
14539
14540 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14541 char-table size.
14542
145432008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14546
145472008-02-01 Kenichi Handa <handa@m17n.org>
14548
14549 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14550 font_otf_gpos, add font_drive_otf.
14551
14552 * fontset.c (fontset_find_font): Pay attention to font size
14553 specified for a font.
14554 (reorder_font_vector): Check contents of font_def.
14555
14556 * font.c (struct otf_list): Delete it.
14557 (otf_list): Make it a lisp variable.
14558 (otf_open): Use lispy otf_list.
14559 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14560 (check_otf_features): New function.
14561 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14562 New functions.
14563 (font_drive_otf): New function merging font_otf_gsub and
14564 font_otf_gpos.
14565 (font_open_for_lface): New arg spec. Change argument order.
14566 (font_load_for_face): Adjust for the change of font_open_for_lface.
14567 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14568 Ffont_otf_gpos.
14569 (syms_of_font): Staticpro otf_list. Delete defsubr of
14570 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14571
14572 * xfaces.c (set_font_frame_param): Adjust for the change of
14573 font_open_for_lface.
14574
14575 * font.h (font_open_for_lface): Adjust prototype.
14576 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14577 member otf_drive.
14578 (font_otf_gsub, font_otf_gpos): Delete externs.
14579 (font_drive_otf): Extern it.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * font.c (font_at): If the window W is not on a window system,
14584 return Qnil.
14585
14586 * coding.c (produce_chars, encode_coding): Don't call
14587 insert_from_gap if no characters to produce.
14588
145892008-02-01 Kenichi Handa <handa@m17n.org>
14590
14591 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14592 Fclear_face_cache.
14593
14594 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14595
145962008-02-01 Miles Bader <miles@gnu.org>
14597
14598 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14599 Parse "--disable-font-backend" option.
14600 (standard_args): Add "--disable-font-backend" option.
14601
146022008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * fontset.c (fontset_find_font): New function.
14605 (fontset_font): Use fontset_find_font.
14606 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14607 Register the specified font for all Latin characters.
14608 (new_fontset_from_font): Register the specified font for all Latin
14609 characters.
14610 (dump_fontset): For a realized fontset, include the base fontset
14611 name in the returned vector.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * character.h (CHAR_STRING): Cast C to unsigned on calling
14616 char_string.
14617
14618 * character.c (char_string): Type of arg C changed to unsigned.
14619 Signal an error if C is an invalid character code.
14620
14621 * editfns.c (general_insert_function, Fchar_to_string):
14622 Use CHARACTERP, not INTEGERP.
14623
146242008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14627 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14628
14629 * regex.c (analyse_first): Fix for multibyte characters in "case
14630 charset:" and "case categoryspec:".
14631
146322008-02-01 Andreas Schwab <schwab@suse.de>
14633
14634 * Makefile.in (LIBES): Move standard libraries to the end.
14635
146362008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14639 nonzero, don't shrink the buffer nextb.
14640
14641 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14642
14643 * coding.c (coding_alloc_by_making_gap): New arg offset.
14644 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14645 offset.
14646 (decode_coding_iso_2022): Update coding->safe_charsets.
14647 (decode_coding_gap): Temporarily set
14648 current_buffer->text->inhibit_shrinking to 1.
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14653 indexing into elements of s->cmp and s->char2b.
14654
146552008-02-01 Juanma Barranquero <lekktu@gmail.com>
14656
14657 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14658
146592008-02-01 Kenichi Handa <handa@m17n.org>
14660
14661 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14662 target_multibyte instead of multibyte.
14663 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14664 (bcmp_translate): Change the argument name from multibyte to
14665 target_multibyte.
14666
146672008-02-01 Kenichi Handa <handa@m17n.org>
14668
14669 These changes are to compile a regexp into a pattern that can be
14670 used both for multibyte and unibyte targets.
14671
14672 * Makefile.in (search.o): Depend on charset.h.
14673
14674 * character.c (multibyte_char_to_unibyte_safe): New function.
14675
14676 * search.c: Include "charset.h".
14677 (compile_pattern_1): Delete argument multibyte. Don't set
14678 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14679 (compile_pattern): Don't compare cp->buf.target_multibyte.
14680 Compare cp->buf.charset_unibyte.
14681 (compile_pattern): Set cp->buf.target_multibyte.
14682
14683 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14684
14685 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14686
14687 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14688 multibyte. Change callers.
14689 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14690 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14691 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14692 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14693 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14694 (regex_compile): Make the compiled pattern usable both for
14695 multibyte and unibyte targets.
14696 (analyse_first): Make the fastmap usable both for multibyte and
14697 unibyte targets.
14698 (TRANSLATE_VIA_MULTIBYTE): Delete.
14699 (re_match_2_internal): Pay attention to the case that the
14700 multibyteness of bufp and target may be different.
14701
147022008-02-01 Kenichi Handa <handa@m17n.org>
14703
14704 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14705 empty box occupy at least one column width.
14706
147072008-02-01 Miles Bader <miles@gnu.org>
14708
14709 * Makefile.in: Remove redundant HAVE_XFT clause.
14710
147112008-02-01 Kenichi Handa <handa@m17n.org>
14712
14713 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14718 being nil.
14719
147202008-02-01 Kenichi Handa <handa@m17n.org>
14721
14722 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14723
147242008-02-01 Kenichi Handa <handa@m17n.org>
14725
14726 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14727
147282008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * search.c (simple_search): Fix previous change.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * xftfont.c (ftfont_font_format): Extern declaration.
14735
14736 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14737
14738 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14739 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14740
14741 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14742 (ftfont_font_format): Fix previous change.
14743
14744 * font.h (Ffont_xlfd_name): EXFUN it.
14745
14746 * font.c (font_parse_xlfd): Fix the array size of `f'.
14747 (register_font_driver): Use EQ to compare driver->type.
14748
14749 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14750 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14751 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14756 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * xfont.c (xfont_open): Set font->format.
14761
14762 * xftfont.c (xftfont_open): Set font->format.
14763
14764 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14765 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14766 (ftfont_open): Set font->format.
14767 (ftfont_font_format): New function.
14768
14769 * font.h (struct font): New member format.
14770
14771 * font.c (Qopentype): New variable.
14772 (syms_of_font): Defsym it.
14773 (Fquery_font): Change the format of the last element of the return
14774 value.
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14779 last resort.
14780
147812008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * coding.c (detect_coding_charset): Fix detection of multi-byte
14784 charset.
14785
147862008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14787
14788 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14789
147902008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * xdisp.c (get_next_display_element): Set it->face_id for the
14793 first component of a composition.
14794 (x_produce_glyphs): Check if the font is changed or not for composition.
14795
147962008-02-01 Kenichi Handa <handa@m17n.org>
14797
14798 * fontset.c (Qlatin): New variable.
14799 (syms_of_fontset): Define it as a lisp symbol.
14800 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14801
148022008-02-01 Kenichi Handa <handa@m17n.org>
14803
14804 * font.c (font_unparse_fcname): Pay attention to the case that
14805 some of font property is a null string.
14806
148072008-02-01 Kenichi Handa <handa@m17n.org>
14808
14809 * term.c: Include "composite.h".
14810 (encode_terminal_code): Output all components of composition.
14811 Check the size of encode_terminal_src.
14812 (produce_glyphs): For composition, call produce_composite_glyph.
14813 (append_composite_glyph, produce_composite_glyph): New functions.
14814
14815 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14816 is not found, get font_info from the current ascii face.
14817
148182008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14821 buffer-file-name to Qnil before calling insert_from_buffer.
14822
14823 * font.c (font_unparse_fcname): Pay attention to the case that
14824 foundry is a null string.
14825
148262008-02-01 Kenichi Handa <handa@m17n.org>
14827
14828 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14829
14830 * font.c (Qunicode_sip): New variable.
14831 (syms_of_font): Declare it as a Lisp symbol.
14832
14833 * font.h (Qunicode_sip): Extern it.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * composite.c (get_composition_id): Pay attention to TAB component.
14838
14839 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14840 TAB. Adjust for the change of s->char2b which always points to
14841 the first element of allocated memory.
14842
14843 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14844
14845 * xdisp.c (handle_composition_prop): Set it->c to the first
14846 non-TAB component.
14847 (fill_composite_glyph_string): Change argument.
14848 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14849 (x_produce_glyphs): Fix handling of left/right padding.
14850
148512008-02-01 Kenichi Handa <handa@m17n.org>
14852
14853 * coding.c (detect_coding_system): Fix for handling off
14854 inhibit_iso_escape_detection. Fix for the case that no coding
14855 system is defined for a specific coding category.
14856
148572008-02-01 Kenichi Handa <handa@m17n.org>
14858
14859 * font.c (font_matching_entity): Delete unused local var.
14860
14861 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14862 opening a font.
14863
14864 * fileio.c (Finsert_file_contents): On recovering a file, assume
14865 Unix-like eol.
14866 (choose_write_coding_system): On auto-saving a file, force
14867 Unix-like eol.
14868
14869 * coding.c (setup_coding_system): Fix setting of
14870 coding->common_flags based on eol_type.
14871 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14872 inherit from it.
14873
148742008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * alloc.c (NSTATICS): Increas to 0x600.
14877
148782008-02-01 Kenichi Handa <handa@m17n.org>
14879
14880 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14881 (ftfont_list): Don't check :name property.
14882 (ftfont_match): New function.
14883 (ftfont_pattern_entity): If the pattern doesn't contain
14884 FC_SPACING, don't assume FC_MONO.
14885
14886 * font.h (struct font_driver): New member `match'.
14887 (font_update_drivers): Adjust prototype.
14888
14889 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14890 property of FONT.
14891 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14892 them unconditionally.
14893 (font_matching_entity): New function.
14894 (font_open_by_name): Try font_matching_entity if exact match is
14895 not found.
14896 (font_update_drivers): Delete the arg FONT. Return a list of
14897 actually used backends. Don't free faces, font caches here.
14898 Don't store data in frame parameters. Don't call x_set_font.
14899 (Ffont_spec): Store :name property as is.
14900 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14901 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14902 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14903 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14904 Call font->driver->otf_gsub instead of font_otf_gsub.
14905
14906 * frame.c (x_set_font_backend): Do more works that were done in
14907 font_update_drivers before.
14908
14909 * xfont.c (xfont_match): New function.
14910 (xfont_driver): Set xfont_driver.match to xfont_match.
14911 (xfont_draw): Set font in GC if necessary.
14912
14913 * ftxfont.c (ftxfont_match): New function.
14914 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14915
14916 * xftfont.c (xftfont_match): New function.
14917 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14918
149192008-02-01 Kenichi Handa <handa@m17n.org>
14920
14921 * font.h (struct font): New member scalable.
14922 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14923 (font_otf_gsub): Adjust prototype.
14924
14925 * font.c (font_otf_capability): Fix handling of the default langsys.
14926 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14927 Check the contents of SPEC.
14928 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14929 (check_gstring): New function.
14930 (REPLACEMENT_CHARACTER): New macro.
14931 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14932 glyph codes of GSTRING.
14933 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14934 (font_prepare_composition): Set cmp->glyph_len.
14935 (font_open_entity): Set font->scalable.
14936 (Ffont_get): Handle :otf property.
14937 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14938 functions.
14939 (Fquery_font): Use font->font.full_name.
14940 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14941 Sfont_otf_alternates.
14942
14943 * ftfont.c (ftfont_open): Set font->font.full_name and
14944 font->font.name properly. Fix calculation of font->font.height
14945 and font->min_width.
14946
14947 * ftxfont.c (ftxfont_create_gcs): New function.
14948 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14949 (ftxfont_draw_backgrond): Fix filling region.
14950 (ftxfont_default_fid): New function.
14951 (ftxfont_open): Set xfont->fid to the return value of
14952 ftxfont_default_fid.
14953 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14954 (ftxfont_done_face): Free only GCs that are created by
14955 ftxfont_create_gcs.
14956 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14957
14958 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14959 Clip to src->width, etc (not src->clip_XXX).
14960
14961 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14962 FontBackend frame parameter.
14963
149642008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * font.h (struct font_driver_list): New member `on'.
14967 (Fclear_font_cache): EXFUN it.
14968 (font_update_drivers): Extern it.
14969
14970 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14971 (font_list_entities): Check driver_list->on.
c0943d3d 14972 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
14973 (font_update_drivers): New function.
14974 (Fclear_font_cache): Check driver_list->on.
14975
14976 * frame.h (Qfont_backend): Extern it.
14977 (x_set_font_backend): Extern it.
14978
14979 * frame.c (Qfont_backend): New variable.
14980 (frame_parms): New element for font-backend.
14981 (x_set_font_backend): New function.
14982
14983 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14984 FontBackend frame parameter.
14985 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14986 x_set_font_backend.
14987
14988 * xfont.c (xfont_list): Don't try listing by :name property if the
14989 name is not for XLFD.
14990
149912008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14994 (LGLYPH_SET_TO): New macros.
14995 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14996 element of G is vector or not.
14997 (font_at): Extern it.
14998
14999 * font.c: Include window.h.
15000 (font_lispy_object): New function.
15001 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15002 end of valid glyph.
15003 (font_close_object): Fix getting (struct font *).
15004 (font_at): New function.
15005 (Ffont_get): If FONT is a font-object, get entity from it.
15006 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15007 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15008 range check.
15009 (Ffont_at): New function.
15010 (syms_of_font): Defsubr Sfont_at.
15011
15012 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15013 before the entry for Qcomposition.
15014 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15015 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15016 the font in gstring.
15017 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15018 LGLYPH_FORM (g) to detect the end of valid glyph.
15019 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15020 we are composing with gstring.
15021
15022 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15023 Check if adjustment is vector or not.
15024
15025 * Makefile.in (font.o): Make it depends on window.h.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15030 adjustment is vector or not.
15031
150322008-02-01 Miles Bader <miles@gnu.org>
15033
15034 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15039 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15040 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15041
15042 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15043 (DEVICE_DELTA): Fix typo.
15044 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15045 LGLYPH format.
15046
15047 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15048 the change of LGLYPH format.
15049
150502008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * ftfont.c (ftfont_list): Fix typo.
15053 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15054
150552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15056
15057 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15058
15059 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15060 xftface_info is non-NULL.
15061
150622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15063
15064 * ftfont.c (ftfont_list): Move misplaced #endif.
15065
150662008-02-01 Kenichi Handa <handa@m17n.org>
15067
15068 * ftfont.c (ftfont_list): Pay attention to the case that
15069 FC_CAPABILITY is not defined.
15070
150712008-02-01 Kenichi Handa <handa@m17n.org>
15072
15073 * xftfont.c (xftfont_open): Set charset related members to -1.
15074
15075 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15076 QCname.
15077 (ftfont_open): Set charset related members to -1.
15078
15079 * fontset.c (Votf_script_alist): New variable.
15080 (syms_of_fontset): Initialize it.
15081 (fontset_font): Delete unused variable.
15082
15083 * fontset.h (Votf_script_alist): Extern it.
15084
15085 * font.c (font_find_for_lface): Optimize code.
15086
15087 * font.h (font_close_object, font_merge_old_spec): Extern them.
15088
150892008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15092 (syms_of_font): Initialize them.
15093 (font_pixel_size): Allow float value in dpi.
15094 (font_prop_validate_type): Delete.
15095 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15096 Change caller.
15097 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15098 (font_prop_validate_extra): Delete.
15099 (font_prop_validate_spacing): New function.
15100 (font_property_table): Add elements for all known properties.
15101 (get_font_prop_index): Rename from check_font_prop_name. New
15102 argument FROM. Change caller.
15103 (font_prop_validate): Validate all known properties.
15104 (font_put_extra): Delete argument force. Change caller.
15105 (font_expand_wildcards): Make it static. Fix the way of shrinking
15106 the possible range.
15107 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15108 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15109 Change caller.
15110 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15111 (font_parse_fcname): Delete argument merge. Fix parsing of point
15112 size. Don't validate properties values here. Change caller.
15113 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15114 (font_open_by_name): Delete unused variable.
15115 (Ffont_spec): Likewise. Validate property values.
15116 (Ffont_match_p): New function.
15117
15118 * font.h (QCscalable): Extern it.
15119 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15120
15121 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15122
15123 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15124 (xfont_list_pattern): New function.
15125 (xfont_list): Use xfont_list_pattern.
15126
151272008-02-01 Kenichi Handa <handa@m17n.org>
15128
15129 * font.h (Flist_fonts): EXFUN it.
15130
151312008-02-01 Jason Rumney <jasonr@gnu.org>
15132
15133 * w32term.c (w32_initialize): Add back smoothing_type and
15134 smoothing_enabled definitions.
15135
151362008-02-01 Kenichi Handa <handa@m17n.org>
15137
15138 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15139 s->face->font on determining underline position.
15140
151412008-02-01 Kenichi Handa <handa@m17n.org>
15142
15143 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15144 (font_has_char): Accept font-object too.
15145 (font_find_for_lface): Try at first with a size specified in face.
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15150 font_open_by_name.
15151
151522008-02-01 Kenichi Handa <handa@m17n.org>
15153
15154 * font.h (QCspacing, QCdpi): Extern them.
15155 (enum font_spacing): New enum.
15156 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15157
15158 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15159 (QCspacing, QCdpi): New variables.
15160 (syms_of_font): Initialize them.
15161 (font_pixel_size): New function.
15162 (font_put_extra): New function.
15163 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15164 in FONT_EXTRA.
15165 (font_parse_fcname): Handle enumerated values (e.g. bold).
15166 Fix handling font size. Add QCname property that contains only
15167 unknown properties.
15168 (font_score): Change argument. Change caller. Pay attention to
15169 FONT_PIXEL_SIZE_QUANTUM.
15170 (font_sort_entites, font_list_entities, font_find_for_lface)
15171 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15172 (Ffont_spec): Add QCname property that contains only unknown properties.
15173
15174 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15175 include weight in listing pattern, instead check weight of each
15176 listed font. Don't include scalable in pattern. Pay attention to
15177 FONT_PIXEL_SIZE_QUANTUM.
15178
151792008-02-01 Kenichi Handa <handa@m17n.org>
15180
15181 * font.c (font_parse_fcname): Fix parsing of point-size.
15182 (font_unparse_fcname): Produce symbolic names for style properties.
15183 (font_list_entities): Handle float size correctly.
15184 (font_open_by_name): Prefer `normal' property values if the name
15185 doesn't specify them.
15186
15187 * fontset.c (Finternal_char_font): Use font_get_name, not
15188 Ffont_xlfd_name.
15189
15190 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15191 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15192 pattern. Don't force scalable.
15193
15194 * xftfont.c (xftfont_open): For generating a name, start from
15195 96-byte buffer.
15196
151972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15198
15199 * frame.h (x_new_fontset2): Fix prototype.
15200
152012008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * font.h (struct font_driver): Delete member parse_name.
15204 (font_match_p, font_get_spec, font_parse_fcname)
15205 (font_unparse_fcname): Extern them.
15206 (font_get_name): Adjust prototype.
15207
15208 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15209 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15210 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15211 unnecessary checks for weight, slant, and swidth.
15212 (font_parse_fcname): New function.
15213 (font_unparse_fcname): New function.
15214 (font_parse_name): New function.
15215 (font_match_p): New function.
15216 (font_get_name): Change return value to Lisp string.
15217 (font_get_spec): New function.
15218 (Qunspecified, Qignore_defface): Don't extern them.
15219 (font_find_for_lface): Assume that LFACE is fully specified.
15220 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15221 object, use it for FACE.
15222 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15223 driver->parse_name.
15224 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15225
15226 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15227 prototype.
15228
15229 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15230 argument F. Don't call Fnew_fontset. Instead, directly call
15231 make_fontset.
15232
15233 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15234
15235 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15236 of x_new_fontset2.
15237
15238 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15239 (Qsans__serif): New variables.
15240 (ftfont_generic_family_list): New variable.
15241 (syms_of_ftfont): Initialize the above variables.
15242 (ftfont_pattern_entity): Delete argument NAME.
15243 (ftfont_list_generic_family): New function.
15244 (ftfont_parse_name): Delete this function.
15245 (ftfont_list): Try generic family only when FcFontList found no font.
15246 (ftfont_list_family): Fix args to FcObjectSetBuild.
15247
15248 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15249 object in attrs[LFACE_FONT_INDEX].
15250 (set_lface_from_font_name): Cancel all changes for font-backend.
15251 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15252 function.
15253 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15254 font object in QCfont attribute.
15255 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15256 (realize_default_face) [USE_FONT_BACKEND]: Call
15257 set_lface_from_font_and_fontset.
15258
15259 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15260 "fixed", and signal error here if no suitable font was found.
15261
15262 * xfont.c (xfont_parse_name): Delete this function.
15263
15264 * xftfont.c (xftfont_open): Change coding style of error
15265 handling. Generate fontconfig's fontname pattern.
15266
15267 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15268 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15269
15270 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15271 Both args FONTSET and FONT_OBJECT must be existing ones.
15272
152732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15274
15275 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15280
15281 * font.h (struct font): Fix typo.
15282
15283 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15284 XLFD_XXX_INDEX.
15285 (enum xlfd_field_mask): New enum.
15286 (intern_font_field): Changed argument. Change caller. If digits
15287 are followed by non-digits, return a symbol.
15288 (font_expand_wildcards): New function.
15289 (font_parse_xlfd): Fix wildcard handling.
15290 (Ffont_spec): If :name is specified, reflect the info in the other
15291 properties.
15292
15293 * ftfont.c (ftfont_pattern_entity): Fix typo.
15294 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15295 locale.
15296
152972008-02-01 Kenichi Handa <handa@m17n.org>
15298
15299 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15300
15301 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15302 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15303 registry doesn't specify encoding part.
15304 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15305 (font_open_by_name): At first try parsing the name.
15306 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15307 as Lisp symbols.
15308
15309 * fontset.c (reorder_font_vector): Pay attention to the case that
15310 the 3rd element of font_def is nil.
15311 (fontset_font): For the default fontset, append one more fontset
15312 elements for a script-based font specification. Don't add script
15313 attribute on finding a font.
15314 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15315 font name.
15316 (fontset_ascii_font): If a font can't be opened, return nil.
15317
15318 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15319 (ftfont_pattern_entity): New function.
15320 (ftfont_get_cache): Assume that freetype_font_cache is already
15321 initialized.
15322 (ftfont_list): Handle the case that a file is specified in font
15323 name. Use ftfont_pattern_entity to generate entities.
15324 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15325 (syms_of_ftfont): Initialize freetype_font_cache.
15326
15327 * xftfont.c (xftfont_open): Make the font name fontconfig's
15328 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15329 (xftfont_close): Free font->font.name if not NULL.
15330
15331 * xfont.c (xfont_list): If script is specified for a font, return
15332 null_vector.
15333 (xfont_list_family): Declare argument type.
15334
15335 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15336 name, set LFACE_FONT (lface) to nil.
15337
15338 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15339 return Qnil.
15340
153412008-02-01 Kenichi Handa <handa@m17n.org>
15342
15343 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15344 (standard_args): Add "-enable-font-backend".
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15349 (struct xftdraw_list, xftdraw_list): Delete them.
15350 (register_xftdraw, check_xftdraw): Delete them.
15351 (xftfont_prepare_face): Don't call register_xftdraw.
15352 (xftfont_done_face): Don't call check_xftdraw.
15353 (xftfont_draw): Get background color only when with_background is
15354 nonzero.
15355
15356 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 These changes are for the new font handling codes.
15361
15362 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15363 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15364 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15365 (FONTSRC, FONTOBJ): New variables.
15366 (obj): Add $(FONTOBJ).
15367 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15368 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15369 @LIBOTF_LIBS@.
15370 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15371 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15372
15373 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15374
15375 * character.h (Vscript_representative_chars): Extern it.
15376
15377 * character.c (Vscript_representative_chars): New variable.
15378 (syms_of_character): Declare it as a Lisp variable.
15379
15380 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15381 enable_font_backend is nonzero, accept the composition method
15382 COMPOSITION_WITH_GLYPH_STRING.
15383
15384 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15385 enumeration COMPOSITION_WITH_GLYPH_STRING.
15386
15387 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15388 members clip_x, clip_y, clip_width, and clip_height.
15389 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15390
15391 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15392 --enable-font-backend. Call syms_of_font.
15393
15394 * fns.c (assoc_no_quit): New function.
15395
15396 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15397 (face_for_font, new_fontset_from_font)
15398 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15399
15400 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15401 (fontset_font, fontset_ascii, face_for_char)
15402 (make_fontset_for_ascii_face, Ffont_info)
15403 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15404 is nonzero, use font-backend mechanism.
15405 (find_font_encoding): Make it non-static.
15406 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15407 New functions.
15408
15409 * frame.h (struct frame): New members resx and resy.
15410 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15411 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15412
15413 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15414 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15415
15416 * lisp.h (assoc_no_quit): Extern it.
15417
15418 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15419 Through out the file, use FONT_INFO_FROM_FACE instead of
15420 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15421 rif->per_char_metric.
15422 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15423 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15424 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15425 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15426 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15427 nonzero, use font-backend mechanism.
15428 (get_per_char_metric): New function.
15429
15430 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15431 (set_lface_from_font_name)
15432 (set_font_frame_param, free_realized_face)
15433 (prepare_face_for_display, clear_face_gcs)
15434 (Finternal_set_font_selection_order, realize_x_face)
15435 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15436 font-backend mechanism.
15437 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15438 (load_face_font) [USE_FONT_BACKEND]: Abort.
15439 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15440 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15441
15442 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15443 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15444 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15445 nonzero, register all available font drivers. Call
15446 x_default_font_parameter for deciding a font.
15447 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15448
15449 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15450 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15451 (x_set_glyph_string_clipping_exactly)
15452 (x_compute_glyph_string_overhangs)
15453 (x_draw_glyph_string_foreground)
15454 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15455 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15456 enable_font_backend is nonzero, use font-backend mechanism.
15457 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15458
154592008-02-01 Kenichi Handa <handa@m17n.org>
15460
15461 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15462 system_eol_type.
15463 (syms_of_coding): Initialize system_eol_type.
15464
15465 * process.c (Fset_process_coding_system): Inherit system's eol
15466 format if necessary.
15467
154682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15469
15470 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * coding.c (decode_eol): Pay attention to buffer relocation in
15475 del_range_2.
15476 (decode_coding): Call decode_eol before restoring undo_list.
15477
154782008-02-01 Kenichi Handa <handa@m17n.org>
15479
15480 * charset.c (Fdefine_charset_internal): Fix setting of
15481 emacs_mule_bytes.
15482
154832008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * keyboard.c (read_char): Check if C is a character or not before
15486 looking up Vkeyboard_translate_table.
15487
154882008-02-01 Kenichi Handa <handa@m17n.org>
15489
15490 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15491 condition to terminate the loop.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * coding.c (produce_composition): Compare charbuf[i] instead of
15496 args[i] against 0.
15497 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15502 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15503 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15504 detect_coding.
15505 (emacs_mule_char): Handle old style (Emacs 20) component character
15506 of a composition.
15507 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15508 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15509 composition rule.
15510 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * coding.c (encode_coding_ccl): Allocate destination dynamically
15515 when necessary.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15520 the loop. When quitted, show a proper error message.
15521
155222008-02-01 Kenichi Handa <handa@m17n.org>
15523
15524 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15525 src->clip_head and src->clip_tail temporarily instead of src->hl.
15526
15527 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15528 character sequence.
15529 (Fccl_execute_on_string): Use ASET, not XSET.
15530
155312008-02-01 Kenichi Handa <handa@m17n.org>
15532
15533 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15534
155352008-02-01 Kenichi Handa <handa@m17n.org>
15536
15537 * coding.c (decode_coding): Fix the condition of terminating the
15538 decoding loop.
15539
155402008-02-01 Kenichi Handa <handa@m17n.org>
15541
15542 * data.c (Faset): On setting a character bigger than 255 in a
15543 unibyte string, signal an error instead of make the string multibyte.
15544
155452008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15548 made by a mapping table.
15549
155502008-02-01 Kenichi Handa <handa@m17n.org>
15551
15552 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15553 not.
15554 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15555 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15556
15557 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15558 s->face is NULL or not.
15559
155602008-02-01 Kenichi Handa <handa@m17n.org>
15561
15562 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15563 (x_draw_glyph_string): Fix drawing of right_overhang and
15564 left_overhang around/on cursor.
15565
15566 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15571
155722008-02-01 Kenichi Handa <handa@m17n.org>
15573
15574 * coding.c (Fdefine_coding_system_internal)
15575 (Fdefine_coding_system_alias): Avoid a duplicated element in
15576 Vcoding_system_alist.
15577
155782008-02-01 Kenichi Handa <handa@m17n.org>
15579
15580 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15581
15582 * coding.c (Qcoding_system_define_form): New variable.
15583 (syms_of_coding): Intern and staticpro it.
15584 (Fcoding_system_p): Check Qcoding_system_define_form.
15585 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15586
15587 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15588 Fcoding_system_p.
15589 (CHECK_CODING_SYSTEM): If ID is not available, call
15590 Fcheck_coding_system.
15591 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15592 Try also Fcheck_coding_system.
15593
155942008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * coding.c (code_conversion_restore): GCPRO arg.
15597
155982008-02-01 Kenichi Handa <handa@m17n.org>
15599
15600 * character.c (lisp_string_width): Check multibyteness of STRING.
15601
156022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15603
15604 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15605 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15606 (decode_mac_font_name): Use decode_coding_c_string instead of
15607 decode_coding.
15608 (x_load_font): Initialize fontp->fontset to -1. Set
15609 fontp->encoding_type.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * search.c (search_buffer): Give up BM search on case-fold-search
15614 if one of a target character has a case-equivalence of different
15615 byte length even if that target charcter is an ASCII.
15616 (simple_search): Fix calculation of byte length of matched text.
15617 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15618
156192008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * coding.c (decode_coding): Fix handling of invalid bytes.
15622
156232008-02-01 Kenichi Handa <handa@m17n.org>
15624
15625 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15626 Unicode characters.
15627
156282008-02-01 Kenichi Handa <handa@m17n.org>
15629
15630 * coding.c (encode_coding_object): If a pre-write-conversion
15631 function makes a new buffer, kill it.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * coding.c (QCascii_compatible_p): New variable.
15636 (syms_of_coding): Initialize it.
15637 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15638 calling string_char.
15639 (record_conversion_result): Add `default:' case.
15640 (coding_charset_list): Delete unused variable `coding_type'.
15641 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15642 property in the plist of the coding system.
15643 (Fcoding_system_put): Check QCascii_compatible_p.
15644
156452008-02-01 Miles Bader <miles@gnu.org>
15646
15647 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15648 removed calculation of frame `f', as it's now used.
15649
156502008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15653 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15654 (UNIDATA): New variable.
15655 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15656 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15657 $(RUN_TEMACS) unconditionally.
15658
156592008-02-01 Kenichi Handa <handa@m17n.org>
15660
15661 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15662 (admindir): New variable.
15663 ($(lispsource)international/charprop.el): New target.
15664
156652008-02-01 Miles Bader <miles@gnu.org>
15666
15667 * character.c (chars-in-region): Remove obsolete function.
15668 (syms_of_character): Remove its initialization.
15669
156702008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15671
15672 * w32select.c (validate_coding_system)
15673 (setup_windows_coding_system): New functions.
15674 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15675 setup_windows_coding_system.
15676 (setup_config, Fw32_get_clipboard_data): Use
15677 validate_coding_system.
15678 (Fx_selection_exists): Move call to setup_config to a place
15679 where signals are allowed.
15680
15681 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15682 (Fcheck_coding_system): Add declarations.
15683
156842008-02-01 Kenichi Handa <handa@m17n.org>
15685
15686 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15687
156882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15689
15690 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15691 string as the second argument for x_new_fontset.
15692
156932008-02-01 Kenichi Handa <handa@m17n.org>
15694
15695 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15696 (encode_coding_object): Use safe_call instead of call2.
15697
156982008-02-01 Kenichi Handa <handa@m17n.org>
15699
15700 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15701
15702 * Makefile.in (lisp): Include charprop.el.
15703
157042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15705
15706 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15707 Not sure if it's unnecessary.
15708
157092008-02-01 Steven Tamm <steventamm@mac.com>
15710
15711 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15712 some possibly unnecessary fontset checking code that crashed
15713 when creating a new frame.
15714
157152008-02-01 Kenichi Handa <handa@m17n.org>
15716
15717 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15718 lookup_face.
15719
15720 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15721
15722 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15727 (coding_charset_list): New function.
15728
15729 * coding.h (coding_charset_list): Extern it.
15730
157312008-02-01 Kenichi Handa <handa@m17n.org>
15732
15733 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15734 concatenation of family and registry.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * character.h (BYTE8_STRING): Fix typo.
15739
15740 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15741 string to multibyte (sync to HEAD).
15742
15743 * casefiddle.c (casify_region): Handle changes in byte-length
15744 using replace_range_2 (sync to HEAD).
15745
157462008-02-01 Andreas Schwab <schwab@suse.de>
15747
15748 * chartab.c (map_char_table): GCPRO table and arg.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15753 already at limit.
15754
157552008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15758 instead of fast_c_string_match_ignore_case.
15759 (find_font_encoding): Change argument to Lisp_Object. Use
15760 fast_string_match_ignore_case instead of
15761 fast_c_string_match_ignore_case. Change caller.
15762
157632008-02-01 Kenichi Handa <handa@m17n.org>
15764
15765 * xdisp.c (get_next_display_element): In unibyte case, decide to
15766 display in octal form by checking a character by
15767 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15768
15769 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15770
15771 * character.c (unibyte_has_multibyte_table): New variable.
15772
15773 * character.h (unibyte_has_multibyte_table): Extern it.
15774 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15775
157762008-02-01 Kenichi Handa <handa@m17n.org>
15777
15778 * coding.c (encode_coding_iso_2022): Fix handling of charset
15779 annotation.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * coding.c (setup_coding_system): If coding_system is nil, use
15784 Qundecided.
15785 (Fterminal_coding_system): Return nil if terminal coding system is
15786 `undecided'.
15787 (syms_of_coding): Define coding-system `undecided' here. Setup
15788 terminal_coding as `undecided'.
15789
157902008-02-01 Kenichi Handa <handa@m17n.org>
15791
15792 * xdisp.c (message_dolog, set_message_1): Call
15793 unibyte_char_to_multibyte with arg type int.
15794
15795 * lread.c (read1): Fix reading of a char-table.
15796
15797 * print.c (print_object): Include sub char-table in circularities
15798 detection.
15799
158002008-02-01 Kenichi Handa <handa@m17n.org>
15801
15802 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15803 Append the found sequences in car of ARGS instead of prepending.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * fileio.c (report_file_error): Make a unibyte string from
15808 strerror (errorno).
15809 (Fsubstitute_in_file_name): Fix the arg to
15810 unibyte_char_to_multibyte. It is evaluated twice.
15811
158122008-02-01 Kenichi Handa <handa@m17n.org>
15813
15814 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15815
158162008-02-01 Kenichi Handa <handa@m17n.org>
15817
15818 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15819 BOM is not found.
15820 (detect_coding, detect_coding_system): Optimization for ISO-2022
15821 when no 8-bit data is found.
15822
158232008-02-01 Jason Rumney <jasonr@gnu.org>
15824
15825 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15826
158272008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15830 CHARS.
15831
158322008-02-01 Steven Tamm <steventamm@mac.com>
15833
15834 * macterm.c (mac_encode_char): Add charset argument and update
15835 to use encoding_type.
15836 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15837 switch to pure fontset.
15838 (decode_mac_font_name): Temporarily remove decoding.
15839 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15840 (x_load_font): Temporarily remove encoding.
15841
158422008-02-01 Kenichi Handa <handa@m17n.org>
15843
15844 * xfaces.c (Fface_font): If frame is not on a window system,
15845 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15846 refer to face->font.
15847 (split_font_name_into_vector, build_font_name_from_vector)
15848 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15849 when HAVE_WINDOW_SYSTEM is defined.
15850
158512008-02-01 Kenichi Handa <handa@m17n.org>
15852
15853 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15854 (x_produce_glyphs): Fix setting of members of cmp in case
15855 cmp->glyph_len is zero.
15856
15857 * fontset.c (Fset_fontset_font): Fix docstring.
15858 (Ffontset_info): Make it backward compatible. New arg ALL.
15859
158602008-02-01 Kim F. Storm <storm@cua.dk>
15861
15862 * process.c (read_process_output): Grow decoding_buf when needed;
15863 this could cause a crash in allocate_string and compact_small_strings.
15864
158652008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * coding.c (setup_coding_system): Set coding->common_flags
15872 correctly for raw-text.
15873 (consume_chars): On encoding unibyte text by raw-text, don't check
15874 multibyte form.
15875 (encode_coding): On encoding by raw-text, never use translation tables.
15876
15877 * fileio.c (e_write): Short cut for the case of no encoding.
15878
158792008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * coding.c (detect_coding, detect_coding_system): Delete unused
15882 variables.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15887 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15888
158892008-02-01 Kenichi Handa <handa@m17n.org>
15890
15891 * coding.c (Ffind_coding_systems_region_internal): Include
15892 raw-text and no-conversion in the result.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15897 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15898 FONT_DEF.
15899 (font_def_arg, add_arg, from_arg, to_arg): New args.
15900 (set_fontset_font): Change argument.
15901 (Fset_fontset_font): Fix for the case that TARGET is a script
15902 name and charset name.
15903 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15904
159052008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * fontset.c (fontset_font): Rename from fontset_face. Change return
15908 value.
15909 (face_suitable_for_char_p, face_for_char): Adjust for the change
15910 of fontset_font.
15911 (make_fontset_for_ascii_face): Fix setting of the fontset element
15912 for ASCII.
15913 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15914 to get a font name.
15915 (Ffontset_info): Adjust for the change of fontset_font.
15916
15917 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15918
15919 * character.h (LEADING_CODE_LATIN_1_MIN)
15920 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * editfns.c (check_translation): New function.
15925 (Ftranslate_region_internal): Handle M:N mapping.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15930
159312008-02-01 Kenichi Handa <handa@m17n.org>
15932
15933 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15934 goto invalid_code.
15935 (decode_coding_iso_2022): Fix handling of invalid designation.
15936
15937 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15938 after calling code_conversion_save.
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15943
15944 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15945
15946 * fontset.c: Include "intervals.h".
15947 (fontset_face): Fix comparing of Lisp_Objects.
15948 (free_face_fontset, new_fontset_from_font_name): Fix
15949 Lisp_Object/int mixup.
15950
15951 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15952
15953 * coding.c: Add many prototypes for static functions.
15954 (get_translation_table): Allow max_lookup to be NULL.
15955 (decode_coding, Ffind_coding_systems_region_internal)
15956 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15957 get_translation_table with max_lookup NULL.
15958
159592008-02-01 Kenichi Handa <handa@m17n.org>
15960
15961 * coding.c (get_translation_table): Declare it as Lisp_Object.
15962 (LOOKUP_TRANSLATION_TABLE): New macro.
15963 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15964 instead of CHAR_TABLE_REF.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15969 annotation data format.
15970 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15971 Change arguments FROM and TO to single argument NCHARS. Change caller.
15972 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15973 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15974 (decode_coding_ccl, decode_coding_charset): Pay attention to
15975 coding->charbuf_used.
15976 (get_translation): New function.
15977 (produce_chars): New arguments translation_table and last_block.
15978 Translate characters here. Return number of carryover chars.
15979 Change caller.
15980 (produce_composition): New argument pos. Change caller.
15981 Adjust for the change of annotation data format.
15982 (produce_charset, produce_annotation): Likewise.
15983 (decode_coding, encode_coding): Don't call translate_chars.
15984 (consume_chars): New arg translation_table. Change caller.
15985 (translate_chars): Delete.
15986 (syms_of_coding): Make translation-table's number of extra slots 2.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * search.c (simple_search): Fix setting this_pos_byte in backward
15991 search.
15992
15993 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15994 byte sequence.
15995 (detect_coding_ccl): Fix setting of the variable valids.
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16000
16001 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16002
16003 * editfns.c (Ftranslate_region_internal): Rename from
16004 Ftranslate_region. Accept a char-table in TABLE.
16005 (syms_of_editfns): Defsubr Stranslate_region_internal.
16006
16007 * xfaces.c (set_lface_from_font_name): If a font is specified for
16008 a frame, generate a fontset from the font.
16009 (build_scalable_font_name): If the scalable font is requested for
16010 a specific size, don't change that size.
16011 (try_font_list): Try a scalable font also in the case that a
16012 pattern string is specified.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * xfaces.c (Fface_font): New optional arg CHARACTER.
16017
160182008-02-01 Kenichi Handa <handa@m17n.org>
16019
16020 * charset.h (CHARSET_OFFSET): New macro.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16025
16026 * fontset.c (fontset_face): Handle the case that repertory is a
16027 char-table.
16028 (find_font_encoding): Return nil for unknown encoding.
16029 (Fset_fontset_font): Ignore a font of unknown encoding.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * keymap.c (describe_vector): Handle default value of a char table.
16034
16035 * fontset.c (fontset_face): Handle fallback fonts correctly.
16036 (Ffontset_info): Return infomation about fallback fonts.
16037
160382008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * fontset.c (FONTSET_DEFAULT): New macro.
16041 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16042 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16043 the case that it is nil.
16044 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16045 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16046
16047 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16048 subset or superset.
16049
160502008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * emacs.c (main): Call init_charset after syms_of_XXX.
16053
16054 * charset.c (Vcharset_map_directory): Delete.
16055 (Vcharset_map_path): New variable.
16056 (load_charset_map_from_file): Use Vcharset_map_path instead.
16057 (init_charset): Initialize Vcharset_map_path.
16058 (syms_of_charset): Delete declaration of "charset-map-directory",
16059 add declaration of "charset-map-path".
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16064 ASCII only string.
16065
16066 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16067
16068 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16069 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16074
16075 * coding.c (QCmnemonic, QCdefalut_char)
16076 (QCdecode_translation_table, QCencode_translation_table)
16077 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16078 (get_translation_table): Return a list of translation tables if
16079 necessary.
16080 (decode_coding): Call get_translation_table with ENCODEP 0.
16081 (char_encodable_p): If translation_table is non-nil, always call
16082 translate_char.
16083 (Fdefine_coding_system_internal): Accept list of translation
16084 tables as :encode-translation-table and :decode-translation-table.
16085 (Fcoding_system_put): New function.
16086 (syms_of_coding): Declare new symbols. Defsubr
16087 Scoding_system_put.
16088 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16089 typically JISX0212.
16090
16091 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16092 when the charset is superset type.
16093
16094 * character.c (translate_char): Accept list of translation tables.
16095
160962008-02-01 Kenichi Handa <handa@m17n.org>
16097
16098 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16099 (CODING_ATTR_TRANS_TBL): New macro.
16100
16101 * coding.c (get_translation_table): New function.
16102 (translate_chars): Fix the bug of skipping annotation data.
16103 (decode_coding, encode_coding): Utilize get_translation_table.
16104 (char_encodable_p, Funencodable_char_position): Translate char if
16105 necessary.
16106 (Ffind_coding_systems_region_internal)
16107 (Fcheck_coding_systems_region): Setup translation table for encode
16108 in a coding system attribute vector in advance.
16109 (Fdefine_coding_system_internal): Allow a symbol as translation
16110 table. For shift-jis type coding system, allow 4th charset.
16111
161122008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16115
16116 * xdisp.c (get_next_display_element): Pass -1 as POS to
16117 FACE_FOR_CHAR if displaying a C-string.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * composite.c (get_composition_id): Handle xoff and yoff in a
16122 composition rule.
16123
16124 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16125 (struct composition): New member lbearing and rbearing.
16126
16127 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16128 (x_get_glyph_overhangs): Handle a composition glyph.
16129 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16130
16131 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16132 composition glyph.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * print.c: Include charset.h.
16137 (Vprint_charset_text_property): New variable.
16138 (Qdefault): Extern it.
16139 (PRINT_STRING_NON_CHARSET_FOUND)
16140 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16141 (print_check_string_result): New variable.
16142 (print_check_string_charset_prop): New function.
16143 (print_prune_charset_plist): New variable.
16144 (print_prune_string_charset): New function.
16145 (print_object): Call print_prune_string_charset if
16146 Vprint_charset_text_property is not t.
16147 (print_interval): Print nothing if interval->plist is nil.
16148 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16149 variable. Init and staticpro print_prune_charset_plist.
16150
161512008-02-01 Kenichi Handa <handa@m17n.org>
16152
16153 * fontset.c (new_fontset_from_font_name): Use the specified font
16154 for all characters in the new fontset.
16155
16156 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16157 OBJECT args.
16158
16159 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16160 OBJECT args for composition too.
16161
16162 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16163 OBJECT args.
16164
161652008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16168
16169 * fontset.c (reorder_font_vector): Adjust for the change of
16170 FONT_DEF format.
16171 (fontset_face): New arg id. Change caller.
16172 (face_for_char): New args pos and object.
16173 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16174 (fs_query_fontset): Check NAME by Fassoc too.
16175 (Fset_fontset_font): Allow non-XLFD font name.
16176 (Ffontset_info): Adjust for the change of FONT_DEF format.
16177
16178 * fontset.h (face_for_char): Adjust prototype.
16179
16180 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16181 (append_space, extend_face_to_end_of_line)
16182 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16183 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16184
16185 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16186 POS and OBJECT args.
16187
16188 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16189 POS and OBJECT args.
16190
161912008-02-01 Jason Rumney <jasonr@gnu.org>
16192
16193 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16194 of GlobalAlloc'ed memory.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16199
16200 * charset.h (charset_table_used): Delete extern.
16201
16202 * charset.c (charset_table_used): Make it static.
16203 (map_charset_chars): Fix args to c_function with.
16204
16205 * chartab.c (map_sub_char_table_for_charset): Fix args to
16206 c_function with.
16207
16208 * coding.h (enum coding_result_code): Delete
16209 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16210
16211 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16212 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16213 (Vlast_code_conversion_error): New variables.
16214 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16215 (ONE_MORE_BYTE): Record error if any instead of signaling an
16216 error. If non-ASCII multibyte char is found, return the negative
16217 value of the code. All callers changed to check it.
16218 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16219 (record_conversion_result): New function. Change all codes setting
16220 coding->result to call this function.
16221 (detect_coding_utf_8, decode_coding_utf_8)
16222 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16223 Don't use the local variable incomplete.
16224 (emacs_mule_char): Change the second arg to `const'.
16225 (decode_coding): Fix of flushing out unprocessed data.
16226 (make_conversion_work_buffer): Fix making of a work buffer.
16227 (decode_coding_object): Return coding->dst_object.
16228
16229 * fontset.c (set_fontset_font): Fix args.
16230
16231 * lisp.h (CHARACTERBITS): Define as 22.
16232
16233 * process.c (send_process): Be sure to set coding->src_multibyte.
16234
16235 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * xdisp.c (handle_auto_composed_prop): Give limit to
16240 Fnext_single_char_property_change.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * composite.c (syms_of_composite): Don't make the composition hash
16245 table weak.
16246
16247 * fontset.c (Fset_fontset_font): Fix docstring.
16248
16249 * lisp.h (detect_coding_system): Adjust prototype.
16250
16251 * fileio.c (kill_workbuf_unwind): Delete this function.
16252 (Finsert_file_contents): Adjust the call of detect_coding_system.
16253 Get conversion_buffer by code_conversion_save. Use the macro
16254 CODING_MAY_REQUIRE_DECODING. After decoding, update
16255 coding_system.
16256
16257 * coding.h (make_conversion_work_buffer): Delete extern.
16258 (code_conversion_save): Extern it.
16259
16260 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16261 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16262 (decode_coding_utf_8): Don't do eol converion.
16263 (detect_coding_utf_16): Check coding->src_chars, not
16264 coding->src_bytes. Add heuristics for those that have no signature.
16265 (decode_coding_emacs_mule, decode_coding_iso_2022)
16266 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16267 Don't do eol converion.
16268 (adjust_coding_eol_type): Return a new coding system.
16269 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16270 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16271 each change.
16272 (decode_coding): Pay attention to undo_list. Do eol conversion for
16273 all types of coding-systems (if necessary).
16274 (Vcode_conversion_work_buf_list): Delete it.
16275 (Vcode_conversion_reused_workbuf): Rename from
16276 Vcode_conversion_reused_work_buf.
16277 (Vcode_conversion_workbuf_name): New variable.
16278 (reused_workbuf_in_use): New variable.
16279 (make_conversion_work_buffer): Delete the arg DEPTH.
16280 (code_conversion_restore): Change argument to cons.
16281 (code_conversion_save): Delete the argument BUFFER. Change callers.
16282 (detect_coding_system): New argument src_chars. Change callers.
16283 Fix for utf-16 detection.
16284 (init_coding_once): Don't use ISO_carriage_return.
16285 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16286 reused_workbuf_in_use.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * keymap.c (store_in_keymap): Pay attention to the case that idx
16291 is a cons specifying a character range.
16292
162932008-02-01 Kenichi Handa <handa@m17n.org>
16294
16295 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16296 HANDLED_RECOMPUTE_PROPS.
16297
16298 * coding.c (Fdefine_coding_system_internal): Fix checking of
16299 ascii compatibility.
16300
163012008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * charset.c (find_charsets_in_text): Delete unused locale variable.
16304 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16305
16306 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16307 Resync charset_list to Vemacs_mule_charset_list.
16308
16309 * keymap.c (store_in_keymap): Pay attention to the case that idx
16310 is a cons specifying a character range.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * composite.c (update_compositions): Bind inhibit-read-only, etc
16315 to t before calling remove-list-of-text-properties.
16316
16317 * print.c (print_object): Always print ASCII chars as is.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16322
16323 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16324 is a char table.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16329
163302008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * xfaces.c (set_lface_from_font_name): Fix for the case that
16333 FONTNAME is not fontset name.
16334
163352008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * fns.c (base64_encode_1): Fix previous change.
16338
163392008-02-01 Kenichi Handa <handa@m17n.org>
16340
16341 * fontset.c (set_fontset_font): New function.
16342 (Fset_fontset_font): If a font is specified for a charset, use
16343 map_charset_chars to store the font spec in a fontset.
16344
163452008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * fontset.c (fontset_face): Create a fallback fontset on demand.
16348 (make_fontset): Don't create a fallback fontset here.
16349 (free_face_fontset): Free a fallback fontset (if any) too.
16350 (n_auto_fontsets): Delete this variable.
16351 (auto_fontset_alist): New variable.
16352 (new_fontset_from_font_name): Check auto_fontset_alist.
16353 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16354 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16355 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16356 Defsubr Sfontset_list_all.
16357
163582008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * editfns.c (Fgoto_char): Fix docstring.
16369
163702008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * insdel.c (insert_from_gap): Adjust intervals correctly.
16373
163742008-02-01 Jason Rumney <jasonr@gnu.org>
16375
16376 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16377 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16378 (w32_initialize): Try to load it.
16379 (x_get_font_repertory): Use it if available.
16380 (w32_encode_char): Add shortcut for unicode output.
16381
16382 * w32fns.c (w32_load_system_font): Default charset to -1.
16383 (x_to_w32_charset): Match all fonts for unicode.
16384 (w32_to_x_charset): New parameter matching. Don't return partial
16385 or wildcard charsets.
16386 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16387 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16388 (w32_to_x_font): Match charset to real charset.
16389 (enum_font_cb2): Always list unicode versions.
16390
16391 * makefile.w32-in (temacs): Increase EMHEAP.
16392
163932008-02-01 Jason Rumney <jasonr@gnu.org>
16394
16395 * w32term.c (w32_encode_char): New charset parameter.
16396 font_info.encoding becomes encoding_type.
16397 (x_get_font_repertory): New function. Warning: stub only!
16398 (x_new_font): Return quickly if font already set.
16399 (x_new_fontset): fontsetname parameter is Lisp_Object.
16400 Use new fs_query_fontset. Try new_fontset_from_font_name.
16401 Use fontset_name for return value.
16402
16403 * w32term.h: Declare x_get_font_repertory.
16404
16405 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16406 place of find_charset_in_text. Use encode_coding_object in place
16407 of encode_coding.
16408 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16409 decode_coding.
16410
16411 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16412 of x_new_fontset.
16413 (w32_load_system_font): Initialize charset as unicode.
16414 font_info.encoding becomes encoding_type.
16415 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16416 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16417 (syms_of_w32fns): Set get_font_repertory_func.
16418
16419 * w32console.c: Include character.h. Use terminal_encode_buffer
16420 from term.c.
16421 (write_glyphs): Use new version of encode_terminal_code. Use
16422 encode_coding_object in place of encode_coding.
16423
16424 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16425 encoding becomes encoding_type.
16426
16427 * term.c (terminal_encode_buffer): Make externally visible.
16428
16429 * makefile.w32-in: Add character.h dependancies.
16430 (character.o, chartab.o): New targets.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16435 CODING_ID_EOL_TYPE.
16436
164372008-02-01 Andreas Schwab <schwab@suse.de>
16438
16439 * coding.c (produce_chars): Revert last change.
16440
164412008-02-01 Kenichi Handa <handa@m17n.org>
16442
16443 * charset.h (charset_unicode): Extern it.
16444
16445 * charset.c (string_xstring_p): Check by (C >= 0x100).
16446 (find_charsets_in_text): Change format of the arc CHARSETS. New
16447 arg MULTIBYTE.
16448 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16449 change of find_charsets_in_text.
16450 (Fsplit_char): Fix doc. Never return unknown.
16451
16452 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16453
16454 * coding.c (Fdefine_coding_system_alias): Update
16455 Vcoding_system_list.
16456
16457 * fontset.c (load_font_get_repertory): Pay attention to the case
16458 that ENCODING of a font is specified by a char-table.
16459
16460 * xterm.c (x_get_font_repertory): Handle the case that the
16461 encoding of font is other than Unicode.
16462
164632008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16466 if a character is encodable by the terminal coding system. If
16467 not, produces proper number of `?'s. Update
16468 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16469 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16470
164712008-02-01 Kenichi Handa <handa@m17n.org>
16472
16473 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16474 variables.
16475 (encode_terminal_code): Change argument. Encode multiple
16476 characters at once. Store the result of encoding in
16477 terminal_encode_buffer.
16478 (write_glyphs, insert_glyphs): Adjust for the change of
16479 encode_terminal_code.
16480 (term_init): Initialize terminal_encode_buffer and
16481 terminal_encode_buf_size.
16482
16483 * coding.c (consume_chars): If coding->src_object is nil, don't
16484 check annotation.
16485
164862008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * character.c (char_string): Use ASCII_CHAR_P instead of
16489 SINGLE_BYTE_CHAR_P.
16490
164912008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * xdisp.c (handle_auto_composed_prop): Check if the last
16494 characters of auto-composed region is newly composed with the
16495 following characters.
16496 (handle_composition_prop): Fix checking of point being inside
16497 composition.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * fns.c (concat): Don't change multibyteness of the result by
16502 concatenating an 8-bit character.
16503
16504 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16505 multibyteness of the result when newelt is an 8-bit character.
16506
165072008-02-01 Dave Love <fx@gnu.org>
16508
16509 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16510 EMACS_INT.
16511
16512 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16513
16514 * xfaces.c (face_numeric_value): Declare dim size_t.
16515 (Finternal_lisp_face_equal_p): Remove unused f.
16516
16517 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16518 (MATRIX_ROW): Remove unused vars.
16519 (draw_glyphs, x_insert_glyphs, fast_find_position)
16520 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16521 byte/char counts.
16522
16523 * regex.c (regex_compile): Remove unused var.
16524
16525 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16526
16527 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16528 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16529
16530 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16531
16532 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16533
16534 * fileio.c (Fwrite_region): Remove unused var.
16535
16536 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16537 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16538
16539 * composite.c (Fremove_list_of_text_properties): Declare.
16540
16541 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16542 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16543 (coding_inherit_eol_type): Remove unused attrs.
16544 (detect_coding): Cast arg of detect_eol.
16545
16546 * charset.c (syms_of_charset): Remove unused var p.
16547 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16548 byte/char counts.
16549
16550 * casetab.c (set_case_table): Remove unused var.
16551
16552 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16553 unused vars.
16554
165552008-02-01 Dave Love <fx@gnu.org>
16556
16557 * xterm.c (x_bitmap_mask): Declare.
16558
165592008-02-01 Dave Love <fx@gnu.org>
16560
16561 * xterm.c (x_term_init): Fix type error.
16562
16563 * lisp.h: Add Funibyte_char_to_multibyte.
16564
16565 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16566 (Fset_coding_system_priority): Doc fix.
16567
16568 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16569
16570 * indent.c (check_composition): Make start and end EMACS_INT.
16571
16572 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16573
16574 * xdisp.c (handle_composition_prop, check_point_in_composition):
16575 Make buffer positions EMACS_INT.
16576
16577 * composite.c (find_composition, run_composition_function)
16578 (update_compositions, Ffind_composition_internal): Make buffer
16579 positions EMACS_INT.
16580
16581 * composite.h (find_composition, update_compositions): Make
16582 position args EMACS_INT.
16583
16584 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16585
16586 * intervals.c (get_property_and_range):
16587 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16588
16589 * unexalpha.c: Don't include varargs.h.
16590
165912008-02-01 Dave Love <fx@gnu.org>
16592
16593 * coding.h (ENCODE_UTF_8): New.
16594
16595 * Makefile.in (gtkutil.o): Depend on coding.h.
16596
16597 * coding.c (Fset_coding_system_priority): Doc fix.
16598
165992008-02-01 Kenichi Handa <handa@m17n.org>
16600
16601 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16602 the case of auto saving.
16603
166042008-02-01 Andreas Schwab <schwab@suse.de>
16605
16606 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16607 `range' from GC.
16608
166092008-02-01 Kenichi Handa <handa@m17n.org>
16610
16611 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16612
166132008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * fileio.c (choose_write_coding_system): Return a decided coding system.
16616 (Fwrite_region): Set Vlast_coding_system_used to the return value
16617 of choose_write_coding_system.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * charset.c (Fset_charset_priority): Pay attention to duplicated
16622 arguments.
16623
16624 * coding.c (QCcategory): New variable.
16625 (syms_of_coding): Defsym it. Set all elements of
16626 Vcoding_category_table and their symbol values.
16627 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16628 coding-category-XXX, and coding-category-list.
16629 (Fdefine_coding_system_internal): Add category in the plist.
16630
166312008-02-01 Kenichi Handa <handa@m17n.org>
16632
16633 * callproc.c (Fcall_process): Handle carryover correctly.
16634
16635 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16636 (raw_text_coding_system): Check NILP (coding_system).
16637 (coding_inherit_eol_type): Check NILP (coding_system) and
16638 NILP (parent).
16639 (consume_chars): Fix for the case of raw-text.
16640
16641 * process.c (read_process_output): Handle carryover correctly.
16642
166432008-02-01 Dave Love <fx@gnu.org>
16644
16645 * regex.c (re_search_2): Fix last change.
16646
166472008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16650 target_multibyte. Even in a unibyte case, return a converted
16651 multibyte char.
16652 (GET_CHAR_AFTER): New macro.
16653 (PATFETCH): Translate via multibyte char.
16654 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16655 (SETUP_MULTIBYTE_RANGE): New macro.
16656 (regex_compile): Setup compiled code so that its multibyteness
16657 matches that of a target. Fix the handling of "[X-YZ]" using
16658 SETUP_MULTIBYTE_RANGE.
16659 (analyse_first) <charset>: For filling fastmap for all multibyte
16660 characters, don't check by BASE_LEADING_CODE_P.
16661 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16662 the same as RE_MULTIBYTE_P (bufp) now.
16663 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16664 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16665 (TRANSLATE_VIA_MULTIBYTE): New macro.
16666 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16667 It is the same as RE_MULTIBYTE_P (bufp) now.
16668 <exactn>: Translate via multibyte.
16669 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16670 translate it.
16671 <charset, charset_not>: Fetch a character by
16672 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16673 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16674 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16675 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16676 by GET_CHAR_AFTER.
16677 (bcmp_translate): Likewise.
16678
16679 * search.c (compile_pattern): Check the member target_multibyte,
16680 not the member multibyte of buf.
16681
16682 * lread.c (read1): While reading a string, set force_singlebyte
16683 and force_multibyte correctly.
16684
16685 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16686 up of unibyte_to_multibyte_table.
16687
166882008-02-01 Kenichi Handa <handa@m17n.org>
16689
16690 * coding.c (setup_coding_system): If coding has
16691 post-read-conversion or pre-write-conversion, set
16692 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16693 respectively.
16694 (decode_coding_gap): Run post-read-conversion if any.
16695
16696 * fileio.c (Finsert_file_contents): Even if we read into a
16697 unibyte buffer, check if we must decode the result or not.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * coding.c (make_conversion_work_buffer): Change the work buffer
16702 name to the same one as that of Emacs 21.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * coding.h (make_conversion_work_buffer): Adjust prototype.
16707 (code_conversion_restore): Don't extern it.
16708
16709 * coding.c (detected_mask): Delete unused variable.
16710 (decode_coding_iso_2022): Pay attention to the byte sequence of
16711 CTEXT extended segment, and retain those bytes as is.
16712 (decode_coding_ccl): Delete unused variable `valids'.
16713 (setup_coding_system): Delete unused variable `category'.
16714 (consume_chars): Delete unused variable `category'. Make it work
16715 for non-multibyte case.
16716 (make_conversion_work_buffer): Change argument.
16717 (saved_coding): Delete unused variable.
16718 (code_conversion_restore): Don't check saved_coding->destination.
16719 (code_conversion_save): New function.
16720 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16721 instead of record_unwind_protect.
16722 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16723 (detect_coding_system): Delete unused variable `mask'.
16724 (Fdefine_coding_system_internal): Delete unused variable id.
16725
16726 * fileio.c (kill_workbuf_unwind): New function.
16727 (Finsert_file_contents): On replacing, call
16728 make_conversion_work_buffer with correct args, and call
16729 record_unwind_protect with the first arg kill_workbuf_unwind.
16730
16731 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16736 (fontset_add): Fix for the case that TO is less than TO1.
16737 (Ffontset_info): Don't use fallback fontset on checking the
16738 default fontset.
16739 (dump_fontset): New function for debugging.
16740
16741 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16742 coding_type is Qcharset.
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16747 (map_char_table): Don't inherit the value from the parent on
16748 initializing VAL. Adjust for the above change.
16749
167502008-02-01 Kenichi Handa <handa@m17n.org>
16751
16752 * coding.c (Qsignature, Qendian): Delete these variables.
16753 (syms_of_coding): Don't initialize them.
16754 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16755 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16756 detect_info->found.
16757 (decode_coding_utf_16): Don't detect BOM here.
16758 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16759 is NOT utf_16_without_bom.
16760 (setup_coding_system): For a coding system of type utf-16, check
16761 if the attribute :endian is Qbig or not (not nil or not), and set
16762 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16763 (detect_coding): If coding type is utf-16 and BOM detection is
16764 required, detect it.
16765 (Fdefine_coding_system_internal): For a coding system of type
16766 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16767
167682008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * coding.c (coding_set_source): Fix for the case that the current
16771 buffer is different from coding->src_object.
16772 (decode_coding_object): Don't use the conversion work buffer if
16773 DST_OBJECT is a buffer.
16774
167752008-02-01 Dave Love <fx@gnu.org>
16776
16777 * lread.c (read_emacs_mule_char) [len==2]: Index
16778 emacs_mule_charset correctly.
16779
167802008-02-01 Dave Love <fx@gnu.org>
16781
16782 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16783 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16784 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16785 treated specially.)
16786 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16787 (detected_mask): Remove Big5 bits.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 The following changes are to make the font rescaling facility
16792 compatible with Emacs 21.
16793
16794 * xfaces.c (Vface_font_rescale_alist): Rename from
16795 Vface_resizing_fonts.
16796 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16797 (font_rescale_ratio): Rename from font_resizing_ratio.
16798 (split_font_name): Set font->rescale_ratio.
16799 (better_font_p): Pay attention to font->rescale_ratio.
16800 (build_scalable_font_name): Likewise. Change RESX, and RESY
16801 fields.
16802 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16807 (Qutf_16_le): Remove these variables.
16808 (syms_of_coding): Don't DEFSYM them.
16809 (decode_coding_utf_16): Fix handling of BOM.
16810 (encode_coding_utf_16): Fix handling of BOM.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * fileio.c (Finsert_file_contents): On replacing, before decoding
16815 the file into the work buffer, set point of the work buffer to the end.
16816
168172008-02-01 Dave Love <fx@gnu.org>
16818
16819 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16820
168212008-02-01 Dave Love <fx@gnu.org>
16822
16823 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16824 and fix C types.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * xdisp.c (SKIP_GLYPHS): New macro.
16829 (set_cursor_from_row): Pay attention to string display properties.
16830
16831 * category.c (copy_category_entry): Fix for the case that RANGE
16832 is an integer.
16833
16834 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16835
16836 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16837
168382008-02-01 Kenichi Handa <handa@m17n.org>
16839
16840 * charset.c (Fcharset_id_internal): New function.
16841 (syms_of_charset): Defsubr it.
16842
16843 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16844 with the last arg charset_list acquired from coding.
16845 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16846 the attribute coding_attr_ccl_valids.
16847
16848 * coding.h (enum define_coding_ccl_arg_index): Set the first
16849 member coding_arg_ccl_decoder to coding_arg_max.
16850
16851 * ccl.h (ccl_driver): Adjust prototype.
16852
16853 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16854 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16855 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16856 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16857 last arg Qnil.
16858
168592008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16862 call encode_char.
16863
16864 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16865
168662008-02-01 Dave Love <fx@gnu.org>
16867
16868 * composite.c (syms_of_composite): Make composition_hash_table weak.
16869
168702008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16873 (font_name_registry): Don't extern them.
16874 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16875
16876 * fontset.h (Qfontset): Don't extern it.
16877 (new_fontset_from_font_name): Extern it.
16878
16879 * fontset.c: Give 8 extra slots to fontset objects.
16880 (Qfontset_info): New variable.
16881 (syms_of_fontset): Defsym it.
16882 (FONTSET_FALLBACK): New macro.
16883 (fontset_face): Try also the default fontset.
16884 (make_fontset): Realize a fallback fontset from the default fontset.
16885 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16886 using split_font_name_into_vector and build_font_name_from_vector.
16887 (Fset_fontset_font): Access the elements of font_spec by enum
16888 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16889 name by using split_font_name_into_vector.
16890 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16891 generate a proper font name from the fontset name. Update
16892 Vfontset_alias_alist.
16893 (n_auto_fontsets): New variable.
16894 (new_fontset_from_font_name): New function.
16895 (Ffont_info): Store the information about fonts generated from the
16896 default fontset in the first extra slot of the returned char-table.
16897
16898 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16899 (font_name_registry): Delete function.
16900 (split_font_name_into_vector): New function.
16901 (build_font_name_from_vector): New function.
16902 (font_list): The argument REGISTRY is now a list of registry names.
16903 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16904 specifies an explicit font name, return the name as is. Make a
16905 list of registy names.
16906
16907 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16908 of x_new_fontset.
16909 (Fx_create_frame): Don't call x_new_fontset here. Just use
16910 x_list_fonts to check the existence of fonts.
16911
16912 * xterm.h (x_new_fontset): Adjust prototype.
16913
16914 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16915 string. Use new_fontset_from_font_name to create a fontset from a
16916 font name.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * syntax.c (Vfind_word_boundary_function_table): New name for
16921 Vnext_word_boundary_function_table.
16922 (find-word-boundary-function-table): New name for
16923 next-word-boundary-function-table.
16924
169252008-02-01 Dave Love <fx@gnu.org>
16926
16927 * Makefile.in: Fix some dependencies.
16928
16929 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16930 set it to nil before returning.
16931
16932 * composite.c (update_compositions): Fix type error.
16933
16934 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16935
169362008-02-01 Kenichi Handa <handa@m17n.org>
16937
16938 * xterm.c (x_new_font): Optimize for the case that the font is
16939 already set for the frame.
16940
169412008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * chartab.c (char_table_ascii): Check if the char table contents
16944 is sub-char-table or not.
16945 (char_table_set, char_table_set_range): Fix argument to
16946 char_table_ascii.
16947
16948 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16949 (detect_coding_utf_8, detect_coding_utf_16)
16950 (detect_coding_emacs_mule, detect_coding_iso_2022)
16951 (detect_coding_sjis, detect_coding_big5)
16952 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16953 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16954 sequence is valid in this coding system. Change callers.
16955 (MAX_ANNOTATION_LENGTH): New macro.
16956 (ADD_ANNOTATION_DATA): New macro.
16957 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16958 ADD_ANNOTATION_DATA. Change the format of annotation data.
16959 (ADD_CHARSET_DATA): New macro.
16960 (emacs_mule_char): New argument ID. Change callers.
16961 (decode_coding_emacs_mule, decode_coding_iso_2022)
16962 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16963 Produce charset annotation data in coding->charbuf.
16964 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16965 to charset annotation data in coding->charbuf.
16966 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16967 coding->common_flags if the coding system is iso-2022 based and
16968 uses designation.
16969 (produce_composition): Adjust for the new annotation data format.
16970 (produce_charset): New function.
16971 (produce_annotation): Handle charset annotation.
16972 (handle_composition_annotation, handle_charset_annotation): New
16973 functions.
16974 (consume_chars): Handle charset annotation. Utilize the above two
16975 functions.
16976 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16977 buffer, get the deleted text as a string and set
16978 coding->src_object to that string.
16979 (detect_coding, detect_coding_system): Use the new struct
16980 coding_detection_info.
16981
16982 * coding.h (struct coding_detection_info): New structure.
16983 (struct coding_system): Adjust prototype of the member `detector'.
16984 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16989
169902008-02-01 Dave Love <fx@gnu.org>
16991
16992 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16993 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16994 to new local and nullify apropos_accumulate before returning.
16995 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16996
169972008-02-01 Kenichi Handa <handa@m17n.org>
16998
16999 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17000 correctly.
e3eea1fc 17001
aac0c6e3
MR
170022008-02-01 Dave Love <fx@gnu.org>
17003
17004 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17005
170062008-02-01 Kenichi Handa <handa@m17n.org>
17007
17008 The following changes are to make character composition happen
17009 automatically on displaying.
17010
17011 * Makefile.in (lisp, shortlisp): Add composite.elc.
17012
17013 * composite.h (Qauto_composed, Vauto_composition_function)
17014 (Qauto_composition_function): Extern them.
17015
17016 * composite.c (Vcomposition_function_table)
17017 (Qcomposition_function_table): Delete variables.
17018 (Qauto_composed, Vauto_composition_function)
17019 (Qauto_composition_function): New variables.
17020 (run_composition_function): Don't call
17021 compose-chars-after-function.
17022 (update_compositions): Clear `auto-composed' text property.
17023 (compose_chars_in_text): Delete this function.
17024 (syms_of_composite): Staticpro Qauto_composed and
17025 Qauto_composition_function. Declare Vauto_composition_function as
17026 a Lisp variable.
17027
17028 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17029
17030 * xdisp.c (it_props): Add an entry for Qauto_composed.
17031 (handle_auto_composed_prop): New function.
17032
17033 * xselect.c (selection_data_to_lisp_data): Don't call
17034 compose_chars_in_text.
17035
170362008-02-01 Dave Love <fx@gnu.org>
17037
17038 * keyboard.c (read_char): Modify checking around use of
17039 Vkeyboard_translate_table.
17040
17041 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17042 and fix C types.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17047 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17048 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17049 the case that the last byte is '\r' correctly.
17050 (decode_coding): Flush out the unprocessed data correctly.
17051 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17052
170532008-02-01 Dave Love <fx@gnu.org>
17054
17055 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17056 Add XK_ISO... case.
17057 (xaw_scroll_callback): Revert last change.
17058
170592008-02-01 Kenichi Handa <handa@m17n.org>
17060
17061 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17062
170632008-02-01 Kenichi Handa <handa@m17n.org>
17064
17065 * xfaces.c (Vface_resizing_fonts): New variable.
17066 (struct font_name): New member `resizing_ratio'.
17067 (font_resizing_ratio): New function.
17068 (split_font_name): Set font->resizing_ratio.
17069 (better_font_p): Pay attention to font->resizing_ratio.
17070 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17071 RESX, and RESY fields.
17072 (try_alternative_families): Try scalable fonts if
17073 Vscalable_fonts_allowed is not Qt.
17074 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17075
170762008-02-01 Dave Love <fx@gnu.org>
17077
17078 * xterm.c (xaw_scroll_callback): Cast correctly.
17079
170802008-02-01 Dave Love <fx@gnu.org>
17081
17082 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17083 (lispy_kana_keys): Comment out.
17084 (make_lispy_event) [XK_kana_A]: Comment out.
17085
17086 * xterm.c (xaw_scroll_callback): Cast call_data.
17087 (XTread_socket): Deal with ASCII keysyms.
17088 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17089
170902008-02-01 Dave Love <fx@gnu.org>
17091
17092 * xterm.c (Vx_keysym_table): New.
17093 (syms_of_xterm): Initialize it.
17094 (XTread_socket): Use it.
17095 From head: Eliminate incorrect optimization that tried to avoid
17096 decoding the output of X*LookupString.
17097 (x_get_font_repertory): Delete charset declaration.
17098
170992008-02-01 Kenichi Handa <handa@m17n.org>
17100
17101 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17102 return 0.
17103 (Fdefine_coding_system_internal): Setup
17104 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17105
171062008-02-01 Dave Love <fx@gnu.org>
17107
17108 * coding.c (Fcheck_coding_system): Doc fix.
17109
17110 * editfns.c (Finsert_byte): Return a proper value.
17111
171122008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * coding.c (decode_coding): Fix args to translate_chars. Pay
17115 attention to Vstandard_translation_table_for_decode.
17116 (encode_coding): Fix args to translate_chars. Pay attention to
17117 Vstandard_translation_table_for_encode.
17118
17119 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17120 SINGLE_BYTE_CHAR_P.
17121
17122 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17123 not by SINGLE_BYTE_CHAR_P.
17124
17125 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17126 SINGLE_BYTE_CHAR_P.
17127
17128 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17129 SINGLE_BYTE_CHAR_P.
17130
17131 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17132 by SINGLE_BYTE_CHAR_P.
17133
17134 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17135 SINGLE_BYTE_CHAR_P.
17136
171372008-02-01 Dave Love <fx@gnu.org>
17138
17139 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17140
171412008-02-01 Dave Love <fx@gnu.org>
17142
17143 * fns.c (Flanginfo): Fix typo.
17144
17145 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17150 (detect_coding_emacs_mule, detect_coding_iso_2022)
17151 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17152 incomplete byte sequence. Don't update *mask when correctly detected.
17153 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17154 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17155 (detect_coding, detect_coding_system): Adjust for the changes above.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * character.c (char_string): Rename from
17160 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17161 (string_char): Rename from string_char.
17162
17163 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17164 if C is greater than MAX_3_BYTE_CHAR.
17165 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17166 string_char instead of string_char_with_unification.
17167
171682008-02-01 Dave Love <fx@gnu.org>
17169
17170 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17171
171722008-02-01 Kenichi Handa <handa@m17n.org>
17173
17174 * keymap.c (push_key_description): Pay attention to force_multibyte.
17175
17176 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17177
171782008-02-01 Dave Love <fx@gnu.org>
17179
17180 * charset.c (define_charset_internal): Rename `supprementary'.
17181
17182 * Makefile.in (lisp, shortlisp): Remove latin-N.
17183
171842008-02-01 Dave Love <fx@gnu.org>
17185
17186 * xfns.c (x_window, x_window): Use use_xim.
17187
17188 * xterm.c (use_xim): Initialize.
17189 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17190 (x_term_init): Maybe set use_xim.
17191
17192 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * search.c (search_buffer): Fix case-fold-search of multibyte
17197 characters.
17198 (boyer_moore): Rename the last argument to char_high_bits.
17199
172002008-02-01 Kenichi Handa <handa@m17n.org>
17201
17202 * xdisp.c (display_string): Fix for the case of zero width glyph.
17203
17204 * xfns.c (x_set_font): Change the error message of the case that
17205 x_new_fontset returns Qt.
17206
17207 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17208 (Finternal_set_lisp_face_attribute): Use signal_error for the
17209 error of invalid fontset.
17210
17211 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17212 fontset, return Qt.
17213
172142008-02-01 Dave Love <fx@gnu.org>
17215
17216 * unexelf.c (unexec): Make .got handling not SGI-specific.
17217
17218 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17219
17220 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17221
17222 * keyboard.c (read_key_sequence): Fix type error.
17223
17224 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17225 type error.
17226
17227 * fontset.c (fontset_add): Return Lisp_Object.
17228
172292008-02-01 Dave Love <fx@gnu.org>
17230
17231 * charset.h (charset_ordered_list_tick): Declare extern.
17232
172332008-02-01 Kenichi Handa <handa@m17n.org>
17234
17235 The following changes (and some of 2008-02-01 changes of mine) are
17236 for handling syntax, category, and case conversion for unibyte
17237 characters by converting them to multibyte on the fly. With these
17238 changes, we don't have to setup syntax and case tables for unibyte
17239 characters in each language environment.
17240
17241 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17242 multibyte if necessary.
17243
17244 * bytecode.c (Fbyte_code): Likewise.
17245
17246 * character.h (LEADING_CODE_LATIN_1_MIN)
17247 (LEADING_CODE_LATIN_1_MAX): New macros.
17248 (unibyte_to_multibyte_table): Extern it.
17249 (unibyte_char_to_multibyte): New macro.
17250 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17251 (CHAR_LEADING_CODE): New macro.
17252 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17253
17254 * character.c (unibyte_to_multibyte_table): New variable.
17255 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17256 (multibyte_char_to_unibyte): If C is an eight-bit character,
17257 convert it to the corresponding byte value.
17258
17259 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17260 not 1, signals an error. Update the elements of
17261 unibyte_to_multibyte_table.
17262 (init_charset_once): Initialize unibyte_to_multibyte_table.
17263 (syms_of_charset): Define the charset `iso-8859-1'.
17264
17265 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17266 as is without converting it to unibyte. In a unibyte buffer,
17267 convert C to multibyte before checking the syntax.
17268
17269 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17270
17271 * minibuf.c (Fminibuffer_complete_word): Use the macro
17272 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17273
17274 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17275
17276 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17277 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17278 that is zero, convert an eight-bit char to multibyte.
17279 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17280 non-emacs case.
17281 (PATFETCH): Convert an eight-bit char to multibyte.
17282 (HANDLE_UNIBYTE_RANGE): New macro.
17283 (regex_compile): Setup the compiled pattern for multibyte chars
17284 even if the given regex string is unibyte. Use PATFETCH_RAW
17285 instead of PATFETCH in many places. To handle `charset'
17286 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17287 only for ASCII chars.
17288 (analyse_first) <exactn>: Simplify because the compiled pattern
17289 is multibyte.
17290 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17291 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17292 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17293 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17294 multibyte always 1.
17295 (re_search_2): In emacs, set the locale variable multibyte to 1,
17296 otherwise to 0. New local variable target_multibyte. Check it
17297 to decide the multibyteness of STR1 and STR2. If
17298 target_multibyte is zero, convert unibyte chars to multibyte
17299 before translating and checking fastmap.
17300 (TARGET_CHAR_AND_LENGTH): New macro.
17301 (re_match_2_internal): In emacs, set the locale variable multibyte
17302 to 1, otherwise to 0. New local variable target_multibyte. Check
17303 it to decide the multibyteness of STR1 and STR2. Use
17304 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17305 <charset, charset_not>: If multibyte is nonzero, check fastmap
17306 only for ASCII chars. Call bcmp_translate with
17307 target_multibyte, not with multibyte.
17308 <begline>: Declare the local variable C as `unsigned'.
17309 (bcmp_translate): Change the last arg name to target_multibyte.
17310
17311 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17312 the regexp pattern and the matching target. Set cp->buf.multibyte
17313 to the multibyteness of the regexp pattern. Set
17314 cp->but.target_multibyte to the multibyteness of the matching target.
17315 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17316 FETCH_STRING_CHAR_ADVANCE.
17317 (Freplace_match): Convert unibyte chars to multibyte.
17318
17319 * syntax.c (char_quoted, back_comment, scan_words)
17320 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17321 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17322 unibyte chars to multibyte.
17323 (skip_chars): Delete the arg syntaxp, and move the code for
17324 handling syntaxes to skip_syntaxes. Change callers.
17325 Fix the case that the multibyteness of STRING and the current
17326 buffer doesn't match.
17327 (skip_syntaxes): New function.
17328 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17329 SINGLE_BYTE_CHAR_P.
17330
173312008-02-01 Kenichi Handa <handa@m17n.org>
17332
17333 * xfaces.c (QCfontset): New variable.
17334 (LFACE_FONTSET): New macro.
17335 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17336 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17337 (Finternal_set_lisp_face_attribute)
17338 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17339 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17340 check also LFACE_FONTSET_INDEX.
17341 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17342 attrs[LFACE_FONT_INDEX].
17343 (syms_of_xfaces): Intern and staticpro QCfontset.
17344
17345 * dispextern.h (enum lface_attribute_index): New member
17346 LFACE_FONTSET_INDEX.
17347
17348 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17349
173502008-02-01 Kenichi Handa <handa@m17n.org>
17351
17352 * coding.c (coding_set_destination): Fix coding->destination for
17353 the case converting a region.
17354 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17355 (encode_coding_object): Fix coding->dst_pos and
17356 coding->dst_pos_byte for the case converting a region.
17357
17358 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17359
17360 * character.h (BYTE8_STRING): New macro.
17361
17362 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17363
173642008-02-01 Kenichi Handa <handa@m17n.org>
17365
17366 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17367 characters by octal form.
17368
17369 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17370
17371 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17372 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17373 _fetch_multibyte_char_len.
17374 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17375
17376 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17377
17378 * casefiddle.c (casify_object): Simplify. Handle the case that
17379 the case conversion change the byte length.
17380 (casify_region): Likewise.
17381
17382 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17383
17384 * character.c (_fetch_multibyte_char_len): Delete this variable.
17385 (syms_of_character): Setup Vprintable_chars.
17386
17387 * editfns.c (Fchar_equal): Fix for the unibyte case.
17388 (Finsert_byte): New function.
17389 (syms_of_editfns): Defsubr it.
17390
17391 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17392 of direct code 0x3ffff.
17393
17394 * search.c (Freplace_match): Fix for the unibyte case.
17395
173962008-02-01 Kenichi Handa <handa@m17n.org>
17397
17398 * lread.c (safe_to_load_p): Fix the logic.
17399
17400 * syntax.c (scan_words): Don't treat characters belonging to
17401 different scripts as constituting a word.
17402
17403 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17404
17405 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17406
17407 * emacs.c (main): In the case of --unibyte, instead of aborting on
17408 finding non-empty buffer, make it unibyte.
17409
174102008-02-01 Kenichi Handa <handa@m17n.org>
17411
17412 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17413 to create a fontset.
17414
174152008-02-01 Dave Love <fx@gnu.org>
17416
17417 * character.c (Funibyte_char_to_multibyte): Doc fix.
17418
17419 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17420
174212008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * fontset.c (fontset_add): Make the type `int'.
17424 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17425
17426 * character.c (unibyte_char_to_multibyte)
17427 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17428 charset_unibyte, not charset_primary.
17429
17430 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17431
17432 * charset.c (charset_unibyte): Rename from charset_primary.
17433 (Funibyte_charset): Rename from Fprimary_charset.
17434 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17435 (syms_of_charset): Adjust for the above changes.
17436
17437 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17438 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17439 it->multibyte_p is zero.
17440
17441 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17442 Delete extern.
17443
174442008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * coding.c (Fdefine_coding_system_internal): Fix category setting
17447 for a coding system of type iso-2022.
17448
174492008-02-01 Kenichi Handa <handa@m17n.org>
17450
17451 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17452
174532008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * syntax.c (Vnext_word_boundary_function_table): New variable.
17456 (next-word-boundary-function-table): Declare it as a Lisp variable
17457 in syms_of_syntax.
17458 (scan_words): Call functions in Vnext_word_boundary_function_table
17459 if any.
17460
17461 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17462
17463 * fontset.c (fs_load_font): If fontp->charset is not negative,
17464 return fontp without setting its members.
17465
174662008-02-01 Dave Love <fx@gnu.org>
17467
17468 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17469
17470 * m/sparc.h (HAVE_ALLOCA): Delete.
17471
17472 * s/irix6-5.h: Don't include strings.h.
17473 (bcopy, bzero, bcmp): Don't undef.
17474
17475 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17476
17477 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17478 (TIOCSIGSEND): Don't test IRIX6.
17479 (bcopy, bzero, bcmp): Define conditionally.
17480
174812008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * buffer.c (Qas, Qmake, Qto): New variables.
17484 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17485 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17486
17487 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17488 we are inserting a process output into a multibyte buffer.
17489
17490 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17491 multibyte_char_to_unibyte.
17492
17493 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17494 by the primary charset, make it eight-bit char.
17495 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17496
17497 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17498 (charset_8_bit__control, charset_8_bit_graphic)
17499 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17500 (define_charset_internal): New function.
17501 (syms_of_charset): Call define_charset_internal for pre-defined
17502 charsets.
17503
17504 * charset.h (charset_8_bit): Extern it.
17505
17506 * coding.c (make_conversion_work_buffer): Adjust for the change
17507 of Fset_buffer_multibyte.
17508 (encode_coding_raw_text): Increment p0 in the loop.
17509
17510 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17511
17512 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17513 for the change of Fset_buffer_multibyte.
17514
17515 * fns.c (Fstring_to_multibyte): New function.
17516 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17517
175182008-02-01 Dave Love <fx@gnu.org>
17519
17520 * xfns.c (x_put_x_image): Declare args.
17521
17522 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17523 (try_font_list): Declare an arg.
17524
17525 * xdisp.c (message2_nolog, set_message): Declare an arg.
17526
17527 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17528
17529 * syntax.c (scan_sexps_forward): Declare an arg.
17530
17531 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17532 Declare an arg.
17533
17534 * lisp.h (Fnew_fontset): Declare.
17535
17536 * keymap.c (push_key_description): Call CHARACTERP correctly.
17537
17538 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17539 (face_for_char): Delete unused vars.
17540 (Fset_fontset_font): Doc fix. Delete unused vars.
17541
17542 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17543
17544 * composite.c (update_compositions): Declare arg.
17545
17546 * cm.c (calccost, cmgoto): Declare args.
17547
17548 * charset.c: Remove `emacs' conditional. Doc fixes.
17549 (map_char_table_for_charset): Declare.
17550
17551 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17552
17553 * ccl.c: Remove `emacs' conditional.
17554
175552008-02-01 Kenichi Handa <handa@m17n.org>
17556
17557 The following changes are to allow specifying multiple font
17558 patterns for a character range (specified by script or charset).
17559
17560 * Makefile.in (abbrev.o): Depend on syntax.h.
17561 (xfaces.o): Depend on charset.h.
17562
17563 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17564 SINGLE_BYTE_CHAR_P.
17565
17566 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17567
17568 * character.h (Vchar_script_table): Extern it.
17569
17570 * character.c (Vscript_alist): Delete.
17571 (Vchar_script_table, Qchar_script_table): New variable.
17572 (syms_of_character): Declare Vchar_script_table as a lisp variable
17573 and initialize it.
17574
17575 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17576 have property char-table-extra-slots, make no extra slot.
17577
17578 * dispextern.h (struct face): Delete member `charset'.
17579 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17580 SINGLE_BYTE_CHAR_P.
17581 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17582 Add prototypes.
17583 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17584 (generate_ascii_font_name): Rename from generate_ascii_font.
17585
17586 * fontset.h (get_font_repertory_func): New prototype.
17587 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17588 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17589
17590 * fontset.c (Qprepend, Qappend): New variables.
17591 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17592 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17593 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17594 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17595 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17596 (load_font_get_repertory): New functions.
17597 (fontset_set): Delete.
17598 (fontset_face): New arg FACE. Return face ID, not face.
17599 Complete re-write to handle new fontset structure. Change caller.
17600 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17601 (face_for_char): Don't call lookup_face.
17602 (make_fontset_for_ascii_face): New arg FACE.
17603 (fs_load_font): New arg CHARSET_ID. Don't check
17604 Vfont_encoding_alist here.
17605 (find_font_encoding): New function.
17606 (list_fontsets): Use STRINGP, not ! NILP.
17607 (accumulate_script_ranges): New function.
17608 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17609 re-written to handle new fontset structure.
17610 (Ffontset_font): Return a copy of element.
17611 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17612 docstring of font-encoding-alist.
17613
17614 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17615 (Fset_fotset_font): Fix arguments to 5.
17616
17617 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17618
17619 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17620 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17621 (highlight_trailing_whitespace): Adjust for the change of
17622 lookup_named_face.
17623
17624 * xfaces.c: Include charset.h.
17625 (load_face_font): Delete argument C. Change caller.
17626 (generate_ascii_font_name): Rename from generate_ascii_font.
17627 (font_name_registry): New function.
17628 (cache_face): Store ascii faces before non-ascii faces in buckets.
17629 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17630 Lookup only ascii faces.
17631 (lookup_non_ascii_face): New function.
17632 (lookup_named_face): Delete argument C. Change caller.
17633 (lookup_derived_face): Delete argument C. Change caller.
17634 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17635 a string, just call font_list with it.
17636 (choose_face_font): Delete arguments FACE and C. New arg
17637 FONT_SPEC. Change caller.
17638 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17639 Change caller.
17640 (realize_non_ascii_face): New function.
17641 (realize_x_face): Call load_face_font here.
17642 (realize_tty_face): Delete argument C. Change caller.
17643 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17644 get a face ID.
17645 (dump_realized_face): Don't print charset of FACE.
17646
17647 * xfns.c (x_set_font): Always call x_new_fontset and
17648 store_frame_parameter.
17649 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17650 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17651
17652 * xterm.h (x_get_font_repertory): Extern it.
17653
17654 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17655 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17656 it->multibyte_p is zero.
17657 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17658 (x_new_fontset): If FONTSETNAME doesn't match any existing
17659 fontsets, create a new one.
17660 (x_get_font_repertory): New function.
17661
176622008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * coding.c (Ffind_coding_systems_region_internal): Detect an
17665 ASCII only string correctly.
17666
17667 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17668 version is 0.
17669
176702008-02-01 Kenichi Handa <handa@m17n.org>
17671
17672 * lread.c: Include "coding.h".
17673 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17674 (load_each_byte, unread_char): New variables.
17675 (readchar_backlog): Delete.
17676 (readchar): Return a character unless load_each_byte is nonzero.
17677 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17678 cons. If unread_char is not -1, simply return it.
17679 (unreadchar): Handle the case that readcharfun is
17680 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17681 (read_multibyte): Delete.
17682 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17683 (read_emacs_mule_char): New functions.
17684 (Fload): Even if the file doesn't have the extension ".elc", if
17685 safe_to_load_p returns a positive version number, assume that the
17686 file contains bytecompiled code. If the version is less than 22,
17687 load the file while decoding multibyte sequences by emacs-mule.
17688 (readevalloop): Don't use readchar_backlog.
17689 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17690 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17691 (read_escape): Delete the arg BYTEREP.
17692 (read1): Set load_each_byte to 1 temporarily while handling
17693 #@NUMBER. Don't call read_multibyte.
17694 (read_vector): Call Fread with a cons. If readcharfun is
17695 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17696 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17697 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17698 and Qload_force_doc_strings.
17699
177002008-02-01 Kenichi Handa <handa@m17n.org>
17701
17702 * xdisp.c (face_before_or_after_it_pos): Call
17703 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17704
177052008-02-01 Kenichi Handa <handa@m17n.org>
17706
17707 * character.h (TRAILING_CODE_P): New macro.
17708 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17709 (string_char_with_unification): Fix prototype.
17710 (Vscript_alist): Extern it.
17711
17712 * character.c (Vscript_alist): New variable.
17713 (string_char_with_unification, str_as_unibyte)
17714 (string_escape_byte8): Add `const' to local variables.
17715 (syms_of_character): Declare script-alist as a Lisp variable.
17716
17717 * charset.h (Vcharset_ordered_list): Extern it.
17718 (charset_ordered_list_tick): Extern it.
17719 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17720 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17721 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17722 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17723 (Funify_charset): Adjust for the change of Funify_charset.
17724
17725 * charset.c (charset_ordered_list_tick): New variable.
17726 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17727 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17728 deunify intead of unify a charset.
17729 (string_xstring_p): Add `const' to local variables.
17730 (find_charsets_in_text): Add `const' to arguments and local variables.
17731 (encode_char): Adjust for the change of Funify_charset. Fix
17732 detecting of invalid code.
17733 (Fset_charset_priority): Increment charset_ordered_list_tick.
17734 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17735 and TO_CODE.
17736
17737 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17738 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17739 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17740 (decode_coding_ccl, consume_chars)
17741 (Ffind_coding_systems_region_internal)
17742 (Fcheck_coding_systems_region): Add `const' to local variables.
17743
17744 * print.c (print_object): Use octal form for printing the
17745 contents of a bool vector.
17746
177472008-02-01 Dave Love <fx@gnu.org>
17748
17749 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17750 <version == 20>: Refuse to load.
17751
177522008-02-01 Dave Love <fx@gnu.org>
17753
17754 * fns.c: Move coding.h.
17755 (Qcodeset, Qdays, Qmonths): New.
17756 (concat): Use CHARACTERP instead of INTEGERP.
17757 (Flocale_codeset): Delete.
17758 (Flanginfo): New function.
17759 (syms_of_fns): Change accordingly.
17760
17761 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17762
177632008-02-01 Dave Love <fx@gnu.org>
17764
17765 * casetab.c (init_casetab_once, init_casetab_once): Fix
17766 CHAR_TABLE_SET call.
17767
17768 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17769
17770 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17771
17772 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17773 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17774 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17775
17776 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17777
17778 * coding.c (ENCODE_DESIGNATION, decode_eol)
17779 (make_conversion_work_buffer, code_conversion_restore)
17780 (Fdefine_coding_system_internal): Convert Lisp types.
17781 (code_conversion_restore): Use EQ, not ==.
17782 (Fencode_coding_string): Fix code_convert_string call.
17783
17784 * coding.h (code_convert_region): Fix prototype.
17785
17786 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17787
17788 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17789 (Ffontset_info): Convert Lisp types.
17790
17791 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17792
17793 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17794
17795 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17796
17797 * chartab.c: Include "...h", not <...h> in some cases.
17798
17799 * callproc.c (Fcall_process): Remove unused variables.
17800
178012008-02-01 Dave Love <fx@gnu.org>
17802
17803 * coding.c (Fset_coding_system_priority): Allow null arg list.
17804
178052008-02-01 Dave Love <fx@gnu.org>
17806
17807 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17808 (Fself_insert_and_exit): Use CHARACTERP.
17809
17810 * callproc.c (Fcall_process): Remove unused vars.
17811
17812 * xterm.c (XTread_socket): Add extra dead keysyms.
17813
17814 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17815
17816 * dispextern.h: Remove prototypes for redraw_frame,
17817 redraw_garbaged_frames.
17818
17819 * cmds.c (Fself_insert_command): Use CHARACTERP.
17820
17821 * chartab.c (make_sub_char_table): Remove unused var.
17822 (Fset_char_table_default, Fmap_char_table): Doc fix.
17823
17824 * keymap.c (access_keymap): Remove generic char code.
17825 (push_key_description): Use CHARACTERP.
17826
178272008-02-01 Dave Love <fx@gnu.org>
17828
17829 * charset.c: Doc fixes.
17830 (Funify_charset): Extra checking.
17831
178322008-02-01 Dave Love <fx@gnu.org>
17833
17834 * lread.c: Remove some unused variables.
17835 (safe_to_load_p): If safe, return the magic number version byte.
17836 (Fload): Maybe use load-with-code-conversion.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * category.c (Fmodify_category_entry): Don't modify the contents
17841 of category_set for characters out of the range. Avoid
17842 unnecessary modification.
17843
17844 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17845 Vchar_unify_table. The default value of the table is now nil.
17846
17847 * character.c (syms_of_character): Setup Vchar_width_table for
17848 eight-bit-control and raw-byte chars.
17849
17850 * charset.h (enum define_charset_arg_index): Delete
17851 charset_arg_parents and add charset_arg_subset and
17852 charset_arg_superset.
17853 (enum charset_attr_index): Delete charset_parents and add
17854 charset_subset and charset_superset.
17855 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17856 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17857 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17858 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17859 (CHARSET_SUPERSET): New macros.
17860 (charset_work): Extern it.
17861 (ENCODE_CHAR): Use charset_work.
17862 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17863 (map_charset_chars): Extern it.
17864
17865 * charset.c (load_charset_map): Set the default value of encoder
17866 and deunifier char-tables to nil.
17867 (map_charset_chars): Change argument. Change callers. Use
17868 map_char_table_for_charset instead of map_char_table.
17869 (Fmap_charset_chars): New optional args from_code and to_code.
17870 (Fdefine_charset_internal): Adjust for the change of
17871 `define-charset' (:parents -> :subset or :superset).
17872 (charset_work): New variable.
17873 (encode_char, syms_of_charset): Adjust for the change of
17874 Fdefine_charset_internal.
17875 (Ffind_charset_string): Setup the vector `charsets' correctly.
17876
17877 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17878 the previous change.
17879 (char_table_ref_and_range): Adjust for the above change.
17880 (map_sub_char_table_for_charset): New function.
17881 (map_char_table_for_charset): New function.
17882
17883 * keymap.c (describe_vector): Handle a char-table directly here.
17884 (describe_char_table): Delete.
17885
17886 * lisp.h (map_charset_chars): Delete.
17887
178882008-02-01 Dave Love <fx@gnu.org>
17889
17890 * fns.c (count_combining): Comment out (unused).
17891 (Flocale_codeset): New.
17892 (syms_of_fns): Defsubr it.
17893
17894 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17895 (size_t): Remove.
17896
178972008-02-01 Dave Love <fx@gnu.org>
17898
17899 * Makefile.in (chartab.o): Depend on charset.h.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * character.c (syms_of_character): Set the default value of
17904 Vprintable_chars to Qnil.
17905
179062008-02-01 Dave Love <fx@gnu.org>
17907
17908 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17909
179102008-02-01 Kenichi Handa <handa@m17n.org>
17911
17912 * charset.c (load_charset_map): Handle the case that from < to
17913 correctly.
17914
17915 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17916 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17917 Pay attention to raw-8-bit chars.
17918
179192008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17922 It is not bytecompiled now.
17923
17924 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17925 (charset_jisx0208): New variables.
17926 (Fdefine_charset_internal): Setup them if appropriate.
17927 (init_charset_once): Initialize them to -1.
17928
17929 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17930 (charset_jisx0208): Extern them.
17931
17932 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17933 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17934 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17935 (setup_iso_safe_charsets): Fix arguments to Fassq.
17936 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17937 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17938 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17939 (encode_coding_iso_2022): Change the 1st arg to
17940 ENCODE_ISO_CHARACTER to a variable.
17941
179422008-02-01 Kenichi Handa <handa@m17n.org>
17943
17944 * charset.h (enum define_charset_arg_index): New enums
17945 charset_arg_min_code and charset_arg_max_code.
17946 (struct charset): New member char_index_offset.
17947
17948 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17949 Take charset->char_index_offset into account.
17950 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17951 args[charset_arg_max_code]. Setup charset.char_index_offset.
17952 (syms_of_charset): Fix args to Fdefine_charset_internal.
17953
179542008-02-01 Dave Love <fx@gnu.org>
17955
17956 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17957
179582008-02-01 Dave Love <fx@gnu.org>
17959
17960 * coding.c: Doc fixes.
17961 (Fcoding_system_aliases): Fix return value.
17962 (Qmac): Remove (duplicated) definition.
17963
179642008-02-01 Dave Love <fx@gnu.org>
17965
362654a6
JB
17966 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17967 New functions.
aac0c6e3
MR
17968
17969 * character.c (Fstring): Doc fix.
17970
17971 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17972
362654a6 17973 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17974 (font-encoding-alist): Doc fix.
17975
179762008-02-01 Dave Love <fx@gnu.org>
17977
17978 * term.c (costs_set): Declare static, non-initialized for pcc.
17979 (encode_terminal_code): Remove unused var.
17980
17981 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17982 for K&R.
17983
17984 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17985
17986 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17987 (suffixes): Move out of make_subsidiaries for K&R.
17988
17989 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17990
17991 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17992
179932008-02-01 Dave Love <fx@gnu.org>
17994
17995 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17996
17997 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17998
179992008-02-01 Yong Lu <lyongu@asia-infonet.com>
18000
18001 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18002
18003 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18004
180052008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18008 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18009
180102008-02-01 Kenichi Handa <handa@m17n.org>
18011
18012 * coding.c (decode_coding_charset): Adjust for the change of
18013 Fdefine_coding_system_internal.
18014 (Fdefine_coding_system_internal): For a coding system of
18015 `charset' type, store a list of charset IDs in
18016 `charset_attr_charset_valids' element of coding attributes.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18021 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18022 caller. Handle 2-byte and 3-byte charsets correctly.
18023 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18024 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18025 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18026 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18027 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18028 sequence.
18029 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18030 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18031 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18032 and alt&rule composition.
18033 (decode_coding_iso_2022): Handle composition correctly.
18034 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18035
18036 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18037 re-defining a charset. If the charset has :emacs-mule-id, setup
18038 emacs_mule_bytes.
18039 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18040
180412008-02-01 Kenichi Handa <handa@m17n.org>
18042
18043 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18044 (encode_coding_big5, encode_coding_charset): If coding requires safe
18045 encoding, produce a character specified by
18046 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18047
180482008-02-01 Dave Love <fx@gnu.org>
18049
18050 * xterm.c (XSetIMValues): Declare.
18051
18052 * process.c: Conditionally include sys/wait.h, pty.h.
18053
18054 * print.c (print_object): Fix print format for 64-bit systems.
18055
18056 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18057
18058 * buffer.c (emacs_strerror): Declare.
18059
18060 * fontset.c (Fclear_face_cache): Declare.
18061 (accumulate_font_info): Comment-out (unused).
18062 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18063 variables.
18064
18065 * character.h (string_escape_byte8): Declare.
18066
18067 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18068 unused vars.
18069 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18070 (Fmap_charset_chars): Doc fix.
18071
18072 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18073 (Fset_coding_system_priority, Fset_coding_system_priority)
18074 (Fdefine_coding_system_internal): Doc fix.
18075
180762008-02-01 Dave Love <fx@gnu.org>
18077
18078 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18079
180802008-02-01 Kenichi Handa <handa@m17n.org>
18081
18082 * character.c (string_escape_byte8): Make multibyte string with
18083 correct size.
18084
18085 * charset.c (Fmake_char): Delete unnecessary code.
18086
180872008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * xfns.c (x_encode_text): Allocate coding.destination here, and
18090 call encode_coding_object with dst_object Qnil.
18091
18092 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18093 multibyte form correctly.
18094
18095 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18096 against Vfont_encoding_alist.
18097
18098 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18099 handling of charset list.
18100 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18101 (decode_coding_object): Move point to coding->dst_pos before
18102 calling post-read-conversion function.
18103 (encode_coding_object): Give correct arguments to
18104 pre-write-conversion. Ignore the return value of
18105 pre-write-conversion function. Pay attention to the case that
18106 pre-write-conversion changes the current buffer. If dst_object is
18107 Qt, even if coding->src_bytes is zero, allocate at least one byte
18108 to coding->destination.
18109
18110 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18111
18112 * charset.c (Fmake_char): Make it more backward compatible.
18113 (Fmap_charset_chars): Fix docstring.
18114
181152008-02-01 Dave Love <fx@gnu.org>
18116
18117 * coding.c: Doc fixes.
18118 (Fdefine_coding_system_alias): Use names, not symbols, in
18119 coding-system-alist.
18120
181212008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18124 of calling free_realized_face.
18125
181262008-02-01 Yong Lu <lyongu@asia-infonet.com>
18127
18128 * charset.c (read_hex): Don't treat SPC as a comment starter.
18129 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18130 (Fdecode_char): Fix typo.
18131
181322008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * charset.h (struct charset): New member `code_space_mask'.
18135
18136 * coding.c (coding_set_source): Delete the local variable beg_byte.
18137 (encode_coding_charset, Fdefine_coding_system_internal):
18138 Delete the local variable charset.
18139 (Fdefine_coding_system_internal): Setup
18140 attrs[coding_attr_charset_valids] correctly.
18141
18142 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18143 member to check if CODE is valid or not.
18144 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18145 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18146 is within the range of charset->min_code and carset->max_code.
18147
181482008-02-01 Dave Love <fx@gnu.org>
18149
18150 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18151
18152 * dispextern.h (generate_ascii_font): Fix return type.
18153
18154 * xfaces.c (generate_ascii_font): Fix arg declaration.
18155
18156 * coding.c (coding_inherit_eol_type)
18157 (Fset_terminal_coding_system_internal)
18158 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18159
181602008-02-01 Kenichi Handa <handa@m17n.org>
18161
18162 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18163 multiple charsets correctly.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * search.c (boyer_moore): Fix handling of multibyte character
18168 translation.
18169
18170 * xdisp.c (display_mode_element): When the variable `elt' is
18171 changed, update `this' and `lisp_string'.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18176
18177 * callproc.c (Fcall_process): Be sure to give the current buffer
18178 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18179
18180 * charset.c (struct charset_map_entries): New struct.
18181 (load_charset_map): Rename from parse_charset_map. New args
18182 entries and n_entries. Change caller.
18183 (load_charset_map_from_file): Rename from load_charset_map.
18184 Change caller. New arg control_flag. Call load_charset_map at
18185 the tail.
18186 (load_charset_map_from_vector): New function.
18187 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18188 (encode_char): If the charset is compact, change a character index
18189 to a code point.
18190
18191 * coding.c (coding_alloc_by_making_gap): Check the case that the
18192 source and destination are the same correctly.
18193 (decode_coding_raw_text): Set coding->consumed_char and
18194 coding->consumed to 0.
18195 (produce_chars): If coding->chars_at_source is nonzero, update
18196 coding->consumed_char and coding->consumed before calling
18197 alloc_destination.
18198 (Fdefine_coding_system_alias): Register ALIAS in
18199 Vcoding_system_alist.
18200 (syms_of_coding): Define `no-conversion' coding system at the tail.
18201
18202 * fileio.c (Finsert_file_contents): Set coding_system instead of
18203 val. If the current buffer is multibyte, always call
18204 decode_coding_gap.
18205
18206 * xfaces.c (try_font_list): Give higher priority to fontset's
18207 family than face's family.
18208
182092008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * callproc.c (Fcall_process): Be sure to give the current buffer
18212 to decode_coding_c_string.
18213
18214 * xfaces.c (try_font_list): Give a family specified in a fontset
18215 higher priority than a family specified in a face.
18216
182172008-02-01 Kenichi Handa <handa@m17n.org>
18218
18219 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18220 Fix arguments to insert_from_buffer.
18221
18222 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18223
182242008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18227 (decode_coding_gap): Set coding->dst_multibyte correctly.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18232 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18233 (encode_coding_utf_16): Substitute coding->default_char for
18234 non-Unicode characters.
18235 (decode_coding): Don't call record_insert here.
18236 (setup_coding_system): Initialize `surrogate' of
18237 coding->spec.utf_16 to 0.
18238 (EMIT_ONE_BYTE): Fix for multibyte case.
18239
18240 * insdel.c (insert_from_gap): Call record_insert.
18241
182422008-02-01 Kenichi Handa <handa@m17n.org>
18243
18244 * casefiddle.c (casify_region): Fix multibyte case.
18245
18246 * character.c (c_string_width): Add return type `int'.
18247 (char_string_with_unification): Delete arg ADVANCED.
18248
18249 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18250 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18251 (CHAR_STRING_ADVANCE): Make it do-while statement.
18252
18253 * chartab.c (sub_char_table_set_range): Optimize for the case
18254 DEPTH == 3. Add workaround code for a GCC optimization bug.
18255
18256 * charset.c (parse_charset_map): Remove an unused variable.
18257
18258 * coding.c: Delete unused variables.
18259
18260 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18261 earlier. If inserted is zero and the coding system doesn't
18262 require flushing, don't call decode_coding_gap.
18263
18264 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18265
182662008-02-01 Kenichi Handa <handa@m17n.org>
18267
18268 The following changes are for using Unicode as an internal
18269 character model, and use UTF-8 format for buffer/string
18270 representation.
18271
18272 * .gdbinit (xchartable): Adjust for the change of char table structure.
18273 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18274
18275 * Makefile.in (obj): Add character.o and chartab.o.
18276 (lisp, shortlisp): Remove utf-8.elc.
18277 (*.o): For many files, change dependency on charset.h to
18278 character.h, and add dependency on character.h.
18279 (character.o, chartab.o): New targets.
18280
18281 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18282 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18283 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18284 of "charset.h".
18285
18286 * dired.c, filelock.c: Include "character.h".
18287
18288 * alloc.c: Include "character.h" instead of "charset.h".
18289 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18290 (syms_of_alloc): Remove defsubr for Smake_char_table.
18291
18292 * buffer.c: Include "character.h" instead of "charset.h", don't
18293 include "coding.h".
18294 (Fset_buffer_multibyte): Adjust for UTF-8.
18295
18296 * buffer.h: EXFUN Fbuffer_live_p.
18297
18298 * callproc.c: Include "character.h" instead of "charset.h".
18299 (Fcall_process): Big change for the new code-conversion APIs.
18300
18301 * casetab.c: Include "character.h" instead of "charset.h".
18302 (set_canon, set_identity, shuffle): Adjust for the new
18303 map_char_table spec.
18304 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18305 accessing the char table structure.
18306
18307 * chartab.c: New file that implements char table.
18308
18309 * category.c: Include "character.h".
18310 (copy_category_entry): New function.
18311 (copy_category_table): Call map_char_table and copy_category_entry.
18312 (Fmake_category_table): Initialize all top-level slots.
18313 (char_category_set): New function.
18314 (modify_lower_category_set): Delete.
18315 (Fmodify_category_entry): Call char_table_ref_and_range.
18316
18317 * category.h (CATEGORY_SET): Just call char_category_set.
18318
18319 * ccl.c: Include "character.h".
18320 (Qccl, Qcclp): New variables.
18321 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18322 it's less than 256.
18323 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18324 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18325 and DST type.
18326 (ccl_driver): Change types of argument, adjust code accordingly.
18327 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18328 ccl_driver.
18329 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18330
18331 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18332 New members src_multibyte, dst_multibyte, consumed, and produced.
18333 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18334 (CODING_SPEC_CCL_PROGRAM): New macro.
18335 (ccl_driver): Update prototype.
18336 (Qccl, Qcclp, Fccl_program_p): Extern them.
18337 (CHECK_CCL_PROGRAM): New macro.
18338
18339 * character.c, character.h, chartab.c: New files.
18340
18341 * charset.c: Mostly re-written. Move character and multibyte sequence
18342 handling codes to character.c.
18343
18344 * charset.h: Mostly re-written. Move character and multibyte sequence
18345 handling codes to character.h.
18346
18347 * coding.c, coding.h: Mostly re-written.
18348
18349 * composite.c: Include "character.h" instead of "charset.h".
18350 (CHAR_WIDTH): Move to character.h.
18351 (HASH_KEY, HASH_VALUE): Delete.
18352
18353 * composite.h (enum composition_method): Change order of enumeration
18354 symbols.
18355
18356 * data.c: Include "character.h" instead of "charset.h".
18357 (Faref): Call CHAR_TABLE_REF for a char table.
18358 (Faset): Call CHAR_TABLE_SET for a char table.
18359
18360 * dispextern.h (free_realized_face, check_face_attribytes)
18361 (generate_ascii_font): Extern them.
18362 (free_realized_multibyte_face): Delete extern.
18363
18364 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18365 table structure.
18366
18367 * editfns.c: Include "character.h" instead of "charset.h".
18368 (Fchar_to_string): Always call CHAR_STRING.
18369
18370 * emacs.c (main): Call init_charset_once, init_charset,
18371 syms_of_chartab, and syms_of_character.
18372
18373 * fileio.c: Include "character.h" instead of "charset.h".
18374 (Finsert_file_contents): Big change for the new code-conversion API.
18375 (choose_write_coding_system, Fwrite_region): Likewise.
18376 (build_annotations_2): Delete.
18377 (e_write): Big change for the new code-conversion API.
18378
18379 * fns.c: Include "character.h" instead of "charset.h".
18380 (copy_sub_char_table): Move to chartab.c.
18381 (Fcopy_sequence): Call copy_char_table for a char table.
18382 (concat): Delete codes calling count_multibyte.
18383 (string_char_to_byte, string_byte_to_char): Adjust for the new
18384 multibyte form.
18385 (internal_equal): Adjust for the change of char table structure.
18386 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18387 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18388 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18389 (char_table_translate, optimize_sub_char_table)
18390 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18391 chartab.c.
18392 (char_table_ref_and_index): Delete.
18393 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18394 (Fmd5): Call preferred_coding_system instead of accessing
18395 Vcoding_category_list. Adjust for the new code-conversion API.
18396 (syms_of_fns): Move defsubr for char table related functions to
18397 chartab.c.
18398
18399 * fontset.c: Mostly re-written.
18400
18401 * fontset.h (struct font_info): Change type of the member encoding_type.
18402 (enum FONT_SPEC_INDEX): New enum.
18403 (fontset_font_pattern, fs_load_font): Update prototype.
18404 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18405
18406 * indent.c: Include "character.h" instead of "charset.h".
18407 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18408
18409 * insdel.c: Include "character.h" instead of "charset.h".
18410 (copy_text): Don't refer to Vnonascii_translation_table.
18411 (insert_from_gap): New function.
18412
18413 * keyboard.c: Include "character.h" instead of "charset.h".
18414 (command_loop_1): Never call direct_output_forward_char before
18415 a non-ASCII character.
18416 (read_char): If Vkeyboard_translate_table is a char table, always
18417 translate a character.
18418
18419 * keymap.c: Include "character.h".
18420 (store_in_keymap): Handle the case that IDX is a cons.
18421 (Fdefine_key): Handle the case that KEY is a cons and the car part
18422 is also a cons (range).
18423 (push_key_description): Adjust for the new character code.
18424 (describe_vector): Call describe_char_table for a char table.
18425 (describe_char_table): New function.
18426
18427 * keymap.h (describe_char_table): Extern it.
18428
18429 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18430 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18431 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18432 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18433 Delete.
18434 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18435 structure.
18436 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18437 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18438 (CHARTAB_SIZE_BITS_3): New macros.
18439 (chartab_size): Extern it.
18440 (struct Lisp_Char_Table): Re-design.
18441 (struct Lisp_Sub_Char_Table): New structure.
18442 (HASH_KEY, HASH_VALUE): Move from fns.c.
18443 (CHARACTERBITS): Define as 22.
18444 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18445 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18446 (GC_SUB_CHAR_TABLE_P): New macro.
18447 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18448 (code_convert_string_norecord): Deleted extern.
18449 (init_character_once, syms_of_character, init_charset)
18450 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18451
18452 * lread.c: Include "character.h".
18453 (read_multibyte): New arg NBYTES.
18454 (read_escape): Change the meaning of returned *BYTEREP.
18455 (to_multibyte): Delete.
18456 (read1): Adjust the handling of char table and string.
18457
18458 * print.c: Include "character.h" instead of "charset.h".
18459 (print_string): Convert 8-bit raw bytes to octal form by
18460 string_escape_byte8.
18461 (print_object): Adjust for the new multibyte form. Print 8-bit
18462 raw bytes always in octal form. Handle sub char table correctly.
18463
18464 * process.c: Include "character.h" instead of "charset.h".
18465 (read_process_output, send_process): Adjust for the new
18466 code-conversion API.
18467
18468 * puresize.h (BASE_PURESIZE): Increase.
18469
18470 * regex.c: Include "character.h" instead of "charset.h".
18471 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18472 (regex_compile): Accept a range whose starting and ending
18473 character have different leading bytes.
18474 (analyse_first): Adjust for the above change.
18475
18476 * search.c: Include "character.h" instead of "charset.h".
18477 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18478 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18479
18480 * syntax.c: Include "character.h" instead of "charset.h".
18481 (syntax_parent_lookup): Delete.
18482 (Fmodify_syntax_entry): Accept a cons as CHAR.
18483 (skip_chars): Adjust for the new multibyte form.
18484 (init_syntax_once): Call char_table_set_range instead of directly
18485 accessing the structure of a char table.
18486
18487 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18488 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18489 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18490 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18491
18492 * term.c: Include "buffer.h" and "character.h".
18493 (encode_terminal_code, write_glyphs): Adjust for the new
18494 code-conversion API.
18495 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18496
18497 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18498
18499 * xdisp.c: Include "character.h".
18500 (get_next_display_element): Adjust for the new multibyte form.
18501 (disp_char_vector): Adjust for the new char table structure.
18502 (decode_mode_spec_coding): Adjust for the new structure of
18503 coding system.
18504 (decode_mode_spec): Adjust for the new code-conversion API.
18505
18506 * xfaces.c: Include "character.h" instead of "charset.h".
18507 (load_face_font): Adjust for the change of choose_face_font and
18508 FS_LOAD_FONT.
18509 (generate_ascii_font): New function.
18510 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18511 (set_font_frame_param): Adjust for the change of choose_face_font.
18512 (free_realized_face): Make it public.
18513 (free_realized_faces_for_fontset): Rename from
18514 free_realized_multibyte_face. Free also faces realized for ASCII.
18515 (choose_face_font): Change arguments. Adjust for the change of
18516 fontset_font_pattern and FS_LOAD_FONT.
18517
18518 * xfns.c: Include "character.h".
18519 (x_encode_text): Adjust for the new code-conversion API.
18520
18521 * xselect.c: Don't include "charset.h".
18522 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18523
18524 * xterm.c: Include "character.h".
18525 (x_encode_char): New argument CHARSET. Change caller.
18526 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18527 Call ENCODE_CHAR instead of SPLIT_CHAR.
18528 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18529 CHAR_WIDTH instead of CHARSET_WIDTH.
18530 (XTread_socket): Adjust for the new code-conversion API.
18531 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18532 (x_load_font): Adjust for the change of struct font.
18533
185342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18535
18536 * xfaces.c (face_at_buffer_position): Remove unused vars.
18537
185382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18539
18540 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18541 Fix overflow checking.
18542
185432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18544
18545 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18546 Cancel previous change.
18547
185482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18549
18550 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18551 ccl->eight_bit_control. Fix check for buffer overflow.
18552 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18553 (ccl_driver): Initialize extra_bytes to 0.
18554
185552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18556
18557 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18558 return it ORed with ctrl_modifier.
18559
185602008-01-29 Miles Bader <miles@gnu.org>
18561
18562 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18563
185642008-01-28 Jason Rumney <jasonr@gnu.org>
18565
18566 * w32.c (stat): Don't double check for networked drive.
18567
185682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18569
18570 * window.c (run_window_configuration_change_hook): New function.
18571 Code extracted from set_window_buffer. Set the selected frame.
18572 (set_window_buffer): Use it.
18573 * window.h (run_window_configuration_change_hook): Declare.
18574 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18575
18576 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18577
185782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18579
18580 * Makefile.in: Remove references to unused macros.
18581
185822008-01-26 Eli Zaretskii <eliz@gnu.org>
18583
18584 * w32.c (g_b_init_get_sid_sub_authority)
18585 (g_b_init_get_sid_sub_authority_count): New static variables.
18586 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18587 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18588 (init_user_info): Use them to retrieve uid and gid.
18589 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18590 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18591 st_uid and st_gid of the file.
18592
185932008-01-26 Jason Rumney <jasonr@gnu.org>
18594
18595 * w32.c (logon_network_drive): New function.
18596 (stat): Use it.
18597
185982008-01-26 Chong Yidong <cyd@stupidchicken.com>
18599
18600 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18601 invisible text covered with an ellipsis.
18602
186032008-01-25 Richard Stallman <rms@gnu.org>
18604
18605 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18606 jump back to beginning. Move some other initializations after that.
18607 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18608 New variables.
18609 (syms_of_xdisp): Init them.
18610
18611 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18612
18613 * buffer.c (reset_buffer_local_variables):
18614 Implement `permanent-local-hook'.
18615 (Qpermanent_local_hook): New variable.
18616 (syms_of_buffer): Init and staticpro it.
18617
186182008-01-25 Michael Albinus <michael.albinus@gmx.de>
18619
18620 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18621
186222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18623
18624 * fns.c (Fclrhash): Return TABLE.
18625
186262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18627
18628 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18629 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18630 is set even without positional changes.
18631 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18632
18633 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18634
186352008-01-23 Jason Rumney <jasonr@gnu.org>
18636
18637 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18638
18639 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18640 the unicode range available in MULE by locale-coding-system.
18641 Improve dbcs lead byte detection. Set event timestamp and modifiers
18642 earlier.
18643
186442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18645
18646 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18647 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18648 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18649 when used on child processes.
18650
186512008-01-21 Michael Albinus <michael.albinus@gmx.de>
18652
18653 * dbusbind.c (Fdbus_method_return_internal): Rename from
18654 Fdbus_method_return.
18655 (Fdbus_unregister_object): Move to dbus.el.
18656 (Fdbus_call_method, Fdbus_method_return_internal)
18657 (Fdbus_send_signal): Improve debug messages.
18658
186592008-01-20 Martin Rudalics <rudalics@gmx.at>
18660
18661 * undo.c (undo_inhibit_record_point): New variable.
18662 (syms_of_undo): Initialize it.
18663 (record_point): Don't record point when undo_inhibit_record_point
18664 is set.
18665
186662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18667
18668 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18669
18670 * xdisp.c (Qauto_hscroll_mode): New var.
18671 (syms_of_xdisp): Initialize it.
18672 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18673 window's buffer.
18674 (hscroll_windows): Don't check automatic_hscrolling_p here.
18675
18676 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18677 vscroll if we're setting window-buffer to the value it already has.
18678
186792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18680
18681 * m/intel386.h: Remove references to XENIX.
18682
186832008-01-17 Andreas Schwab <schwab@suse.de>
18684
18685 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18686 instead of HAVE_X86_64_LIB64_DIR.
18687 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18688
186892008-01-17 Glenn Morris <rgm@gnu.org>
18690
18691 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18692 to HAVE_X86_64_LIB64_DIR.
18693
186942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18695
18696 * s/irix3-3.h:
18697 * s/irix4-0.h:
18698 * s/386-ix.h:
18699 * s/domain.h:
18700 * s/hpux9-x11r4.h:
18701 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18702
18703 * sysdep.c: Remove code containing references to symbols defined
18704 by unsupported systems.
18705
187062008-01-16 Glenn Morris <rgm@gnu.org>
18707
18708 * coding.c (select-safe-coding-system-function): Doc fix.
18709
187102008-01-15 Glenn Morris <rgm@gnu.org>
18711
18712 * config.in: Revert 2008-01-13 change: this is a generated file.
18713
187142008-01-13 Tom Tromey <tromey@redhat.com>
18715
18716 * lisp.h: Fix typo.
18717
187182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18719
18720 * m/sequent-ptx.h:
18721 * m/sequent.h:
18722 * s/ptx.h:
18723 * s/ptx4-2.h:
18724 * s/ptx4.h: Remove files for systems no longer supported.
18725
18726 * callproc.c (Fcall_process): Fix previous change.
18727
187282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18729
18730 * unexsunos4.c: Remove file, system not supported anymore.
18731
18732 * m/mips.h:
18733 * m/intel386.h:
18734 * callproc.c:
18735 * config.in:
18736 * ecrt0.c:
18737 * emacs.c:
18738 * fileio.c:
18739 * frame.c:
18740 * getpagesize.h:
18741 * keyboard.c:
18742 * lread.c:
18743 * process.c:
18744 * puresize.h:
18745 * sysdep.c:
18746 * systty.h:
18747 * syswait.h:
18748 * unexec.c:
18749 * xdisp.c:
18750 * alloc.c: Remove code containing references to symbols defined by
18751 unsupported systems.
18752
187532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18754
18755 * coding.c (detect_coding_mask): Fix previous change.
18756
187572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18758
18759 * coding.c (detect_coding_iso2022): New arg
18760 latin_extra_code_state. Allow Latin extra codes only
18761 when *latin_extra_code_state is nonzero.
18762 (detect_coding_mask): If there is a NULL byte, detect the encoding
18763 as UTF-16 or binary. If Latin extra codes exist, detect the
18764 encoding as ISO-2022 only when there's no other proper encoding is
18765 found.
18766
187672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18768
18769 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18770 #ifdef MAC_OS.
18771
187722008-01-08 Richard Stallman <rms@gnu.org>
18773
18774 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18775
187762008-01-06 Nick Roberts <nickrob@snap.net.nz>
18777
18778 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18779 menu bar in parentheses.
18780
187812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18782
18783 * m/7300.h:
18784 * m/acorn.h:
18785 * m/alliant-2800.h:
18786 * m/alliant.h:
18787 * m/alliant1.h:
18788 * m/alliant4.h:
18789 * m/altos.h:
18790 * m/amdahl.h:
18791 * m/apollo.h:
18792 * m/att3b.h:
18793 * m/aviion-intel.h:
18794 * m/aviion.h:
18795 * m/celerity.h:
18796 * m/clipper.h:
18797 * m/cnvrgnt.h:
18798 * m/convex.h:
18799 * m/cydra5.h:
18800 * m/delta88k.h:
18801 * m/dpx2.h:
18802 * m/dual.h:
18803 * m/elxsi.h:
18804 * m/f301.h:
18805 * m/gould-np1.h:
18806 * m/gould.h:
18807 * m/i860.h:
18808 * m/ibmps2-aix.h:
18809 * m/ibmrt-aix.h:
18810 * m/ibmrt.h:
18811 * m/irist.h:
18812 * m/is386.h:
18813 * m/isi-ov.h:
18814 * m/mega68.h:
18815 * m/mg1.h:
18816 * m/news-r6.h:
18817 * m/news-risc.h:
18818 * m/news.h:
18819 * m/nh3000.h:
18820 * m/nh4000.h:
18821 * m/ns16000.h:
18822 * m/ns32000.h:
18823 * m/nu.h:
18824 * m/orion.h:
18825 * m/orion105.h:
18826 * m/paragon.h:
18827 * m/pfa50.h:
18828 * m/plexus.h:
18829 * m/pyramid.h:
18830 * m/pyrmips.h:
18831 * m/sh3el.h:
18832 * m/sps7.h:
18833 * m/sr2k.h:
18834 * m/stride.h:
18835 * m/sun1.h:
18836 * m/sun2.h:
18837 * m/sun3-68881.h:
18838 * m/sun3-fpa.h:
18839 * m/sun3-soft.h:
18840 * m/sun3.h:
18841 * m/sun386.h:
18842 * m/symmetry.h:
18843 * m/tad68k.h:
18844 * m/tahoe.h:
18845 * m/targon31.h:
18846 * m/tek4300.h:
18847 * m/tekxd88.h:
18848 * m/tower32.h:
18849 * m/tower32v3.h:
18850 * m/ustation.h:
18851 * m/wicat.h:
18852 * m/xps100.h:
18853 * s/cxux.h:
18854 * s/cxux7.h:
18855 * s/dgux.h:
18856 * s/dgux4.h:
18857 * s/dgux5-4-3.h:
18858 * s/dgux5-4r2.h:
18859 * s/esix.h:
18860 * s/esix5r4.h:
18861 * s/hiuxmpp.h:
18862 * s/hiuxwe2.h:
18863 * s/iris3-5.h:
18864 * s/iris3-6.h:
18865 * s/isc2-2.h:
18866 * s/isc3-0.h:
18867 * s/isc4-0.h:
18868 * s/isc4-1.h:
18869 * s/newsos5.h:
18870 * s/newsos6.h:
18871 * s/osf1.h:
18872 * s/osf5-0.h:
18873 * s/riscix1-1.h:
18874 * s/riscix12.h:
18875 * s/sco4.h:
18876 * s/sco5.h:
18877 * s/sunos4-0.h:
18878 * s/sunos4-1.h:
18879 * s/sunos413.h:
18880 * s/sunos4shr.h:
18881 * s/umax.h:
18882 * s/unipl5-2.h:
18883 * s/xenix.h:
18884 * cxux-crt0.s:
18885 * unexapollo.c:
18886 * unexconvex.c:
18887 * unexenix.c:
18888 * unexsni.c: Remove files for systems no longer supported.
18889
18890 * m/intel386.h: Remove references to unsupported systems.
18891
18892 * w32.c (get_emacs_configuration): Remove reference to i860.
18893
18894 * sysdep.c: Remove dead code.
18895
188962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18897
18898 * s/rtu.h:
18899 * m/masscomp.h: Remove files. Platform is obsolete.
18900
189012008-01-04 Michael Albinus <michael.albinus@gmx.de>
18902
18903 * dbusbind.c (Fdbus_method_return): New function.
18904 (xd_read_message): Add the serial number to the event.
18905 (Fdbus_register_method): Activate the function.
18906
189072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18908
18909 * keyboard.c (read_key_sequence): Fix typo.
18910
189112008-01-03 Michael Albinus <michael.albinus@gmx.de>
18912
18913 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18914 (xd_signature, xd_append_arg): Handle element type detection for
18915 empty arrays.
18916 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18917 SDATA () calls; this must be solved more general.
18918 (Fdbus_register_signal): Use SBYTES instead of strlen.
18919
189202008-01-03 Magnus Henoch <magnus@zemdatav>
18921
18922 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18923 unsigned int for byte values (necessary for big-endian platform).
18924 (Fdbus_call_method): Handle the case of no returned arguments.
18925
189262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18927
18928 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18929
189302007-12-31 Magnus Henoch <mange@freemail.hu>
18931
18932 * dbusbind.c (xd_signature): Signature of variant is just "v".
18933
189342007-12-30 Michael Albinus <michael.albinus@gmx.de>
18935
18936 * dbusbind.c: Fix several errors and compiler warnings.
18937 Reported by Tom Tromey <tromey@redhat.com>.
18938 (XD_ERROR, XD_DEBUG_MESSAGE)
18939 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18940 (xd_append_arg): Part for basic D-Bus types rewritten.
18941 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18942 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18943 appropriate.
18944 (xd_read_message): Return Qnil. Don't signal an error; it is not
18945 useful during event reading.
18946 (Fdbus_register_signal): Signal an error if the check for
18947 FUNCTIONP fails.
18948 (Fdbus_register_method): New function. The implementation is not
18949 complete, the call of the function signals an error therefore.
18950 (Fdbus_unregister_object): New function, renamed from
18951 Fdbus_unregister_signal. The initial check signals an error, if
18952 the object is not well formed.
18953
189542007-12-30 Richard Stallman <rms@gnu.org>
18955
18956 * textprop.c (get_char_property_and_overlay):
18957 Signal error if POSITION is out of range in a buffer.
18958
189592007-12-29 Martin Rudalics <rudalics@gmx.at>
18960
18961 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18962 because the original parameters are in pure storage now.
18963
189642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18965
18966 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18967
189682007-12-22 Eli Zaretskii <eliz@gnu.org>
18969
18970 * callint.c (syms_of_callint) <command-history>: Add reference to
18971 history-length in the doc string.
18972
189732007-12-17 Jason Rumney <jasonr@gnu.org>
18974
18975 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18976 before passing as wParam.
18977
189782007-12-22 Michael Albinus <michael.albinus@gmx.de>
18979
18980 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18981 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18982 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18983 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18984 as number.
18985 (Fdbus_call_method): Fix docstring.
18986
189872007-12-21 Michael Albinus <michael.albinus@gmx.de>
18988
18989 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18990 New macros.
18991 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18992 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18993 Simplify.
18994 (xd_signature): New function.
18995 (xd_append_arg): Compute also signatures. Major rewrite.
18996 (xd_retrieve_arg): Make debug messages friendly.
18997 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18998 Check for signatures of arguments.
18999
190002007-12-19 Michael Albinus <michael.albinus@gmx.de>
19001
19002 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19003 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19004 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19005 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19006 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19007 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19008 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19009 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19010 (xd_retrieve_value): Remove. Functionality included in ...
19011 (xd_append_arg): New function.
19012 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19013
190142007-12-16 Michael Albinus <michael.albinus@gmx.de>
19015
19016 * dbusbind.c (top): Include <stdio.h>.
19017 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19018 dbus_message_new_method_call and dbus_message_new_signal.
19019 (Fdbus_register_signal): Rename unique_name to uname.
19020 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19021 non-existing unique name. Fix typos in matching rule. Return an
19022 object which is useful in Fdbus_unregister_signal.
19023 (Fdbus_unregister_signal): Reimplementation, in order to remove
19024 only the corresponding entry.
19025 (Vdbus_registered_functions_table): Change the order of entries.
19026 Apply these changes in xd_read_message and Fdbus_register_signal.
19027
190282007-12-16 Andreas Schwab <schwab@suse.de>
19029
19030 * fileio.c (Finsert_file_contents): Fix overflow check to not
19031 depend on undefined integer overflow.
19032
190332007-12-14 Jason Rumney <jasonr@gnu.org>
19034
19035 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19036 for characters above 127.
19037
190382007-12-13 Jason Rumney <jasonr@gnu.org>
19039
19040 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19041 before dereferencing array.
19042 (lookup_vk_code): Remove zero comparison.
19043
190442007-12-14 Michael Albinus <michael.albinus@gmx.de>
19045
19046 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19047 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19048 Use `unsigned int' instead of `uint'.
19049 (xd_read_message, Fdbus_register_signal): Split expressions into
19050 multiple lines before operators "&&" and "||", according to the
19051 GNU Coding Standards.
19052
190532007-12-14 Eli Zaretskii <eliz@gnu.org>
19054
19055 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19056
190572007-12-12 Juri Linkov <juri@jurta.org>
19058
19059 * buffer.c (Frename_buffer): In interactive spec replace
19060 `read-buffer' with `read-string' that uses `buffer-name-history'
19061 as history, and the current buffer's name as default.
19062
190632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19064
19065 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19066 manipulating the backtrace manually.
19067 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19068 (struct backtrace, backtrace_list): Remove.
19069 (command_loop_1): Remove dead var `no_direct'.
19070
19071 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19072 preserve non-built-in buffer-local variables.
19073 (Fkill_all_local_variables): Don't re-create&re-set permanent
19074 buffer-local variables.
19075
190762007-12-09 Juri Linkov <juri@jurta.org>
19077
19078 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19079 Lisp code that uses `read-buffer' with current buffer as default.
19080
190812007-12-08 Michael Albinus <michael.albinus@gmx.de>
19082
19083 * dbusbind.c (xd_read_message): Generate an event for every
19084 registered handler. There might be several handlers registered
19085 for the same signal.
19086 (Fdbus_register_signal): Don't overwrite a registration for the
19087 same signal. Add a new registration if handlers are different.
19088 (Vdbus_registered_functions_table): Rework doc string.
19089
190902007-12-07 Michael Albinus <michael.albinus@gmx.de>
19091
19092 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19093 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19094 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19095 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19096 Unify argument lists.
19097 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19098 arguments and hash table keys. Use unique name for service.
19099 (Fdbus_unregister_signal): Remove checks.
19100 (Vdbus_registered_functions_table): Fix doc string.
19101
191022007-12-05 Magnus Henoch <mange@freemail.hu>
19103
19104 * process.c (make_process): Initialize pty_flag to 0.
19105
191062007-12-05 Jason Rumney <jasonr@gnu.org>
19107
19108 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19109 specified XBMs.
19110
191112007-12-05 Richard Stallman <rms@gnu.org>
19112
19113 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19114
191152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19116
19117 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19118 New variable.
19119 (mac_try_close_socket) [MAC_OSX]: New function.
19120 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19121 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19122
19123 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19124 Use mac_try_close_socket.
19125
191262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19127
19128 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19129 reloc_base.
19130 (copy_dysymtab): Compute relocation base here.
19131 (rebase_reloc_address) [__ppc64__]: New function.
19132 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19133 changed.
19134
191352007-12-05 Jason Rumney <jasonr@gnu.org>
19136
19137 * w32proc.c (sys_spawnve): Quote args with wildcards.
19138
191392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19140
19141 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19142 __objc_* sections.
19143 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19144
191452007-12-05 Michael Albinus <michael.albinus@gmx.de>
19146
19147 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19148 Move check for Vdbus_registered_functions_table to
19149 xd_read_queued_messages.
19150 (xd_read_queued_messages): Protect xd_read_message calls by
19151 internal_condition_case_1.
19152
191532007-12-04 Michael Albinus <michael.albinus@gmx.de>
19154
19155 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19156 Qdbus_system_bus and Qdbus_session_bus, respectively.
19157 (Vdbus_intern_symbols): Remove.
19158 (Vdbus_registered_functions_table): New hash table.
19159 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19160 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19161 Rewrite in order to manage registered functions by hash table
19162 Vdbus_registered_functions_table.
19163
191642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19165
19166 * xterm.c: Update URL to Window Manager Specification in comment.
19167
191682007-12-02 Michael Albinus <michael.albinus@gmx.de>
19169
19170 * config.in (HAVE_DBUS): Add.
19171
19172 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19173 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19174 (obj): Add $(DBUS_OBJ).
19175 (LIBES): Add $(DBUS_LIBS).
19176 (dbusbind.o): New target.
19177
19178 * dbusbind.c: New file.
19179
19180 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19181
19182 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19183 (Qdbus_event): New Lisp symbol.
19184 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19185 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19186 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19187
19188 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19189
191902007-12-01 Richard Stallman <rms@gnu.org>
19191
19192 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19193
191942007-11-30 Jason Rumney <jasonr@gnu.org>
19195
19196 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19197 (w32con_reset_terminal_modes): Clear screen buffer.
19198 (w32_face_attributes): Don't use color indexes that are out of range.
19199 Only reverse the default colors.
19200
19201 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19202 WINDOWSNT.
19203
19204 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19205
192062007-11-29 Jason Rumney <jasonr@gnu.org>
19207
19208 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19209 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19210 if the terminal colors are initialized.
19211 (unspecified_fg, unspecified_bg): Remove unused declarations.
19212
192132007-11-29 Andreas Schwab <schwab@suse.de>
19214
19215 * keyboard.c (apply_modifiers): Fix typo.
19216
192172007-11-29 Richard Stallman <rms@gnu.org>
19218
19219 * keymap.c (Fcurrent_local_map): Doc fix.
19220
192212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19222
19223 * s/gnu-kfreebsd.h: New file.
19224
192252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19226
19227 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19228 Don't cast redundantly.
19229
19230 * keyboard.c (KEY_TO_CHAR): New macro.
19231 (parse_modifiers, apply_modifiers): Accept integer arguments.
19232 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19233 for chars and symbol keys.
19234 After doing such remapping, apply function-key-map again.
19235
192362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19237
19238 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19239 compiled anymore.
19240
192412007-11-26 Andreas Schwab <schwab@suse.de>
19242
19243 * process.c (list_processes_1): Fix indentation level of the
19244 command column.
19245
192462007-11-23 Andreas Schwab <schwab@suse.de>
19247
19248 * editfns.c (Fformat): Handle %c specially since it requires the
19249 argument to be of type int.
19250
192512007-11-23 Markus Triska <markus.triska@gmx.at>
19252
19253 * emacs.c (main): Call init_editfns before init_process, since
19254 init_process sets Vprocess_connection_type depending on OS release.
19255
192562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19257
19258 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19259 (find_symbol_value): Use do_symval_forwarding.
19260
19261 * data.c (set_internal): Set the value in the `cons-cell' (for
19262 Buffer_Local_values) not only for frame-local variables.
19263
192642007-11-22 Andreas Schwab <schwab@suse.de>
19265
19266 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19267 values to sprintf.
19268 * keymap.c (Fsingle_key_description): Likewise.
19269 * print.c (print_object): Likewise.
19270
192712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19272
19273 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19274 file for image is nil.
19275
192762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19277
19278 * term.c: Include stdarg.h.
19279 (fatal): Implement using varargs.
19280 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19281
192822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19283
19284 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19285 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19286 Update call to buffer_slot_type_mismatch.
19287 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19288 (buffer_slot_type_mismatch): Update.
19289 * buffer.c (buffer_local_types): Remove.
19290 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19291 (defvar_per_buffer): Set the type in the buffer_objfwd.
19292
192932007-11-21 Jason Rumney <jasonr@gnu.org>
19294
19295 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19296 CreateFileMapping returns NULL on failure.
19297
192982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19299
19300 * search.c (Fset_match_data): Remove the `evaporate' feature.
19301 (unwind_set_match_data): Don't use the `evaporate' feature.
19302
193032007-11-21 Jason Rumney <jasonr@gnu.org>
19304
19305 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19306
19307 * w32console.c (w32con_write_glyphs): Remove unused variables.
19308
193092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19310
19311 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19312
19313 * s/darwin.h (MULTI_KBOARD): Remove.
19314
19315 * macfns.c (x_create_tip_frame, Fx_create_frame)
19316 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19317
193182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19319
19320 * buffer.c (Fbuffer_local_value): Remove redundant test.
19321 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19322 than in `current-buffer' to match the comment.
19323 Do the swap using swap_in_global_binding.
19324
19325 * data.c (store_symval_forwarding, set_internal):
19326 * eval.c (specbind): Remove dead code.
19327
19328 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19329 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19330 Since we do not want to see internal Lisp_*fwd objects here.
19331
193322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19333
19334 * sysdep.c (init_system_name): Use getaddrinfo if available.
19335
19336 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19337 (x_scroll_bar_note_movement): start, end, with, height in struct
19338 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19339
193402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19341
19342 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19343
193442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19345
19346 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19347 This undoes Richard's change of 14-Oct-2002.
19348
19349 * alloc.c (allocate_other_vector):
19350 * lisp.h (allocate_other_vector): Remove.
19351
19352 * window.c (struct save_window_data): Move non-lisp data to the end
19353 and make it `int' rather than Lisp_Object.
19354 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19355 Done wrap/unwrap integer values.
19356 (Fset_window_configuration, compare_window_configurations):
19357 Update use of fields to their new types.
19358
19359 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19360 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19361 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19362 (SET_SCROLL_BAR_X_WINDOW): Remove.
19363 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19364 Access the new x_window field directly.
19365 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19366 Don't wrap/unwrap integers into Lisp_Objects.
19367 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19368 (x_scroll_bar_report_motion):
19369 Don't wrap/unwrap integers into Lisp_Objects.
19370 (x_term_init): Use SDATA.
19371 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19372 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19373 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19374 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19375 * xfns.c (x_set_background_color):
19376 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19377 Access the new x_window field directly.
19378
19379 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19380 (allocate_pseudovector): Make non-static.
19381
19382 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19383 (allocate_pseudovector): Declare.
19384 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19385
193862007-11-15 Andreas Schwab <schwab@suse.de>
19387
19388 * editfns.c (Fformat): Correctly format EMACS_INT values.
19389 Also take precision into account when formatting an integer.
19390
19391 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19392
193932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19394
19395 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19396 (syms_of_keyboard): Defsubr it.
19397
19398 * data.c (swap_in_global_binding): Fix longstanding bug where
19399 store_symval_forwarding was not called with the right second argument,
19400 thus causing objfwd-ing from being dropped.
19401
194022007-11-14 Juanma Barranquero <lekktu@gmail.com>
19403
19404 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19405 (Fx_display_pixel_height, Fx_display_planes)
19406 (Fx_display_color_cells, Fx_server_max_request_size)
19407 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19408 (Fx_display_visual_class, Fx_display_save_under):
19409 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19410 (Fx_display_pixel_height, Fx_display_planes)
19411 (Fx_display_color_cells, Fx_server_max_request_size)
19412 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19413 (Fx_display_mm_height, Fx_display_mm_width)
19414 (Fx_display_backing_store, Fx_display_visual_class)
19415 (Fw32_select_font, Fx_display_save_under):
19416 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19417 (Fx_display_pixel_height, Fx_display_planes)
19418 (Fx_display_color_cells, Fx_server_max_request_size)
19419 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19420 (Fx_display_save_under): Fix typos in docstrings.
19421
194222007-11-14 Juanma Barranquero <lekktu@gmail.com>
19423
19424 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19425 corresponding to deleted entries; they are an implementation detail.
19426 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19427 Remove variables.
19428 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19429 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19430 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19431 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19432 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19433 (Fw32_define_rgb_color, Fw32_load_color_file)
19434 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19435 Fix typos in docstrings.
19436 (Fx_server_version): Reflow docstring.
19437 (Fw32_shell_execute): Doc fixes.
19438
194392007-11-13 Juanma Barranquero <lekktu@gmail.com>
19440
19441 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19442 if w32_parse_hot_key returned nil.
19443
194442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19445
19446 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19447
194482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19449
aac0c6e3
MR
19450 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19451
19452 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19453
19454 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19455 Remove W32_SCROLL_BAR_CLICK_EVENT.
19456
19457 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19458 Add MULTIMEDIA_KEY_EVENT.
19459
19460 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19461 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19462 (make_lispy_event) [WINDOWSNT]: Use it to translate
19463 MULTIMEDIA_KEY_EVENT.
19464
19465 * w32term.h (WM_APPCOMMAND): Define if not already.
19466 (GET_APPCOMMAND_LPARAM): Likewise.
19467
19468 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19469 WM_APPCOMMAND.
19470
19471 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19472 (syms_of_w32fns): Export and initialize it.
19473 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19474
194752007-11-09 Chong Yidong <cyd@stupidchicken.com>
19476
19477 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19478 twice.
19479
19480 * xdisp.c (handle_face_prop): Fix last change.
19481
194822007-11-09 Richard Stallman <rms@gnu.org>
19483
19484 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19485 not just for after-strings and before-strings.
19486 Call face_for_overlay_string and pass the overlay to it.
19487 (handle_display_prop): Determine whether property came from an overlay.
19488 Pass OVERLAY arg to handle_single_display_spec.
19489 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19490 (load_overlay_strings): Fill in it->string_overlays.
19491 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19492
19493 * xfaces.c (face_for_overlay_string): Function renamed from
19494 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19495
19496 * dispextern.h (struct it): New elt string_overlays.
19497 New elt from_overlay, also in stack.
19498 Rearrange a few elements.
19499 (face_for_overlay_string): Decl renamed from
19500 face_at_buffer_position_no_overlays, and add argument.
19501
195022007-11-09 Richard Stallman <rms@gnu.org>
19503
19504 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19505 to get the base face for an overlay string.
19506
19507 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19508
19509 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19510
19511 * xdisp.c (handle_stop): Move some code out of loop.
19512
195132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19514
19515 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19516 Fix conversion from Lisp object to ATSUFontID.
19517
195182007-11-09 Jason Rumney <jasonr@gnu.org>
19519
19520 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19521
195222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19523
19524 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19525 Don't assume regions are aligned to page boundary.
19526 (print_load_command_name): Add LC_UUID if defined.
19527
195282007-11-09 Richard Stallman <rms@gnu.org>
19529
19530 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19531
195322007-11-07 Jason Rumney <jasonr@gnu.org>
19533
19534 * s/windows95.h: Remove.
19535
195362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19537
19538 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19539 abort with a message on unhandled store_type values.
19540
195412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19542
19543 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19544 Remove HAVE_X11R5 and HAVE_X11R4.
19545
195462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19547
19548 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19549
195502007-11-01 Johan Bockgård <bojohan@gnu.org>
19551
19552 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19553 Don't set s->stippled_p here, since it has already been set by
19554 x_set_glyph_string_gc from x_draw_glyph_string.
19555
195562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19557
19558 * sunfns.c: Remove file.
19559
19560 * m/sun386.h:
19561 * m/sun2.h:
19562 * m/sparc.h: Remove Sun windows code.
19563
195642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19565
19566 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19567 (init_keyboard): Set current_kboard's window-system to nil.
19568 (tty_read_avail_input): Typo.
19569 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19570
195712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19572
19573 * s/usg5-4.h:
19574 * s/usg5-3.h:
19575 * s/ptx.h:
19576 * m/is386.h:
19577 * m/ibmps2-aix.h:
19578 * Makefile.in: Remove all mentions of X10.
19579
19580 * dispnew.c (syms_of_display): Don't mention version 10.
19581
195822007-10-28 Juanma Barranquero <lekktu@gmail.com>
19583
19584 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19585 ($(BLD)/abbrev.$(O)): Remove.
19586
195872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19588
19589 Rewrite abbrev.c in Elisp.
19590 * image.c (Qcount): Don't declare as extern.
19591 (syms_of_image): Initialize and staticpro `Qcount'.
19592 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19593 * emacs.c (main): Don't call syms_of_abbrev.
19594 * Makefile.in (obj): Remove abbrev.o.
19595 (abbrev.o): Remove.
19596 * abbrev.c: Remove.
19597
195982007-10-26 Martin Rudalics <rudalics@gmx.at>
19599
19600 * window.c (window_min_size_2): Don't count header-line.
19601
196022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19603
19604 * frame.h (struct frame): Move all bit fields after the first bit
19605 field to take advantage of the available space. Group all the
19606 chars together to reduce wasted space due to padding.
19607
196082007-10-26 Juanma Barranquero <lekktu@gmail.com>
19609
19610 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19611
19612 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19613 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19614 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19615 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19616 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19617 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19618 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19619 (last_marked, mark_object_loop_halt): Make static.
19620
19621 * frame.c (syms_of_frame) <delete-frame-functions>:
19622 Fix typo in docstring.
19623
196242007-10-25 Juanma Barranquero <lekktu@gmail.com>
19625
19626 * w32.c (init_environment): Fix tiny memory leak.
19627 (w32_get_resource): Remove unused variable `ok'.
19628
196292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19630
19631 Make `window-system' into a keyboard-local variable (rather than
19632 frame-local as done originally by multi-tty).
19633
19634 * keyboard.h (struct kboard): Add Vwindow_system.
19635 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19636 (mark_kboards): Mark Vwindow_system.
19637
19638 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19639 (init_display): Don't set the obsolete `window-system' frame-param.
19640
19641 * xterm.c (x_term_init):
19642 * w32term.c (w32_create_terminal):
19643 * term.c (init_tty): Set Vwindow_system.
19644 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19645 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19646
19647 * xfns.c (Fx_create_frame, x_create_tip_frame):
19648 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19649 * macfns.c (Fx_create_frame):
19650 Don't set the obsolete `window-system' frame-param.
19651
19652 * frame.h (Qwindow_system): Remove.
19653 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19654 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19655
196562007-10-24 Richard Stallman <rms@gnu.org>
19657
19658 * frame.c (x_figure_window_size): For fullscreen case,
19659 set USPosition | PPosition without clobbering rest of window_prompting.
19660
19661 * keyboard.c (Fcurrent_idle_time): Doc fix.
19662
19663 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19664
196652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19666
19667 * process.c (unwind_request_sigio): Only define if __ultrix__.
19668
19669 * callproc.c (child_setup): Remove spurious *.
19670
19671 * lisp.h (Fget_text_property): Declare.
19672 (have_menus_p): Declare it here rather than in sys-dep header files.
19673 * macterm.h (have_menus_p):
19674 * msdos.h (have_menus_p):
19675 * xterm.h (have_menus_p): Remove.
19676
19677 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19678 (Fmake_variable_frame_local): Just check the variable's const-ness
19679 rather than checking nil or t.
19680
196812007-10-22 Jason Rumney <jasonr@gnu.org>
19682
19683 * w32fns.c: Include math.h.
19684 (w32_abort): Declaration moved to nt/config.nt.
19685
19686 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19687 (abort): Redefinition moved to nt/config.nt.
19688
19689 * m/windowsnt.h: Remove.
19690
196912007-10-22 Juanma Barranquero <lekktu@gmail.com>
19692
19693 * emacs.c (Fdump_emacs): Fix typo in message.
19694 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19695 <installation-directory>: Reflow docstring.
19696
196972007-10-22 Juri Linkov <juri@jurta.org>
19698
19699 * minibuf.c: Allow minibuffer default to be a list of default values.
19700 With empty input use the first element of this list as returned default.
19701 (string_to_object)
19702 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19703 (read_minibuf): If defalt is cons, set histstring to its car.
19704 (Fread_string): If default_value is cons, set val to its car.
19705 (Fread_buffer): If def is cons, use its car.
19706 (Fcompleting_read): If defalt is cons, set val to its car.
19707
197082007-10-21 Michael Albinus <michael.albinus@gmx.de>
19709
19710 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19711
197122007-10-20 Juanma Barranquero <lekktu@gmail.com>
19713
19714 * doc.c (Fdocumentation): Check for advice in all cases.
19715
197162007-10-19 Chong Yidong <cyd@stupidchicken.com>
19717
19718 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19719
197202007-10-19 Richard Stallman <rms@gnu.org>
19721
19722 * doc.c (Fdocumentation): Check for and handle an advised function.
19723
197242007-10-19 Juanma Barranquero <lekktu@gmail.com>
19725
19726 * process.c (Fset_process_filter): Doc fix.
19727
197282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19729
19730 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19731 which caused key-translation-map to applied repeatedly (thus breaking
19732 double-mode).
19733
197342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19735
19736 * xselect.c (x_own_selection, x_handle_selection_clear)
19737 (x_clear_frame_selections):
19738 * w32menu.c (list_of_panes, list_of_items):
19739 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19740 * textprop.c (validate_plist, interval_has_all_properties)
19741 (interval_has_some_properties, interval_has_some_properties_list)
19742 (add_properties, text_property_list):
19743 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19744 * minibuf.c (Fassoc_string):
19745 * macselect.c (x_own_selection, x_clear_frame_selections)
19746 (Fx_disown_selection_internal):
19747 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19748 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19749
197502007-10-17 Chong Yidong <cyd@stupidchicken.com>
19751
19752 * process.c: Link to libs for calling res_init() if available.
19753 (Fmake_network_process): Call res_init() before getaddrinfo or
19754 gethostbyname, if possible.
19755
197562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19757
19758 * lread.c (read1): Set pvectype for char_tables.
19759
19760 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19761 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19762 Add type checks.
19763 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19764
19765 * alloc.c (free_misc): Use XMISCTYPE.
19766 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19767
197682007-10-17 Glenn Morris <rgm@gnu.org>
19769
19770 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19771 (syms_of_minibuf): Add Qcompletion_ignore_case.
19772 * dired.c (Qcompletion_ignore_case): Change to external.
19773 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19774 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19775 (Fread_file_name): Use it rather than intern'ing.
19776
19777 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19778 (Fread_coding_system): Ignore case of user input.
19779
197802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19781
19782 * xdisp.c (handle_display_prop): Ignore display specs after
19783 replacing one when string text is being replaced.
19784 (handle_single_display_spec): Pretend as if characters with display
19785 property haven't been consumed only when buffer text is being replaced.
19786
197872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19788
19789 * xfns.c (Fx_create_frame, Fx_display_list):
19790 * window.c (window_fixed_size_p, enlarge_window)
19791 (shrink_window_lowest_first):
19792 * macterm.c (init_font_name_table):
19793 * macfns.c (Fx_create_frame, Fx_display_list):
19794 * lread.c (close_load_descs):
19795 * keyboard.c (read_char_x_menu_prompt):
19796 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19797 * coding.c (code_convert_region_unwind): Test the type of an object
19798 rather than just !NILP before extracting data from it.
19799
19800 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19801
19802 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19803 (XMISCANY): New macro.
19804 (XMISCTYPE): Use it.
19805 (struct Lisp_Misc_Any): New type.
19806 (union Lisp_Misc): Use it.
19807 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19808 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19809 (find_symbol_value, set_internal, default_value, Fset_default)
19810 (Fmake_variable_buffer_local, Fmake_local_variable)
19811 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19812 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19813 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19814 * alloc.c (allocate_buffer): Set the size and tag.
19815 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19816 Use XMISCANY.
19817 (die): Follow the GNU convention for error messages.
19818 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19819 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19820 tag any more.
19821 (set_buffer_internal_1):
19822 * frame.c (store_frame_param):
19823 * eval.c (specbind):
19824 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19825
19826 * doc.c (Fsnarf_documentation): Simplify.
19827
198282007-10-14 Juanma Barranquero <lekktu@gmail.com>
19829
19830 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19831 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19832
198332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19834
19835 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19836
198372007-10-14 Juanma Barranquero <lekktu@gmail.com>
19838
19839 * eval.c (do_autoload): Don't save autoloads.
19840
19841 * data.c (Ffset): Save autoload of the function being set.
19842
198432007-10-07 John Paul Wallington <jpw@pobox.com>
19844
19845 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19846 parameter before setting up faces.
19847
198482007-10-13 Eli Zaretskii <eliz@gnu.org>
19849
19850 * ccl.c (Fregister_code_conversion_map):
19851 * keyboard.c (append_tool_bar_item): Reformat last change.
19852
19853 * lisp.h (eabs): Rename from `abs'. All callers changed.
19854
198552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19856
19857 * buffer.c (add_overlay_mod_hooklist):
19858 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19859 * fontset.c (make_fontset):
19860 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19861 (append_tool_bar_item):
19862 * macmenu.c (grow_menu_items):
19863 * w32menu.c (grow_menu_items):
19864 * xmenu.c (grow_menu_items): Use larger_vector.
19865
198662007-10-13 Eli Zaretskii <eliz@gnu.org>
19867
19868 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19869 selected frame'' on MSDOS).
19870
198712007-10-12 Martin Rudalics <rudalics@gmx.at>
19872
19873 * frame.c (Qexplicit_name): New variable.
19874 (x_report_frame_params): Report it in parameter alist.
19875 (syms_of_frame): Intern and staticpro it.
19876
198772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19878
19879 * macfns.c (x_create_tip_frame): Set terminal for frame.
19880
198812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19882
19883 * frame.c (Qenvironment): Remove.
19884 (syms_of_frame) <Qenvironment>: Don't initialize.
19885 (Fdelete_frame): Don't treat the `environment' param specially.
19886 * frame.h (Qenvironment): Don't declare.
19887 * callproc.c (set_initial_environment): Don't set unused frame param.
19888
19889 * frame.c (Fframe_with_environment): Remove.
19890 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19891
19892 * lisp.h (Fframe_with_environment): Don't declare.
19893
198942007-10-10 Juanma Barranquero <lekktu@gmail.com>
19895
19896 * indent.c (indent_tabs_mode, last_known_column)
19897 (last_known_column_modified): Make static.
19898 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19899
199002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19901
19902 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19903
199042007-10-09 Jason Rumney <jasonr@gnu.org>
19905
19906 * w32term.c (x_set_window_size): Disable code that attempts to tell
19907 Lisp code about a size change before it actually happens.
19908
199092007-10-09 Richard Stallman <rms@gnu.org>
19910
19911 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19912 return HANDLED_RETURN.
19913
199142007-10-08 Martin Rudalics <rudalics@gmx.at>
19915
19916 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19917 when there's an unread command event.
19918
19919 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19920 window autoselection act appropriately when leaving selected frame.
19921 (syms_of_frame): Initialize focus_follows_mouse.
19922 * frame.h (focus_follows_mouse): Extern it.
19923 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19924 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19925 * msdos.c (dos_rawgetc): Likewise.
19926 * w32term.c (w32_read_socket): Likewise.
19927 * xterm.c (handle_one_xevent): Likewise.
19928 * xdisp.c (syms_of_xdisp): In doc-string of
19929 mouse-autoselect-window mention focus-follows-mouse.
19930
199312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19932
19933 * macterm.c (mac_load_query_font): Fix missing return value.
19934 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19935 Add BLOCK_INPUT.
19936
199372007-10-08 Richard Stallman <rms@gnu.org>
19938
19939 * xdisp.c (get_window_cursor_type): Implement documented behavior
19940 for cursor-in-non-selected-windows = t.
19941
199422007-10-08 Jason Rumney <jasonr@gnu.org>
19943
19944 * w32.c (w32_get_resource): Always close registry keys.
19945
199462007-10-08 Jason Rumney <jasonr@gnu.org>
19947
19948 * makefile.w32-in (LIBS): Add COMCTL32.
19949
19950 * w32fns.c (globals_of_w32fns): Init common controls.
19951
199522007-10-08 Richard Stallman <rms@gnu.org>
19953
19954 * image.c (our_memory_buffer): Rename from omfib_buffer.
19955
199562007-10-08 Richard Stallman <rms@gnu.org>
19957
19958 * buffer.c (Foverlays_at): Doc fix.
19959
199602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19961
19962 * fns.c (Fplist_put): Preserve uneven tail data.
19963
199642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19965
19966 * termhooks.h (enum event_kind): Remove trailing comma.
19967
19968 * frame.h (enum): Remove trailing comma.
19969
199702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19971
19972 * w32proc.c (delete_child): Don't terminate threads of zombies.
19973
199742007-10-08 Martin Rudalics <rudalics@gmx.at>
19975
19976 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19977
19978 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19979 last-repeatable-command.
19980 (init_kboard): Initialize Vlast_repeatable_command.
19981 (command_loop_1): Set it to real_this_command unless that was
19982 bound to an input event.
19983 (mark_kboards): Mark it.
19984
199852007-10-08 Richard Stallman <rms@gnu.org>
19986
19987 * eval.c (condition-case): Doc fix.
19988
199892007-10-08 Masatake YAMATO <jet@gyve.org>
19990
19991 * xfaces.c (tty_supports_face_attributes_p): Fix code
19992 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19993 was copied and not edited.
19994
199952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19996
19997 Add new `input-decode-map' keymap and use it for terminal
19998 escape sequences.
19999 * keyboard.h (struct kboard): Add Vinput_decode_map.
20000 Remove Vlocal_key_translation_map.
20001 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20002 (init_kboard): Init input-decode-map.
20003 Replace local-key-translation-map back with key-translation-map.
20004 (syms_of_keyboard): Declare input-decode-map.
20005 Remove local-key-translation-map. Update docstrings.
20006 (mark_kboards): Mark Vinput_decode_map.
20007 Don't mark Vlocal_key_translation_map.
20008 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20009 Replace local-key-translation-map back with key-translation-map.
20010 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20011 Bind in input-decode-map rather than function-key-map.
20012
20013 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20014 This was made redundant by the previous introduction of XSETPVECTYPE.
20015
200162007-10-09 Richard Stallman <rms@gnu.org>
20017
20018 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20019
200202007-09-29 Richard Stallman <rms@gnu.org>
20021
20022 * eval.c (internal_condition_case_2, internal_condition_case_1)
20023 (internal_condition_case): Reenable abort if x_catching_errors ()
20024 to see if that really happens and why.
20025
200262007-10-06 Andreas Schwab <schwab@suse.de>
20027
20028 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20029
200302007-10-04 Juanma Barranquero <lekktu@gmail.com>
20031
20032 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20033
200342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20035
20036 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20037
200382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20039
20040 * window.h (struct window):
20041 * window.c (struct save_window_data, struct saved_window):
20042 * termhooks.h (struct terminal):
20043 * process.h (struct Lisp_Process):
20044 * frame.h (struct frame):
20045 * buffer.h (struct buffer):
20046 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20047 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20048 The size field of (pseudo)vectors is now unsigned.
20049 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20050
20051 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20052 Turn `count' into an integer.
20053
20054 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20055 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20056 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20057 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20058 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20059
20060 * alloc.c (allocate_pseudovector): New fun.
20061 (ALLOCATE_PSEUDOVECTOR): New macro.
20062 (allocate_window, allocate_terminal, allocate_frame)
20063 (allocate_process): Use it.
20064 (mark_vectorlike): New function.
20065 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20066 (mark_terminals): Use it.
20067 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20068 (Fmake_byte_code): Use XSETPVECTYPE.
20069
20070 * frame.c (Fframe_parameters): Minor simplification.
20071
20072 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20073
20074 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20075
20076 * buffer.c (Fget_buffer_create, init_buffer_once):
20077 * lread.c (defsubr):
20078 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20079
20080 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20081 defined differently in the m/*.h files.
20082 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20083 (XSETPVECTYPE): New macro.
20084 (XSETPSEUDOVECTOR): Use it.
20085
20086 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20087 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20088
20089 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20090 * lread.c (defvar_per_buffer):
20091 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20092
20093 * window.c (candidate_window_p): Only consider as visible frames that
20094 are on the same terminal.
20095
20096 * m/ibms390x.h (MARKBIT): Remove unused macro.
20097
200982007-10-01 Juanma Barranquero <lekktu@gmail.com>
20099
20100 * lread.c (Fload): Fix typo in docstring.
20101
201022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20103
20104 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20105 of a non-zero value can't yield zero.
20106
201072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20108
20109 * term.c (term_clear_mouse_face, term_mouse_highlight)
20110 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20111
20112 * print.c (safe_debug_print): Use XHASH.
20113
20114 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20115 Lisp elements such as tags.
20116 (XHASH): New macro.
20117 (EQ): Use it.
20118 (SREF, SSET, STRING_COPYIN): Use SDATA.
20119 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20120
20121 * alloc.c (mark_terminal): Remove left-over declaration.
20122 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20123 (allocate_vectorlike): Remove type argument. Adjust callers.
20124 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20125 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20126
20127 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20128 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20129 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20130 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20131 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20132 Use them.
20133
20134 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20135 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20136 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20137
201382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20139
20140 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20141 loaded by default.
20142
201432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20144
20145 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20146 on this tty.
20147 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20148
20149 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20150 Update all users.
20151 (handle_one_term_event): Use Gpm_DrawPointer.
20152 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20153 Signal errors instead of returning nil. Always return nil.
20154 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20155 Make it a noop if gpm-mouse was not activated.
20156 (syms_of_term): Update names.
20157
201582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20159
20160 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20161 (init_sys_modes): Check that gpm_tty is the current tty.
20162
20163 * alloc.c (allocate_terminal): Set the vector size to only count the
20164 lisp fields. Initialize those to nil.
20165 (mark_object): Don't treat terminals specially.
20166 (mark_terminal): Remove.
20167 (mark_terminals): Use mark_object instead.
20168
20169 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20170 the GC to the beginning.
20171
20172 * indent.h:
20173 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20174
20175 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20176
201772007-09-25 Jason Rumney <jasonr@gnu.org>
20178
20179 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20180
20181 * w32console.c (create_w32cons_output): Remove.
20182
20183 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20184
20185 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20186 (reset_sys_modes): Use reset_terminal_modes_hook.
20187
201882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20189
20190 * eval.c (do_autoload): Don't output any message.
20191
201922007-09-24 Juri Linkov <juri@jurta.org>
20193
20194 * emacs.c (standard_args): Change priority of "--no-splash"
20195 from 40 to 3. Add "--no-desktop" with the same priority.
20196
201972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20198
20199 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20200 and optimize the case where they are all 1.
20201
202022007-09-23 Johannes Weiner <hannes@saeurebad.de>
20203
20204 * lisp.h (abs): Define if not defined.
20205 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20206 Don't define `abs', since it's defined in lisp.h.
20207
202082007-09-22 Eli Zaretskii <eliz@gnu.org>
20209
20210 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20211 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20212 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20213 (init_tty): Use DEV_TTY instead of "/dev/tty".
20214 [WINDOWSNT]: No need to protect from NAME arg being null.
20215
202162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20217
20218 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20219 up the tty state.
20220
202212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20222
20223 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20224 (gpm_tty): Change its type.
20225 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20226 (gpm_tty): Change its type and initialize it.
20227 (Fterm_open_connection): Check the frame is indeed a tty.
20228 Use the new gpm_tty.
20229 (Fterm_close_connection): Use the new gpm_tty.
20230 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20231 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20232
202332007-09-21 Juanma Barranquero <lekktu@gmail.com>
20234
20235 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20236 underline_color, to draw strike-through.
20237
202382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20239
20240 * lisp.h (allocate_terminal): Declare.
20241
20242 * window.c (candidate_window_p): Consider frames that are being placed
20243 by the user as somewhere between visible and iconified.
20244 (window_loop): Prefer windows on the current frame.
20245 (Fselect_window): Move the use of select-frame to the beginning so we
20246 can just delegate all the work (it'll call us back anyway).
20247
20248 * frame.c (Qdisplay_environment_variable):
20249 * frame.h (Qdisplay_environment_variable): Delete.
20250
20251 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20252 of the first arg, since that value may be a union.
20253
20254 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20255 parameter rather than Qdisplay_environment_variable. If all else
20256 fails, look for DISPLAY in initial-environment.
20257
202582007-09-21 Glenn Morris <rgm@gnu.org>
20259
20260 * Makefile.in (emacstool): Remove target.
20261 (lisp, shortlisp): Remove termdev.elc.
20262
202632007-09-21 Markus Triska <markus.triska@gmx.at>
20264
20265 * xterm.c (x_delete_display): Compile session management conditionally.
20266
202672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20268
20269 * callproc.c (getenv_internal_1): New function.
20270 (getenv_internal): Use it.
20271 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20272
20273 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20274 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20275 (Fset_terminal_parameter): Work with dead terminals as well.
20276 (Fmodify_terminal_parameters): Remove.
20277
20278 * terminal.c (get_terminal): Handle terminals.
20279 Make sure the terminal returned is live.
20280 (create_terminal): Use allocate_terminal.
20281 (mark_terminals): Move to alloc.c.
20282 (delete_terminal): Use terminal->name as liveness status.
20283 NULL out fields after freeing their contents.
20284 Don't deallocate the object.
20285 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20286 rather than an int.
20287 (Fterminal_live_p): Accept non-integer arguments.
20288 (Fterminal_list): Return terminal objects rather than an ints.
20289
20290 * alloc.c (enum mem_type): New member for `terminal' objects.
20291 (allocate_terminal): New function.
20292 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20293 Handle terminals.
20294 (mark_terminal): New fun.
20295 (mark_terminals): Move from terminal.c.
20296
20297 * term.c (get_tty_terminal): Don't treat output_initial specially.
20298 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20299 (delete_tty): Use terminal->name as liveness status.
20300
20301 * termhooks.h (struct terminal): Make it into a pseudovector.
20302 Remove `deleted' replaced by checking `name's nullness.
20303
20304 * print.c (print_object): Handle terminals.
20305
20306 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20307 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20308
20309 * frame.c (make_terminal_frame):
20310 * keyboard.c (tty_read_avail_input):
20311 * w32term.c (x_delete_terminal):
20312 * xfns.c (Fx_create_frame, x_create_tip_frame):
20313 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20314
203152007-09-20 Glenn Morris <rgm@gnu.org>
20316
20317 * process.c (Fmake_network_process): Doc fix.
20318
203192007-09-19 Jason Rumney <jasonr@gnu.org>
20320
20321 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20322
203232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20324
20325 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20326 Fix a C warning regarding variable constness.
20327
20328 * xterm.c (handle_one_xevent): Fix a C warning.
20329
203302007-09-18 Jason Rumney <jasonr@gnu.org>
20331
20332 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20333
203342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20335
20336 * gtkutil.c (gdpy_def): New variable.
20337 (xg_initialize): Initialize gdpy_def.
20338 (xg_display_close): If no other display exists, set gdpy_def to a
20339 new connection.
20340
203412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20342
20343 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20344 when we have no file name for the icon.
20345 (xg_tool_bar_expose_callback): Remove.
20346 (xg_create_tool_bar): Don't connect expose signal to
20347 xg_tool_bar_expose_callback.
20348 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20349
203502007-09-16 Andreas Schwab <schwab@suse.de>
20351
20352 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20353 values instead of zapping them.
20354
203552007-09-14 Glenn Morris <rgm@gnu.org>
20356
20357 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20358 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20359 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20360 scope and rename to omfib_buffer for clarity.
20361 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20362
203632007-09-14 Kenichi Handa <handa@m17n.org>
20364
20365 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20366
203672007-09-13 Jason Rumney <jasonr@gnu.org>
20368
20369 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20370
20371 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20372
20373 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20374 (mac_term_init): Call here instead, passing rif.
20375
203762007-09-13 Glenn Morris <rgm@gnu.org>
20377
20378 * s/hpux.h: No longer define `static' as nothing.
20379
203802007-09-13 Johan Bockgård <bojohan@gnu.org>
20381
20382 * callint.c (Fcall_interactively): Remove unused var `fun'.
20383
203842007-09-12 Romain Francoise <romain@orebokech.com>
20385
20386 * window.c (prefer_window_split_horizontally, display_buffer):
20387 Revert 2007-09-08 change.
20388
203892007-09-12 Glenn Morris <rgm@gnu.org>
20390
20391 * alloca.c: Remove file.
20392 * Makefile.in (alloca): Do not undef.
20393 (allocaobj, alloca.o): Remove.
20394 (otherobj): Remove allocaobj.
20395 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20396 * regex.c (C_ALLOCA): Remove all references and code that was only
20397 used when this was defined.
20398 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20399 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20400 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20401
20402 * Makefile.in (SOURCES, unlock, relock): Delete.
20403
20404 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20405 (menu_grab_callback): All uses changed.
20406
20407 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20408 (x_reply_selection_request): All uses changed.
20409
204102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20411
20412 * lread.c (load_warn_old_style_backquotes): Change message to look
20413 better when it appears in the middle of byte-compiler messages.
20414
204152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20416
20417 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20418
20419 * xterm.c (x_create_terminal): Add comment.
20420
20421 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20422
204232007-09-10 Richard Stallman <rms@gnu.org>
20424
20425 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20426
204272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20428
20429 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20430 (DEFUN): Document `intspec', use it instead of `prompt'.
20431
20432 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20433
20434 * data.c (Finteractive_form): If the interactive specification starts
20435 with a `(', use it as a Lisp form.
20436
20437 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20438 name and file modes.
20439
20440 * callint.c (Fcall_interactively): Comment fixes.
20441
204422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20443
20444 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20445 and compiled functions.
20446
204472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20448
20449 * window.c (prefer_window_split_horizontally): New variable.
20450 (display_buffer): Consider splitting window horizontally depending
20451 on prefer_window_split_horizontally.
20452
204532007-09-08 Eli Zaretskii <eliz@gnu.org>
20454
20455 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20456
204572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20460
20461 * frame.c (x_set_frame_parameters): Check number is positive before
20462 using XFASTINT.
20463
20464 * window.c (freeze_window_start): Don't presume selected_window holds
20465 a window object.
20466 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20467
204682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20469
20470 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20471
204722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20473
20474 * window.c (Vsplit_window_preferred_function): New var.
20475 (Fdisplay_buffer): Use it.
20476 (syms_of_window): Export, and initialize it.
20477
204782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20479
20480 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20481
204822007-09-06 Glenn Morris <rgm@gnu.org>
20483
20484 * gtkutil.c (menu_grab_callback) <cnt>:
20485 * xselect.c (x_reply_selection_request) <cnt>: Move static
20486 variable to file scope.
20487
204882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20489
20490 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20491 consistent values of selected_frame and selected_window.
20492
204932007-09-04 Jason Rumney <jasonr@gnu.org>
20494
20495 * w32console.c (initialize_w32_display): Zero unused hooks.
20496
204972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20498
20499 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20500 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20501
205022007-09-04 Jason Rumney <jasonr@gnu.org>
20503
20504 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20505 in w32console.c. Set up input. Remove XXX comments that have been
20506 confirmed as correct.
20507
20508 * s/ms-w32.h (MULTI_KBOARD): Define.
20509
20510 * w32console.c (one_and_only_w32cons): Remove.
20511 (initialize_w32_display): Take terminal argument.
20512
20513 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20514 initialize_w32_display.
20515 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20516
20517 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20518
20519 * keyboard.c (discard_mouse_events): Discard it.
20520 (make_lispy_event): Translate it to a lisp event.
20521 (lispy_wheel_names): Add wheel-left and right events.
20522 (syms_of_keyboard): Enlarge wheel_syms.
20523
20524 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20525 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20526
20527 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20528
20529 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20530 from WM_MOUSEHWHEEL.
20531 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20532
20533 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20534 terminal.
20535
20536 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20537 keyboard for the terminal.
20538
205392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20540
20541 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20542 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20543 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20544 and resume-tty-function to resume-tty-hook.
20545 (Fsuspend_tty, Fresume_tty): Use new names.
20546
205472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20548
20549 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20550 if it starts with "n:".
20551
205522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20553
20554 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20555
205562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20557
20558 * frame.h:
20559 * frame.c (Qterm_environment_variable): Remove.
20560 (syms_of_frame): Don't init and staticpro it.
20561
20562 * callproc.c (getenv_internal): Remove special case for $TERM.
20563
20564 * callproc.c (Vinitial_environment): New variable.
20565 (set_initial_environment): Initialize it.
20566 (syms_of_callproc): Declare it.
20567 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20568 TERM under which a process runs is never related to the TERM in which
20569 Emacs is running.
20570
205712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20572
20573 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20574 * s/darwin.h: ... do it here.
20575
205762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * lisp.h (set_initial_environment): Rename from set_global_environment.
20579
20580 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20581 removed by mistake on the multi-tty branch.
20582
20583 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20584 (Fmodify_frame_parameters): Return a value.
20585
20586 * image.c (png_load): Comment-out var only used in commented-out code.
20587
20588 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20589 before passing it to mark_object.
20590
20591 * xfaces.c (internal_resolve_face_name): Return a value.
20592 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20593
20594 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20595 (x_icon): Comment-out var only used in commented-out code.
20596
205972007-08-29 Romain Francoise <romain@orebokech.com>
20598
20599 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20600 QUIT hasn't been provided.
20601
206022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20603
20604 * callproc.c (child_setup, getenv_internal): Use the
20605 display-environment-variable and term-environment-variable frame params.
20606 (set_initial_environment): Initialise Vprocess_environment.
20607
20608 * config.in: Disable multi-keyboard support on a mac.
20609
20610 * frame.c (Qterm_environment_variable)
20611 (Qdisplay_environment_variable): New variables.
20612 (syms_of_frame): Intern and staticpro them.
20613 (Fmake_terminal_frame): Disable output method test.
20614
20615 * frame.h: Declare them here.
20616
20617 * macfns.c (x_set_mouse_color): Get rif from the frame.
20618 (x_set_tool_bar_lines): Don't use updating_frame.
20619 (mac_window): Add 2 new parameters for consistency with other systems.
20620 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20621 frame parameters following what is done in X11 and w32. Don't use
20622 FRAME_MAC_DISPLAY_INFO.
20623 (Fx_open_connection, start_hourglass): Remove window-system check.
20624 (x_create_tip_frame): Get the keyboard from the terminal.
20625
20626 * macmenu.c: Reorder includes.
20627 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20628
20629 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20630 terminal parameter.
20631 (x_clear_frame): Add a frame parameter.
20632 (note_mouse_movement): Get rif from the frame.
20633 (mac_term_init): Initialize the terminal.
20634 (mac_initialize): Make static and move terminal initialization ...
20635 (mac_create_terminal): ... to this new function.
20636
20637 * macterm.h (struct mac_display_info): Add terminal.
20638 (mac_initialize): Delete declaration.
20639
20640 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20641
20642 * sysdep.c: Comment out text after #endif.
20643
20644 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20645 is defined. Better initialize ttys in windows. Use terminal
20646 specific mouse_position_hook.
20647
20648 * termhooks.h (union display_info): Add mac_display_info.
20649
20650 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20651 Set the default minibuffer frame, window_system and the rest of the
20652 frame parameters following what is done in X11.
20653
20654 * w32term.c (w32_initialize): Make static.
20655
20656 * xselect.c (x_handle_selection_clear): Only access
20657 terminal->kboard when MULTI_KBOARD is defined.
20658
20659 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20660 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20661
206622007-08-29 Jason Rumney <jasonr@gnu.org>
20663
20664 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20665 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20666
20667 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20668 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20669
20670 * keyboard.c (restore_kboard_configuration): Only define when
20671 MULTI_KBOARD defined.
20672
20673 * makefile.w32-in: Update dependancies from Makefile.in.
20674 (OBJ1): Add terminal.$(O)
20675
20676 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20677 Don't define function body.
20678 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20679
20680 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20681
20682 * w32.c (request_sigio, unrequest_sigio): Remove.
20683
20684 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20685 (w32con_clear_frame, w32con_clear_end_of_line)
20686 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20687 (w32con_delete_glyphs, w32con_set_terminal_window)
20688 (scroll_line, w32_sys_ring_bell): Add frame arg.
20689 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20690 Add terminal arg.
20691 (PICK_FRAME): Remove.
20692 (w32con_write_glyphs): Use frame specific terminal coding.
20693 (one_and_only_w32cons): New global variable.
20694 (initialize_w32_display): Use it for storing hooks.
20695 (create_w32cons_output): New function.
20696
20697 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20698 arg a frame.
20699
20700 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20701 Set window_system.
20702 (x_set_tool_bar_lines): Don't use updating_frame.
20703 (Fx_create_frame): Set terminal and ref count.
20704 (Fx_open_connection): Remove window-system check.
20705
20706 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20707
20708 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20709 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20710 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20711 Add frame arg.
20712 (x_delete_terminal, w32_create_terminal): New functions.
20713 (w32_term_init): Create a terminal.
20714 (w32_initialize): Move terminal specific initialization to
20715 w32_create_terminal.
20716
20717 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20718 (w32_clear_rect, w32_clear_area): Use background from frame.
20719 (w32_display_info): Add terminal.
20720 (w32_sys_ring_bell, x_delete_display): Declare here.
20721
20722 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20723
20724 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20725
207262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20727
20728 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20729 Fix get_named_tty calls for the controlling tty.
20730
207312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20732
194d44e7 20733 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20734
207352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20736
20737 * term.c (tty_insert_glyphs): Add missing first parameter.
20738
207392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20740
20741 * buffer.c (Fbuffer_list, Fbury_buffer):
20742 Take frame->buried_buffer_list into account.
20743
20744 * cm.c (current_tty): New variable, for cmputc().
20745 (cmputc): Use it.
20746 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20747 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20748 (cmgoto): Add tty parameter. Pass it on to calccost().
20749 Use emacs_tputs() instead of tputs().
20750
20751 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20752 tputs().
20753 (current_tty): New variable, for cmputc().
20754 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20755
20756 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20757 (internal_condition_case, internal_condition_case_1)
20758 (internal_condition_case_2): Don't abort when x_catching_errors.
20759
20760 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20761 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20762 prevent crashes caused by bogus longjmps in read_char.
20763
20764 * keymap.h (Fset_keymap_parent): Add EXFUN.
20765
20766 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20767 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20768 Remove redundant definition.
20769
20770 * macfns.c (x_set_mouse_color, x_make_gc):
20771 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20772
20773 * w32term.c (x_free_frame_resources):
20774 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20775 (w32_initialize): Use the accessor macros for terminal characteristics.
20776
20777 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20778 Use the accessor macros for terminal characteristics.
20779 * msdos.c (internal_terminal_init): Use the accessor macros for
20780 terminal characteristics.
20781 (ScreenVisualBell, internal_terminal_init):
20782 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20783
20784 * termopts.h (no_redraw_on_reenter): Declare.
20785
20786 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20787 (mark_terminals, mark_ttys): Declare.
20788 (Fgarbage_collect): Call them.
20789 (mark_object): Mark buried_buffer_list.
20790
20791 * prefix-args.c: Include stdlib.h for exit.
20792
20793 * syssignal.h: Add comment.
20794
20795 * indent.c: Include stdio.h.
20796
20797 * window.h (Vinitial_window_system): Declare.
20798 (Vwindow_system): Delete declaration.
20799
20800 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20801
20802 * image.c (lookup_image): Don't initialize `c' until the xasserts
20803 have been run.
20804
20805 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20806 FRAME_FOREGROUND_PIXEL.
20807
20808 * print.c (print_preprocess): Don't lose print_depth levels while
20809 iterating.
20810
20811 * widget.c (update_from_various_frame_slots):
20812 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20813
20814 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20815 frames.
20816 (window_internal_height): Remove bogus make_number call.
20817 (init_window_once): Call make_terminal_frame with two zero parameters.
20818
20819 * fileio.c (Fread_file_name): Update comment.
20820
20821 * callint.c (Fcall_interactively):
20822 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20823 Make sure it is correctly unwound.
20824
20825 * xsmfns.c (x_session_close): New function.
20826
20827 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20828 Delete declarations.
20829
20830 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20831 (x_output): Remove background_pixel and foreground_pixel fields.
20832 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20833 (x_delete_device, x_session_close): Declare.
20834
20835 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20836 (read_filtered_event): Call `read_char' with a local
20837 `wrong_kboard_jmpbuf'.
20838
20839 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20840 Don't call single_kboard_state. Use FRAME_RIF.
20841
20842 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20843 systems.
20844
20845 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20846 (Fframe_with_environment, Fset_input_meta_mode)
20847 (Fset_quit_char): EXFUN.
20848 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20849 (init_sys_modes, reset_sys_modes): Update prototypes.
20850 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20851
20852 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20853 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20854 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20855 Delete declarations.
20856 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20857 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20858 New declarations.
20859
20860 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20861 already does that during init_display(). Call syms_of_keymap
20862 before syms_of_keyboard. Call `syms_of_terminal'.
20863 Call set_initial_environment, not set_process_environment.
20864 (shut_down_emacs): Call reset_all_sys_modes() instead of
20865 reset_sys_modes().
20866
20867 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20868 (internal_resolve_face_name, resolve_face_name_error): New functions.
20869 (resolve_face_name): Protect against loops and errors thrown by Fget.
20870 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20871 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20872
20873 * scroll.c: Replace CURTTY() with local variables throughout the
20874 file (where applicable).
20875 (calculate_scrolling, calculate_direct_scrolling)
20876 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20877 characteristics.
20878
20879 * keymap.c (Vfunction_key_map): Remove.
20880 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20881 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20882 (Vkey_translation_map): Remove.
20883 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20884 (Fdescribe_buffer_bindings)
20885 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20886 Update for terminal-local key-translation-map.
20887
20888 * Makefile.in (callproc.o): Update dependencies.
20889 (lisp, shortlisp): Add termdev.elc.
20890 (obj): Add terminal.o.
20891 (terminal.o): Add dependencies.
20892 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20893 (data.o, fns.o): Add termhooks.h dependency.
20894 (SOME_MACHINE_LISP): Add dnd.elc.
20895 (minibuf.o): Fix typo.
20896 Update dependencies.
20897
20898 * data.c (do_symval_forwarding, store_symval_forwarding)
20899 (find_symbol_value): Use the selected frame's keyboard, not
20900 current_kboard.
20901
20902 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20903 Vwindow_system.
20904
20905 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20906 Fmenu_bar_open.
20907 (syms_of_xmenu): Update defsubr.
20908 (mouse_position_for_popup, Fx_popup_menu)
20909 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20910 (set_frame_menubar, free_frame_menubar)
b97439ce 20911 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20912 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20913 an X frame.
20914
20915 * xselect.c (x_own_selection): Abort if not an X frame.
20916 (some_frame_on_display): Check if it is an X frame.
20917 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20918
20919 * coding.c: Include frame.h and termhooks.h.
20920 (terminal_coding, keyboard_coding): Delete.
20921 (Fset_terminal_coding_system_internal)
20922 (Fset_keyboard_coding_system_internal)
20923 (Fkeyboard_coding_system)
20924 (Fterminal_coding_system): Add a terminal parameter.
20925 Get terminal_coding from the terminal.
20926 (init_coding_once): Don't call setup_coding_system here.
20927
20928 * dispextern.h (set_scroll_region, turn_off_insert)
20929 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20930 (tty_clear_end_of_line, tty_setup_colors)
20931 (delete_tty, updating_frame)
20932 (produce_special_glyphs, produce_glyphs, write_glyphs)
20933 (insert_glyphs): Remove.
20934 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20935 (tty_turn_off_highlight, get_tty_size): Add declaration.
20936 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20937
20938 * frame.h (enum output_method): Add output_initial.
20939 (struct x_output): Delete.
20940 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20941 Access foreground_pixel and background_pixel directly from the frame.
20942 (tty_display): Delete.
20943 (struct frame): Add buried_buffer_list, foreground_pixel,
20944 background_pixel and terminal. Delete kboard.
20945 (union output_data): Add tty.
20946 (FRAME_KBOARD): Get the kboard from the terminal.
20947 (FRAME_INITIAL_P): New macro.
20948 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20949 (Qterm_environment_variable, Qdisplay_environment_variable)
20950 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20951 New declarations.
20952
20953 * termchar.h (tty_output, tty_display_info): New structures.
20954 (tty_list): Declare.
20955 (FRAME_TTY, CURTTY): New macros.
20956 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20957 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20958 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20959 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20960
20961 * callproc.c: Include frame.h and termhooks.h, for terminal
20962 parameters.
20963 (add_env): New function.
20964 (child_setup): Use it.
20965 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20966 (getenv_internal): Fix get_terminal_param call.
20967 (Fgetenv_internal, egetenv): Update doc.
20968 (syms_of_callproc): Initialize Vprocess_environment to nil.
20969 Register and initialize them. Remove obsolete defvars. Update doc
20970 strings.
20971 (child_setup): Handle Vlocal_environment_variables.
20972 (getenv_internal): Add terminal parameter.
20973 Handle Vlocal_environment_variables.
20974 (Fgetenv_internal): Add terminal parameter.
20975 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20976 environment in a frame (not terminal) parameter. Update doc strings.
20977 (set_initial_environment): Rename from set_global_environment.
20978 Store Emacs environment in initial frame parameter.
20979
20980 * xdisp.c (redisplay_internal): Update references to
20981 `previous_terminal_frame'.
20982 (display_mode_line, Fformat_mode_line): Replace calls to
20983 `push_frame_kboard' with `push_kboard'.
20984 (get_glyph_string_clip_rects): Add extra parentheses and
20985 braces to prevent compiler warnings.
20986 (calc_pixel_width_or_height): Add xassert to check that the
20987 frame is alive. Don't call `lookup_image' on a termcap frame.
20988 (message2_nolog, message3_nolog, redisplay_internal)
20989 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20990 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20991 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20992 (Fx_display_pixel_width, Fx_display_pixel_height)
20993 (Fx_display_planes, Fx_display_color_cells)
20994 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20995 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20996 (Fx_display_backing_store, Fx_display_visual_class)
20997 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20998 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20999
21000 * xfns.c (x_set_foreground_color x_set_background_color)
21001 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21002 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21003 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21004 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21005 terminal that is being deleted.
21006 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21007 frame parameter, and make sure it overrides any user-supplied setting.
21008 (Fx_close_connection, Fx_synchronize): Unify argument names with
21009 the rest of the DEFUNs.
21010
21011 * dispnew.c (Fsend_string_to_terminal): Update call to
21012 `get_tty_terminal'.
21013 (Fredraw_frame, Fsend_string_to_terminal)
21014 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21015 FRAME_TERMCAP_P and FRAME_TTY.
21016 (window_change_signal): Don't believe width/height values that are
21017 impossibly small.
21018 (Vinitial_window_system): Rename from Vwindow_system.
21019 (termscript, Wcm, rif): Delete.
21020
21021 * termhooks.h (struct terminal): New struct containing the
21022 previously global text display hooks and new members NAME,
21023 DELETED and PARAM_ALIST.
21024 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21025 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21026 (FRAME_RIF): New macros.
21027 (get_terminal_param, get_device): New declarations.
21028 (termscript): Delete declaration.
21029
21030 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21031 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21032 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21033 FRAME_FOREGROUND_PIXEL.
21034 (x_fully_uncatch_errors): Disable definition.
21035 (x_scroll_bar_expose): Fix reference to foreground pixel.
21036 (XTread_socket): Disable loop on all X displays.
21037 (x_delete_terminal): Don't set terminal->deleted and let
21038 delete_terminal delete the frames on the terminal.
21039 (x_delete_display): Doc update to reflect changes in
21040 delete_terminal.
21041 (x_display_info) <terminal>: Move member earlier in the struct.
21042 (deleting_tty): Remove old variable.
21043 (Fsuspend_tty): Call clear_tty_hooks.
21044 (Fresume_tty, init_tty): Call set_tty_hooks.
21045 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21046 errors on X frames.
21047 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21048 (handle_one_xevent): Initialize `f' to NULL.
21049 (x_delete_terminal, x_create_terminal): New functions.
21050 (XTset_terminal_modes, XTreset_terminal_modes)
21051 (XTread_socket, x_connection_closed, x_term_init)
21052 (x_term_init, x_delete_display): Add terminal parameter.
21053 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21054 X connections.
21055
21056 * frame.c: Include termchar.h.
21057 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21058 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21059 (Qdisplay_environment_variable): New vars.
21060 (Fframep): Deal with output_initial.
21061 (Fframe-live-p): Doc fix.
21062 (Fwindow-system): New function.
21063 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21064 (make_terminal_frame): Don't create frames on a terminal that is
21065 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21066 (store_frame_param): Check for found_for_frame before calling XFRAME.
21067 (Fmake_terminal_frame): Handle NULL tty names correctly.
21068 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21069 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21070 frames to refer to a deleted frame in their 'environment parameter.
21071 (Fframe_with_environment): New function.
21072 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21073 (get_future_frame_param): New function.
21074 (Fmake_terminal_frame): Use it.
21075 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21076
21077 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21078 * sysdep.c (reset_sys_modes): Update for renames.
21079
21080 * keyboard.c (tty_read_avail_input): New function.
21081 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21082 (syms_of_keyboard): Defsubr them.
21083 (Fset_input_meta_mode, Fset_quit_char): New functions.
21084 (Fset_input_mode): Split to above functions.
21085 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21086 parameter. Use it in call to `read_char'.
21087 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21088 Set wrong_kboard_jmpbuf correctly in recursive calls.
21089 Use current_kboard to access Vkeyboard_translate_table.
21090 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21091 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21092 Update longjmp invocations. Remember the original current_kboard,
21093 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21094 changes it. Comment out unnecessary calls to
21095 `record_single_kboard_state' and `any_kboard_state'.
21096 Update recursive calls.
21097 (wrong_kboard_jmpbuf): Remove global variable.
21098 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21099 Handle deleted interrupted_kboards correctly; that is a legal
21100 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21101 and read_char calls. Abort if interrupted_kboard died in read_char.
21102 (any_kboard_state, single_kboard_state)
21103 (push_frame_kboard): Remove function.
21104 (pop_kboard): Switch out of single_kboard mode if the kboard has
21105 been deleted. Remove unused variable. Help debugging by not
21106 changing current_kboard unnecessarily. Set current_kboard to the
21107 kboard of the selected frame when the stored kboard object has
21108 been deleted before pop_kboard.
21109 (temporarily_switch_to_single_kboard): Change first parameter to a
21110 frame pointer. Throw an error when caller wants to change kboards
21111 while in single_kboard mode. Don't push_kboard if we weren't in
21112 single kboard state. Don't pop_kboard if we popped into any
21113 kboard state.
21114 (restore_kboard_configuration): Abort if pop_kboard changed the
21115 kboard in single_kboard mode. Call pop_kboard only after setting
21116 up single_kboard mode.
21117 (Frecursive_edit): Switch to single_kboard mode only in nested
21118 command loops.
21119 (cmd_error, command_loop, command_loop_1, timer_check):
21120 Comment out unnecessary call to `any_kboard_state' and
21121 `record_single_kboard_state'.
21122 (delete_kboard): Exit single_kboard mode if we have just deleted
21123 that kboard. Use FRAME_KBOARD.
21124 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21125 `fatal_error_signal'.
21126 (record_single_kboard_state): Don't push_kboard if we weren't in
21127 single kboard state. Don't pop_kboard if we popped into any
21128 kboard state.
21129 (push_frame_kboard): Rename to push_kboard.
21130 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21131 (read_avail_input): Read input from all terminals.
21132 (mark_kboards): Also mark Vkeyboard_translate_table.
21133 (kbd_buffer_store_event_hold): Simplify condition.
21134 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21135 (Vkeyboard_translate_table): Move to struct kboard.
21136 (init_kboard): Initialize Vkeyboard_translate_table.
21137 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21138 Vkeyboard_translate_table. Update doc strings. Update docs of
21139 local-function-key-map and function-key-map.
21140
21141 * terminal.c: New file.
21142
21143 * term.c: Include errno.h.
21144 (Vring_bell_function, device_list, initial_device)
21145 (next_device_id, ring_bell, update_begin, update_end)
21146 (set_terminal_window, cursor_to, raw_cursor_to)
21147 (clear_to_end, clear_frame, clear_end_of_line)
21148 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21149 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21150 (syms_of_term): Move their initialization to terminal.c.
21151 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21152 (Ftty_display_color_cells)
21153 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21154 (clear_tty_hooks, set_tty_hooks)
21155 (init_tty, maybe_fatal): New functions.
21156 (Ftty_type): Return nil if terminal is not on a tty instead of
21157 throwing an error. Doc update.
21158 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21159 Doc update. Initialize new subrs and variables.
21160 (delete_tty): Use terminal->deleted.
21161 (tty_set_terminal_modes): Rename from set_terminal_modes.
21162 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21163 (set_scroll_region): Rename to `tty_set_scroll_region'.
21164 (turn_on_insert): Rename to `tty_turn_on_insert'.
21165 (turn_off_insert): Rename to `tty_turn_off_insert'.
21166 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21167 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21168 (toggle_highligh): Rename to `tty_toggle_highlight'.
21169 (background_highlight): Rename to `tty_background_highlight'.
21170 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21171 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21172 (tty_set_scroll_region, tty_background_highlight)
21173 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21174 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21175 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21176 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21177 Add static modifier.
21178 (tty_reset_terminal_modes, tty_set_terminal_window)
21179 (tty_set_scroll_region, tty_background_highlight)
21180 (tty_highlight_if_desired, tty_cursor_to)
21181 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21182 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21183 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21184 renames.
21185
211862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21187
21188 * keyboard.c: Qrtl is new.
21189 (parse_tool_bar_item): Handle :rtl keyword.
21190 (syms_of_keyboard): Intern :rtl keyword.
21191
21192 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21193
21194 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21195 so no Lisp code is executed.
21196 (file_for_image, find_rtl_image): New functions.
21197 (xg_get_image_for_pixmap): Use file_for_image.
21198 (update_frame_tool_bar): If direction is RTL, use RTL image if
21199 defined. Use Gtk stock images if defined.
21200
212012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21202
21203 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21204 for nonexistent or zero-width glyph in composition glyph.
21205
212062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21207
21208 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21209
21210 * xdisp.c (Finvisible_p): New function.
21211 (syms_of_xdisp): defsubr it.
21212
212132007-08-24 Juanma Barranquero <lekktu@gmail.com>
21214
21215 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21216 Doc fixes.
21217
212182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21219
21220 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21221
212222007-08-24 Martin Rudalics <rudalics@gmx.at>
21223
21224 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21225 whether decoding has modified buffer contents.
21226
212272007-08-24 Jason Rumney <jasonr@gnu.org>
21228
21229 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21230 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21231 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21232 (init_svg_functions) [HAVE_NTGUI]: New function.
21233 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21234 (svg_load_image): Use them.
21235 (svg_load_image) [HAVE_NTGUI]: Implement background.
21236
212372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21238
21239 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21240 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21241 (LIBX): Remove @RSVG_LIBS@.
21242 (LIBES): Add $(RSVG_LIBS).
21243
21244 * image.c (svg_load_image): Blend with specified background if exists.
21245 Use IMAGE_BACKGROUND. Add Mac OS Support.
21246
21247 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21248 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21249 Remove macros.
21250 [MAC_OSX] (socket_callback): Do nothing.
21251 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21252 ReceiveNextEvent.
21253 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21254 socket_callback.
21255 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21256
212572007-08-22 Glenn Morris <rgm@gnu.org>
21258
21259 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21260
212612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21262
21263 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21264
21265 * image.c: Add support for SVG images. Some additional comments
21266 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21267 (svg_image_p): New function to test for SVG image.
21268 (svg_load): New function to load SVG image.
21269 (svg_load_image): New function, helper for svg_load.
21270 (Qsvg): New Lisp_object.
21271 (svg_keyword_index): New enum.
21272 (svg_format): New static `image_keyword' struct.
21273 (svg_type): New static `image_type' struct.
21274 (librsvg/rsvg.h): Include it.
21275
212762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21277
21278 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21279
212802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21281
21282 * lread.c (Qold_style_backquotes): New var.
21283 (syms_of_lread): Init and staticpro it.
21284 (load_warn_old_style_backquotes): New fun.
21285 (Fload): Use them to warn about old style backquotes.
21286 (end_of_file_error, Fload): Remove unused vars.
21287
21288 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21289
21290 * lread.c (Vold_style_backquotes): New var.
21291 (syms_of_lread): Init and export it to Elisp.
21292 (read1): Set it when we find an old-style (back)quote.
21293
212942007-08-22 Jason Rumney <jasonr@gnu.org>
21295
21296 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21297
212982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21299
21300 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21301
213022007-08-19 Richard Stallman <rms@gnu.org>
21303
21304 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21305
213062007-08-19 Andreas Schwab <schwab@suse.de>
21307
21308 * alloc.c (pure): Round PURESIZE up.
21309
213102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21311
21312 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21313 active frame.
21314
213152007-08-16 Richard Stallman <rms@gnu.org>
21316
21317 * eval.c (Fcommandp): Add parens to clarify.
21318
21319 * minibuf.c (Fall_completions): Use enum for type of table.
21320
21321 * emacs.c (USAGE2): Improve text.
21322
213232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21324
21325 * term.c (tty_default_color_capabilities): Declare static
21326 variables in file scope, to avoid HPUX compiler problem.
21327
213282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21329
21330 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21331 to gtk_toolbar_insert.
21332
213332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21334
21335 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21336
21337 * insdel.c (reset_var_on_error): New fun.
21338 (signal_before_change, signal_after_change):
21339 Use it to reset (after|before)-change-functions to nil in case of error.
21340 Bind inhibit-modification-hooks to t.
21341 Don't bind (after|before)-change-functions to nil while they run.
21342
213432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21344
21345 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21346 filling pixmap with stippled background.
21347
213482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21349
21350 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21351 Don't use invisible frame as parent window for repositioning.
21352
213532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21354
21355 * print.c (new_backquote_output): Rename from old_backquote_output.
21356 (print): Inverse its logic (according to its name) so as to match the
21357 behavior of new_backquote_flag in lread.c.
21358
213592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21360
21361 * gmalloc.c (posix_memalign): New function.
21362
21363 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21364 ActivateControl/DeactivateControl here.
21365 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21366 frame-notice-user-settings is non-nil.
21367 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21368 for kEventParamFMFontStyle.
21369 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21370 mac_pass_command_to_system and mac_pass_control_to_system here.
21371 (XTread_socket): Call ActivateControl/DeactivateControl here.
21372 (XTread_socket) [TARGET_API_MAC_CARBON]:
21373 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21374 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21375 for window repositioning.
21376
213772007-08-08 Glenn Morris <rgm@gnu.org>
21378
21379 * Replace `iff' in doc-strings and comments.
21380
213812007-08-07 Chong Yidong <cyd@stupidchicken.com>
21382
21383 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21384
213852007-08-07 Martin Rudalics <rudalics@gmx.at>
21386
21387 * fileio.c (Finsert_file_contents): Run format-decode and
21388 after_insert_file_functions on entire buffer when REPLACE is
21389 non-nil and inhibit modification_hooks and point_motion_hooks.
21390 For consistency, run after_insert_file_functions iff something
21391 got inserted. Move signal_after_change and update_compositions
21392 after code running after_insert_file_functions. Make sure that
21393 undo_list doesn't record intermediate steps of the decoding process.
21394
213952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21396
21397 * emacs.c (main)
21398 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21399 Call malloc_enable_thread on interactive startup.
21400
21401 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21402 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21403 [USE_PTHREAD]: Conditionalize with it.
21404 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21405 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21406 New functions.
21407
214082007-08-06 Chong Yidong <cyd@stupidchicken.com>
21409
21410 * xdisp.c (redisplay_window): When restoring original buffer
21411 position, make sure it is still valid.
21412
21413 * image.c (png_load): Ignore png-supplied background color.
21414
214152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21416
21417 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21418 Use kCFAbsoluteTimeIntervalSince1970.
21419
21420 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21421 New variable.
21422 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21423 event loop should be quit.
21424 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21425 Quit dialog event loop if quit_dialog_event_loop is set.
21426
21427 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21428 (Selection): New typedef. Use instead of ScrapRef.
21429 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21430 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21431 (mac_clear_selection): Rename from clear_scrap.
21432 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21433 scrap_has_target_type. All uses changed.
21434 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21435 (mac_selection_has_target_p): New functions.
21436 (mac_put_selection_value): Rename from put_scrap_string.
21437 (mac_get_selection_value): Rename from get_scrap_string.
21438 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21439 (put_scrap_private_timestamp, scrap_has_target_type)
21440 (get_scrap_private_timestamp): Remove functions.
21441 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21442 (x_own_selection, x_get_local_selection):
21443 Use mac_valid_selection_value_p.
21444 (x_own_selection): Don't use put_scrap_private_timestamp.
21445 Record OWNERSHIP-INFO into Vselection_alist instead.
21446 (x_get_local_selection): Don't check type if request is local.
21447 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21448 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21449
214502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21451
21452 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21453 add comment explaining why.
21454
214552007-08-03 Richard Stallman <rms@gnu.org>
21456
21457 * fileio.c (Fvisited_file_modtime): Use make_time.
21458
214592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21460
21461 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21462 build.
21463
214642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21465
21466 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21467
214682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21469
21470 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21471
214722007-07-30 Richard Stallman <rms@gnu.org>
21473
21474 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21475
214762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21477
21478 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21479
214802007-07-28 Nick Roberts <nickrob@snap.net.nz>
21481
21482 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21483 remote default-directory.
21484
21485 * buffer.c (mode-line-format): Update doc string.
21486
214872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21488
21489 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21490 scroll bar gap.
21491 (x_scroll_bar_create): Set bar->fringe_extended_p.
21492 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21493 on frame edge. Check fringe background extension. Don't clear
21494 extended fringe background area.
21495
21496 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21497 (w32_fill_area): Enclose multiple statements with do ... while (0).
21498
21499 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21500 Extend fringe background to scroll bar gap.
21501 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21502 Set bar->fringe_extended_p.
21503 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21504 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21505 background extension. Don't clear extended fringe background area.
21506
21507 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21508 New member fringe_extended_p.
21509
215102007-07-25 Glenn Morris <rgm@gnu.org>
21511
21512 * Relicense all FSF files to GPLv3 or later.
21513
21514 * COPYING: Switch to GPLv3.
21515
215162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21517
21518 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21519
21520 * data.c (Finteractive_form): Check for the presence of an
21521 `interactive-form' symbol property more thoroughly.
21522
21523 * data.c (Finteractive_form): Use an `interactive-form' property if
21524 present, analogous to the function-documentation property.
21525
215262007-07-24 Jason Rumney <jasonr@gnu.org>
21527
21528 * w32fns.c (x_real_positions): Get real position from OS instead of
21529 calculating it.
21530
215312007-07-23 Jason Rumney <jasonr@gnu.org>
21532
21533 * filelock.c (current_lock_owner): Allow for @ sign in username.
21534
215352007-07-22 Nick Roberts <nickrob@snap.net.nz>
21536
21537 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21538 remote default-directory.
21539
21540 * buffer.c (mode-line-format): Describe above case in doc string.
21541
215422007-07-20 Eli Zaretskii <eliz@gnu.org>
21543
21544 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21545 Define if not defined.
21546
215472007-07-18 Jason Rumney <jasonr@gnu.org>
21548
21549 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21550
215512007-07-18 Richard Stallman <rms@gnu.org>
21552
21553 * data.c (Fsetq_default): Doc fix.
21554
21555 * eval.c (Fsetq): Doc fix.
21556
215572007-07-18 Juanma Barranquero <lekktu@gmail.com>
21558
21559 * coding.c (Ffind_operation_coding_system):
21560 * eval.c (For, Fand): Doc fixes.
21561 Reported by Johan Bockgård.
21562
215632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21564
21565 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21566
21567 * xterm.h: Declare x_ewmh_activate_frame.
21568
21569 * xterm.c (x_ewmh_activate_frame): New function.
21570 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21571
215722007-07-17 Martin Rudalics <rudalics@gmx.at>
21573
21574 * window.c (Fdisplay_buffer): If largest or LRU window is the
21575 only window, split it even if it is not eligible for splitting.
21576 This restores the original behavior broken by the 2007-07-15
21577 change.
21578
215792007-07-17 Glenn Morris <rgm@gnu.org>
21580
21581 * abbrev.c (abbrev_check_chars): New function.
21582 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21583 Call abbrev_check_chars to check abbrev characters are word
21584 constituents. Doc fix.
21585
215862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21587
21588 * process.c (Fstart_process, Fmake_network_process)
21589 (read_process_output): Fix up last changes.
21590
215912007-07-16 Eli Zaretskii <eliz@gnu.org>
21592
21593 * makefile.w32-in (clean): Don't delete *~.
21594
215952007-07-16 Andreas Schwab <schwab@suse.de>
21596
21597 * window.c (Fdisplay_buffer): Use NILP.
21598 (Fset_window_scroll_bars): Likewise.
21599
216002007-07-15 Martin Rudalics <rudalics@gmx.at>
21601
21602 * window.c (window_min_size_2): New function.
21603 (window_min_size_1, size_window, Fdisplay_buffer)
21604 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21605 windows without mode- or header-lines when window-min-height is
21606 too small.
21607 (size_window): Reset nodelete_p after testing it, following an
21608 earlier note by Kim F. Storm.
21609 (display_buffer): Do not set split_height_threshold to twice the
21610 value of window_min_height to avoid changing the value of a
21611 customizable variable. Rather explicitly check whether the
21612 height of the window that shall be splitted is at least as large
21613 as split_height_threshold.
21614 (Fwindow_full_width_p): New defun.
21615 (syms_of_window): Defsubr it.
21616
21617 * window.h: Add EXFUN for Fwindow_full_width_p.
21618
216192007-07-14 Jason Rumney <jasonr@gnu.org>
21620
21621 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21622
216232007-07-14 Richard Stallman <rms@gnu.org>
21624
21625 * eval.c (maybe_call_debugger): New function.
21626 (find_handler_clause): Use maybe_call_debugger.
21627 Call it when the handler says `debug'.
21628 Eliminate DEBUGGER_VALUE_PTR.
21629 (Fsignal): Eliminate debugger_value.
21630 (Qdebug): New variable.
21631 (syms_of_eval): Initialize it.
21632
216332007-07-14 Juanma Barranquero <lekktu@gmail.com>
21634
21635 * eval.c (Fprogn):
21636 * keyboard.c (Ftrack_mouse):
21637 * print.c (Fwith_output_to_temp_buffer):
21638 * window.c (Fsave_window_excursion): Doc fix.
21639
216402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21641
21642 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21643
216442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21645
21646 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21647 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21648 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21649 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21650 Remove unused encoding_carryover.
21651 * process.c: Adjust all functions accordingly.
21652
216532007-07-12 Richard Stallman <rms@gnu.org>
21654
21655 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21656
216572007-07-11 Jason Rumney <jasonr@gnu.org>
21658
21659 * makefile.w32-in (LIBS): Include OLE32.
21660
21661 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21662 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21663
216642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21665
21666 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21667 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21668 from a Lisp_Object into a bare pointer.
21669 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21670 Adjust the code correspondingly.
21671
21672 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21673
21674 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21675 (term_show_mouse_face): Remove unused var `j'.
21676 (handle_one_term_event): Remove unused vars `i' and `j'.
21677 Don't cast return value of ttyname since it's not necessary.
21678
216792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21680
21681 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21682 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21683
21684 * fns.c (map_char_table): Use an array of int for `indices' rather than
21685 an array of Lisp_Objects (which are only ever integers anyway).
21686 (Fmap_char_table): Update caller.
21687 * lisp.h: Update prototype.
21688 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21689 * fontset.c (Ffontset_info):
21690 * casetab.c (set_case_table): Update callers.
21691
21692 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21693
21694 * keymap.c (struct accessible_keymaps_data)
21695 (struct where_is_internal_data): New structures.
21696 (accessible_keymaps_1, where_is_internal_1): Use them to change
21697 interface to adhere to the one used by map_keymap.
21698 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21699 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21700
21701 * keymap.h (map_keymap_function_t): More informative prototype.
21702
217032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21704
21705 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21706 (looking_at_1): Don't change search_regs and last_thing_searched
21707 if `inhibit-changing-match-data' is non-nil.
21708 (string_match_1, search_buffer, set_search_regs): Likewise.
21709 (syms_of_search): Add Lisp level definition for
21710 `inhibit-changing-match-data' and set it to nil.
21711 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21712 start and end of the match, instead of using values in search_regs.
21713
217142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21715
21716 * minibuf.c (Fcompleting_read): New value `confirm-only'
21717 for `require-match'.
21718
217192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21720
21721 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21722 part of the 2007-06-27 change to syms_of_fileio.
21723
217242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21725
21726 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21727 Check WINDOWP before using XWINDOW. Consolidate return statements.
21728
217292007-06-27 Richard Stallman <rms@gnu.org>
21730
21731 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21732
217332007-06-27 Juanma Barranquero <lekktu@gmail.com>
21734
21735 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21736
217372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21738
21739 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21740 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21741 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21742 (_free_internal, memalign): Use them.
21743 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21744 Initialize to PTHREAD_MUTEX_INITIALIZER.
21745 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21746 (morecore_nolock): Rename from morecore. All uses changed.
21747 Use only nolock versions of internal allocation functions.
21748 (_malloc_internal_nolock, _realloc_internal_nolock)
21749 (_free_internal_nolock): New functions created from
21750 _malloc_internal, _realloc_internal, and _free_internal.
21751 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21752 Copy hook value to automatic variable before its use.
21753 (memalign): Copy hook value to automatic variable before its use.
21754
217552007-06-26 Kenichi Handa <handa@m17n.org>
21756
21757 * coding.c (Ffind_operation_coding_system): Docstring improved.
21758 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21759
217602007-06-25 David Kastrup <dak@gnu.org>
21761
21762 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21763 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21764 cater for additional parameter.
21765
21766 * keymap.h: Adjust number of parameters to `current-active-maps'.
21767
21768 * doc.c (Fsubstitute_command_keys): Adjust call of
21769 `current-active-maps'.
21770
217712007-06-25 David Kastrup <dak@gnu.org>
21772
21773 * callint.c (Fcall_interactively): Make the parsing of interactive
21774 specs somewhat more readable.
21775
217762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21777
21778 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21779 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21780 if extended background has already been filled.
21781
217822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21783
21784 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21785 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21786
21787 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21788 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21789 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21790 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21791 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21792 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21793 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21794 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21795 Run timers during dialog popup.
21796 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21797
217982007-06-21 Jason Rumney <jasonr@gnu.org>
21799
21800 * image.c (convert_mono_to_color_image): Swap fore and background.
21801
218022007-06-20 Jason Rumney <jasonr@gnu.org>
21803
21804 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21805 (w32_free_bdf_font): Unmap memory not handle.
21806
218072007-06-20 Sam Steingold <sds@gnu.org>
21808
21809 * gmalloc.c (__morecore): Fix the declaration to comply with the
21810 definition.
21811
218122007-06-20 Juanma Barranquero <lekktu@gmail.com>
21813
21814 * w32term.c (w32_delete_display): Remove leftover declaration.
21815 (w32_define_cursor, w32_initialize): Make static.
21816
21817 * w32.c (_wsa_errlist): Fix typo in error message.
21818 (init_environment): Ignore any environment variable from the
21819 registry having a null value.
21820
218212007-06-20 Glenn Morris <rgm@gnu.org>
21822
21823 * Makefile.in (LIBGIF): Default to -lgif.
21824
218252007-06-17 Jason Rumney <jasonr@gnu.org>
21826
21827 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21828 unicode strings.
21829
218302007-06-16 Juanma Barranquero <lekktu@gmail.com>
21831
21832 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21833 Fix typo in docstring.
21834
218352007-06-16 Eli Zaretskii <eliz@gnu.org>
21836
21837 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21838 and their keybindings.
21839
218402007-06-15 Chong Yidong <cyd@stupidchicken.com>
21841
21842 * composite.c (update_compositions): Fix last fix.
21843
218442007-06-14 Jason Rumney <jasonr@gnu.org>
21845
21846 * w32.c (get_process_times_fn): New function pointer.
21847 (globals_of_w32): Intialize it if present in kernel32.dll.
21848 (w32_get_internal_run_time): New function.
21849
21850 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21851
218522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21853
21854 * composite.c (update_compositions): Check the validness of
21855 compositions.
21856
218572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21858
21859 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21860 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21861
21862 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21863 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21864
21865 * macgui.h (USE_MAC_TOOLBAR): New define.
21866
21867 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21868 Return immediately unless popup is activated.
21869
21870 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21871 background to scroll bar gap.
21872 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21873 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21874 scroll bars on frame edge. Check fringe background extension.
21875 Don't clear extended fringe background area.
21876 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21877 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21878 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21879 [USE_MAC_TOOLBAR]: New macros.
21880 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21881 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21882 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21883 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21884 [USE_MAC_TOOLBAR]: New functions.
21885 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21886 manually if previous repositioning has failed.
21887 (mac_handle_keyboard_event): Use precomputed event kind.
21888 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21889 as tool bar item click. Handle mouse movement over tool bar items.
21890
21891 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21892 toolbar_win_gravity.
21893 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21894 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21895 Add externs.
21896
21897 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21898 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21899
219002007-06-14 Chong Yidong <cyd@stupidchicken.com>
21901
21902 * image.c (search_image_cache): Remove unused variable.
21903
219042007-06-13 Chong Yidong <cyd@stupidchicken.com>
21905
21906 * xfns.c, xmenu.c: Link to xaw3d if available.
21907
219082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21909
21910 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21911 frame_foreground and frame_background.
21912
21913 * image.c (lookup_image): Save frame foreground and background colors.
21914 (search_image_cache): Check if saved and current frame colors match.
21915
219162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21917
21918 * regex.c (regex_compile): Remove the `regnum' counter.
21919 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21920
219212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21922
21923 * term.c: Include intervals.h to declare Fget_text_property.
21924
219252007-06-10 Jason Rumney <jasonr@gnu.org>
21926
21927 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21928
219292007-06-08 Juanma Barranquero <lekktu@gmail.com>
21930
21931 * callint.c (Fcall_interactively):
21932 * editfns.c (Fdelete_and_extract_region):
21933 * fileio.c (Fread_file_name):
21934 * fns.c (Fmapconcat):
21935 * keyboard.c (cmd_error_internal):
21936 * keymap.c (Fkey_description):
21937 * lread.c (openp):
21938 * minibuf.c (read_minibuf):
21939 * search.c (wordify):
21940 * sunfns.c (sel_read):
21941 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21942 * xfns.c (x_default_scroll_bar_color_parameter):
21943 * xmenu.c (menu_help_callback):
21944 * xselect.c (Fx_get_atom_name):
21945 * xterm.c (x_term_init): Use empty_unibyte_string.
21946
219472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21948
21949 * alloc.c (init_strings): Initialize canonical empty strings.
21950 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21951 canonical empty string when the requested size is 0.
21952
21953 * emacs.c (empty_unibyte_string): Rename from empty_string.
21954 (empty_multibyte_string): New canonical empty string.
21955 (syms_of_emacs): Don't initialize empty_string.
21956
21957 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21958 string, if appropriate.
21959 (empty_unibyte_string, empty_multibyte_string): New externs.
21960 (empty_string): Remove extern.
21961
21962 * lread.c (syms_of_lread): Use empty_unibyte_string.
21963
219642007-06-07 Jason Rumney <jasonr@gnu.org>
21965
21966 * s/ms-w32.h: Don't define HAVE_TZNAME.
21967
21968 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21969
219702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21971
21972 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21973
21974 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21975 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21976
21977 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21978 Don't call next handler.
21979 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21980 Remove argument. Install handler to application.
21981 (set_frame_menubar): Don't change deep_p.
21982 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21983 FRAME_OUTER_TO_INNER_DIFF_Y.
21984 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21985 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21986 [HAVE_DIALOGS]: New macros.
21987 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21988 Use them.
21989 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21990
21991 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21992 init_service_handler. All callers changed. Return OSStatus value.
21993
21994 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21995 All callers changed so as not to call SetPortWindowPort.
21996 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21997 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21998 mac_draw_string_common.
21999 (mac_draw_image_string_qd): Likewise.
22000 (mac_draw_string_common): Use them. Add INLINE.
22001 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22002 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22003 GetGlobalMouse.
22004 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22005 and FRAME_OUTER_TO_INNER_DIFF_Y.
22006 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22007 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22008 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22009 repositioning window to mac_handle_window_event.
22010 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22011 saving window location to mac_handle_window_event
22012 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22013 (install_menu_target_item_handler): Remove argument in extern.
22014 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22015 Also accept command events.
22016 (do_keystroke): New function created from XTread_socket.
22017 (init_command_handler): Remove functions.
22018 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22019 and save window location by kEventWindowShowing and kEventWindowHiding
22020 handlers here. Don't call next handler for window state change and
22021 focus events.
22022 (mac_handle_application_event, mac_handle_keyboard_event)
22023 [TARGET_API_MAC_CARBON]: New functions.
22024 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22025 kEventWindowShowing and kEventWindowHiding events. Move installation
22026 of mouse, font, text input and menu target item handlers to
22027 install_application_handler.
22028 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22029 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22030 New function.
22031 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22032 Register it.
22033 (XTread_socket) [TARGET_API_MAC_CARBON]:
22034 Consolidate SendEventToEventTarget calls.
22035 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22036 Move application activation handler to mac_handle_application_event.
22037 Move keyboard handler to mac_handle_keyboard_event.
22038 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22039 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22040 init_command_handler. Call install_application_handler.
22041
22042 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22043 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22044
220452007-06-07 Glenn Morris <rgm@gnu.org>
22046
22047 * emacs.c (main): Use `emacs-copyright' in --version output.
22048
220492007-06-06 Chong Yidong <cyd@stupidchicken.com>
22050
22051 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22052
220532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22054
22055 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22056
22057 * macgui.h: Replace WindowPtr with WindowRef.
22058
22059 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22060 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22061 Replace ControlHandle with ControlRef.
22062 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22063
22064 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22065 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22066 Replace ControlHandle with ControlRef.
22067 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22068 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22069
22070 * macterm.h (struct scroll_bar): Rename member control_handle_low
22071 and control_handle_high to control_ref_low and control_ref_high.
22072 All uses changed.
22073 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22074 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22075 respectively. All uses changed.
22076 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22077 (install_window_handler, remove_window_handler): Replace WindowPtr
22078 with WindowRef in externs.
22079
220802007-06-05 Juanma Barranquero <lekktu@gmail.com>
22081
22082 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22083
220842007-06-03 Nick Roberts <nickrob@snap.net.nz>
22085
22086 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22087
22088 * frame.c (Fmouse_position, Fmouse_pixel_position):
22089 Condition on HAVE_GPM too.
22090
22091 * term.c (term_mouse_highlight): Remove unused variables.
22092 (Fterm_open_connection): Set gpm_zerobased to 1.
22093 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22094 Use zero based co-ordinates.
22095 (handle_one_term_event): Report a drag as mouse movement too.
22096
22097 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22098
220992007-06-03 Chong Yidong <cyd@stupidchicken.com>
22100
22101 * image.c (search_image_cache): New function. Require background
22102 color match if background color is unspecified in the image spec.
22103 (uncache_image, lookup_image): Use it.
22104
221052007-06-01 Juanma Barranquero <lekktu@gmail.com>
22106
22107 * window.c (Fshrink_window): Reflow docstring.
22108
221092007-06-02 Chong Yidong <cyd@stupidchicken.com>
22110
22111 * Version 22.1 released.
22112
221132007-06-01 Richard Stallman <rms@gnu.org>
22114
22115 * xfns.c (x_encode_text): Add GCPRO.
22116
221172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22118
22119 * xfns.c (x_set_name_internal): Save encoded name before
22120 x_encode_text in case string data is relocated.
22121
221222007-05-31 Richard Stallman <rms@gnu.org>
22123
22124 * buffer.c (syms_of_buffer): Doc fix.
22125
221262007-05-30 Nick Roberts <nickrob@snap.net.nz>
22127
22128 * sysdep.c (init_sys_modes): Add rather than replace with
22129 O_NONBLOCK.
22130
22131 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22132 term_mouse_moveto.
22133
22134 * termhooks.h (term_mouse_moveto): New extern.
22135
22136 * term.c (mouse_face_window): Rename...
22137 (Qmouse_face_window): ...to this.
22138 (term_show_mouse_face, term_clear_mouse_face)
22139 (term_mouse_highlight): Use Qmouse_face_window.
22140 (term_mouse_moveto): New function.
22141 (term_mouse_position): Make it work.
22142 (syms_of_term): Uncomment assignment to mouse_position_hook.
22143 Staticpro Qmouse_face_window.
22144
221452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22146
22147 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22148 around current_column call.
22149
221502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22151
22152 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22153 * xdisp.c (next_element_from_buffer):
22154 * window.c (delete_window):
22155 * term.c (term_mouse_highlight):
22156 * msdos.c (getdefdir):
22157 * macterm.c (mac_create_bitmap_from_bitmap_data)
22158 (init_font_name_table):
22159 * fns.c (Fsxhash):
22160 * data.c (Fmake_local_variable):
22161 * ccl.c (ccl_driver): Likewise.
22162
221632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22164
22165 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22166 Call mac_wakeup_from_rne on window size change.
22167
221682007-05-25 Chong Yidong <cyd@stupidchicken.com>
22169
22170 * image.c (uncache_image): Fix typo.
22171
221722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22173
22174 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22175
221762007-05-22 Richard Stallman <rms@gnu.org>
22177
22178 * xterm.c (x_connection_closed): Remove NO_RETURN.
22179
221802007-05-22 Martin Rudalics <rudalics@gmx.at>
22181
22182 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22183
221842007-05-21 Chong Yidong <cyd@stupidchicken.com>
22185
22186 * image.c (uncache_image): New function.
22187 (Fimage_refresh): New function.
22188
221892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22190
22191 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22192
221932007-05-20 Nick Roberts <nickrob@snap.net.nz>
22194
22195 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22196 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22197
221982007-05-20 Nick Roberts <nickrob@snap.net.nz>
22199
22200 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22201 conditional on [HAVE_GPM_H].
22202
222032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22204
22205 * syntax.c (skip_chars): Update syntax-table only after we checked that
22206 the new location is valid.
22207
222082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22209
22210 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22211 mac_get_window_bounds.
22212
222132007-05-20 Nick Roberts <nickrob@snap.net.nz>
22214
22215 * Makefile.in (LIBGPM): Allow it to be set from configure.
22216 If set then link Emacs with it.
22217
22218 * config.in: Regenerate.
22219
22220 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22221 New externs.
22222
22223 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22224 Include gpm.h.
22225 (handle_one_term_event, term_gpm): New externs.
22226
22227 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22228 and allow it to be interrupted by SIGIO.
22229
22230 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22231 (wait_reading_process_output): Wait on gpm_fd too.
22232 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22233 (add_gpm_wait_descriptor_called_flag): New variable.
22234 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22235
22236 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22237 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22238 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22239 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22240 (make_lispy_event): Add case GPM_CLICK_EVENT.
22241 (read_avail_input): Handle mouse input.
22242
22243 * term.c (write_glyphs_with_face): New function.
22244 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22245 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22246 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22247 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22248 (last_mouse_x, last_mouse_y): New variables.
22249 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22250 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22251 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22252 (Fterm_close_connection): New functions.
22253 (term_init): Initialise mouse_face_window.
22254
222552007-05-19 Chong Yidong <cyd@stupidchicken.com>
22256
22257 * xdisp.c (redisplay_window): If first window line is a
22258 continuation line, recompute the new window start instead of
22259 recentering.
22260
222612007-05-18 Glenn Morris <rgm@gnu.org>
22262
22263 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22264 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22265
222662007-05-17 Glenn Morris <rgm@gnu.org>
22267
22268 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22269
222702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22271
22272 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22273 dead key repeat and up events.
22274
222752007-05-14 Chong Yidong <cyd@stupidchicken.com>
22276
22277 * image.c (pbm_load): Check image size for monochrome pbm.
22278
222792007-05-13 Chong Yidong <cyd@stupidchicken.com>
22280
22281 * xterm.c (XTread_socket): Revert last change.
22282
222832007-05-12 Chong Yidong <cyd@stupidchicken.com>
22284
22285 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22286
22287 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22288
222892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22290
22291 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22292 mixup (YAILOM).
22293
222942007-05-07 Andreas Schwab <schwab@suse.de>
22295
22296 * keymap.c (Flookup_key): Fix typo in last change.
22297
222982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22299
22300 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22301 mapping for unibyte strings.
22302
223032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22304
22305 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22306 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22307
223082007-04-29 Richard Stallman <rms@gnu.org>
22309
22310 * insdel.c (replace_range): For undo, record insertion first.
22311
223122007-04-29 Andreas Schwab <schwab@suse.de>
22313
22314 * lisp.h (VECSIZE): Use OFFSETOF.
22315
223162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22317
22318 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22319 disabled lines.
22320
223212007-04-28 Richard Stallman <rms@gnu.org>
22322
22323 * lread.c (read_escape): In a string, \s is always space.
22324
223252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22326
22327 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22328
22329 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22330 submenu for menu bar items.
22331
22332See ChangeLog.10 for earlier changes.
22333
22334;; Local Variables:
22335;; coding: utf-8
22336;; add-log-time-zone-rule: t
aac0c6e3
MR
22337;; End:
22338
e3eb1dae 22339 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22340
22341 This file is part of GNU Emacs.
22342
22343 GNU Emacs is free software: you can redistribute it and/or modify
22344 it under the terms of the GNU General Public License as published by
22345 the Free Software Foundation, either version 3 of the License, or
22346 (at your option) any later version.
22347
22348 GNU Emacs is distributed in the hope that it will be useful,
22349 but WITHOUT ANY WARRANTY; without even the implied warranty of
22350 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22351 GNU General Public License for more details.
22352
22353 You should have received a copy of the GNU General Public License
22354 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22355
22356;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40