merge emacs-23
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a73d395b
EZ
12011-02-13 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
4 window is changed inside calls to do_pending_window_change.
5 (Bug#8020)
6
cb191a14
EZ
72011-02-12 Eli Zaretskii <eliz@gnu.org>
8
9 * terminal.c (create_terminal): Use default-keyboard-coding-system
10 and default-terminal-coding-system to initialize coding systems of
11 the new terminal. (Bug#7840)
12
bae1fa42
MR
132011-02-09 Martin Rudalics <rudalics@gmx.at>
14
15 * window.c (select_window): Check inhibit_point_swap argument when
16 deciding whether to return immediately.
17
9aabf64c
JD
182011-02-08 Jan Djärv <jan.h.d@swipnet.se>
19
20 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
21 zero (Bug#7348).
22
95838641
GM
232011-02-03 Glenn Morris <rgm@gnu.org>
24
25 * xfaces.c (Finternal_set_lisp_face_attribute):
26 Try to clarify some error messages. (Bug#2659)
27
aca092ac
SM
282011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
29
30 * editfns.c (save_restriction_restore): Don't forget to invalidate the
31 current_column cache (bug#7946).
32
ea2460a0
KH
332011-02-02 Kenichi Handa <handa@m17n.org>
34
35 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
36
37 * xftfont.c (xftfont_open): Likewise.
38
29feb0e9
AS
392011-02-01 Andreas Schwab <schwab@linux-m68k.org>
40
41 * window.c (Fselect_window): Add missing return value.
42
df61c790
AS
432011-01-29 Andreas Schwab <schwab@linux-m68k.org>
44
45 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
46 of int. All uses adjusted.
47 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
48 (svg_load_image): Remove casts.
49
7f9c5df9
CY
502011-01-29 Chong Yidong <cyd@stupidchicken.com>
51
52 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
53 function definitions for compiling with libpng-1.5.
54 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
55 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
56 (Bug#7908).
57
46b3f2be
CY
582011-01-28 Chong Yidong <cyd@stupidchicken.com>
59
60 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
61
37d1c45d
CY
622011-01-27 Chong Yidong <cyd@stupidchicken.com>
63
64 * font.c (font_parse_fcname): Require GTK-style font sizes to
65 occur at the end of the font string (Bug#7853).
66
ea08011c
CY
672011-01-26 Chong Yidong <cyd@stupidchicken.com>
68
69 * font.c (font_parse_fcname): Fix typo in string length.
70
f996bbcb
SM
712011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
72
73 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
74 the buffer's point-max (bug#7876).
75
19634648
CY
762011-01-23 Chong Yidong <cyd@stupidchicken.com>
77
78 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
79 Remove unused HAVE_SHM branch (Bug#6811).
80
6de1218f 812011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 82
6de1218f
PG
83 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
84
e6b84b30
MR
852011-01-22 Martin Rudalics <rudalics@gmx.at>
86
87 * window.c (select_window): New function.
88 (Fselect_window): Call it.
89 (inhibit_point_swap): Variable deleted.
90 (Fset_window_configuration): Call select_window directly.
91
0514b4be
SM
922011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
93
94 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
95
e7f50e8f
EZ
962011-01-16 Eli Zaretskii <eliz@gnu.org>
97
98 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
99
6dc1d2d3
MR
1002011-01-15 Martin Rudalics <rudalics@gmx.at>
101
102 * window.c (inhibit_point_swap): New variable.
103 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
104 point this time.
105 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
106 of setting selected_window to nil (Bug#7728).
107
70ba1ec8
CY
1082011-01-12 Chong Yidong <cyd@stupidchicken.com>
109
110 * config.in (TERMINFO): New definition.
111
112 * s/netbsd.h: Use it to choose between terminfo and termcap
113 (Bug#7642).
114
0ad25444
JD
1152011-01-03 Jan Djärv <jan.h.d@swipnet.se>
116
117 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
118
119 * nsfns.m (ns_set_name_iconic): Remove.
120 (ns_get_screen): Don't assign integer to f.
121 (ns_set_name_internal): New function (Bug#7517).
122 (Vicon_title_format): Extern declare.
123 (ns_set_name): Call ns_set_name_internal.
124 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
125 (x_implicitly_set_name): Ditto.
126 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
127 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
128 Always use buffer name for title and buffer filename only for
b762841f 129 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
0ad25444 130
fb724e55
EZ
1312011-01-03 Eli Zaretskii <eliz@gnu.org>
132
133 * image.c (png_jmpbuf): Remove definition.
134 (my_png_error, png_load): Don't use png_jmpbuf.
135
5be1c984
EZ
1362010-12-31 Eli Zaretskii <eliz@gnu.org>
137
138 * image.c <Qlibpng_version>: New variable.
139 (syms_of_image): Intern and staticpro it. Set its value to the
140 version of PNG library we were compiled with.
141 (my_png_error, png_load): Avoid GCC warnings about direct access
142 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
143 (png_jmpbuf): New macro.
144 (my_png_error, png_load): Use it instead of #ifdef'ing according
145 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 146
cf07311b
SM
1472010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
148
149 * .gdbinit (xgetptr): Fix the union+lsb case.
150 (xbacktrace): Fix the union case.
151
794b75c7
SM
1522010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
153
154 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
155 different from selected-window's.
156
2e4ab211
EZ
1572010-12-25 Eli Zaretskii <eliz@gnu.org>
158
71fe378d
EZ
159 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
160 equivalent of a menu item when the key sequence is given by the
161 `:keys' attribute. (Bug#7662)
162
2e4ab211
EZ
163 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
164 the basic faces are supported.
165
84595ff0
JD
1662010-12-24 Jan Djärv <jan.h.d@swipnet.se>
167
168 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
169
30d621a2
EZ
1702010-12-17 Eli Zaretskii <eliz@gnu.org>
171
172 * xdisp.c (Fformat_mode_line): Fix last change.
173
4bf3e46e
CY
1742010-12-16 Chong Yidong <cyd@stupidchicken.com>
175
176 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
177 faces (Bug#7587).
178
1b2a627f
EZ
1792010-12-13 Eli Zaretskii <eliz@gnu.org>
180
181 * fileio.c (Fexpand_file_name): One more doc fix.
182
15579471
EZ
1832010-12-12 Eli Zaretskii <eliz@gnu.org>
184
185 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
186
f0559026
EZ
1872010-12-11 Eli Zaretskii <eliz@gnu.org>
188
76feb864
EZ
189 * w32fns.c (Fx_show_tip): Call try_window with last argument
190 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
191 solved. Round up the tip height to an integral multiple of the
192 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
193 (Bug#7398)
194
f0559026
EZ
195 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
196 (face_before_or_after_it_pos, next_element_from_string)
197 (next_element_from_c_string, produce_stretch_glyph): Remove unused
198 calculations of maximum string length before calling
199 string_char_and_length and STRING_CHAR_AND_LENGTH.
200 (string_char_and_length): Update commentary: MAXLEN is no longer
201 needed.
202
0b9fc69a
JD
2032010-12-10 Jan Djärv <jan.h.d@swipnet.se>
204
205 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
206 as (Qsave_session arg).
207
208 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
209 (smc_die_CB): Make an event with arg Qt.
210 (Fhandle_save_session): If event has Qt as argument,
211 call Fkill_emacs (Bug#7552).
212
2b815743
JD
2132010-12-07 Jan Djärv <jan.h.d@swipnet.se>
214
215 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
216
d8b2a962
CY
2172010-12-06 Chong Yidong <cyd@stupidchicken.com>
218
219 * dispextern.h (struct it): New member overlay_strings_charpos.
220
221 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
222 charpos where we computed n_overlay_strings.
223 (next_overlay_string): Load overlay strings at recorded position,
224 which may not be the same as the iterator's charpos (Bug#7016).
225
a56d164e
JD
2262010-12-05 Jan Djärv <jan.h.d@swipnet.se>
227
228 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
229 with cursor color and draw a rectangle around the image (Bug#7412).
230
77f1ed6c
CY
2312010-12-05 Chong Yidong <cyd@stupidchicken.com>
232
233 * xdisp.c (try_scrolling): Avoid infloop if the first line is
234 obscured due to a vscroll (Bug#7537).
235
2a91a0b5
JD
2362010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
237
238 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
239
240 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
241 Use FRAME_TOOLBAR_HEIGHT.
242 (x_set_offset): Handle XNegative and YNegative in
243 f->size_hint_flags (Bug#7510).
244
b84ae584
KH
2452010-11-25 Kenichi Handa <handa@m17n.org>
246
247 * charset.c (emacs_mule_charset): Make it an array of charset ID;
248 i.e. integer.
249 (Fdefine_charset_internal): Adjusted for the above change.
250 (init_charset_once): Likewise.
251
252 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
253 duplicated extern.
254
255 * coding.c (emacs_mule_char): Adjust for the change of
256 emacs_mule_charset.
257
258 * lread.c (read_emacs_mule_char): Adjust for the change of
259 emacs_mule_charset.
260
b8e5cf1d
EZ
2612010-11-22 Eli Zaretskii <eliz@gnu.org>
262
263 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
264 of w32api >= 3.15. (Bug#6989) (Bug#7452)
265
96ad0af7
YM
2662010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
267
268 * alloc.c (mark_terminals): Ensure that the image cache is marked
269 even if the terminal object was marked earlier (Bug#6301).
270
35f1de62
CY
2712010-11-21 Chong Yidong <cyd@stupidchicken.com>
272
273 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
274
8d7f026f
JD
2752010-11-20 Jan Djärv <jan.h.d@swipnet.se>
276
277 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
278 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 279 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 280
37de8fd0
J
2812010-11-14 Jan Djärv <jan.h.d@swipnet.se>
282
283 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
284
285 * config.in (HAVE_G_TYPE_INIT): New symbol.
286
c7926fe2
EZ
2872010-11-12 Eli Zaretskii <eliz@gnu.org>
288
289 * lread.c (Fload): Mention `load-in-progress' and
290 `load-file-name'. (Bug#7346)
291
c0098065
EZ
2922010-11-09 Eli Zaretskii <eliz@gnu.org>
293
86520d8c
EZ
294 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
295 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
296 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
297 subprocesses. Use buffer_free only ifdef subprocesses.
298
299 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
300 the subprocesses version, not in the non-subprocesses one.
301
794a4b6d
EZ
302 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
303
c0098065
EZ
304 * xfns.c (x_real_positions): Fix declaration-after-statement
305 problem.
306
be3faa80
CY
3072010-11-05 Chong Yidong <cyd@stupidchicken.com>
308
309 * image.c (free_image): Don't garbage the frame here, since this
310 function can be called while redisplaying (Bug#7210).
311 (uncache_image): Garbage the frame here (Bug#6426).
312
055c91d4 3132010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
314
315 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
316 Windows.
317
055c91d4 3182010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
319
320 * process.c (Fmake_network_process): Don't call turn_on_atimers around
321 `connect' (Bug#5723).
322
055c91d4 3232010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
324
325 * process.c (Fmake_network_process): Call `select' for interrupted
326 `connect' rather than creating new socket (Bug#5173).
327
68ae6cda
KH
3282010-11-04 Kenichi Handa <handa@m17n.org>
329
330 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
331 Don't sheck SPEC if it is nil.
332 (font_list_entities): Call font_delete_unmatched if
333 Vface_ignored_fonts is non-nil.
334
db5cada2 3352010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 336
2511e8e0
CY
337 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
338 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
339
340 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
341 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
342 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
343 TRY_WINDOW_CHECK_MARGINS.
344
345 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
346 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 347
d75c9992
JD
3482010-11-04 Jan Djärv <jan.h.d@swipnet.se>
349
31887d45
JD
350 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
351 parent is the root window. Check this after traversing window tree.
352
d75c9992
JD
353 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
354
355 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
356
357 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
358 before traversing window tree (Bug#5721).
359
754996bc
GM
3602010-11-03 Glenn Morris <rgm@gnu.org>
361
362 * Makefile.in (CRT_DIR): New variable, set by configure.
363 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
364 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
365
3649d303
JD
3662010-11-01 Jan Djärv <jan.h.d@swipnet.se>
367
368 * process.c (kbd_is_on_hold): New variable.
369 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
370 New functions.
371 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
372 select on empty input mask.
373 (init_process): Initialize kbd_is_on_hold to 0.
374
375 * process.h (hold_keyboard_input, unhold_keyboard_input)
376 (kbd_on_hold_p): Declare.
377
378 * keyboard.c (input_available_signal): Declare.
379 (kbd_buffer_nr_stored): New function.
380 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
381 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
382 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
383 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
384 (tty_read_avail_input): If input is on hold, return.
385 Don't read more that free slots in kbd_buffer (Bug#6571).
386
46eadc7a
CY
3872010-10-31 Chong Yidong <cyd@stupidchicken.com>
388
389 * xterm.c (x_connection_closed): Print informative error message
390 when aborting on GTK. This requires using shut_down_emacs
391 directly instead of Fkill_emacs.
392
655441b2
MA
3932010-10-25 Michael Albinus <michael.albinus@gmx.de>
394
395 * dbusbind.c (Fdbus_call_method_asynchronously)
396 (Fdbus_register_signal, Fdbus_register_method): Check, whether
397 `dbus-registered-objects-table' is initialized.
398
23c261f5
CY
3992010-10-24 Chong Yidong <cyd@stupidchicken.com>
400
401 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
402
89baa1df
EZ
4032010-10-22 Eli Zaretskii <eliz@gnu.org>
404
405 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
406
407 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
408 Deprecate use as a boolean flag.
409
5419963b
KB
4102010-10-18 Ken Brown <kbrown@cornell.edu>
411
412 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
413
31daa5e1
KH
4142010-10-15 Kenichi Handa <handa@m17n.org>
415
416 Fix incorrect font metrics when the same font is opened with
417 different pixelsizes.
418
419 * xftfont.c: Include composite.h.
420 (xftfont_shape): New function.
421 (syms_of_xftfont): Set xftfont_driver.shape.
422
9fa82824
DP
4232010-10-13 Damyan Pepper <damyanp@gmail.com>
424
425 Fix handling of font properties on Windows (bug#6303).
426 * font.c (font_filter_properties): New function, refactored from
427 ftfont_filter_properties.
428 * font.h (font_filter_properties): Declare.
429 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
430 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
431 (w32font_filter_properties): New function.
432 (w32font_driver): Add w32font_filter_properties.
433
51e4f4a8
JB
4342010-10-12 Juanma Barranquero <lekktu@gmail.com>
435
c0943d3d 436 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
437 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
438
a2e35ef5
JD
4392010-10-10 Jan Djärv <jan.h.d@swipnet.se>
440
441 * nsterm.m (Qleft): Declare.
442 (ns_right_alternate_modifier): New variable
443 (NSRightAlternateKeyMask): New define.
444 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
445 ns_right_alternate_modifier isn't Qleft.
446 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
447 as emacs modifier for NSRightAlternateKeyMask.
448 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
449
2e828c79
MA
4502010-10-08 Michael Albinus <michael.albinus@gmx.de>
451
452 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
453 (xd_pending_messages): Catch xd_get_dispatch_status calls.
454
93d50df8
KH
4552010-10-08 Kenichi Handa <handa@m17n.org>
456
2b7c9342 457 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 458
a79b0f28
MA
4592010-10-03 Michael Albinus <michael.albinus@gmx.de>
460
461 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
462 (Fdbus_init_bus): ... here. (Bug#7113)
463
7b2bf907
GM
4642010-10-03 Glenn Morris <rgm@gnu.org>
465
466 * buffer.c (before-change-functions, after-change-functions):
467 Three-year overdue doc fix following 2007-08-13 change.
468
1911a33b
KH
4692010-10-02 Kenichi Handa <handa@m17n.org>
470
471 * coding.c (coding_inherit_eol_type): If parent doesn't specify
472 eol-format, inherit from the system's default.
473 (complement_process_encoding_system): Make a new coding system
474 inherit the original eol-format.
475
fcaf8878
KH
4762010-09-30 Kenichi Handa <handa@m17n.org>
477
478 * coding.c (complement_process_encoding_system): New function.
479
480 * coding.h (complement_process_encoding_system): Extern it.
481
482 * callproc.c (Fcall_process): Complement the coding system for
483 encoding arguments.
484 (Fcall_process_region): Complement the coding system for encoding
485 the input to the process.
486
487 * process.c (Fstart_process): Complement the coding system for
488 encoding arguments.
489 (send_process): Complement the coding system for encoding what
490 sent to the process.
491
18acb5ad
KH
4922010-09-29 Kenichi Handa <handa@m17n.org>
493
494 * xfont.c (xfont_open): Fix setting of font->average_width from
495 :avgwidth property (Bug#7123).
496
dec83468
MA
4972010-09-28 Michael Albinus <michael.albinus@gmx.de>
498
499 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
500 is more portable.
501
502 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
b762841f 503 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
504 has not defined SIGIO.
505
e0720500
MA
5062010-09-27 Michael Albinus <michael.albinus@gmx.de>
507
11a5af7c 508 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
509 (Bug#7113)
510
42d3022b
J
5112010-09-26 Jan Djärv <jan.h.d@swipnet.se>
512
513 * xgselect.c (xg_select): Clear file descriptors not set from
514 rfds and wfds.
515
fbb3da77
SM
5162010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
517
518 * syntax.c (back_comment): Detect the case where a 1-char comment
519 starter is also the 2nd char of a 2-char comment ender.
520
2b5b82db
J
5212010-09-17 Jan Djärv <jan.h.d@swipnet.se>
522
523 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
524
5f61a25c
J
5252010-09-12 Jan Djärv <jan.h.d@swipnet.se>
526
527 * xterm.c (get_current_vm_state): New function.
528 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
529 want_fullscreen so set_wm_state calls are few (Bug#7013).
530 (x_handle_net_wm_state): Move code to get_current_vm_state and
531 call that function.
532
65c92e31 5332010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
534
535 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
536
a552b35a
KH
5372010-09-08 Kenichi Handa <handa@m17n.org>
538
539 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
540 we may use designation or locking-shift.
541
396475b7
KH
5422010-09-07 Kenichi Handa <handa@m17n.org>
543
544 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
545 sequence when the source is multibyte.
546
d419e1d9
KH
5472010-08-31 Kenichi Handa <handa@m17n.org>
548
549 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
550 characters.
551
552 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
553 (produce_glyphs): Don't set it->char_to_display here.
554 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
555 (produce_special_glyphs): Set temp_it.char_to_display before
556 calling produce_glyphs.
557
558 * xdisp.c (get_next_display_element): Set it->char_to_display
559 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
560 characters.
561 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
562 calling PRODUCE_GLYPHS.
563 (append_space_for_newline): Save and store it->char_to_display.
564 Set it->char_to_display before calling PRODUCE_GLYPHS.
565 (extend_face_to_end_of_line): Set it->char_to_display before
566 calling PRODUCE_GLYPHS.
567 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
568 character to its byte value.
569 (get_char_glyph_code): New function.
570 (produce_stretch_glyph): Set it2.char_to_display too before
571 calling x_produce_glyphs.
572 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
573 non-ASCII characters. Don't set it->char_to_display here.
574 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 575 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 576
769ae9e1
KH
5772010-08-29 Kenichi Handa <handa@m17n.org>
578
579 * term.c (encode_terminal_code): Encode byte chars to the
580 correspnding bytes.
581
b72e0717
AS
5822010-08-17 Andreas Schwab <schwab@linux-m68k.org>
583
584 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
585 instead of SAFE_ALLOCA.
586
3a7a9129
CY
5872010-08-17 Chong Yidong <cyd@stupidchicken.com>
588
589 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
590 (Bug#6214).
591
983b8302
J
5922010-08-14 Jan Djärv <jan.h.d@swipnet.se>
593
594 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
595
7d1b9df3
J
5962010-08-13 Jan Djärv <jan.h.d@swipnet.se>
597
598 * doc.c (Fsnarf_documentation): Initialize skip_file before
599 build-files test.
600
2294b255
PG
6012010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
602
65b3d997
A
603 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
604 New definitions.
2294b255
PG
605 (HAVE_TERMIO): Remove.
606
7a84eee5
KH
6072010-08-06 Kenichi Handa <handa@m17n.org>
608
609 * charset.c: Include <stdlib.h>
610 (struct charset_sort_data): New struct.
611 (charset_compare): New function.
c0943d3d 612 (Fsort_charsets): New function.
7a84eee5
KH
613 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
614
615 * coding.c (decode_coding_iso_2022): Fix checking of dimension
616 number in CTEXT extended segment.
617
f5f6c0e0
JB
6182010-08-01 Juanma Barranquero <lekktu@gmail.com>
619
620 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
621 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
622
b756c005
JB
6232010-07-30 Juanma Barranquero <lekktu@gmail.com>
624
625 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
626 (Fhash_table_size): Fix typos in docstrings.
627 (Fmake_hash_table): Doc fix.
628
b4f588fa
JB
6292010-07-28 Juanma Barranquero <lekktu@gmail.com>
630
631 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
632 Doc fix (bug#5625).
633
9f8c08a7
KB
6342010-07-27 Ken Brown <kbrown@cornell.edu>
635
636 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
637 the MSDOS definition.
638
a2a0d36b
CS
6392010-07-25 Christoph Scholtes <cschol2112@gmail.com>
640
641 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
642
a77cfeaf
CS
6432010-07-22 Christoph Scholtes <cschol2112@gmail.com>
644
645 * window.c (Fwindow_height): Doc fix (bug#6518).
646
14fb5704
JB
6472010-07-21 Juanma Barranquero <lekktu@gmail.com>
648
649 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
650
499322ce
J
6512010-07-17 Jan Djärv <jan.h.d@swipnet.se>
652
653 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
654 is related to the menu bar (Bug#6499).
655
b78f9767
J
6562010-07-14 Jan Djärv <jan.h.d@swipnet.se>
657
658 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
659
660 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
661
662 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
663 i.e. don't put back ButtonRelease (Bug#6608).
664
665 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
666 instead of Window. Call xg_event_is_for_menubar when
667 USE_GTK (Bug#6499).
668
669 * gtkutil.h (xg_event_is_for_menubar): Declare.
670
671 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
672
1f60c16a
EZ
6732010-07-14 Eli Zaretskii <eliz@gnu.org>
674
675 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
676 when it's the same as the old foreground. (Bug#6609)
677
7c33a057
CY
6782010-07-10 Chong Yidong <cyd@stupidchicken.com>
679
680 * xfaces.c (realize_face): Garbage the frame if a face is removed
681 (Bug#6593).
682
9d70a3fc
AS
6832010-07-05 Andreas Schwab <schwab@linux-m68k.org>
684
685 * keyboard.c: Remove duplicate <setjmp.h>.
686 (read_key_sequence): Remove volatile qualifiers.
687
5a874e95
YM
6882010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
689
690 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
691 (struct glyph_row): New members left_fringe_offset and
692 right_fringe_offset.
693
694 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
695 specially.
696 * w32term.c (w32_draw_fringe_bitmap): Likewise.
697 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
698
699 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
b762841f 700 Take account of bitmap offset.
5a874e95
YM
701 (draw_window_fringes): Take account of window vscroll.
702 (update_window_fringes): Likewise. Extend top-aligned top indicator
703 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
704 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
705 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
706
0682186e
JB
7072010-07-04 Juanma Barranquero <lekktu@gmail.com>
708
709 * w32fns.c (Qtooltip): Declare.
710 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
711
ad3e6f44
J
7122010-07-03 Jan Djärv <jan.h.d@swipnet.se>
713
714 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
715 grab on just Press (Bug#6499).
716
54ee7410
CY
7172010-07-02 Chong Yidong <cyd@stupidchicken.com>
718
719 * frame.c (Qtooltip): New var.
720 (delete_frame): Use it. Fix faulty if statement. Don't update
721 mode line for tooltip frames. Suggested by Martin Rudalics.
722
723 * xfns.c (x_create_tip_frame):
724 * w32fns.c (x_create_tip_frame): Use it.
725
3d8416fc
NA
7262010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
727
728 * xftfont.c (xftfont_open): Check font width one by one also when
729 spacing is dual.
730
731 * ftfont.c (ftfont_open): Ditto.
732
b1feb9b4
AS
7332010-06-26 Andreas Schwab <schwab@linux-m68k.org>
734
735 * alloc.c (Fmake_byte_code): Don't access undefined argument
736 (Bug#6517).
737
c7dd9743
CY
7382010-06-25 Chong Yidong <cyd@stupidchicken.com>
739
740 * xdisp.c (next_element_from_image): Ensure that after-strings are
741 read the next time we hit handle_stop (Bug#1336).
742
5721b4ed
AS
7432010-06-23 Andreas Schwab <schwab@linux-m68k.org>
744
745 * lread.c (read1): Signal error if #s is not followed by paren.
746
277c5f18
CY
7472010-06-19 Chong Yidong <cyd@stupidchicken.com>
748
52ab9bb2
CY
749 * image.c (free_image): Mark frame as garbaged (Bug#6426).
750
277c5f18
CY
751 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
752
6fda6a0c
GM
7532010-06-15 Glenn Morris <rgm@gnu.org>
754
755 * editfns.c (Fbyte_to_string): Pacify compiler.
756
e454a4a3
SM
7572010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
758
759 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
760 Check `object's type before accessing its guts.
761
657d4c0b
AS
7622010-06-08 Andreas Schwab <schwab@linux-m68k.org>
763
764 * minibuf.c (Fall_completions): Add more checks.
765
9b27fd9f
JB
7662010-06-08 Juanma Barranquero <lekktu@gmail.com>
767
768 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
769
0eb7675e
AS
7702010-06-03 Andreas Schwab <schwab@linux-m68k.org>
771
772 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 773 address. (Bug#6346)
0eb7675e 774
78edd3b7
JB
7752010-06-03 Juanma Barranquero <lekktu@gmail.com>
776
777 * ccl.c (Fccl_program_p): Fix typo in docstring.
778
1ab8293c
SM
7792010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
780
781 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
782 of bug#6305).
783
5ca3929b
CY
7842010-05-27 Chong Yidong <cyd@stupidchicken.com>
785
786 * xdisp.c (redisplay_window): After redisplay, check if point is
787 still valid before setting it (Bug#6177).
788
f5b416d2 7892010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
790
791 * s/netbsd.h: If terminfo is found, use it in preference to
792 termcap. (Bug#6190) [Backport from trunk]
793
aeb77d46
CY
7942010-05-20 Kevin Ryde <user42@zip.com.au>
795
796 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
797 (Voverriding_terminal_local_map, Vsystem_key_alist)
798 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
799
c3bb441d
SM
8002010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
801
802 * editfns.c (Fbyte_to_string): New function.
803
754790b6
CY
8042010-05-18 Chong Yidong <cyd@stupidchicken.com>
805
806 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
807 prevent stack overflow if number of arguments is too large
808 (Bug#6214).
809
c8670ded
EZ
8102010-05-11 Eli Zaretskii <eliz@gnu.org>
811
812 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
813
814 * w32fns.c: Include w32.h.
815 (Fw32_shell_execute): Decode the error message before passing it
816 to `error'. (Bug#6126)
817
3ffd4615 8182010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
819
820 * ftfont.c: Fix incorrect parentheses of #if condition for
821 definining M17N_FLT_USE_NEW_FEATURE.
822
61a808e8
CY
8232010-05-07 Chong Yidong <cyd@stupidchicken.com>
824
825 * Version 23.2 released.
826
5dcde606
AS
8272010-04-30 Andreas Schwab <schwab@linux-m68k.org>
828
829 * composite.c (autocmp_chars): Save point as marker before calling
830 auto-composition-function (Bug#5984).
831
832 * lisp.h (restore_point_unwind): Add prototype.
833
834 * fileio.c (restore_point_unwind): Remove static attribute.
835
c4170e32
KH
8362010-04-23 Kenichi Handa <handa@m17n.org>
837
838 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
839 new feature of libotf and m17n-flt.
65b3d997
A
840 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
841 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
842 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
843 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
844 that OUT is NULL. Use OTF_drive_gsub_with_log and
845 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
846 OTF_drive_gpos.
847 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
848 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
849 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 850
e42cd1a7
JB
8512010-04-19 Juanma Barranquero <lekktu@gmail.com>
852
853 * dired.c (Ffile_attributes): Fix typo in docstring.
854
79353a53
AR
8552010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
856
857 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
858 NSInteger (Bug#5811).
859
658b9b93
YM
8602010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
861
862 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
863 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
864
16009a0e
YM
8652010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
866
867 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
868
f016f225
JD
8692010-04-07 Jan Djärv <jan.h.d@swipnet.se>
870
871 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
872 FRAME_LINE_TO_PIXEL_Y.
873
874 * xterm.c (x_set_window_size_1): Don't add border_width/height to
875 pixelwidth/height.
876
84257d93
CY
8772010-04-05 Chong Yidong <cyd@stupidchicken.com>
878
879 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
880 terminal frames (Bug#5837).
881
95b1abcf
CY
8822010-03-31 Chong Yidong <cyd@stupidchicken.com>
883
884 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
885 * nsterm.h: Fix prototype.
886
4a217bed
EZ
8872010-03-31 Eli Zaretskii <eliz@gnu.org>
888
889 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
890 in this function. (Bug#5703)
891
4f103e04
CY
8922010-03-31 Chong Yidong <cyd@stupidchicken.com>
893
894 * nsterm.h: Fix last change.
895
a6d676d9
CY
8962010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
897
898 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
899
67fee863
JD
9002010-03-30 Jan Djärv <jan.h.d@swipnet.se>
901
902 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
903 invisible (Bug#5766).
904
9ae6e189
CY
9052010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
906
907 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
908 HAVE_NS conditionals.
194d44e7 909 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
910
911 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
912 filename for the title.
913 (ns_set_doc_edited): Do nothing if the selected window is a
914 minibuffer window.
915
916 * nsterm.h: Add prototypes for ns_set_name_as_filename and
917 ns_set_doc_edited.
918
919 * nsterm.m: Remove unneeded prototype.
920
25c72475
GM
9212010-03-28 Glenn Morris <rgm@gnu.org>
922
923 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
924 in the DOC file. (Bug#5336)
925
f79a01db
CY
9262010-03-24 Chong Yidong <cyd@stupidchicken.com>
927
928 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
929
93318cbd
JD
9302010-03-20 Jan Djärv <jan.h.d@swipnet.se>
931
932 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
933
934 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
935
936 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
937
ad13a3ee
YM
9382010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
939
940 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
941 XLoadQueryFont.
942
fbdc1721
KH
9432010-03-16 Kenichi Handa <handa@m17n.org>
944
945 * coding.c (decode_coding_ccl): Fix previous change for the
946 multibyte case.
fb608df3
KH
947 (encode_coding_ccl): Don't setup ccl program here. Fix for the
948 case that the output buffer is fullfilled.
949 (encode_coding): Setup ccl program here.
fbdc1721 950
35cd7cd6
CY
9512010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
952
953 * editfns.c (Fformat): Account for string precision when computing
954 field width (Bug#5710).
955
618db430
SM
9562010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
957
c0335e02
SM
958 Make it possible to C-g in a tight bytecode loop again (bug#5680).
959 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
960 (QUIT): Use it to consolidate code and remove redundancy.
961 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
962
254c06a8
SM
963 * regex.c (regex_compile): Setup gl_state as well.
964
618db430
SM
965 * syntax.c (skip_chars): Setup gl_state (bug#3823).
966 (in_classes): Use CONSP before XCAR/XCDR.
967
233f0c9f
CY
9682010-03-03 Chong Yidong <cyd@stupidchicken.com>
969
970 * keymap.c (Fwhere_is_internal): Use Fequal to compare
971 definitions, so that keyboard macros are correctly handled
972 (Bug#5481).
973
75f80e63
EZ
9742010-03-02 Eli Zaretskii <eliz@gnu.org>
975
976 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
977 text that could be relocated inside the call to emacs_mule_char.
978 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
979 (CODING_DECODE_CHAR): Add a comment describing its purpose.
980
dcfb9bc4
KH
9812010-03-02 Kenichi Handa <handa@m17n.org>
982
fc9a17bc
KH
983 * character.c (parse_str_as_multibyte): Fix handling of the
984 multibyte form of raw-bytes.
985 (str_as_multibyte): Likewise.
986
dcfb9bc4
KH
987 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
988 form of raw-bytes.
989
412c01b6
CY
9902010-02-28 Chong Yidong <cyd@stupidchicken.com>
991
992 * charset.c (load_charset_map_from_file)
993 (load_charset_map_from_vector): Zero out allocated
994 charset_map_entries before using them.
995
df7e1ea0
AS
9962010-02-27 Andreas Schwab <schwab@linux-m68k.org>
997
998 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
999
fe69a722
CY
10002010-02-27 Chong Yidong <cyd@stupidchicken.com>
1001
4ed28cf4
CY
1002 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1003 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1004
7379cfce
KH
10052010-02-26 Kenichi Handa <handa@m17n.org>
1006
f88cc4d6
KH
1007 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1008
7379cfce
KH
1009 * xdisp.c (reseat_to_string): Fix previous change.
1010
cf2fdcfb
CY
10112010-02-26 David Reitter <david.reitter@gmail.com>
1012
1013 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1014 Lisp_Object (Bug#4736).
1015
cc6c7c75
KH
10162010-02-25 Kenichi Handa <handa@m17n.org>
1017
1018 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1019
32e737d7
JD
10202010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1021
1022 * xterm.c (XTflash): Move declarations before statements.
1023
1024 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1025 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1026 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1027 (xg_create_tool_bar): Remove unused variables.
1028 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 1029 (xg_create_frame_widgets): Remove variable grav.
32e737d7 1030
676cae9f
CY
10312010-02-21 Chong Yidong <cyd@stupidchicken.com>
1032
1033 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1034
886cc2b8
SM
10352010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1036
1037 * term.c (fatal): Add a final \n if needed (bug#5596).
1038
ddb2d8e2
CY
10392010-02-18 Chong Yidong <cyd@stupidchicken.com>
1040
1041 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1042
2a4f8d3d
GM
10432010-02-18 Glenn Morris <rgm@gnu.org>
1044
1045 * callint.c (Finteractive): Doc fix.
1046
ebaf11b6
KH
10472010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1048
886cc2b8
SM
1049 * coding.c (record_conversion_result):
1050 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1051 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1052 memory allocation error.
1053
d0396581
KH
10542010-02-17 Kenichi Handa <handa@m17n.org>
1055
886cc2b8
SM
1056 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1057 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1058 (decode_coding): Setup ccl program here. Keep looping when the
1059 decoder stopped because the output buffer is
1060 fullfilled (bug#5534).
1061
1062 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1063
98599f74
JD
10642010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1065
471e4f04 1066 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1067 bug #5571.
886cc2b8 1068 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1069 overdrawn.
98599f74 1070
182659ae
JD
10712010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1072
1073 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1074 doing_interact here.
1075 (ice_connection_closed): New function.
1076 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1077 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1078 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1079 returns I/O error.
1080 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1081 bug #5512.
1082
9be32c4e 10832010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1084
1085 * nsfont.m (nsfont_open): The system's value for the font descent
1086 is negative, so round it down to avoid clipping.
1087
a2f3eb19
CY
10882010-02-06 Chong Yidong <cyd@stupidchicken.com>
1089
1090 * charset.c (load_charset_map_from_file)
1091 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1092 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1093
3088147c
CY
10942010-02-05 Chong Yidong <cyd@stupidchicken.com>
1095
1096 * charset.c (load_charset_map_from_file): Allocate large
1097 charset_map_entries structure on the heap rather than the stack.
1098 (Bug#5526).
1099
b57d9029
KH
11002010-01-31 Kenichi Handa <handa@m17n.org>
1101
1102 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1103 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1104
c67d885b
CY
11052010-01-31 Chong Yidong <cyd@stupidchicken.com>
1106
1107 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1108 <deactivated@gmail.com> (Bug#3605).
1109
8fab2362
CY
11102010-01-31 David De La Harpe Golden <david@harpegolden.net>
1111
1112 * fileio.c (Frename_file): Correctly rename symlinks to
1113 directories (Bug#5496).
1114
cb2a62f2
CY
11152010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1116
1117 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1118
944c7a26
AS
11192010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1120
1121 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1122
c024ac08
CY
11232010-01-29 Chong Yidong <cyd@stupidchicken.com>
1124
1125 * frame.c (DEFAULT_ROWS): Change default to 35.
1126
1127 * xfns.c (x_default_font_parameter): Change default XFT font to
1128 monospace-10 (Bug#3643).
1129
af93af83
EZ
11302010-01-29 Eli Zaretskii <eliz@gnu.org>
1131
1132 * w32inevt.c (key_event): Remove unnecessary comparison of
1133 event->uChar.AsciiChar with 128.
1134
ca0eb708
CY
11352010-01-28 Chong Yidong <cyd@stupidchicken.com>
1136
b242dbfc
CY
1137 * fileio.c (Frename_file): Fix last change (Bug#5487).
1138
ca0eb708
CY
1139 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1140
1141 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1142
45d45af5
JD
11432010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1144
1145 * xfns.c (Fx_create_frame): Remove window size matching code from
1146 2010-01-15.
a73f9c9d 1147 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1148
7e233730
JR
11492010-01-27 Jason Rumney <jasonr@gnu.org>
1150
1151 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1152 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1153
86e893e3
KH
11542010-01-27 Kenichi Handa <handa@m17n.org>
1155
1156 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1157 pattern string (Bug#4209).
86e893e3 1158
8719abec
CY
11592010-01-27 David De La Harpe Golden <david@harpegolden.net>
1160
1161 * fileio.c (Frename_file): Call copy-directory and
1162 delete-directory for directories, in order to handle cross-device
1163 renaming (Bug#3353).
1164
844794c8
JD
11652010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1166
aa3e13b5 1167 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1168 sizes 24 and 10. Bug #3643.
844794c8 1169
bd4b5750
SM
11702010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1171
8dc1adf6 1172 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1173 * keymap.c (shadow_lookup): Add `remap' arg.
1174 (describe_map, describe_vector): Update calls to shadow_lookup.
1175 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1176 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1177 perform remapping during shadow_lookup check of remapped_sequences.
1178
285d07e2
CY
11792010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1180
1181 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1182 png_check_sig, which has been removed in libpng 1.4.
1183
c6d09b8d
CY
11842010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1185
1186 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1187 lacks this header file).
1188
3d782998
YM
11892010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1190
1191 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1192 as in Emacs 22.
1193
2aff7c53
YM
11942010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1195
1196 * lisp.h (make_pure_string): String pointer arg now points to const.
1197
1198 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1199 args now point to const.
1200
74327f7a
EZ
12012010-01-22 Eli Zaretskii <eliz@gnu.org>
1202
1203 * lread.c (Fload): Don't treat files without .elc extension as
1204 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1205 them. (bug#5303)
1206
4d1e6632
KH
12072010-01-20 Kenichi Handa <handa@m17n.org>
1208
1209 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1210 treat the source as actual byte sequence.
1211
1fdede8f
AM
12122010-01-19 Alan Mackenzie <acm@muc.de>
1213
1214 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1215 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1216 `signal_after_change_p' to `coherent_change_p', and make the
1217 invocation of `modify_region' conditional on it.
1218
67477f30
JD
12192010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1220
1221 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1222 for debug purpose.
1223 (syms_of_xsettings): Declare xft-settings.
1224
244b023e
CY
12252010-01-18 Chong Yidong <cyd@stupidchicken.com>
1226
1227 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1228
617364fe
CY
12292010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1230
1231 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1232
4fe22cdf
CY
12332010-01-16 Chong Yidong <cyd@stupidchicken.com>
1234
1235 * emacs.c (standard_args): Adjust arg priorities to reflect how
1236 they are processed in startup.el.
1237
e118d2be
AS
12382010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1239
1240 * Makefile.in (lisp, shortlisp): Update.
1241
523ae620
SM
12422010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1243
1244 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1245 code, link the new kboard into all_kboard before running Lisp code,
1246 and protect the new terminal with GCPRO (Bug#5365).
1247 (x_term_init): Remove unused var `atom'.
1248 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1249
f0d13888
JD
12502010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1251
1252 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1253 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1254 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1255 this. Bug #3643.
f0d13888 1256
cc320f07
KH
12572010-01-15 Kenichi Handa <handa@m17n.org>
1258
1259 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1260
7ffdf101
CY
12612010-01-15 Chong Yidong <cyd@stupidchicken.com>
1262
1263 * nsterm.m (Qnone): Define.
1264
1265 * nsfns.m (Qnone): Move definition to nsterm.m.
1266
d12bd917
KH
12672010-01-14 Kenichi Handa <handa@m17n.org>
1268
1269 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1270 systems.
1271
d9a7c140
KH
12722010-01-14 Kenichi Handa <handa@m17n.org>
1273
1274 Make auto-composition work on all buffers even if they are
1275 fundamental mode.
1276
1277 * composite.c (Vauto_composition_mode): New variable.
1278 (composition_compute_stop_pos): Check Vauto_composition_mode
1279 instead of Vauto_composition_function.
1280 (composition_adjust_point, Ffind_composition_internal): Likewise.
1281 (syms_of_composite): Declare Lisp variable
1282 "auto-composition-mode" here.
1283
63286bb2
CY
12842010-01-13 Chong Yidong <cyd@stupidchicken.com>
1285
1286 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1287 during call to vendor-specific-keysyms (Bug#5365).
1288
c2623ee7
YM
12892010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1290
1291 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1292 Call SIGNAL_THREAD_CHECK (Bug#5333).
1293
1294 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1295 Call SIGNAL_THREAD_CHECK.
1296
0b5397c2
SM
12972010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 Try to fix bug#5314. This is probably not the final word, tho.
1300 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1301 recent-auto-save-p as a side-effect.
1302 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1303 * buffer.c (Fkill_buffer, reset_buffer):
1304 * editfns.c (Fsubst_char_in_region):
1305 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1306 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1307
dc954cb2
KH
13082010-01-13 Kenichi Handa <handa@m17n.org>
1309
1310 Display buffer name, etc. in mode line by composing correctly.
1311
1312 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1313 STRING is not nil.
0b5397c2 1314 (display_mode_element): Adjust for the change of
dc954cb2
KH
1315 decode_mode_spec and display_line.
1316 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1317 (display_string): Handle the case that STRING is non-null and
1318 LISP_STRING is not nil.
1319
0b5397c2
SM
1320 * xterm.c (x_draw_composite_glyph_string_foreground):
1321 Pay attention to s->face->overstrike.
dc954cb2
KH
1322
1323 * composite.c (composition_reseat_it): Don't check PT if STRING is
1324 non nil.
1325
4a00eaca
YM
13262010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1327
1328 * keyboard.c (read_char): Don't apply previous change when current
1329 buffer is unchanged by command execution.
1330
60abb287
JD
13312010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1332
1333 * keyboard.c (read_char): Return after executing from special map.
1334
893db5bc
GM
13352010-01-12 Glenn Morris <rgm@gnu.org>
1336
1337 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1338 bug-gnu-emacs rather than emacs-pretest-bug.
1339
4d03ece0
CY
13402010-01-11 Chong Yidong <cyd@stupidchicken.com>
1341
1342 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1343 initializing the Lisp variables that depend on them.
1344
1df47e38
YM
13452010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1346
1347 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1348 Clear areas that will not be updated after change of menu bar lines.
1349 Clear the menu bar window's current matrix when the window gets empty.
1350
2f1c6384
CY
13512010-01-09 Chong Yidong <cyd@stupidchicken.com>
1352
e398c61c
CY
1353 * intervals.h, textprop.c (extend_property_ranges): Return value
1354 and args changed. Discard properties that begin at or after the
1355 new end (Bug#5306).
1356
1357 * editfns.c (Fformat): Caller changed.
1358
e5a29a10
CY
1359 * nsterm.m (ns_set_default_prefs): Delete function.
1360 (syms_of_nsterm): Initialize ns_command_modifier,
1361 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1362 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1363
2f1c6384
CY
1364 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1365 position (Bug#4040).
1366
d427a9fa
EZ
13672010-01-09 Eli Zaretskii <eliz@gnu.org>
1368
1369 * editfns.c (Ffloat_time): Doc fix.
1370
21b9df2f
JD
13712010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1372
1373 * xfns.c (Fx_create_frame): Don't create frame larger than display
1374 by default bug#3643.
1375
4b00d3b1
YM
13762010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1377
1378 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1379 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1380 windows above internal border.
1381
1382 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1383 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1384 windows above internal border.
1385
1386 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1387 tool bar windows specially.
1388
1389 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1390
1391 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1392 specially.
1393 (XTflash): Take account of menu bar height.
1394
1395 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1396 specially.
1397
5075d853
JD
13982010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1399
ac146f82 1400 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1401 also be true before we can return early (bug #5339).
1402
474217c8
CY
14032010-01-06 David Reitter <david.reitter@gmail.com>
1404
1405 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1406 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1407 (Bug#3233).
1408
c0e6d47d
JD
14092010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1410
d0cf45b7
JD
1411 * font.c (font_open_entity): Enable chache and call cached_font_ok
1412 for the driver if defined.
1413 (QCuser_spec): New symbol.
1414 (font_spec_from_name): Save name as user-spec.
1415 (font_load_for_lface): Keep user-spec instead of name.
1416 (font_open_by_name): Save name as user-spec.
1417 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1418 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1419
1420 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1421 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1422 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1423
1424 * font.h (struct font_driver): Add cached_font_ok.
1425
c0e6d47d
JD
1426 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1427
7c583cd8
JD
14282010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1429
1430 * xterm.c (x_new_font): Move code for setting rows/cols before
1431 resizing ...
ac146f82 1432 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1433
1434 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1435 (xg_frame_resized, xg_frame_set_char_size):
1436 Call xg_clear_under_internal_border.
7c583cd8 1437 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1438
03f77f0a
CY
14392010-01-05 Chong Yidong <cyd@stupidchicken.com>
1440
1441 * keyboard.c (read_key_sequence): Catch keyboard switch after
1442 making a new tty frame (Bug#5095).
1443
2a1ef5be
KH
14442010-01-05 Kenichi Handa <handa@m17n.org>
1445
1446 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1447
e3eb1dae
SM
14482010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1449
1450 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1451 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1452 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1453
777013f2
MA
14542010-01-03 Michael Albinus <michael.albinus@gmx.de>
1455
1456 * dbusbind.c (xd_add_watch): Improve debug message.
1457 (xd_remove_watch): Improve debug message. If DATA is the session
1458 bus, unset D-Bus session environment.
1459 (Fdbus_init_bus): Pass the bus as argument to
1460 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1461
8932b1c2
CY
14622010-01-01 Chong Yidong <cyd@stupidchicken.com>
1463
87231e2c
CY
1464 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1465
4801c5fa
CY
1466 * lread.c (syms_of_lread): Make it clearer that these are the
1467 names of loaded files (Bug#5068).
1468
8932b1c2
CY
1469 * eval.c (run_hook_with_args): Handle the case where the global
1470 value has the obsolete single-function form (Bug#5026).
1471
11e3c684
CY
14722009-12-27 Chong Yidong <cyd@stupidchicken.com>
1473
1474 * minibuf.c (Fall_completions): Minor optimization.
1475
5b28ce35
EZ
14762009-12-26 Eli Zaretskii <eliz@gnu.org>
1477
5ce6e4f4
JB
1478 * .gdbinit (pgx): Fix display of composite glyphs.
1479 Display cmp.from and cmp.to as well.
1480 (pitx): Fix last change.
5b28ce35 1481
bcffff46
KH
14822009-12-25 Kenichi Handa <handa@m17n.org>
1483
1484 * composite.h (composition_adjust_point): Update prototype.
1485
1486 * composite.c (composition_reseat_it): Don't make a composition
1487 spanning over point.
1488 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1489 composable characters.
1490 (composition_adjust_point): New arg NEW_PT. Callers changed.
1491
1492 * keyboard.c (command_loop_1): Force redisplay if the last point
1493 was within a composition.
1494 (adjust_point_for_property): Don't adjust point for automatic
1495 composition when called after buffer modification.
1496
3f670e9a
EZ
14972009-12-19 Eli Zaretskii <eliz@gnu.org>
1498
5ce6e4f4
JB
1499 * .gdbinit (pitx): Don't use enum names, use their values.
1500 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1501 (pgx): Don't use enum names, use their values.
1502 (pitmethod): New helper command.
1503 (pitx): Use it to display iteration method.
1504 (pgrowit): New command.
1505
ad903955
EZ
1506 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1507
3f670e9a
EZ
1508 Update dependencies in Makefile.in.
1509
1510 * Makefile.in (alloc.o): Depend on termhooks.h.
1511 (atimer.o): Depend on blockinput.h.
1512 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1513 and frame.h.
1514 (callint.o): Depend on systime.h, coding.h, and composite.h.
1515 (callproc.o): Depend on buffer.h.
1516 (casefiddle.o): Don't depend on charset.h.
1517 (casetab.o): Depend on character.h.
1518 (ccl.o): Depend on composite.h.
1519 (chartab.o): Depend on ccl.h.
1520 (cm.o): Depend on dispextern.h.
1521 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1522 (coding.o): Don't depend on $(INTERVALS_H).
1523 (composite.o): Don't depend on dispextern.h explicitly (it's in
1524 $(INTERVALS_H)). Depend on ccl.h.
1525 (data.o): Depend on systime.h, coding.h, composite.h,
1526 dispextern.h, font.h, and ccl.h.
1527 (dired.o): Depend on composite.h.
1528 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1529 composite.h (it's in $(INTERVALS_H)).
1530 (doc.o): Depend on systime.h, coding.h, and composite.h.
1531 (editfns.o): Don't depend explicitly on dispextern.h.
1532 (emacs.o): Depend on frame.h and coding.h.
1533 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1534 (fileio.o): Depend on frame.h and commands.h. Don't depend
1535 explicitly on dispextern.h.
1536 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1537 composite.h.
1538 (fns.o): Don't depend on termhooks.h.
1539 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1540 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1541 coding.h, $(INTERVALS_H), window.h, xterm.h.
1542 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1543 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1544 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1545 fontset.h, ccl.h, and ftfont.h.
1546 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1547 (gtkutil.o): Depend on dispextern.h and composite.h.
1548 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1549 termhooks.h, and ccl.h.
1550 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1551 (intervals.o): Depend on systime.h and coding.h.
1552 (keyboard.o): Depend on composite.h and coding.h.
1553 (keymap.o): Depend on coding.h and frame.h.
1554 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1555 (macros.o): Depend on systime.h, coding.h, and composite.h.
1556 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1557 and atimer.h.
1558 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1559 dispextern.h explicitly.
0b5397c2
SM
1560 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1561 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1562 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1563 (regex.o): Don't depend on charset.h.
1564 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1565 (search.o): Don't depend explicitly on composite.h.
1566 (sound.o): Depend on atimer.h and systime.h.
1567 (syntax.o): Don't depend explicitly on composite.h.
1568 (sysdep.o): Depend on coding.h and composite.h.
1569 (term.o): Depend on xterm.h and buffer.h.
1570 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1571 (textprop.o): Don't depend on dispextern.h explicitly.
1572 (undo.o): Depend on dispextern.h.
1573 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1574 dispextern.h and composite.h explicitly.
1575 (xdisp.o): Depend on ccl.h.
1576 (xfaces.o): Depend on coding.h and ccl.h.
1577 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1578 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1579 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1580 ftfont.h.
1581 (xgselect.o): New dependency.
1582 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1583 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1584 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1585 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1586 (xsmfns.o): Depend on frame.h and dispextern.h.
1587 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1588 sysselect.h.
1589
7a6f7fea
AS
15902009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1591
1592 * font.c (Fclear_font_cache): Pass correct cache argument to
1593 font_clear_cache.
1594
f4c21026
AS
15952009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1596
1597 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1598 twice.
1599
f7ab0997
CY
16002009-12-15 Chong Yidong <cyd@stupidchicken.com>
1601
1602 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1603 calling file-remote-p. Reported by Jim Meyering.
1604
fa8e045a
MA
16052009-12-15 Michael Albinus <michael.albinus@gmx.de>
1606
1607 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1608 avoid compiler warnings. (Bug #5217)
fa8e045a 1609
a63dba42
KH
16102009-12-14 Kenichi Handa <handa@m17n.org>
1611
1612 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1613 in 8-bit encoding.
1614
5ce6e4f4 16152009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1616
1617 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1618 tooltip windows.
1619
223e5fc6
JD
16202009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1621
36acb2a7
JD
1622 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1623 Xatom_net_window_type.
1624
1625 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1626 Xatom_net_window_type.
1627
b8f00677
JD
1628 * xterm.c (my_log_handler): New function.
1629 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1630 so we can filter out buggy messages. (Bug #5120).
b8f00677 1631
e5f0bc9a
JD
1632 * xterm.c (xg_scroll_callback): Parameter list changed,
1633 use parameter GtkScrollType to determine scroll/line/page.
1634 Only allow dragging if a button < 4 is grabbed (bug #5177).
1635 (xg_end_scroll_callback): New function.
1636 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1637 xg_create_scroll_bar.
1638
1639 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1640 (scroll_end_callback): Remove.
1641 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1642 button-release-event. Replace value-changed event with change-value,
1643 bug #5177,
1644 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1645 bug #5177.
1646
1647 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1648 (xg_create_scroll_bar): Add GCallback end_callback.
1649
223e5fc6
JD
1650 * xftfont.c (QClcdfilter): New variable.
1651 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1652 (syms_of_xftfont): Initialize QClcdfilter.
1653
3c055b77
JD
16542009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1655
1656 * xsettings.c (struct xsettings): Add member seen.
1657 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1658 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1659 (apply_xft_settings): Only update Xft settings with what member seen
1660 indicates as new.
1661
05fe33ff
EZ
16622009-12-12 Eli Zaretskii <eliz@gnu.org>
1663
1664 * dispextern.h (struct text_pos): Use EMACS_INT;
1665 (struct glyph): Use EMACS_INT for charpos.
1666 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1667 region_beg_charpos, region_end_charpos,
1668 redisplay_end_trigger_charpos, and also for
1669 iterator_stack_entry.end_charpos and
1670 iterator_stack_entry.stop_charpos.
1671
e8d7886a
JD
16722009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1673
5ce6e4f4 1674 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1675 (xg_create_scroll_bar): Call scroll_end_callback on button release
1676 event (bug #5177).
1677 (xg_event_is_for_scrollbar): != replaced with ==.
1678
d0db2ec8
KH
16792009-12-12 Kenichi Handa <handa@m17n.org>
1680
1681 * ftfont.c (struct ftfont_info): New member matrix.
1682 (ftfont_open): Setup xftfont_info->matrix.
1683 (MFLTFontFT): New member matrix.
1684 (FLOOR, CEIL, ROUND): New macros.
1685 (ftfont_get_metrics): Handle matrix transformation.
1686 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1687
1688 * xftfont.c (struct xftfont_info): New member matrix.
1689 (xftfont_open): Setup xftfont_info->matrix.
1690
16912009-12-10 Kenichi Handa <handa@m17n.org>
1692
1693 * xdisp.c (append_space_for_newline): Consider face-remapping.
1694
2cc7b62f
AS
16952009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1696
b87dd913
AS
1697 * xsettings.c: Include "keyboard.h".
1698
eba5eb94
AS
1699 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1700
2cc7b62f
AS
1701 Fix implicit function declarations.
1702 * cmds.c: Include "frame.h".
1703 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1704 * frame.h: Move declaration of delete_frame outside of
1705 HAVE_WINDOW_SYSTEM.
1706
a4ef73c8
CY
17072009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1708
1709 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1710
1711 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1712 GTK builds.
1713
944a300c
AS
17142009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1715
1716 * unexelf.c (unexec): Don't search for .data twice.
1717
022eef62
CY
17182009-12-05 Chong Yidong <cyd@stupidchicken.com>
1719
426ac949
CY
1720 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1721 if push failed.
1722 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1723 of push_display_prop (Bug#5000).
1724
022eef62
CY
1725 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1726 value of font_list_entities (Bug#5085).
1727
be95bee9
JB
17282009-12-04 Juanma Barranquero <lekktu@gmail.com>
1729
1730 Fix `string-to-number' to deal consistently with integers and floats.
1731 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1732 trailing characters, not just whitespace.
1733 (read1): Pass new arg 0 to keep old behavior.
1734 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1735 trailing chars, as it is already done for integers. Doc fixes.
1736 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1737
24c2d7ce
EZ
17382009-12-04 Eli Zaretskii <eliz@gnu.org>
1739
0b5397c2
SM
1740 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1741 Delete unused enumeration value.
24c2d7ce 1742
7e694795
EZ
17432009-12-03 Eli Zaretskii <eliz@gnu.org>
1744
1745 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1746
84b31826
SM
17472009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1748
1749 * process.c (Fmake_network_process): Fix up the tests for
1750 "connectionless socket", so they DTRT for seqpacket sockets as well.
1751
f00c449b
SM
17522009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1753
1754 * process.c (Qseqpacket): New symbol.
1755 (HAVE_SEQPACKET): New macro.
1756 (Fmake_network_process): Accept new :type `seqpacket'.
1757 (init_process): Add `seqpacket' feature when applicable.
1758 (syms_of_process): Initialize Qseqpacket.
1759
8096a0ff
YM
17602009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1761
1762 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1763 if entity is Qnil.
1764
3e0de07f
SM
17652009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1766
1767 * print.c (print_preprocess): Preprocess the key_and_value table of
1768 hashtables, even tho they're "hidden" (bug#5082).
1769
abeafb2a
JD
17702009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1771
1772 * frame.c (frame_make_pointer_invisible)
1773 (frame_make_pointer_visible): Declare f before statements.
1774
4bf47195
EZ
17752009-11-28 Eli Zaretskii <eliz@gnu.org>
1776
1777 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1778 omitted dependencies on lisp.h.
1779
c525b3f2
JD
17802009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1781
ece2d4ed
JD
1782 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1783 is NULL.
1784
1785 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1786
1787 * frame.c (frame_make_pointer_invisible)
3e0de07f 1788 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1789 frame.
1790
c525b3f2
JD
1791 * search.c (simple_search): Remove warning by making *p const.
1792
2f00e299
DN
17932009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1794
1795 * xdisp.c (power_letter): Remove duplicate const.
1796
084b049b
JD
17972009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1798
a1fadc6f
JD
1799 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1800
5ce6e4f4 1801 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1802 defaults (bug #5025).
1803
28259cac
SM
18042009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1805
1806 * insdel.c (adjust_markers_for_delete): Move it in the
1807 right direction! (bug#4803)
1808
e8e14166
YM
18092009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1810
1811 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1812
1813 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1814
86677b58
GM
18152009-11-24 Glenn Morris <rgm@gnu.org>
1816
1817 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1818
581e51e8
JD
18192009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1820
cfc86c7a
JD
1821 * Makefile.in: Must create deps for ecrt0.o in its rule.
1822
581e51e8
JD
1823 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1824 because that is what Gtk+ font dialog understands.
1825
1826 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1827 of Fcopy_sequence.
1828 (font_open_by_name): Put name given into QCname for font-object returned.
1829
1830 * frame.c (x_set_font): Save original font name as frame parameter
1831 font-parameter.
1832
1833 * xsettings.c (set_default_xft_settings): New function.
1834 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1835 is found.
1836
8b264ecb
AS
18372009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1838
1839 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1840 searching backwards through multibyte buffer.
1841
872870b2
JD
18422009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1843
1844 * xterm.c: #include xgselect.h.
1845 (x_initialize): Call xgselect_initialize.
1846
1847 * xsettings.c (something_changedCB): C++ comments => C comments.
1848 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1849 does that now.
1850
1851 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1852 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1853 (scroll_bar_button_cb): Remove.
5ce6e4f4 1854 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1855 event.
1856 (xg_create_scroll_bar): Don't bind button-press-event and
1857 button-release-event.
1858
1859 * process.c: Include xgselect.h if defined (USE_GTK) ||
1860 defined (HAVE_GCONF).
1861 (wait_reading_process_output): Call xg_select for the same condition.
1862
1863 * xgselect.c (xg_select): New function to better integrate with
1864 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1865
1866 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1867
1868 * Makefile.in (XOBJ): Add xgselect.o.
1869
62a6e103
AS
18702009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1871
0b5397c2
SM
1872 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1873 Remove ignored second argument. All callers changed.
62a6e103
AS
1874 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1875 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1876 * xdisp.c (string_char_and_length): Likewise.
1877
b0ca0f33
DN
18782009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1879
1880 * xterm.c (x_new_font):
1881 * print.c (print_object):
1882 * cmds.c (Fself_insert_command): Move declarations before statements.
1883
dd5a6279
CY
18842009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1885
1886 * s/cygwin.h: Remove unneeded linker flags.
1887
4a8e097d
JD
18882009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1889
0d1d0d26
JD
1890 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1891
1892 * xsettings.h: Declare xsettings_get_system_font.
1893
1894 * xsettings.c (xsettings_get_system_font): New function.
1895 (init_gconf): No use initiating gconf unless we have Xft also.
1896 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1897 HAVE_GCONF.
1898
4a8e097d
JD
1899 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1900 add a blank entry so it doesn't collapse into nothing.
1901
8ab1650e
SM
19022009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1903
1904 * lread.c (Funintern): Comment out last change.
1905
82c602f0
RS
19062009-11-19 Richard Stallman <rms@gnu.org>
1907
1908 * lread.c (Funintern): Error if symbol is t or nil.
1909
87e32266
SM
19102009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1911
1912 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1913 representation of Lisp integers.
1914 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1915
1b9ac145
AS
19162009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1917
1918 * lisp.h: Remove declaration of Ffont_get_system_font.
1919 * xfns.c: Move include of "xsettings.h".
1920 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1921
dfb3c4c6
JD
19222009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1923
87e32266
SM
1924 * xsettings.c (something_changedCB, Ffont_get_system_font):
1925 Check use_system_font.
dfb3c4c6
JD
1926 (syms_of_xsettings): DEFVAR font-use-system-font.
1927
9370c1d8
AS
19282009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1929
25fe851a
AS
1930 * xfns.c (x_default_font_parameter): Remove dead assignment.
1931
9370c1d8
AS
1932 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1933
637fa988
JD
19342009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1935
87e32266 1936 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1937 not have FC_LCD_*. #define them if not there.
a6eb20d8 1938
87e32266 1939 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1940
637fa988
JD
1941 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1942
1943 * xterm.c (handle_one_xevent): Call xft_settings_event for
1944 ClientMessage, PropertyNotify and DestroyNotify.
1945 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1946 Call xsettings_initialize.
1947
1948 * xftfont.c (xftfont_fix_match): New function.
1949 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1950 Call xftfont_fix_match after XftFontMatch.
1951
1952 * xfont.c (xfont_driver): Initialize all members.
1953
87e32266
SM
1954 * xfns.c (x_default_font_parameter):
1955 Try font from Ffont_get_system_font.
637fa988
JD
1956 Do not get font from x_default_parameter if we got one from
1957 Ffont_get_system_font.
87e32266 1958 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1959
1960 * w32font.c (w32font_driver): Initialize all members.
1961
1962 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1963
1964 * lisp.h: Declare syms_of_xsettings.
1965
87e32266
SM
1966 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1967 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1968
1969 * ftfont.c (ftfont_filter_properties): New function.
1970
1971 * frame.c (x_set_font): Remove unused variable lval.
1972
87e32266 1973 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1974
1975 * font.c (font_put_extra): Don't return if val is nil, it means
1976 boolean option is off.
1977 (font_parse_fcname): Collect all extra properties in extra_props
1978 and call filter_properties for all drivers with extra_props and
1979 font as parameter.
87e32266
SM
1980 (font_open_entity): Do not use cache, it does not pick up new
1981 fontconfig settings like hinting.
637fa988
JD
1982 (font_load_for_lface): If spec had a name in it, store it in entity.
1983
a73f9c9d 1984 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1985
1986 * config.in: HAVE_GCONF is new.
1987
1988 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1989 xsettings.o is new.
1990
5a942932
KH
19912009-11-17 Kenichi Handa <handa@m17n.org>
1992
1993 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1994 back to the default font in case that no suitable font is found.
1995
b7c7a4d1
SM
19962009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1997
1998 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1999 Suggested by Chad Brown <yandros@mit.edu>.
2000 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2001
072f1e39
JD
20022009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2003
2004 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2005
5d1e70a2
AS
20062009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2007
87e32266 2008 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2009
a53cfbe5
JD
20102009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2011
473a99b7
JD
2012 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2013 has a parent.
2014
a53cfbe5 2015 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2016 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2017
2018 * config.in: Generated (AUTO_DEPEND).
2019
f04bb9b2
MA
20202009-11-13 Michael Albinus <michael.albinus@gmx.de>
2021
b7c7a4d1 2022 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2023 Vdbus_registered_functions_table, because it contains also
2024 properties. Fix docstring.
b7c7a4d1 2025 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2026
8f11f7ec
SM
20272009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2028
2029 * alloc.c (mark_object): Don't reprocess marked strings.
2030 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2031 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2032
8a605fe8
KH
20332009-11-13 Kenichi Handa <handa@m17n.org>
2034
8f11f7ec 2035 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2036 semantics of Vword_combining_categories.
2037 (Vword_combining_categories): Describe the slight change of the
2038 semantics.
2039
241c4680
EZ
20402009-11-13 Eli Zaretskii <eliz@gnu.org>
2041
2042 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2043
2044 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2045
5d58e44c
SM
20462009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2047
2048 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2049
5e13f9d3
JB
20502009-11-12 Juanma Barranquero <lekktu@gmail.com>
2051
2052 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2053
cf54c754
DR
20542009-11-11 David Reitter <david.reitter@gmail.com>
2055
2056 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2057 variables to fix 2009-11-09 change.
2058
a4ada374
DN
20592009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2060
91433552
DN
2061 * process.c (ifflag_def): Make flag_sym constant.
2062 (Fnetwork_interface_info): Use a constant pointer.
2063 (ifflag_table):
2064 * xfns.c (cursor_bits):
2065 * xdisp.c (power_letter):
2066 * termcap.c (speeds, esctab):
2067 * sysdep.c (baud_convert):
2068 * keyboard.c (lispy_accent_codes, modifier_names):
2069 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2070 (jpeg_format, tiff_format, gif_format, svg_format)
2071 (interlace_start, interlace_increment, gs_format):
2072 * gtkutil.c (separator_names):
2073 * fringe.c (swap_nibble):
2074 * fns.c (base64_value_to_char, base64_char_to_value):
2075 * fileio.c (make_temp_name_tbl):
2076 * coding.c (suffixes): Make constant.
2077
f4265f6c
DN
2078 * frame.c (make_initial_frame):
2079 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2080 build_string.
2081 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2082
04420943
DN
2083 * s/freebsd.h:
2084 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2085
0a5d24ae
DN
2086 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2087 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2088
a4ada374
DN
2089 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2090 * xterm.c (syms_of_xterm):
2091 * xfaces.c (syms_of_xfaces):
2092 * xdisp.c (syms_of_xdisp):
2093 * lread.c (syms_of_lread):
2094 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2095 build_string.
91433552 2096
a4ada374
DN
2097 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2098
af98fc7f
SM
20992009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2100
8ab1650e 2101 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2102
e90292a9
JD
21032009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2104
2105 * keyboard.h: Declare timer_check.
2106
2107 * keyboard.c (timer_check_2): New function that does what the old
2108 timer_check did.
2109 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2110 returned, i.e. don't return -1 with timers pending.
2111
2112 * process.c: Remove extern declaration of timer_check.
2113
2114 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2115 even if timer_check returned -1.
2116
af98fc7f
SM
2117 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2118 xg_dialog_data.
e90292a9
JD
2119 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2120 the event loop.
2121 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2122 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2123 Destroy the dialog after xg_dialog_run.
2124
045b83c0
SM
21252009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2126
2127 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2128
1fb99a3a
JD
21292009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2130
2131 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2132
04e452cb
JB
21332009-11-09 Juanma Barranquero <lekktu@gmail.com>
2134
2135 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2136
ef7417fd
SM
21372009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2138
2139 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2140 w32menu.c, and nsmenu.m.
2141 Simplify the obsolete case where position is nil.
2142 (cleanup_popup_menu): New function, moved from nsmenu.m.
2143 (struct skp): Remove slot `notreal'.
2144 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2145 adjust callers.
2146 (single_menu_item): Adjust call to parse_menu_item.
2147 (syms_of_menu): Defsubr x-popup-menu.
2148 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2149 (keymap_panes): Don't export any more.
2150 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2151 (xmenu_show): Declare.
2152 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2153 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2154 * keyboard.h (parse_menu_item): Update declaration.
2155 * xmenu.c (Fx_popup_menu): Remove.
2156 (syms_of_xmenu): Don't defsubr x-popup-menu.
2157 * w32menu.c (Fx_popup_menu): Remove.
2158 (syms_of_w32menu): Don't defsubr x-popup-menu.
2159 * nsmenu.m (cleanup_popup_menu): Remove.
2160 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2161 moved to menu.c's Fx_popup_menu.
2162 (Fx_popup_menu): Remove.
2163 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2164 menu_items (it's done in menu.c already).
2165
424d6179
SM
21662009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2167
2168 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2169 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2170
c0df13a6 21712009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2172
2173 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2174 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2175 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2176 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2177
2de9f71c
SM
21782009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2179
2180 Let integers use up 2 tags to give them one extra bit and thus double
2181 their range.
2182 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2183 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2184 New macros.
2185 (enum Lisp_Type): Use them. Give explicit values.
2186 (Lisp_Type_Limit): Remove.
2187 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2188 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2189 Pay attention to USE_2_TAGS_FOR_INTS.
2190 (INTEGERP): Use LISP_INT_TAG_P.
2191 * fns.c (internal_equal): Simplify the default case.
2192 (sxhash): Use case_Lisp_Int.
2193 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2194 any more.
2195 (Ftype_of): Use case_Lisp_Int.
2196 (store_symval_forwarding): Take into account the fact that Ints can
2197 now have more than one tag.
2198 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2199 buffer_slot_type_mismatch):
2200 * xfaces.c (face_attr_equal_p):
2201 * print.c (print_object):
2202 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2203 Use case_Lisp_Int.
2204
323637a2
EZ
22052009-11-06 Eli Zaretskii <eliz@gnu.org>
2206
7ac65b38
EZ
2207 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2208
323637a2
EZ
2209 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2210 warning.
2211
e511451f
JD
22122009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2213
2214 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2215
2216 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2217
2218 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2219 ButtonPressRelease and MotionNotify (bug#4870).
2220
5e2327cf
DN
22212009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2222
5adc433e
DN
2223 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2224
d67b4f80
DN
2225 * xterm.c (syms_of_xterm):
2226 * xselect.c (syms_of_xselect):
2227 * xmenu.c (syms_of_xmenu):
2228 * xfns.c (syms_of_xfns):
2229 * xfaces.c (syms_of_xfaces):
2230 * xdisp.c (syms_of_xdisp):
2231 * window.c (syms_of_window):
2232 * w32fns.c (syms_of_w32fns):
2233 * undo.c (syms_of_undo):
2234 * textprop.c (syms_of_textprop):
2235 * terminal.c (syms_of_terminal):
2236 * syntax.c (syms_of_syntax):
2237 * sound.c (syms_of_sound):
2238 * search.c (syms_of_search):
2239 * print.c (syms_of_print):
2240 * minibuf.c (syms_of_minibuf):
2241 * macros.c (syms_of_macros):
2242 * keymap.c (syms_of_keymap, initial_define_key)
2243 (initial_define_lispy_key):
2244 * keyboard.c (syms_of_keyboard):
2245 * insdel.c (syms_of_insdel):
2246 * image.c (syms_of_image):
2247 * fringe.c (syms_of_fringe):
2248 * frame.c (syms_of_frame):
2249 * fontset.c (syms_of_fontset):
2250 * fns.c (syms_of_fns):
2251 * fns.c (syms_of_fns):
2252 * fileio.c (syms_of_fileio):
2253 * fileio.c (syms_of_fileio):
2254 * eval.c (syms_of_eval):
2255 * doc.c (syms_of_doc):
2256 * dispnew.c (syms_of_display):
2257 * dired.c (syms_of_dired):
2258 * dbusbind.c (syms_of_dbusbind):
2259 * data.c (syms_of_data):
2260 * composite.c (syms_of_composite):
2261 * coding.c (syms_of_coding):
2262 * cmds.c (syms_of_cmds):
2263 * charset.c (define_charset_internal, syms_of_character):
2264 * ccl.c (syms_of_ccl):
2265 * category.c (syms_of_category, init_category_once):
2266 * casetab.c (syms_of_casetab):
2267 * casefiddle.c (syms_of_casefiddle):
2268 * callint.c (syms_of_callint):
2269 * bytecode.c (syms_of_bytecode):
2270 * buffer.c (keys_of_buffer, syms_of_buffer):
2271 * alloc.c (syms_of_alloc):
2272 * process.c (syms_of_process, init_process):
2273 * lread.c (syms_of_lread, init_obarray):
2274 * font.c (build_style_table):
2275 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2276 intern_c_string, calls to make_pure_string with
2277 make_pure_c_string. Use pure_cons instead of Fcons.
2278
5e2327cf
DN
2279 * process.c (socket_options): Make it const.
2280 (set_socket_option, init_process): Use a const pointer.
2281
2282 * lread.c (intern_c_string): New function.
2283 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2284 (defvar_int): Uset it. Make the name const char*.
2285
2286 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2287 (defvar_int): Update prototypes.
2288 (DEFUN, EXFUN): Support for prototypes is now required.
2289 (intern_c_string): New prototype.
2290 (struct Lisp_Subr): Make symbol_name constant.
2291
2292 * font.c (struct table_entry): Remove unused member. Make NAMES
2293 constant.
2294 (weight_table, slant_table, width_table): Make constant.
2295
2296 * emacs.c (struct standard_args): Make name and longname constant.
2297
2298 * character.h (DEFSYM): Use intern_c_string.
2299
a56eaaef
DN
23002009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2301
2302 * alloc.c (make_pure_c_string): New function.
2303
2304 * eval.c (Fautoload): Purecopy all arguments.
2305
f6a07420
KH
23062009-11-05 Kenichi Handa <handa@m17n.org>
2307
2308 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2309 the buffer in case of replace.
2310
5d28d4b1
DN
23112009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2312
2313 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2314
b349d111
SM
23152009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2316
d528b1ce
SM
2317 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2318 when applicable (bug#4851).
2319
b349d111
SM
2320 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2321 (P_): Support for prototypes is now required.
2322
c38eb027
CY
23232009-10-31 Chong Yidong <cyd@stupidchicken.com>
2324
2325 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2326 (Bug#4827).
2327
0405f8d9
EZ
23282009-10-30 Eli Zaretskii <eliz@gnu.org>
2329
d528b1ce 2330 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2331
ca0a881a
DN
23322009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2333
2334 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2335
d528b1ce
SM
2336 * lread.c (Fload): Purecopy the file name when building
2337 Vpreloaded_file_list.
ca0a881a 2338
47e0e0e4
JR
23392009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2340
2341 * w32fns.c (syms_of_w32fns): Change default value of
2342 w32-scroll-lock-modifier to nil. (Bug#2827)
2343
057bce6f
JB
23442009-10-26 Juanma Barranquero <lekktu@gmail.com>
2345
782a943e 2346 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2347
242bc74c
AS
23482009-10-26 Andreas Schwab <schwab@redhat.com>
2349
2350 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2351
522d013a
JB
23522009-10-26 Juanma Barranquero <lekktu@gmail.com>
2353
2354 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2355 For delta < 0, skip check that only makes sense when the mini-window
2356 is going to be enlarged. (Bug#4534)
2357
18060980
CY
23582009-10-25 Chong Yidong <cyd@stupidchicken.com>
2359
2360 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2361 string in menu maps (Bug#4471).
2362
fec8f0fe
CY
23632009-10-24 Chong Yidong <cyd@stupidchicken.com>
2364
2365 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2366 FRAME_NS_VIEW on terminal frames (Bug#4765).
2367
10d66ec0
AS
23682009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2369
1cae01f7
AS
2370 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2371 DBUS_TYPE_UINTnn separately to get proper sign extension.
2372
58a12889
AS
2373 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2374 can properly handle unsigned types.
d528b1ce 2375 (make_uid, make_gid): Remove.
58a12889 2376
987c9327
AS
2377 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2378 types again.
2379
522d013a 2380 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2381 (system_process_attributes): Likewise.
2382
905a9ed3
DN
23832009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2384
2385 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2386
2387 * eval.c (Fautoload): Purecopy the filename. Simplify.
2388
2389 * category.c (Fdefine_category): Purecopy docstring.
2390
a599b3e8
AS
23912009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2392
7b792fc9
AS
2393 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2394
a599b3e8
AS
2395 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2396
b35ac83e
CY
23972009-10-23 Chong Yidong <cyd@stupidchicken.com>
2398
2399 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2400 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2401 (Bug#4775).
2402
e8903e00
SM
24032009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2404
2405 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2406 (init_fileio_once):
2407 * lisp.h (init_fileio_once): Remove.
2408 * emacs.c (main): Don't call init_fileio_once.
2409
8f43cbf3
DN
24102009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2411
2412 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2413
26898943
AS
24142009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2415
2416 * doprnt.c (doprnt): Fix overflow check.
2417
5c646d5a
JD
24182009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2419
3132a7ea
JD
2420 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2421
5c646d5a
JD
2422 * xterm.h (x_wait_for_event): Declare it.
2423
2424 * xterm.c (pending_event_wait): New variable.
2425 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2426 see pending_event_wait.eventtype.
2427 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2428 (x_new_font): Call change_frame_size with new rows/columns before we
2429 try to resize the frame.
5c646d5a 2430 (x_wait_for_event): New function.
d528b1ce
SM
2431 (x_set_window_size_1): Don't change gravity unless change_gravity
2432 is set.
5c646d5a
JD
2433 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2434 don't change frame size, instead wait for the ConfigureNotify.
2435 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2436 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2437 (x_initialize): Initialize pending_event_wait.
2438
2439 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2440 size.
2441
2442 * widget.c (EmacsFrameSetValues): Add comment.
2443 (EmacsFrameSetCharSize): Just call x_set_window_size.
2444
2445 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2446 x_wait_for_event.
d528b1ce 2447 (flush_and_sync): Remove again.
5c646d5a
JD
2448 (xg_get_font_name): Suggest monospace if no previous font is known.
2449
e9c1637d
SM
24502009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2451
2452 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2453 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2454
5a72cccb
YM
24552009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2456
2457 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2458 processing pending events when event is filtered for input method.
ab04798f 2459 (Bug#3681)
5a72cccb 2460
2629aa37
JB
24612009-10-20 Juanma Barranquero <lekktu@gmail.com>
2462
2463 * fns.c: Add #endif accidentally removed in previous change.
2464
c3417a74
DN
24652009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2466
2467 * fns.c: Remove code for unsupported system: MAC_OS.
2468 * image.c: Likewise. Include setjmp.h.
2469
9685cef2
JD
24702009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2471
2472 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2473 pixel -1 (bug #4742).
2474
d7306fe6
DN
24752009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2476
019d2c4c
DN
2477 * process.c (create_pty): Remove conditionals for no longer
2478 supported systems: UNIPLUS and RTU.
2479
ee6bacd4
DN
2480 * xterm.c:
2481 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2482
d7306fe6
DN
2483 * alloc.c: Do not define struct catchtag.
2484 * eval.c: Move struct catchtag definition ...
2485 * lisp.h: ... here.
2486
2487 * image.c: Move png.h #include earlier to avoid warnings.
2488
2489 * xterm.c:
2490 * xsmfns.c:
2491 * xselect.c:
2492 * xrdb.c:
2493 * xmenu.c:
2494 * xftfont.c:
2495 * xfont.c:
2496 * xfns.c:
2497 * xfaces.c:
2498 * xdisp.c:
2499 * window.c:
2500 * widget.c:
2501 * w32xfns.c:
2502 * w32uniscribe.c:
2503 * w32term.c:
2504 * w32select.c:
2505 * w32reg.c:
2506 * w32proc.c:
2507 * w32menu.c:
2508 * w32inevt.c:
2509 * w32heap.c:
2510 * w32font.c:
2511 * w32fns.c:
2512 * w32console.c:
2513 * w32.c:
2514 * w16select.c:
2515 * vm-limit.c:
2516 * unexsol.c:
2517 * unexec.c:
2518 * unexcw.c:
2519 * unexaix.c:
2520 * undo.c:
2521 * tparam.c:
2522 * textprop.c:
2523 * terminfo.c:
2524 * terminal.c:
2525 * termcap.c:
2526 * term.c:
2527 * syntax.c:
2528 * sound.c:
2529 * sheap.c:
2530 * search.c:
2531 * scroll.c:
2532 * region-cache.c:
2533 * regex.c:
2534 * ralloc.c:
2535 * process.c:
2536 * print.c:
b024548b
DN
2537 * nsterm.m:
2538 * nsselect.m:
2539 * nsmenu.m:
2540 * nsimage.m:
2541 * nsfont.m:
2542 * nsfns.m:
d7306fe6
DN
2543 * msdos.c:
2544 * minibuf.c:
2545 * menu.c:
2546 * marker.c:
2547 * macros.c:
2548 * keymap.c:
2549 * keyboard.c:
2550 * intervals.c:
2551 * insdel.c:
2552 * indent.c:
2553 * gtkutil.c:
2554 * ftxfont.c:
2555 * ftfont.c:
2556 * fringe.c:
2557 * frame.c:
2558 * fontset.c:
2559 * font.c:
2560 * fns.c:
2561 * floatfns.c:
2562 * filelock.c:
2563 * fileio.c:
2564 * emacs.c:
2565 * editfns.c:
2566 * dosfns.c:
2567 * doprnt.c:
2568 * doc.c:
2569 * dispnew.c:
2570 * dired.c:
2571 * dbusbind.c:
2572 * data.c:
2573 * composite.c:
2574 * coding.c:
2575 * cmds.c:
2576 * cm.c:
2577 * chartab.c:
2578 * charset.c:
2579 * character.c:
2580 * ccl.c:
2581 * category.c:
2582 * casetab.c:
2583 * casefiddle.c:
2584 * callproc.c:
2585 * callint.c:
2586 * bytecode.c:
2587 * buffer.c:
2588 * atimer.c: Include setjmp.h. (Bug#4643)
2589
fd5f21e6
SM
25902009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2591
4c0354d7
SM
2592 Remove leftover table unibyte_to_multibyte_table.
2593 * character.c (unibyte_to_multibyte_table): Remove.
2594 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2595 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2596 * character.h (UNIBYTE_TO_CHAR): New macro.
2597 (MAKE_CHAR_MULTIBYTE): Use it.
2598 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2599 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2600 (message_dolog, set_message_1):
2601 * search.c (Freplace_match):
2602 * editfns.c (Fcompare_buffer_substrings):
2603 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2604 (concat):
2605 * insdel.c (copy_text, count_size_as_multibyte):
2606 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2607 * term.c (produce_glyphs):
2608 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2609 * regex.c (RE_CHAR_TO_MULTIBYTE):
2610 * cmds.c (internal_self_insert):
2611 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2612
fd5f21e6
SM
2613 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2614
4418646e
DN
26152009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2616
2617 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2618
35f5c1d2
JB
26192009-10-16 Juanma Barranquero <lekktu@gmail.com>
2620
2621 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2622
a0cd8f6b
AR
26232009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2624
2625 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2626 still needed under Tiger.
2627
2628 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2629
2630 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2631 __Apple__.
2632
2633 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2634
01a8d3fa
KH
26352009-10-15 Kenichi Handa <handa@m17n.org>
2636
2637 * print.c (print_object): Escape a symbol like "2E10" too.
2638
bf6c75c9 26392009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2640
2641 Cleanups and changes for 64-bit compile under Snow Leopard.
2642 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2643
2644 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2645
c5959062 2646 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2647 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2648 cast argument.
2649 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2650 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2651
2652 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2653
2654 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2655 where appropriate.
2656
2657 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2658 where appropriate.
6e4780c5
JB
2659 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2660 Use stringWithUTF8String.
bf6c75c9
AR
2661 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2662
6e4780c5
JB
2663 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2664 Add formal protocol mention to inheritance.
bf6c75c9
AR
2665 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2666
6e4780c5
JB
2667 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2668 Fix printf format.
bf6c75c9
AR
2669 (ns_query_color): Use CGFloat where appropriate.
2670 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2671 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2672 argument.
2673
3d87f118
AR
2674 * config.in (NS_HAVE_NSINTEGER): Drop.
2675
a95c8102
AR
2676 * dbusbind.c (dbus-method-return-internal)
2677 (dbus-method-error-internal): Use long format in printf, and cast
2678 argument.
2679
2680 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2681 in printf, and cast argument.
2682
6873acca 2683 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2684 cast argument.
2685
9ec6f100
GM
26862009-10-11 Glenn Morris <rgm@gnu.org>
2687
2688 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2689
5be883cd
JD
26902009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2691
2692 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2693 menu bar with a small width so it doesn't enlarge the frame.
2694
d7a39b51
JB
26952009-10-08 Juanma Barranquero <lekktu@gmail.com>
2696
2697 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2698
0c2b6f8e
GM
26992009-10-06 Glenn Morris <rgm@gnu.org>
2700
2701 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2702 SOME_MACHINE_LISP (this enters indirectly via DOC).
2703
e02131a2
EZ
27042009-10-05 Eli Zaretskii <eliz@gnu.org>
2705
2706 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2707
b4744254
EZ
27082009-10-04 Eli Zaretskii <eliz@gnu.org>
2709
2710 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2711 Doc fix.
2712
dbf64827
JB
27132009-10-03 Martin Rudalics <rudalics@gmx.at>
2714
2715 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2716
e9a0aef8
MA
27172009-10-02 Michael Albinus <michael.albinus@gmx.de>
2718
d528b1ce 2719 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2720 used anymore outside fileio.c.
2721
2722 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2723
64eb2b56
JB
27242009-10-01 Juanma Barranquero <lekktu@gmail.com>
2725
2726 * lisp.h (Qdelete_directory_internal):
2727 Declare, instead of Qdelete_directory.
2728
2729 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2730
9d28c33e
SM
27312009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2732
2733 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2734
9d8f3bd9
MA
27352009-10-01 Michael Albinus <michael.albinus@gmx.de>
2736
9d28c33e 2737 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2738 Fdelete_directory. It is not a command anymore. It has no file
2739 name handler.
2740
9694740b
SM
27412009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2742
2743 * xdisp.c (get_next_display_element): Use an enum in last change.
2744
748e162f
KH
27452009-09-28 Kenichi Handa <handa@m17n.org>
2746
9694740b 2747 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2748 unibyte_display_via_language_environment in handling
2749 Vnobreak_char_display.
2750
17efd58d
AR
27512009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2752
2753 * nsterm.h (ns_app_name): New extern variable.
2754
2755 * nsterm.m (ns_app_name): New variable.
2756 (ns_term_init): Set and use it.
2757 (ns_term_shutdown): Use it.
2758
2759 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2760 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2761
2762 * nsfns.m (ns_set_name_iconic, ns_set_name)
2763 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2764 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2765
9694740b
SM
2766 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2767 Remove double-casting in client_data comparison.
31c2d412 2768
3208cb35
YM
27692009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2770
2771 * keyboard.c (make_lispy_event): Remember last wheel direction.
2772 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2773
b7d552d6
GM
27742009-09-26 Glenn Morris <rgm@gnu.org>
2775
2776 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2777 internal.elc. Add term/pc-win.elc.
2778 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2779 term/x-win.elc.
2780 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2781 term/w32-win.elc.
2782 (NS_SUPPORT): New.
2783 (lisp): Add NS_SUPPORT.
2784 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2785
4ff670a8
DR
27862009-09-25 David Reitter <david.reitter@gmail.com>
2787
2788 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2789 on Mac OS X 10.6+ (bug#4513).
2790
feabfb6c
JB
27912009-09-24 Juanma Barranquero <lekktu@gmail.com>
2792
2793 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2794 some parts of Emacs code (like font selection) don't grok them.
2795 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2796
de59072a
AS
27972009-09-24 Andreas Schwab <schwab@redhat.com>
2798
2799 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2800
a489517b
JB
28012009-09-24 Juanma Barranquero <lekktu@gmail.com>
2802
2803 * dired.c (Fdirectory_files): Fix typo in docstring.
2804
0592970c
AR
28052009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2806
2807 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2808 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2809 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2810 under GNUstep.
2811 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2812
2813 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2814 glyph advancement.
2815
48e8a88b
AR
28162009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2817
2818 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2819 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2820
2821 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2822 deleted (bug #4492).
2823
e14f0a78
AR
2824 * nsfont.m (Vns_reg_to_script): New lisp variable.
2825 (syms_of_nsfont): Declare it.
2826 (ns_registry_to_script): New function.
2827 (ns_get_req_script): Call it.
2828 (ns_findfonts): Don't give up on non-unicode registry.
2829
2830 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2831
5b650faa
SM
28322009-09-20 Tom Tromey <tromey@redhat.com>
2833
2834 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2835 batch mode (bug#4228).
2836
a489517b 28372009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2838
2839 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2840 carefully. (Bug #4339)
0bae4e09 2841
fcfe06f3
CY
28422009-09-18 Chong Yidong <cyd@stupidchicken.com>
2843
d798ba87 2844 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2845
31642728
AR
28462009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2847
2848 * emacs.c (inhibit_x_resources): Update doc string for NS.
2849 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2850 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2851
2852 * nsterm.h (ns_no_defaults): Remove.
2853
2854 * nsterm.m (ns_no_defaults): Remove.
2855 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2856 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2857 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2858 don't update the NSWindow itself.
2859 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2860 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2861
2862 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2863 ns_use_qd_smoothing.
2864
2865 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2866 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2867 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2868 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2869
8686ac71
JB
28702009-09-17 Juanma Barranquero <lekktu@gmail.com>
2871
2872 * emacs.c (inhibit_x_resources): New variable.
2873 (main) [HAVE_NS]: Don't process --quick command line option.
2874 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2875
2876 * lisp.h (inhibit_x_resources): Declare it extern.
2877
2878 * w32reg.c (x_get_string_resource):
2879 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2880
e227ba05
EZ
28812009-09-17 Eli Zaretskii <eliz@gnu.org>
2882
362654a6
JB
2883 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2884 Add lisp/term/internal.elc.
e227ba05 2885
742d40e8
SM
28862009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2887
2888 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2889 (bug#4461).
2890
005bd5a2
DN
28912009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2892
2893 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2894
2895 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2896 (OBJECTS_MACHINE): Remove, unused.
2897
f9af9719
SM
28982009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2899
2900 * frame.c (x_get_resource_string): Remove unused.
2901
0307c7d2
JD
29022009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2903
2904 * xterm.c (x_new_font): Call change_frame_size before calling
2905 x_set_window_size, in case frame size won't change.
2906
2907 * frame.c (x_set_font): Remove dead code.
2908
428b13d6
SM
29092009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2910
2911 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2912
5766c380
SM
29132009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2914
2915 * lread.c (Fload): Don't output a message after loading an obsolete
2916 package any more (done in Lisp now).
2917
2fd0161b
CY
29182009-09-12 Chong Yidong <cyd@stupidchicken.com>
2919
2920 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2921
bc5e75b6
SM
29222009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2923
2924 * keymap.c (Fwhere_is_internal): Use nconc2.
2925
c31c985e
AM
29262009-09-11 Alan Mackenzie <acm@muc.de>
2927
2928 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2929 batch mode.
2930
78012bd2
AS
29312009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2932
2933 * xdisp.c (display_mode_element): Detect cycles.
2934
9d889332
SM
29352009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2936
2937 * keymap.c (where_is_internal): Don't erroneously return nil right after
2938 filling the cache.
2939 (where_is_internal_1): Fix up typo.
2940
7ab5d780
GM
29412009-09-11 Glenn Morris <rgm@gnu.org>
2942
2943 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2944 share a common doc-string.
2945
5238a749
SM
29462009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2947
66d77eda
SM
2948 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2949 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2950
5238a749
SM
2951 * keymap.c (QCadvertised_binding): New constant.
2952 (syms_of_keymap): Initialize it.
2953 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2954 if applicable.
2955
19f48442
SM
29562009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2957
50d4ba39
SM
2958 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2959 (parse_menu_item): Streamline since bindings are recomputed all the
2960 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2961 more and don't support lmenu's menu-alias any more either.
2962
a88a5372
SM
2963 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2964 (where_is_internal): Strip it down to only traverse the keymaps.
2965 Move the cache handling from Fwhere_is_internal to here.
2966 (Fwhere_is_internal): Move the handling of remapping and the choice of
2967 the best binding from where_is_internal to here.
2968 Unify the cached/noncached paths, so remapping is also handled
2969 correctly when the cache is used, and so the cache can be used to
2970 speed up remap-handling when applicable.
2971 Give preference to non-remapped bindings.
2972 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2973 non-remapped bindings.
2974 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2975 command remapping.
2976
19f48442
SM
2977 * xdisp.c (display_mode_element): Move list length limit from 50 to
2978 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2979
599498c3 29802009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2981
2982 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2983
f9b7b5ac
SM
29842009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2985
a53af587
JB
2986 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2987 (Bug#4334)
2988
f9b7b5ac
SM
2989 * keymap.c (where_is_internal): Filter out shadowed remappings.
2990 Assume that where_is_internal returns unshadowed bindings to simplify
2991 the code and get rid of the gotos. Use ASIZE.
2992
04f4b72d
JD
29932009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2994
4da146f2
JD
2995 * xterm.c (x_focus_changed): If we get a focusout and pointer
2996 is invisible, make it visible.
2997
04f4b72d
JD
2998 * xterm.h: Remove condition for declaration of
2999 x_*_window_to_frame.
3000
7cef7ce3
SM
30012009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3004 initial terminal as well.
3005
a54fa5b7
JD
30062009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3007
3008 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3009 x_menubar_window_to_frame.
a54fa5b7
JD
3010
3011 * xterm.c: Remove declarations also in xterm.h
3012 (XTmouse_position): Do not return valid positions
3013 for clicks in the menubar and the toolbar for Gtk+.
3014
3015 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3016 if the widget for the event has the same top level as a frame,
3017 return the frame.
3018 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3019 internal windows, bug #4122.
3020 (x_non_menubar_window_to_frame): Remove.
3021
5a021dd0
GM
30222009-09-02 Glenn Morris <rgm@gnu.org>
3023
3024 * buffer.c (default-major-mode): Move most of the doc from here...
3025 (major-mode): ... to here.
3026
548fe2f3
NR
30272009-08-30 Nick Roberts <nickrob@snap.net.nz>
3028
3029 * process.c (wait_reading_process_output): Keep the descriptor
3030 when pty is used by a non-child process, e.g., in I/O buffer of
3031 GDB this allows inferior to be restarted.
3032
e0840eef
EZ
30332009-08-29 Eli Zaretskii <eliz@gnu.org>
3034
3035 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3036 both branches into one.
3037
82e98df4
SM
30382009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3039
3040 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3041 (main): Use enable-multibyte-characters rather than
3042 default-enable-multibyte-characters. Output a warning message when
3043 running a unibyte session.
3044
890617cb
YM
30452009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3046
3047 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3048 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3049 (copy_data_segment): Also copy __program_vars section.
3050 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3051 (dump_it) [LC_DYLD_INFO]: Use it.
3052
3053 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3054
e7adeadc
EZ
30552009-08-28 Eli Zaretskii <eliz@gnu.org>
3056
3057 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3058 $(SRC)/buildobj.h.
3059 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3060 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3061 $(SRC)/buildobj.h.
3062 (clean): Add buildobj.h.
3063
3ed8bbdc
TZ
30642009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3065
3066 * print.c (print_object): Set escapeflag to 1 when printing
3067 hashtable keys and values.
3068
155a6764
SM
30692009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3070
3071 * lread.c (read_integer): Use doubles (and potentially return a float
3072 number) as we do in string-to-number.
3073 (read1): Use strtol to read integers, signal errors on strtol's
3074 overflow and use floats if strtol's output is too large for
3075 Elisp integers.
3076
877610de
EZ
30772009-08-27 Eli Zaretskii <eliz@gnu.org>
3078
3079 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3080 (make-buildobj-SH): Fix last change.
3081 (SRC): Move to before where it's first used.
3082
ef73e7be
KH
30832009-08-27 Kenichi Handa <handa@m17n.org>
3084
550c8289
KH
3085 * process.c (send_process): Use encode_coding_object instead of
3086 encode_coding_string to perform eol-conversion even if the string
3087 is unibyte.
3088
60afa08d
KH
3089 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3090 character.
3091
ef73e7be 3092 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3093 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3094
7b3a82d7
DN
30952009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3096
5654bf63
DN
3097 * callproc.c (Fcall_process): Remove always true #if.
3098
7b3a82d7
DN
3099 * lisp.h: Replace #if 0 code for checking with text pointing to
3100 the --enable-checking configure flag.
3101
3102 * emacs.c (main): Mention the --enable-profiling configure flag
3103 instead of using CFLAGS.
3104
878bde49
KR
31052009-08-26 Ken Raeburn <raeburn@raeburn.org>
3106
3107 * Makefile.in (buildobj.h): New target.
3108 (doc.o): Depend on it.
3109 (temacs${EXEEXT}): Don't generate buildobj.lst.
3110 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3111 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3112 ($(BLD)/doc.$(O)): Depend on it.
3113 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3114 provided by Eli Zaretskii.)
3115 ($(TEMACS)): Don't generate buildobj.lst.
3116 * doc.c: Include buildobj.h.
3117 (buildobj): New static variable.
3118 (Fsnarf_documentation): Use it, instead of opening and reading
3119 buildobj.lst.
3120
1574224c
MA
31212009-08-25 Michael Albinus <michael.albinus@gmx.de>
3122
3123 * dbusbind.c (Fdbus_call_method)
3124 (Fdbus_call_method_asynchronously): Use English numeric format for
3125 timeout values in doc string.
3126
d9da2f45
KH
31272009-08-25 Kenichi Handa <handa@m17n.org>
3128
ef73e7be
KH
3129 * alloc.c (mark_char_table): New function.
3130 (mark_object): Use mark_char_table for a char-table.
3131
d9da2f45
KH
3132 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3133 (CHAR_TABLE_REF): Use it.
3134
c8edcc01
KR
31352009-08-23 Ken Raeburn <raeburn@raeburn.org>
3136
3137 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3138 before invoking the newly build emacs to check for load-path
3139 shadowing.
3140
7763401b
GM
31412009-08-22 Glenn Morris <rgm@gnu.org>
3142
3143 * Makefile.in (bootstrap_exe): New variable.
3144 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3145 Use ${bootstrap_exe}.
3146
729eadda
EZ
31472009-08-22 Eli Zaretskii <eliz@gnu.org>
3148
3149 * coding.h (encode_coding_string): Don't encode unibyte strings.
3150 (Bug#4047)
3151
eb4c6ace
MA
31522009-08-22 Michael Albinus <michael.albinus@gmx.de>
3153
3154 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3155
3156 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3157 intended as hotfix only.
3158 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3159
36e34d1b
AR
31602009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3161
3162 * nsterm.m (ns_get_color): Update documentation properly for last
3163 change, and clean up loose ends in the code left by it. Fix
3164 longstanding bug with 16-bit hex parsing, and add support for
3165 yet another X11 format (rgb:r/g/b) for compatibility.
3166 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3167 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3168
f983eb8a
SM
31692009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3170
3171 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3172
3f56d3c6
MA
31732009-08-20 Michael Albinus <michael.albinus@gmx.de>
3174
3175 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3176 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3177 (xd_initialize, xd_pending_messages): Check, whether
3178 $DBUS_SESSION_BUS_ADDRESS is set.
3179
fb641d68
YM
31802009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3181
3182 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3183
3184 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3185
cf59a374
GM
31862009-08-20 Glenn Morris <rgm@gnu.org>
3187
3188 * emacs.c (system-type): Doc fix.
3189
1373f3be
SM
31902009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3191
3192 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3193 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3194
058ed861
MA
31952009-08-18 Michael Albinus <michael.albinus@gmx.de>
3196
1373f3be
SM
3197 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3198 New functions.
058ed861
MA
3199 (xd_initialize): Revert change from 2009-08-16.
3200
563a866e 32012009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3202
3203 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3204 font-group vector, return nil.
5fc05db0 3205
e42bdf01
CY
32062009-08-17 Chong Yidong <cyd@stupidchicken.com>
3207
3208 * process.c (status_notify): Don't perform redisplay.
3209 (Fdelete_process, list_processes_1, process_send_signal):
3210 Expliticly perform redisplay.
3211 (wait_reading_process_output): Always check process status, but
3212 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3213
4230ab74
KR
32142009-08-17 Ken Raeburn <raeburn@raeburn.org>
3215
1373f3be 3216 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3217 (XFLOAT_INIT): New macro for storing a float value.
3218 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3219 * fns.c (sxhash): Copy out the value of a float in order to
3220 examine its bytes.
3221 * dbusbind.c (xd_append_arg): Likewise.
3222
4230ab74
KR
3223 * emacs.c (main): Don't call syms_of_data twice.
3224
a0645cdd
MA
32252009-08-16 Michael Albinus <michael.albinus@gmx.de>
3226
3227 * dbusbind.c (xd_initialize): Add connection file descriptor to
3228 input_wait_mask, in order to let select() detect, whether a new
3229 message has been arrived.
ca4f31ea 3230 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3231
485db0ba
MA
32322009-08-15 Michael Albinus <michael.albinus@gmx.de>
3233
1373f3be
SM
3234 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3235 New functions.
485db0ba
MA
3236
3237 * lisp.h (xd_pending_messages): Declare.
3238
3239 * keyboard.c (readable_events): Call xd_pending_messages.
3240
b5b98ff4
CY
32412009-08-15 Chong Yidong <cyd@stupidchicken.com>
3242
1373f3be 3243 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3244
f8354c6e
CY
3245 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3246
b5b98ff4
CY
3247 * buffer.c (set_buffer_internal_1)
3248 (swap_out_buffer_local_variables): Check for unbound local
3249 variables (Bug#4138).
3250
8b9fc636
EZ
32512009-08-14 Eli Zaretskii <eliz@gnu.org>
3252
3253 * process.c (create_pty): Fix last change.
3254
ce959360
CY
32552009-08-13 Chong Yidong <cyd@stupidchicken.com>
3256
3257 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3258 (xbm_load_image): Caller changed.
64b807c9 3259 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3260
c7baf7e9
NR
32612009-08-13 Nick Roberts <nickrob@snap.net.nz>
3262
3263 * process.c (create_pty): New function.
3264 (Fstart_process): Use it to allow Emacs to just associate a pty
3265 with the buffer. See associated change in gdb-mi.el.
3266 (list_processes_1): Deal with no program name.
3267 (start_process_unwind): Use pid == -2 to mean no process.
3268
1ac9108a
SM
32692009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3270
3271 * cmds.c (nonundocount): New global variable.
3272 (keys_of_cmds): Initialize it.
3273 (Fself_insert_command): Use it to combine upto 20 sequential chars
3274 into a single undo entry, just like the Qself_insert_command code in
3275 keyboard.c does.
3276 Call frame_make_pointer_invisible, also like the Qself_insert_command
3277 code in keyboard.c does.
3278 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3279 than its own local replacement for it.
3280
e267324c
KR
32812009-08-10 Ken Raeburn <raeburn@raeburn.org>
3282
1ac9108a 3283 * fns.c (concat): Don't re-set string length to its current value.
77437343 3284
1ac9108a
SM
3285 * coding.h (decode_coding_string, encode_coding_string):
3286 Use SBYTES macro.
f0bed503 3287
1ac9108a 3288 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3289 (doprnt): Merge with doprnt1, discarding lispstrings code.
3290 * lisp.h (doprnt_lisp): Don't declare.
3291
416e006d
JL
32922009-08-07 Juri Linkov <juri@jurta.org>
3293
3294 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3295
6f7d5780
DN
32962009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3297
3298 * print.c (syms_of_print): Undo previous change.
3299
f19a0f5b
TZ
33002009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3301
3302 * lread.c (read1, syms_of_lread): Read hashtables back from the
3303 readable format.
3304
3305 * print.c (print_preprocess, print_object): Print hashtables fully
3306 and readably.
3307 (syms_of_print): Provide 'hashtable-print-readable.
3308
b9173dc2
AR
33092009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3310
3311 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3312 no family set.
3313 (nsfont_open): Handle case when entity has no family.
3314
1586503c
AR
33152009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3316
3317 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3318 element, not a list, for match case.
3319
087048cd
KH
33202009-07-28 Kenichi Handa <handa@m17n.org>
3321
3322 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3323 rigidly.
3324
3325 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3326 font_parse_xlfd. Check font properties more rigidly.
3327
780c2506
DN
33282009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3329
31fd7c5c
JB
3330 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3331 bsd-common.h.
780c2506 3332
a8c0cc18
KH
33332009-07-27 Kenichi Handa <handa@m17n.org>
3334
3335 * xfaces.c (face_with_height): Call font_clear_prop.
3336
4fbe2306
CY
33372009-07-26 Chong Yidong <cyd@stupidchicken.com>
3338
111d9af3
CY
3339 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3340
3341 * xterm.c (x_term_init): Use Qx.
3342
4fbe2306
CY
3343 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3344
1ac9108a 3345 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3346 (ns_get_color): Revert 2009-07-16 change.
3347
beb0b7f9
EZ
33482009-07-25 Eli Zaretskii <eliz@gnu.org>
3349
3350 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3351 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3352
2baf5e76
KR
33532009-07-25 Ken Raeburn <raeburn@raeburn.org>
3354
1ac9108a
SM
3355 * coding.h (decode_coding_string, encode_coding_string):
3356 Use SCHARS macro.
8890e5f5 3357
2baf5e76 3358 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3359 (load_depth): Delete.
2baf5e76
KR
3360 (Qload_in_progress): New variable.
3361 (load_unwind): Don't reference load_depth or load_in_progress.
3362 (Fload): Likewise; specbind Qload_in_progress instead.
3363 (init_lread): Don't initialize load_depth.
3364 (syms_of_lread): Initialize and protect Qload_in_progress.
3365
1395c6f5
AR
33662009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3367
3368 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3369
4e2f36cf
AR
33702009-07-23 Yavor Doganov <yavor@gnu.org>
3371
3372 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3373
5dd9a6f7
AR
33742009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3375
3376 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3377 Bugs 3792, 3720, 2402.
3378 (ns_lookup_indexed_color): Check for bad index.
3379 (ns_index_color): Init unused slot to 0.
3380 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3381 Bug 3714, possibly 3082.
5dd9a6f7 3382
c902b920
JR
33832009-07-22 Jason Rumney <jasonr@gnu.org>
3384
1ac9108a
SM
3385 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3386 Position IME window at cursor (Bug#2570).
c902b920
JR
3387 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3388 (globals_of_w32fns): Dynamically load functions required above.
3389
3390 * w32term.c (w32_draw_window_cursor): Send message to reposition
3391 any IME window.
3392
090101cf
CY
33932009-07-21 Chong Yidong <cyd@stupidchicken.com>
3394
3395 * fileio.c: Revert 2009-07-16 changes.
3396 (Vauto_save_include_big_deletions): New variable.
3397 (Fdo_auto_save): Disable auto-save only if
3398 auto-save-include-big-deletions is nil.
3399
e6583e3d
CY
34002009-07-21 Chong Yidong <cyd@stupidchicken.com>
3401
3402 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3403 the overflowed pixels into account (Bug#3879).
3404
ece435a5
KR
34052009-07-21 Ken Raeburn <raeburn@raeburn.org>
3406
3407 * lread.c (load_depth): New variable.
3408 (Fload, load_unwind, init_lread): Set it to the load recursion
3409 depth; set load_in_progress as a simple boolean based on the
3410 current load_depth. (Bug#3892)
3411
40b2d973
AR
34122009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3413
3414 * nsfont.m (ns_has_attribute): Remove.
3415 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3416
10be7e0d
JL
34172009-07-18 Juri Linkov <juri@jurta.org>
3418
3419 * process.c (Fset_process_query_on_exit_flag): Mention killing
3420 a buffer in docstring.
3421
fa055055
KH
34222009-07-17 Kenichi Handa <handa@m17n.org>
3423
3424 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3425
042f7b69
YM
34262009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3427
3428 * nsfns.m (Fns_set_alpha): Remove function.
3429 (syms_of_nsfns): Don't defsubr it.
3430
3431 * nsterm.m (ns_get_color): Remove incompatible color formats.
3432 (ns_color_to_lisp): Generate #rrggbb color format string.
3433
4be941e3
RS
34342009-07-16 Richard Stallman <rms@gnu.org>
3435
3436 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3437 (Fset_buffer_auto_saved): Handle save_length = -2.
3438
4e6b227d
CY
34392009-07-16 Chong Yidong <cyd@stupidchicken.com>
3440
3441 * xterm.c (Qx_gtk_map_stock): New var.
3442
3443 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3444 of calling intern each time.
3445
a1856973
YM
34462009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3447
3448 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3449 does tiling.
3450
3451 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3452
497e54d8
KH
34532009-07-14 Kenichi Handa <handa@m17n.org>
3454
72d36834
KH
3455 * font.c (font_vconcat_entity_vectors): New function.
3456 (struct font_sort_data): New member font_driver_preference.
3457 (font_compare): Check font_driver_preference.
3458 (font_sort_entities): The format of the first argument changed.
3459 (font_delete_unmatched): Likewise.
3460 (font_list_entities): The return type changed.
3461 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3462 (font_find_for_lface): Adjuste for the above changes.
3463 Don't suppress the checking of C even if the repertory supports it.
3464 (Flist_fonts): Adjust for the above changes.
72d36834 3465
1ac9108a
SM
3466 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3467 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3468 Reject a font who has adstyle property that is different from a
3469 langname derived from registry property.
1ac9108a 3470 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3471
b6046155
EZ
34722009-07-13 Eli Zaretskii <eliz@gnu.org>
3473
3474 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3475 local copy of dirfilename.
3476
fb6b6049
KH
34772009-07-13 Kenichi Handa <handa@m17n.org>
3478
e2402a5e
KH
3479 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3480 against max_char.
3481
fb6b6049
KH
3482 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3483 calling XSYMBOL (sym).
3484
65156807
EZ
34852009-07-11 Eli Zaretskii <eliz@gnu.org>
3486
1ac9108a
SM
3487 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3488 New function.
3489 (directory_files_internal) [WINDOWSNT]:
3490 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3491 the filesystem of the directory is fast or slow.
3492
3493 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3494 file name.
3495 (is_slow_fs): New function.
3496 (stat): Use it to determine whether to issue more system calls to
3497 get accurate file attributes, when w32-get-true-file-attributes is
3498 `local'.
3499
e0ab5fcf
JD
35002009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3501
3502 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3503 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3504 parameter font-parameter as default to the font dialog.
3505
784ceded
KH
35062009-07-10 Kenichi Handa <handa@m17n.org>
3507
3508 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3509
fb8edc0b
EZ
35102009-07-09 Eli Zaretskii <eliz@gnu.org>
3511
1ac9108a 3512 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3513
fb8edc0b
EZ
3514 * w32.c (stat): Treat UNC file names as residing on remote
3515 drives. (Bug#3542)
3516
635c75b1
KH
35172009-07-09 Kenichi Handa <handa@m17n.org>
3518
3519 * fontset.c (fontset_find_font): Fix previous change.
3520
c1d5ce94
MA
35212009-07-08 Michael Albinus <michael.albinus@gmx.de>
3522
3523 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3524 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3525 error flag.
3526
edb61b39
KH
35272009-07-08 Kenichi Handa <handa@m17n.org>
3528
374bf7e4
KH
3529 * fontset.c (fontset_find_font): Fix the logic of handling
3530 charset_matched.
3531 (font_for_char): Delete unused var.
3532 (generate_ascii_font_name): Delete it.
3533
edb61b39
KH
3534 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3535
3536 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3537 (encode_coding_sjis): Fix the code range check.
3538
0f3f018c
CY
35392009-07-07 Chong Yidong <cyd@stupidchicken.com>
3540
3541 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3542 (Fexpand_file_name): Copy string data properly (Bug#3772).
3543
fcaf6f3a
JD
35442009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3545
3546 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3547 first MapNotify.
3548
6809ca75
KH
35492009-07-07 Kenichi Handa <handa@m17n.org>
3550
3551 * character.h (unibyte_has_multibyte_table): Delete extern.
3552 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3553
3554 * charset.c (Fset_charset_priority): Update charset_unibyte.
3555 (syms_of_charset): Initialize charset_unibyte.
3556
3557 * character.c (unibyte_has_multibyte_table): Delete it.
3558 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3559 charset_unibyte.
3560 (multibyte_char_to_unibyte_safe): Likewise.
3561 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3562
1ac9108a 3563 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3564 (x_produce_glyphs): Likewise.
3565
3566 * .gdbinit (xcharset): Fix the treating $arg0.
3567
ad9e2d54
EZ
35682009-07-04 Eli Zaretskii <eliz@gnu.org>
3569
3570 Emulation of `getloadavg' on MS-Windows.
3571 * w32.c: Include float.h
3572 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3573 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3574 (get_native_system_info, get_system_times): New functions.
3575 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3576 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3577 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3578 g_b_init_get_system_times, and num_of_processors.
3579
0a3472c7
JR
35802009-07-03 Jason Rumney <jasonr@gnu.org>
3581
3582 * w32term.c (w32_initialize): Use standard types.
3583
80904120
EZ
35842009-07-03 Eli Zaretskii <eliz@gnu.org>
3585
3586 * dired.c (Ffile_attributes): Decode user and group names by the
3587 locale's encoding. (Bug#3443)
3588
6978862d
DN
35892009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3590
f8d23104
DN
3591 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3592 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3593
3594 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3595
3596 * term.c (init_tty): Remove spurious #ifdef.
3597
6978862d
DN
3598 * m/mips.h: Mention this file is also used for netbsd.
3599 * m/pmax.h: Remove file.
3600
e044e4fc
JD
36012009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3602
3603 * xterm.h (struct x_display_info): Add invisible_cursor.
3604 (struct x_output): Add current_cursor.
3605
3606 * xterm.c (XTtoggle_invisible_pointer): New function.
3607 (x_define_frame_cursor): Don't define cursor if invisible or the
3608 same as before. Set current_cursor.
3609 (x_create_terminal): Set toggle_invisible_pointer_hook.
3610
3611 * xfns.c (make_invisible_cursor): New function.
3612 (x_set_mouse_color): Call make_invisible_cursor.
3613 Set current_cursor.
3614 (x_window): Set current_cursor.
3615
3616 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3617
3618 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3619 inserting a character.
3620 (read_avail_input): Call frame_make_pointer_visible.
3621
3622 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3623 (frame_make_pointer_invisible, frame_make_pointer_visible):
3624 New functions.
e044e4fc
JD
3625 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3626
3627 * frame.h: Declare frame_make_pointer_invisible and
3628 frame_make_pointer_visible.
3629 (struct frame): Add pointer_invisible.
3630
574c8efa
JD
36312009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3632
7b507248
JD
3633 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3634 frame isn't visible.
3635 (xg_frame_resized): If width/height is -1, get size of window
3636 from X server.
3637
3638 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3639 for MapNotify.
3640
835bdaa7 3641 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3642 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3643 (flush_and_sync): Reintroduce.
574c8efa 3644
3f1c6666 36452009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3646
31fd7c5c 3647 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3648
3649 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3650 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3651
3652 * frame.h: Declare Qsticky.
3653
cad9ef74
JD
3654 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3655
3656 * nsfns.m (ns_frame_parm_handlers): Ditto.
3657
3658 * frame.c: Declare Qsticky.
3659 (frame_parms): Add sticky.
3660
3661 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3662
3663 * xterm.h: Declare x_set_sticky.
3664
3665 * xterm.c (x_set_sticky): New function.
3666
69b16610
JD
3667 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3668 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3669 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3670
3671 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3672
3673 * frame.c: Qmaximized is new.
3674 (x_set_frame_parameters): Do not handle fullscreen specially.
3675 Only set width and height if explicitly set.
3676 (x_set_fullscreen): Handle Qmaximized.
3677 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3678 (syms_of_frame): Initialize Qmaximized.
3679
1ac9108a
SM
3680 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3681 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3682
3683 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3684 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3685 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3686 set gravity to NorthWestGravity when USE_GTK.
3687 (set_wm_state): New function.
31fd7c5c 3688 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3689 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3690 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3691 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3692 to x_real_positions and x_fullscreen_adjust.
3693
3694 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3695 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3696 flush_and_sync.
3697 (xg_height_changed): New function.
3698 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3699 and gtk_window_set_policy. Set frame gravity after parsing the
3700 geometry string.
3f1c6666
JD
3701 (xg_update_frame_menubar, free_frame_menubar)
3702 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3703 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3704 Remove calls to xg_frame_set_char_size.
3705
fd503d99
KH
37062009-07-01 Kenichi Handa <handa@m17n.org>
3707
3708 * keyboard.c (decode_keyboard_code): New function.
3709 (tty_read_avail_input): Decode the input bytes if necessary.
3710
1ac9108a
SM
3711 * coding.c (setup_coding_system):
3712 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3713 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3714 use Qno_conversion.
3715
24ed93fb
YM
37162009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3717
3718 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3719
99061dfc
CY
37202009-06-30 Chong Yidong <cyd@stupidchicken.com>
3721
1ac9108a 3722 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3723
ff90fbde
JR
37242009-06-30 Jason Rumney <jasonr@gnu.org>
3725
3726 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3727 is already loaded.
3728 Set user model ID if supported (bug#1849).
3729
5f445726
JM
37302009-06-29 Jim Meyering <meyering@redhat.com>
3731
3732 Remove useless if-before-xfree test.
3733 * nsfont.m (nsfont_close): Remove useless test.
3734 * term.c (delete_tty): Likewise.
3735 * w32.c (system_process_attributes): Likewise.
3736 * w32font.c (w32font_close): Likewise.
3737 * xfaces.c (x_free_gc): Likewise.
3738 * xselect.c (buffer): Likewise.
3739
b9607587
AS
37402009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3741
3742 * process.c (send_process): Keep decoded string in a local
3743 variable and protect it from GC. (Bug#3521)
3744
89ba96f4
EZ
37452009-06-28 Eli Zaretskii <eliz@gnu.org>
3746
3747 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3748 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3749
098a1589
CY
37502009-06-28 Chong Yidong <cyd@stupidchicken.com>
3751
485422be
CY
3752 * xdisp.c (start_display, handle_face_prop)
3753 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3754 (redisplay_window, try_window_id, produce_image_glyph):
3755 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3756
098a1589
CY
3757 * xterm.c (x_update_window_begin, x_new_focus_frame)
3758 (x_scroll_bar_handle_click, handle_one_xevent)
3759 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3760 (x_make_frame_visible, x_make_frame_invisible)
3761 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3762 code chunks that are now obsolete.
3763
78c38319
MA
37642009-06-28 Michael Albinus <michael.albinus@gmx.de>
3765
3766 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3767 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3768 for hours, when optimzation is enabled.
3769 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3770 (xd_read_message): Make them static.
3771
4189ed40
CY
37722009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3773
3774 * term.c (turn_on_face): Allow simultaneously bold and dim
3775 terminal faces (Bug#3530).
3776
cd9b5e16
CY
37772009-06-27 Chong Yidong <cyd@stupidchicken.com>
3778
4e23bedb
CY
3779 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3780
cd9b5e16
CY
3781 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3782 truncation glyphs (Bug#3686).
3783
07cc3c35
GM
37842009-06-27 Glenn Morris <rgm@gnu.org>
3785
3786 * m/pmax.h: Restore file, with only netbsd portions.
3787
31fd7c5c 37882009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3789
cd9b5e16 3790 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3791
42d4a64f
KH
37922009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3793
3794 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3795 the arg FORCE_SYMBOL.
3796
930fe55b 37972009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3798
3799 * fontset.c (fontset_find_font): When a usable rfont_def is found
3800 in a fallback font-group, make it the first element of the group.
3801
57ebc3fd
CY
38022009-06-24 Chong Yidong <cyd@stupidchicken.com>
3803
3804 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3805
f084f942
KH
38062009-06-24 Kenichi Handa <handa@m17n.org>
3807
3808 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3809 set for C.
3810 (fontset_font): Record the availability of a font for C both in
3811 the realized fontsets of the current one and the default one.
3812
2f686c87
DN
38132009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3814
3815 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3816 conditional, it is always defined on AIX.
3817
666e158e
MB
38182009-06-23 Miles Bader <miles@gnu.org>
3819
3820 * window.c (Vrecenter_redisplay): New variable.
3821 (syms_of_window): Initialize it.
3822 (Qtty): New extern declaration.
3823 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3824
c6da7cd2
JM
38252009-06-23 Jim Meyering <meyering@redhat.com>
3826
1ac9108a
SM
3827 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3828 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3829 pointer dereferences are guaranteed to be valid.
c6da7cd2 3830
678dca3d
KH
38312009-06-23 Kenichi Handa <handa@m17n.org>
3832
74d75424
KH
3833 * emacs.c (main): Call init_font ().
3834
3835 * font.h (Vfont_log): Extern it.
3836 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3837
3838 * font.c (font_sort_entities, font_list_entities)
3839 (font_matching_entity, font_open_entity)
3840 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3841 (Vfont_log): Delete static.
3842 (font_log_env_checked): Delete this variable.
3843 (font_add_log): Don't check font_log_env_checked.
3844 (font_deferred_log): Check Vfont_log.
3845 (init_font): New function.
3846
678dca3d
KH
3847 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3848
3849 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3850
3851 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3852
3853 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3854
3855 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3856 (face_for_char): Don't call font_deferred_log here.
3857 (font_for_char): Likewise.
3858
8a668709
CY
38592009-06-22 Chong Yidong <cyd@stupidchicken.com>
3860
9a01ee33
CY
3861 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3862 rather than its background_width for drawing the overline and
3863 underline (Bug#489).
3864
3865 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3866 rather than its background_width for drawing the overline and
3867 underline (Bug#489).
ec7c9926
CY
3868 (xg_default_icon_file): New variable.
3869 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3870 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3871
8a668709
CY
3872 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3873 (load_overlay_strings): Remove externs.
3874 (fast_find_position): Function deleted.
3875 (mouse_face_from_buffer_pos): New function, based on
3876 fast_find_position. Correctly handle before-strings,
3877 display-strings, and after-strings (Bug#1220).
3878 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3879
4d4c02d8
CY
38802009-06-21 Chong Yidong <cyd@stupidchicken.com>
3881
1ac9108a 3882 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3883 (move_it_in_display_line_to, move_it_in_display_line_to)
3884 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3885
70243478
CY
38862009-06-21 Chong Yidong <cyd@stupidchicken.com>
3887
3888 * Branch for 23.1.
3889
13087e59
JR
38902009-06-21 Jason Rumney <jasonr@gnu.org>
3891
3892 * w32term.c (keyboard_codepage): New static variable.
3893 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3894 (w32_read_socket) [WM_CHAR]: Use it to decode character
3895 input (bug#3237).
3896 (w32_initialize): Initialize it.
3897 (codepage_for_locale): New function.
3898
4735b74e
KR
38992009-06-20 Ken Raeburn <raeburn@raeburn.org>
3900
3901 * process.c (status_message): Pass Faset index argument as a lisp
3902 object, so as to work with USE_LISP_UNION_TYPE.
3903
0e727afa
YM
39042009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3905
3906 * coding.c (Ffind_coding_systems_region_internal):
3907 Cache checked characters.
3908
cf299835
KH
39092009-06-18 Kenichi Handa <handa@m17n.org>
3910
1ac9108a 3911 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3912
90f20d94
AS
39132009-06-18 Andreas Schwab <aschwab@redhat.com>
3914
3915 * xdisp.c (redisplay_internal): Check that the frame is still
3916 live after redisplay of its windows.
3917 (redisplay_windows): Check that the window is still live.
3918
7f1faf1c
KH
39192009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3920
3921 * coding.c (detect_coding_utf_16): Fix previous change.
3922
cc13543e
KH
39232009-06-16 Kenichi Handa <handa@m17n.org>
3924
3925 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3926 UTF-16 by checking the dispersion of Eth and Oth bytes.
3927
977b85f4
AS
39282009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3929
3930 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3931
66bd43d1
KH
39322009-06-15 Kenichi Handa <handa@m17n.org>
3933
3934 * process.c (status_message): Fix previous change. Be sure to
3935 decode a localized string.
3936
cb5ca9c5
YM
39372009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3938
3939 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3940 add comment explaining why.
3941
ec7709ba 39422009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3943
ec7709ba 3944 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3945
4b7f335c
AR
39462009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3947
3948 * nsfont.m (ns_attribute_value): Remove.
3949 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3950 (ns_has_attribute): Shrink the normal range.
3951 (ns_findfonts): Don't worry about requested spec in determining
3952 need for synthItal.
e41820ee 3953 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3954
73b26103
SZ
39552009-06-14 Seiji Zenitani <zenitani@mac.com>
3956
3957 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3958
5753e4da
KH
39592009-06-11 Kenichi Handa <handa@m17n.org>
3960
3961 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3962 overhang for the static composition case.
3963
3561b671
KH
39642009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3965
5753e4da
KH
3966 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3967 overhang for the automatic composition case.
3968
3561b671
KH
3969 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3970 composition case.
3971
852bbd41
CY
39722009-06-10 Chong Yidong <cyd@stupidchicken.com>
3973
3974 * xdisp.c (get_next_display_element): When handling wrap-prefix
3975 and line-prefix, treat \n as a control character (bug#3502).
3976
9903d1e6
KH
39772009-06-10 Kenichi Handa <handa@m17n.org>
3978
3979 * font.c (font_parse_family_registry): Fix for one-char foundry.
3980 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3981
0bcbaaaa
CY
39822009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3983
3984 * process.c (status_message): Fix handling of multibyte signal
3985 string (Bug#3499).
3986
40aa3f13
JM
39872009-06-09 Jim Meyering <meyering@redhat.com>
3988
1f80c7e2
CY
3989 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3990 color name is missing.
40aa3f13 3991
72d51285
KH
39922009-06-09 Kenichi Handa <handa@m17n.org>
3993
3994 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3995 FROM-CODE and TO-CODE are codepoints of CHARSET.
3996
c1d04d84
AR
39972009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3998
3999 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4000
40012009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4002
4003 Changes to support :script/:lang/:otf in NS font driver.
4004 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4005 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4006 indicate not part of font driver interface, and change callers.
4007 (ns_get_family): Remove pointless null check.
4008 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4009 ns_spec_to_descriptor, ns_descriptor_to_entity.
4010 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4011 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4012 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4013 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4014 (ns_get_req_script, ns_accumulate_script_ranges)
4015 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4016 New functions.
4017 (nsfont_list, nsfont_match): Use ns_findfonts.
4018 (nsfont_open): Use font descriptor instead of traits.
4019 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4020 (dump_glyphstring): Rename to ns_dump_glyphstring.
4021
c7eb9816
AR
4022 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4023
c1d04d84
AR
4024 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4025
4026 * fontset.c (fontset_from_font): Remove NS-specific code.
4027
ec7709ba 40282009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4029
4030 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4031 nonactive windows.
4032
31fd7c5c 40332009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4034
1ac9108a 4035 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4036
68852c13 40372009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4038
4039 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4040
6756cd1d
CY
40412009-06-07 Chong Yidong <cyd@stupidchicken.com>
4042
4043 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4044 account for the overflowing of newlines into the last glyph on the
4045 display line (Bug#3482).
4046
28bf482a
DR
40472009-06-05 David Reitter <david.reitter@gmail.com>
4048
ec7709ba
JB
4049 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4050 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4051 Fns_selection_exists_p, Fns_selection_owner_p.
4052
fdb55376
JR
40532009-06-03 Jason Rumney <jasonr@gnu.org>
4054
4055 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4056 available. (Bug#3379)
4057
05129fbe
KH
40582009-05-29 Kenichi Handa <handa@m17n.org>
4059
1ac9108a
SM
4060 * coding.c (get_translation_table):
4061 Check Venable_character_translation.
05129fbe 4062
ec7709ba 40632009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4064
ec7709ba
JB
4065 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4066 (x_make_frame_visible): Move frame to front rather than calling
15891144 4067 ns_raise_frame().
ec7709ba 4068 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4069 isn't key window.
ec7709ba 4070 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4071 drawRect may be called by NSView even if the frame is hidden.
4072
ec7709ba
JB
4073 * nsfns.m (Fx_create_frame): Follow other ports in
4074 determining visibility; default to t. Ensure async_visible is set.
15891144 4075
21f73755
EZ
40762009-05-23 Eli Zaretskii <eliz@gnu.org>
4077
4078 * dired.c (Ffile_attributes): Doc fix.
4079
34001e41
CY
40802009-05-22 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4083
46306a17
SM
40842009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4085
4086 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4087 and xfont_scratch_props.
4088 (syms_of_xfont): Do it here instead.
4089 (xfont_find_ccl_program): Delete, unused.
4090 (xfont_open): Delete unused var `i'.
4091
ef6e0694
KH
40922009-05-21 Kenichi Handa <handa@m17n.org>
4093
4094 * fontset.c (Qlatin): Don't make it static.
4095
46306a17
SM
4096 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4097 New functions.
ef6e0694
KH
4098 (xfont_scripts_cache, xfont_scratch_props): New variables.
4099 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4100 (xfont_list_pattern): Argument changed. Callers changed.
4101 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4102 (xfont_list): Don't reject a font spec with :script property.
4103 (xfont_has_char): Fix setting of encoding.
4104 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4105 xfont_scratch_props.
4106
41072009-05-19 Kenichi Handa <handa@m17n.org>
4108
46306a17 4109 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4110 Callers changed.
4111
41122009-05-18 Kenichi Handa <handa@m17n.org>
4113
4114 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4115
ac71ced7
SM
41162009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4117
4118 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4119 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4120
1c6d1051
YM
41212009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4122
4123 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4124 (x_delete_terminal): Dissociate resource database from display and
4125 then call XrmDestroyDatabase before closing display.
4126
9b9b779c
AR
41272009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4128
4129 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4130 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4131 whether selected frame is viable before raising it (based on patch
4132 by David Reitter), and improve commentary.
4133 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4134
cccd42d5
KH
41352009-05-15 Kenichi Handa <handa@m17n.org>
4136
4137 * font.c (Ffont_spec): Check arguments.
4138
337fbd17
CY
41392009-05-14 Chong Yidong <cyd@stupidchicken.com>
4140
4141 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4142 weight when testing attributes (Bug#3282).
4143
47a6002f
JD
41442009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4145
4146 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4147 what we expect to get in the next ConfigureNotify event.
4148
9cb363db
YM
4149 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4150 before Xft one (Bug#1696).
4151
b9126609
CY
41522009-05-07 David Reitter <david.reitter@gmail.com>
4153
4154 * nsfns.m (Fx_display_planes): Compute bitplanes using
4155 NSBitsPerPixelFromDepth (Bug#3207).
4156
27a69fd9
CY
41572009-05-10 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4160
00f37552
TTN
41612009-05-10 Ulrich Mueller <ulm@gentoo.org>
4162
4163 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4164
2d82a920
DR
41652009-05-07 David Reitter <david.reitter@gmail.com>
4166
ec7709ba
JB
4167 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4168 Respect mouse face background.
2d82a920 4169
46b0d52d
DR
41702009-05-07 David Reitter <david.reitter@gmail.com>
4171
ec7709ba
JB
4172 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4173 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4174 in ns_update_begin and ns_update_end.
4175
ce1b23bb
SM
41762009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4177
5996e1b7
SM
4178 * nsfns.m (ns_get_screen): Rewrite.
4179 Don't presume selected-frame is of type `ns'.
4180
ba98e3a0
SM
4181 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4182 all drivers.
4183
ce1b23bb
SM
4184 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4185
bcda200f
YM
41862009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4187
4188 * keyboard.h (add_user_signal): Fix typo in extern.
4189
4190 * lisp.h (add_user_signal): Remove extern.
4191
4192 * unexelf.c (unexec): Consider a section to precede the .bss section
4193 if its addresses overlap that of .bss.
4194 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4195 instead of dumping process.
4196
864660a2
SM
41972009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4198
4199 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4200
50da4e56
SM
42012009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4202
4203 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4204
51520a1a
DN
42052009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4206
4207 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4208 any statements.
4209
409ea3a1
AS
42102009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4211
59c4c60f
AS
4212 * process.c (read_process_output): Make sure the current buffer is
4213 always restored.
4214
409ea3a1
AS
4215 * coding.c (record_conversion_result): Don't modify
4216 Vlast_code_conversion_error for successful result.
4217 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4218
56f00ed2
KH
42192009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4220
4221 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4222 (load_charset_map): Remove unnecessary code.
56f00ed2 4223
4491c9d2
DR
42242009-04-30 David Reitter <david.reitter@gmail.com>
4225
35f5b128 4226 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4227 through f24.
4228
6970f632
CY
42292009-04-30 Chong Yidong <cyd@stupidchicken.com>
4230
4231 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4232
4233 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4234 face_at_buffer_position.
4235 (face_before_or_after_it_pos, get_next_display_element)
4236 (note_mouse_highlight): Update face_at_buffer_position call.
4237
4238 * term.c (term_mouse_highlight):
4239 * msdos.c (IT_note_mouse_highlight):
4240 * fontset.c (Finternal_char_font):
35f5b128 4241 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4242
4243 * dispextern.h (face_at_buffer_position): Update prototype.
4244
0c616f63
KH
42452009-04-30 Kenichi Handa <handa@m17n.org>
4246
35f5b128 4247 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4248
ad3aaf33
AS
42492009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4250
4251 * callproc.c (Fcall_process): Fix GC protection. Make sure
4252 current buffer is always restored.
4253
c3c963a0
YM
42542009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4255
4256 * atimer.c (init_atimer): Also clear stopped_atimers.
4257
4258 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4259
7e3386cb
YM
4260 * process.c (create_process): Clean up merger residues of
4261 2008-07-17 change.
4262
91f68422
CY
42632009-04-29 Ulrich Mueller <ulm@gentoo.org>
4264
4265 * lread.c (Vread_circle): New variable.
4266 (read1): Disable recursive read if Vread_circle is nil.
4267
24b34550
KH
42682009-04-29 Kenichi Handa <handa@m17n.org>
4269
4270 * fontset.h (set_default_ascii_font): Delete extern.
4271
4272 * fontset.c (set_default_ascii_font): Delete this unused function.
4273
4274 * frame.c (x_set_font): When ARG is a font-object, check if the
4275 font-object matches with the ASCII font-spec of the frame's
9c358bda 4276 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4277
77bf07e1
AS
42782009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4279
4280 * fns.c (Flocale_info): Protect vector from GC during decoding.
4281
4282 * process.c (Fstart_process): Protect argv strings from GC during
4283 encoding.
4284
2c55aacf
AS
42852009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4286
4287 * sysdep.c: Include <ctype.h>.
4288
b892d3c9
DR
42892009-04-27 David Reitter <david.reitter@gmail.com>
4290
35f5b128 4291 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4292 Remove commented-out code.
4293
9d0644c4
JB
42942009-04-26 Johan Bockgård <bojohan@gnu.org>
4295
4296 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4297
b7053016
JR
42982009-04-25 Jason Rumney <jasonr@gnu.org>
4299
4300 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4301
4e8231f3
YM
43022009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4303
4304 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4305 Swap bytes in short integer if fringe bitmap width > 8.
4306
493dcf2c
KH
43072009-04-23 Kenichi Handa <handa@m17n.org>
4308
4309 * xfaces.c (Fx_list_fonts): If a font size is specified in
4310 PATTERN, set it in returned scalable fonts.
4311
401e9e57
CY
43122009-04-22 Chong Yidong <cyd@stupidchicken.com>
4313
708e05dc
CY
4314 * keyboard.c (Fset_input_meta_mode): Doc fix.
4315
4316 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4317
1ac9108a 4318 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4319
4320 * coding.c (Fterminal_coding_system): Doc fix.
4321
4322 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4323 (Fx_display_pixel_height, Fx_display_planes)
4324 (Fx_display_color_cells, Fx_server_max_request_size)
4325 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4326 (Fx_display_mm_height, Fx_display_mm_width)
4327 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4328 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4329 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4330 (check_x_display_info): Handle terminal objects instead of
4331 terminal ids.
4332
401e9e57
CY
4333 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4334 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4335 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4336 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4337
df80c7f0
KH
43382009-04-21 Kenichi Handa <handa@m17n.org>
4339
5a8f12af 4340 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4341 (font_score): Check AVGWIDTH too.
908567ef 4342
df80c7f0
KH
4343 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4344 worst case.
1ac9108a
SM
4345 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4346 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4347
705af33f
JR
43482009-04-19 Jason Rumney <jasonr@gnu.org>
4349
4350 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4351 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4352
4353 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4354 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4355 get_phys_cursor_geometry.
4356
b71ac3dd 4357 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4358 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4359 using get_phys_cursor_geometry.
4360
4361 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4362 correctly calculated.
4363
dc2933eb
JD
43642009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4365
1ac9108a
SM
4366 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4367 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4368 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4369 is deprecated.
4370
973e7849
AS
43712009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4372
4373 * font.c (font_put_frame_data): Use xfree instead of free.
4374
314d66f4
JB
43752009-04-17 Juanma Barranquero <lekktu@gmail.com>
4376
4377 * w32font.c (Qja, Qko): Remove declarations.
4378 (syms_of_w32font): Don't DEFSYM them.
4379
cf702558
CY
43802009-04-17 Chong Yidong <cyd@stupidchicken.com>
4381
4382 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4383
4384 * font.h (Qja, Qko): Extern them.
4385
4386 * ftfont.c (Qja, Qko): Remove declarations.
4387
4388 * xfont.c (Qja, Qko): Remove declarations.
4389
b50504f5
KH
43902009-04-17 Kenichi Handa <handa@m17n.org>
4391
bde25748
KH
4392 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4393 string from a vector to handle Latin-1 characters correctly.
4394
b50504f5
KH
4395 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4396 entity even if the cache hits.
4397
f4646fff
AS
43982009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4399
4400 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4401 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4402
e7deaab0
AS
4403 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4404 * lisp.h: Adjust prototypes.
4405
0a0e7d49
CY
44062009-04-16 Chong Yidong <cyd@stupidchicken.com>
4407
4408 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4409 change (Bug#3003).
4410
3c908a57
KH
44112009-04-16 Kenichi Handa <handa@m17n.org>
4412
1ac9108a 4413 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4414
4415 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4416 adstyle.
4417
4418 * ftfont.c (Qja, Qko): Don't make them static.
4419 (enum ftfont_cache_for): New enum.
4420 (fc_charset_table): Undo the previous change.
4421 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4422 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4423 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4424 non-scarable font, try to get AVERAGE_WIDTH.
4425 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4426 Change ft_face_cache from a list of a hash-table. Don't check
4427 `ja' and `ko' adstyle here.
4428 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4429 FTFONT_CACHE_FOR_CHARET.
4430 (ftfont_get_charset): Undo the previous change.
1ac9108a 4431 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4432 (ftfont_close): Likewise.
4433 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4434
4435 * font.c (font_sort_entites): Change the meaning of the arg
4436 BEST-ONLY. Don't optimize for VEC of lenght 1.
4437 (font_select_entity): Just return the value of font_sort_entites.
4438
4439 * xfaces.c (merge_face_vectors): Reflect font properties in
4440 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4441 font_clear_prop if a face attribute doesn't change.
4442
3c908a57
KH
4443 * charset.h (charset_ksc5601): Extern it.
4444
4445 * charset.c (charset_ksc5601): New variable.
4446 (Fdefine_charset_internal): Set charset_ksc5601.
4447 (init_charset_once): Initialize charset_ksc5601 to -1.
4448
d65859c3
DN
44492009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4450
4451 * fileio.c (history_delete_duplicates): Remove unused declaration.
4452
4453 * callint.c (history_delete_duplicates): New declaration.
4454 (Fcall_interactively): Remove command history duplicates when
4455 history_delete_duplicates is true.
4456
3ba010e5
EZ
44572009-04-14 Eli Zaretskii <eliz@gnu.org>
4458
4459 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4460
06f19b91
KH
44612009-04-14 Kenichi Handa <handa@m17n.org>
4462
4463 * font.c (Ffont_info): Fix docstring. Fix the second element of
4464 the returned value (bug#2949).
4465
2cce8bfc
CY
44662009-04-14 Chong Yidong <cyd@stupidchicken.com>
4467
4468 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4469
d156542d
KH
44702009-04-14 Kenichi Handa <handa@m17n.org>
4471
4472 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4473 encoding charset is ascii_compatible.
4474
4475 * charset.c (Fdefine_charset_internal): Make charset
4476 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4477 code_offset is 0, and covers all ASCII characters.
4478
86fa089e
SM
44792009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4480
4481 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4482 (ns_string_to_pasteboard_internal):
4483 * nsmenu.m (process_dialog):
4484 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4485 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4486 * lisp.h (Fx_load_color_file): Declare.
4487
a8a3728b
KH
44882009-04-13 Kenichi Handa <handa@m17n.org>
4489
1ac9108a 4490 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4491 (font_select_entity): Suppress the code to optimize for the same
4492 kind of fonts.
4493 (font_load_for_lface): Get a font that supports at least ASCII
4494 characters.
4495
4496 * ftfont.c (Qja, Qko): New variables.
4497 (fc_charset_table): Delete uniquifier data for iso8859-1.
4498 (ftfont_get_latin1_charset): New function.
4499 (get_adstyle_property): New function.
4500 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4501 bitmap fonts.
4502 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4503 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4504 `ko' or `ja'.
4505 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4506 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4507 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4508 property.
4509 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4510 (syms_of_ftfont): DEFSYM Qja and Qko.
4511
483670b5
KH
45122009-04-09 Kenichi Handa <handa@m17n.org>
4513
12b55765
KH
4514 * charset.c (map_charset_chars): For a charset of `superset'
4515 method, fix calculation of code range.
4516
483670b5
KH
4517 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4518 from the list of extra properties.
4519 (font_clear_prop): Be sure to delete `:name' font property.
4520
57d3b93b
KH
45212009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4522
b4b2c2ca
YM
4523 * dispnew.c (redraw_overlapping_rows): Fix detection of
4524 overlapping for topmost and bottommost rows.
4525
1ac9108a 4526 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4527
472c3609
JR
45282009-04-06 Jason Rumney <jasonr@gnu.org>
4529
4530 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4531
ab193662
KH
45322009-04-06 Kenichi Handa <handa@m17n.org>
4533
4534 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4535
4536 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4537
0c26f026
KH
45382009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4539
4540 * ftfont.c (ftfont_open): Fix checking of the return value of
4541 FT_Load_Char. Fix setting font->underline_thickness.
4542
e173bbce
CY
45432009-04-04 Chong Yidong <cyd@stupidchicken.com>
4544
4545 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4546 (Fterminal_parameters, Fterminal_parameter)
4547 (Fset_terminal_parameter): In doc string, refer to terminal
4548 objects rather than terminal ids.
4549
693a2698
EZ
45502009-04-04 Eli Zaretskii <eliz@gnu.org>
4551
4552 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4553 ret_lim_data. (Bug#2867)
4554
d5221487
CY
45552009-04-03 Chong Yidong <cyd@stupidchicken.com>
4556
4557 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4558 so they don't get wider than the window, matching 2006-01-23
4559 change to the partner function in xdisp.c (Bug#2800).
4560
223509a3
KH
45612009-04-03 Kenichi Handa <handa@m17n.org>
4562
4563 * print.c (print_object): Make each lowest sub_char_table start a
4564 new line (Bug#2866).
4565
74fcd0b1
KH
45662009-04-02 Kenichi Handa <handa@m17n.org>
4567
4568 * fontset.c (fontset_font): Record no-font when a fontset
4569 explicitly tells not to try another font-specs.
4570
c542407d
SM
45712009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4572
4573 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4574
e3869731
KH
45752009-03-30 Kenichi Handa <handa@m17n.org>
4576
d8d2f142
KH
4577 * fontset.c (fontset_from_font): Specify only registry in a
4578 font-spec for all characters supported by that registry.
4579
e3869731
KH
4580 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4581 even if HAVE_M17N_FLT is not defined.
4582
5da5f805
CY
45832009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4584
4585 * ftfont.c: Conditionalize prototyping and use of
4586 ftfont_variation_glyphs.
4587
ab226c50
SM
45882009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4589
9628fed7
SM
4590 * frame.c (delete_frame): Work around compiler bug.
4591
4592 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4593 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4594 Some more EMACS_INT.
4595 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4596
4597 * xdisp.c (dump_glyph): Fix typo.
4598
ae19ba7c
SM
4599 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4600 (adjust_markers_gap_motion, adjust_markers_for_delete)
4601 (adjust_markers_for_insert, adjust_point)
4602 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4603 (make_gap, copy_text, count_size_as_multibyte, insert)
4604 (insert_and_inherit, insert_before_markers)
4605 (insert_before_markers_and_inherit, insert_1)
4606 (count_combining_before, count_combining_after, insert_1_both)
4607 (insert_from_string, insert_from_string_before_markers)
4608 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4609 (insert_from_buffer_1, adjust_after_replace)
4610 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4611 (replace_range_2, del_range, del_range_1, del_range_byte)
4612 (del_range_both, del_range_2, modify_region)
4613 (prepare_to_modify_buffer, signal_before_change)
4614 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4615 for buffer positions and sizes.
4616 * lisp.h: Adjust prototypes accordingly.
4617
4618 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4619 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4620 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4621
ab226c50
SM
4622 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4623
46dfb8fb
JD
46242009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4625
4626 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4627 lines and columns so we keep the same pixel height and width.
4628
4629 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4630 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4631 (x_handle_net_wm_state): New function to update frame parameter
4632 fullscreen.
4633 (x_term_init): Initialize atoms for _NET_WM_STATE.
4634
4635 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4636
d347e494
SM
46372009-03-27 Kevin Ryde <user42@zip.com.au>
4638
4639 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4640 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4641 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4642 (Fgpm_mouse_stop): Pass that new parameter.
4643 * termhooks.h (close_gpm): Adjust prototype.
4644
84db11d6
SM
46452009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4646
c95a5008
SM
4647 * lisp.h (Fx_focus_frame): Declare.
4648
84db11d6
SM
4649 * callint.c (Fcall_interactively): For '^' just delegate the work to
4650 handle-shift-selection.
4651 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4652
0a1958d6
CY
46532009-03-24 Chong Yidong <cyd@stupidchicken.com>
4654
0bfdff23
CY
4655 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4656
0a1958d6
CY
4657 * data.c (Qinteractive_form): New variable.
4658 (Finteractive_form): Use it.
4659
4660 * eval.c (Fcommandp): Use Qinteractive_form.
4661
58aec0d6
JR
46622009-03-24 Jason Rumney <jasonr@gnu.org>
4663
4664 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4665 Calculate total size precisely. Decode environment variables
4666 before substituting. (Bug#38)
4667
553dd618
KH
46682009-03-24 Kenichi Handa <handa@m17n.org>
4669
4670 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4671 encoding (Bug#2722).
553dd618 4672
c39ea606
JD
46732009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4674
4675 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4676 that gdpy is set.
4677
bc9b2b5e
AM
46782009-03-22 Alan Mackenzie <acm@muc.de>
4679
4680 * callint.c (Finteractive): Clarify the doc string - even
4681 promptless elements need \n separators.
4682
9f995a76
JR
46832009-03-22 Jason Rumney <jasonr@gnu.org>
4684
4685 * w32term.c (syms_of_w32term): Doc fix for
4686 x-use-underline-position-properties.
4687
22749e9a
EZ
46882009-03-21 Eli Zaretskii <eliz@gnu.org>
4689
4690 * w32.c (getpwuid): Change argument type to unsigned.
4691 (struct w32_id): Change type of `rid' member to unsigned.
4692 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4693 argument ID to unsigned. All callers changed.
4694 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4695
e00553bf
EZ
46962009-03-20 Eli Zaretskii <eliz@gnu.org>
4697
4698 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4699 negative, produce a float value.
4700
4701 * dired.c (make_uid, make_gid): New functions.
4702 (Ffile_attributes): Use them to avoid negative UID and GID.
4703
f761d6b6
JB
47042009-03-20 Juanma Barranquero <lekktu@gmail.com>
4705
4706 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4707 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4708 Fix typos in docstrings.
4709
d507f8d7
KH
47102009-03-19 Kenichi Handa <handa@m17n.org>
4711
4712 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4713 changed, use font_load_for_lface to get a new font object.
4714 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4715
4716 * frame.c (x_set_font): Handle the case that ARG is a cons.
4717
c68845e0
GM
47182009-03-19 Glenn Morris <rgm@gnu.org>
4719
4720 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4721
bfa49dd1
CY
47222009-03-19 Chong Yidong <cyd@stupidchicken.com>
4723
4724 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4725
8458d4c1
KH
47262009-03-19 Kenichi Handa <handa@m17n.org>
4727
4728 * charset.c (load_charset_map_from_file): When a mapfile can't be
4729 loaded, signal an error.
4730
78e7d1fe
EZ
47312009-03-18 Eli Zaretskii <eliz@gnu.org>
4732
4733 * dired.c (Ffile_attributes): Make sure UID and GID are always
4734 positive, even if the value is too large for a positive EMACS_INT.
4735 Doc fix.
4736
4737 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4738
5da9fdfa
YM
47392009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4740
4741 * xmenu.c (xdialog_show): Move Fredisplay call ...
4742 (Fx_popup_dialog): ... here.
4743
7519c40d
SM
47442009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4745
4746 * dired.c (file_name_completion): Disable the first optimization just
4747 installed, since it is not implemented correctly.
4748
2cd298e2
SM
47492009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4750
4751 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4752 only if the entry can affect bestmatch.
2cd298e2
SM
4753 Stop the search early, as Ftry_completion already does.
4754
48d37adf
CY
47552009-03-17 Chong Yidong <cyd@stupidchicken.com>
4756
e10c9c93 4757 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4758
9286b16a
CY
47592009-03-15 Chong Yidong <cyd@stupidchicken.com>
4760
4761 * keyboard.c (parse_menu_item): Don't display remappings as menu
4762 equivalent bindings (Bug#788).
4763
f7b146dc
JR
47642009-03-15 Jason Rumney <jasonr@gnu.org>
4765
4766 * w32term.h (WM_EMACS_PAINT): New message.
4767 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4768 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4769 before passing to lisp thread. (Bug#950)
4770
f761d6b6 47712009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4772
d93f9575
CY
4773 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4774 variable as it was never reset.
4775 (ns_term_init): Remove initialization of Lisp-settable defaults
4776 and ns_expand_space.
4777 (-setPanelFromDefaultValues): Remove ns_expand_space.
4778 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4779 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4780 i.e. no additional spacing, similar to Carbon port.
4781
d93f9575
CY
4782 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4783 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4784
305018ec
JD
47852009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4786
4787 * sound.c (alsa_configure): Remove call to deprecated
4788 snd_pcm_sw_params_set_xfer_align.
4789
f761d6b6 47902009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4791
4792 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4793 after clicking in a detached tool bar.
4794 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4795
46e722a9
SM
47962009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4797
348db3dd
SM
4798 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4799 int/Lisp_Object mixup).
46e722a9 4800
a3d16f39
KH
48012009-03-13 Kenichi Handa <handa@m17n.org>
4802
4803 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4804 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4805 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4806 (set_fontset_font): Change ARG to a vector. Handle range_list in
4807 ARG correctly.
4808 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4809 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4810 the above change.
4811 (fontset_from_font): Fix previous change.
fe24f56a 4812 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4813 entry. If FONTSET is the default fontset, don't set the extra
4814 slot of the returning char-table.
4815
b066e6b6
JB
48162009-03-12 Juanma Barranquero <lekktu@gmail.com>
4817
4818 * nsfns.m (Fx_close_connection): Doc fix.
4819 (Fns_do_applescript): Reflow docstring.
4820 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4821 (Fx_display_pixel_width, Fx_display_pixel_height)
4822 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4823 Fix typos in docstrings.
4824 (Fns_set_alpha): Fix typos in error messages.
4825
d472514e 48262009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4827
d472514e 4828 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4829 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4830 were used for such events.
4831
d472514e
JB
4832 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4833 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4834
d472514e 4835 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4836 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4837
fb930676
KH
48382009-03-11 Kenichi Handa <handa@m17n.org>
4839
ff85581a
KH
4840 * font.h (font_open_by_spec): Extern it.
4841
c50b7e98
KH
4842 * font.c (font_open_by_spec): New function.
4843 (font_open_by_name): Use font_open_by_spec.
4844
fb930676
KH
4845 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4846 fontset of the frame.
4847
4848 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4849 modify the default font of frames that use this fontset.
4850 (num_auto_fontsets): New variable.
4851 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4852 name. Be sure to set FONTSET_ASCII to the correct font name.
4853 (update_auto_fontset_alist): New function.
4854
df4e8455
JB
48552009-03-11 Juanma Barranquero <lekktu@gmail.com>
4856
4857 * makefile.w32-in: Update dependencies.
4858
0a375797
AR
48592009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4860
4861 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4862
61313fa3
SM
48632009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4864
4865 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4866
b55103fb
CY
48672009-03-10 Chong Yidong <cyd@stupidchicken.com>
4868
4869 * lread.c (Feval_buffer): Doc fix.
4870
dde2559c
KH
48712009-03-09 Kenichi Handa <handa@m17n.org>
4872
4873 * charset.c (Qfile_name_handler_alist): Extern it.
4874 (load_charset_map_from_file): Temporarily bind
4875 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4876
df4e8455 48772009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4878
47f588bb
GM
4879 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4880 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4881
4ddf94bd
AR
48822009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4883
4c9bdfc2
AR
4884 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4885 (x_set_window_size): Change back to calculated method of setting
4886 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4887 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4888 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4889
fe41ae9e
AR
4890 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4891
4c9bdfc2
AR
4892 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4893 accelerator in parens under GNUstep.
4894
825d0875
KH
48952009-03-06 Kenichi Handa <handa@m17n.org>
4896
4897 These changes are to detect incorrect composition sequence without
f3b3be74 4898 looking ahead the source. (Bug#2370)
825d0875
KH
4899
4900 * coding.h: Include "composite.h".
4901 (enum compisition_state): New enum.
4902 (struct compisition_status): New struct.
4903 (struct iso_2022_spec): New member cmp_status.
4904 (struct emacs_mule_spec): New struct.
4905 (struct coding_system): New members ctext_extended_segment_len and
4906 embedded_utf_8. Change the union member
4907 spec.emacs_mule_full_support to spec.emacs_mule.
4908
4909 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4910 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4911 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4912 (ADD_COMPOSITION_DATA): New arg nbytes.
4913 (emacs_mule_char): New arg cmp_status.
4914 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4915 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4916 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4917 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4918 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4919 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4920 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4921 (EMACS_MULE_COMPOSITION_END): New macro.
4922 (emacs_mule_finish_composition): New function.
4923 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4924 (decode_coding_emacs_mule): Avoid long looking ahead while
4925 handling composition.
4926 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4927 (ENCODE_COMPOSITION_RULE): New macro.
4928 (finish_composition): New function.
4929 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4930 (DECODE_COMPOSITION_START): New implementation.
4931 (DECODE_COMPOSITION_END): Likewise.
4932 (STORE_COMPOSITION_RULE): New macro.
4933 (decode_coding_iso_2022): Avoid long looking ahead while handling
4934 composition, CTEXT extended segment, and embedded UTF-8.
4935 (setup_coding_system): For a coding of type iso-2022, reset
4936 CODING_ISO_EXTSEGMENT_LEN (coding) and
4937 CODING_ISO_EMBEDDED_UTF_8 (coding).
4938 (get_translation): Delete arguments last_block, from_nchars,
4939 to_nchars. Callers changed.
4940 (produce_chars): Don't modify charbuf. Adjusted for the change of
4941 get_translation.
98a326f7 4942 (produce_composition): Adjust for the new annotation sequence.
825d0875 4943 (handle_composition_annotation): Likewise.
98a326f7 4944 (consume_chars): Adjust for the change of get_translation.
825d0875 4945
ccbc4452
AR
49462009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4947
4ddf94bd 4948 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4949
988a7ddb
KH
49502009-03-05 Kenichi Handa <handa@m17n.org>
4951
4952 * font.c (font_select_entity): New function.
4953 (font_find_for_lface): Use font_select_entity to select a font.
4954
4955 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4956 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4957 font with C restriction.
4958
98a326f7 49592009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4960
be1bce46 4961 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4962
10ea2b82
JR
49632009-03-04 Jason Rumney <jasonr@gnu.org>
4964
2c93b248 4965 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4966 characters that have already been read. (Bug#2569)
2c93b248 4967
10ea2b82
JR
4968 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4969 Log an error message if check_image_size failed.
4970 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4971 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4972
71a0c011
EZ
49732009-03-02 Eli Zaretskii <eliz@gnu.org>
4974
4975 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4976 when decoding process output.
4977
2f63bba8
RS
49782009-03-01 Richard M Stallman <rms@gnu.org>
4979
4980 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4981
4982 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4983
0a9564cb
EZ
49842009-02-28 Eli Zaretskii <eliz@gnu.org>
4985
4986 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4987 (decode_coding_emacs_mule, decode_coding_iso_2022)
4988 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4989 (decode_coding_raw_text, decode_coding_charset)
4990 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4991 Honor inhibit-eol-conversion. (Bug #2186)
4992
449148b3
JR
49932009-02-28 Jason Rumney <jasonr@gnu.org>
4994
4995 * coding.c (detect_coding_charset): If not checking latin extra,
4996 fail on characters between 0x80 and 0xA0. (Bug#2354)
4997
a4aee864
EZ
49982009-02-28 Eli Zaretskii <eliz@gnu.org>
4999
5000 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5001 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5002
d88bee5a
GM
50032009-02-27 Glenn Morris <rgm@gnu.org>
5004
5005 * callint.c (Finteractive): Doc fix.
5006
a808f22d
KH
50072009-02-27 Kenichi Handa <handa@m17n.org>
5008
5009 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5010
caf8d60c
CY
50112009-02-27 Chong Yidong <cyd@stupidchicken.com>
5012
5013 * font.c (font_style_to_value): Set value for unknown symbols to
5014 100 instead of 255.
b61137ea
CY
5015 (weight_table, slant_table, width_table): Treat "unspecified" as
5016 the default value.
caf8d60c 5017
1a0de25c
JB
50182009-02-26 Juanma Barranquero <lekktu@gmail.com>
5019
5020 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5021
8fc45744
JB
50222009-02-25 Juanma Barranquero <lekktu@gmail.com>
5023
107bd7d1
JB
5024 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5025 error as soon as a recursive load is detected.
8fc45744 5026
f097e223
AR
50272009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5028
5029 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5030 before caching.
5031
8810a12f
KH
50322009-02-24 Kenichi Handa <handa@m17n.org>
5033
5034 * fontset.c (fontset_find_font): Fix the condition for checking
5035 unavailable font.
5036
2c7d1565
GM
50372009-02-24 Glenn Morris <rgm@gnu.org>
5038
5039 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5040 whitespace that confuses documentation.
5041
a20878b6
MB
50422009-02-23 Miles Bader <miles@gnu.org>
5043
5044 * process.c (Flist_system_processes, Fprocess_attributes)
5045 (syms_of_process): Rename `system-process-attributes' to
5046 `process-attributes'.
5047
b3b58c01
AS
50482009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5049
1b3b981b
AS
5050 * coding.h (struct coding_system): Make safe_charsets a pointer to
5051 unsigned char.
5052 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5053 being 255.
5054 (SAFE_CHARSET_P): Likewise.
5055 (setup_iso_safe_charsets): Properly setup safe_charsets.
5056 (Fdefine_coding_system_internal): Likewise.
5057 (setup_coding_system): Likewise. Remove unneeded casts.
5058 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5059 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5060 unneeded casts.
5061
b3b58c01
AS
5062 * insdel.c (del_range_2): Don't modify gap contents when called
5063 from decode_coding_object. (Bug#1809)
5064
0b6f228c
CY
50652009-02-21 Chong Yidong <cyd@stupidchicken.com>
5066
5067 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5068 Qfont_object.
5069 (Ftype_of): Recognize font objects.
5070
5071 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5072
5073 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5074 moved to data.c.
5075
52f8870b
AR
50762009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5077
5078 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5079 async_iconified. Based on a patch by Christian Lynbech
5080 <christian.lynbech@tieto.com>.
5081 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5082
7087d5e9
GM
50832009-02-20 Glenn Morris <rgm@gnu.org>
5084
5085 * syntax.c (Fskip_chars_forward): Fix doc typo.
5086
41d2ceef
CY
50872009-02-20 Chong Yidong <cyd@stupidchicken.com>
5088
5089 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5090
1a3b7ca6
CY
50912009-02-19 Chong Yidong <cyd@stupidchicken.com>
5092
5093 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5094
73cce38d
KH
50952009-02-19 Kenichi Handa <handa@m17n.org>
5096
5097 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5098 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5099
a51092ee
DN
51002009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5101
5102 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5103
c423ecca
KH
51042009-02-18 Kenichi Handa <handa@m17n.org>
5105
5106 * font.c (font_check_otf_features): Fix handling of `nil' element.
5107 (Ffont_spec): Describe :lang and :otf in the docstring.
5108
4c1958f4
AS
51092009-02-16 Andreas Schwab <schwab@suse.de>
5110
5111 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5112 string.
5113
5704f39a
KH
51142009-02-16 Kenichi Handa <handa@m17n.org>
5115
5116 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5117 (Bug#1723)
5704f39a 5118
8f0085aa
CY
51192009-02-14 Chong Yidong <cyd@stupidchicken.com>
5120
a057d86a 5121 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5122
5123 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5124 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5125
aff01dd9
EZ
51262009-02-14 Eli Zaretskii <eliz@gnu.org>
5127
5128 * msdos.c (MAX_SCREEN_BUF): New macro.
5129 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5130 Encode the entire run of glyphs sharing the same face, instead of
5131 doing that one glyph at a time (fixes a bug with displaying
5132 double-size characters).
5133
ba301db3
AR
51342009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5135
5136 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5137
5138 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5139 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5140 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5141
5142 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5143 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5144
51d861de
SM
51452009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5146
ac146f82 5147 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5148 invisible areas.
5149
7fed8996
JR
51502009-02-12 Jason Rumney <jasonr@gnu.org>
5151
631ea4fb
JR
5152 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5153 (add_font_entity_to_list): Call check_face_name even when family
5154 is unspecified.
5155
cb4a3e42
JR
5156 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5157 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5158 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5159
7fed8996 5160 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5161 raster fonts. (Bug#2219)
7fed8996 5162
895416e3
KH
51632009-02-12 Kenichi Handa <handa@m17n.org>
5164
5165 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5166 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5167 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5168 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5169 (find_automatic_composition): While looking forward and backward,
5170 check static composition. Fix where to stop looking forward.
5171 (composition_adjust_point): Fix checking of static composition.
5172 (Fcomposition_get_gstring): Pay attention to
1dacf998 5173 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5174
5175 * lisp.h (fast_looking_at): Extern it.
5176
5177 * search.c (fast_looking_at): New function.
5178
51d861de 5179 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5180 <struct glyph>.u.cmp.to.
5181 (append_composite_glyph): Likewise.
5182
51d861de 5183 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5184 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5185 composition.
51d861de 5186 (append_composite_glyph): Adjust for the change of
895416e3
KH
5187 <strcut glyph>.u.cmp.to.
5188
8510724d
JB
51892009-02-11 Juanma Barranquero <lekktu@gmail.com>
5190
5191 * casetab.c (init_casetab_once):
5192 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5193 * font.c (font_update_lface):
5194 * fontset.c (Fnew_fontset):
5195 * ftfont.c (ftfont_drive_otf):
5196 * xfont.c (xfont_open):
5197 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5198
294fa707
SM
51992009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5200
5201 * fileio.c (Fwrite_region): !NILP -> CONSP.
5202
b5bfebec
AS
52032009-02-10 Andreas Schwab <schwab@suse.de>
5204
5205 * process.c (send_process): Properly relocate pointer into data
adab88bd 5206 when using encoded data. (Bug#2272)
b5bfebec 5207
cb84a2be
KH
52082009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5209
5210 * coding.c (detect_coding_charset): Fix previous change.
5211
89e09428
JR
52122009-02-08 Jason Rumney <jasonr@gnu.org>
5213
5214 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5215 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5216
4470a277
AS
52172009-02-07 Andreas Schwab <schwab@suse.de>
5218
5219 * unexelf.c (unexec): Fix error message.
5220
3175b12a
AR
52212009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5222
5223 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5224 when modal window is active. (Bug #2152)
3175b12a
AR
5225 (applicationShouldTerminate:): Remove now-unneeded while loop
5226 around NSRunAlertPanel.
5227
5228 * nsmenu.m (popupSession): New file-global variable.
5229 (pop_down_menu): End the popupSession before closing dialog.
5230 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5231 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5232 don't query NSApp for events (just sleep instead).
5233
8434d0b8
EZ
52342009-02-07 Eli Zaretskii <eliz@gnu.org>
5235
51d861de
SM
5236 * coding.c (syms_of_coding) <translation-table-for-input>:
5237 Modify doc string to discourage use for character code unification.
8434d0b8 5238
aa82edfd
CY
52392009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5240
5241 * atimer.c (run_timers): Update pending_atimers.
5242
2d283c7c
CY
52432009-02-06 Chong Yidong <cyd@stupidchicken.com>
5244
eb306cab
CY
5245 * image.c (svg_load_image): Fix last change.
5246
2d283c7c
CY
5247 * xfns.c (Fx_create_frame): Signal an error if no font is
5248 found (Bug#2147).
5249
4d8e170e
JB
52502009-02-05 Juanma Barranquero <lekktu@gmail.com>
5251
5252 * character.c (syms_of_character) <script-representative-chars>:
5253 Fix typo in docstring.
5254
c96169a0
AR
52552009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5256
5257 * nsmenu.m (pop_down_menu): New function.
5258 (ns_popup_dialog): Call it on unwind.
5259 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5260 call timer_check() (Bug#2154).
5261 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5262 handling_signal is set.
5263 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5264
31fd7c5c 5265 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5266
5267 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5268
5269 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5270
51d861de
SM
5271 * keyboard.c (poll_for_input_1, handle_async_input):
5272 Set handling_signal under HAVE_NS.
c96169a0 5273
aacd8ba1
GM
52742009-02-04 Glenn Morris <rgm@gnu.org>
5275
5276 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5277
4cb75c4b
KH
52782009-02-04 Kenichi Handa <handa@m17n.org>
5279
5280 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5281
5282 * charset.c (Fchar_charset): New optional arg restriction.
5283
5284 * coding.h (coding_system_charset_list): Extern it.
5285
5286 * coding.c (coding_system_charset_list): New function.
5287
5288 * composite.c: Include coding.h and termhooks.h.
5289 (composition_gstring_p): Fix for the terminal case.
5290 (composition_gstring_width): Likewise.
5291 (fill_gstring_body): Likewise.
5292 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5293 the frame.
5294 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5295 is within a composition.
867d4bb3 5296 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5297
5298 * term.c (encode_terminal_code): Fix handling of composition.
5299 (produce_composite_glyph): For static composition, get pixel_width
5300 from struct composition.
5301
826ba17e
AS
53022009-02-02 Andreas Schwab <schwab@suse.de>
5303
5304 * unexelf.c (unexec): Handle unaligned bss offset.
5305
8ad093db
AR
53062009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5307
5308 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5309 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5310
8ad093db
AR
5311 * keyboard.c (handle_interrupt): Don't call
5312 quit_throw_to_read_char() under NS.
d0a76a6e 5313
8ad093db
AR
5314 * blockinput.h: Remove NS-specific code.
5315
4d18a7a2
DN
53162009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5317
db878925
DN
5318 * dispnew.c (window_change_signal): Don't try to get the size of a
5319 suspended tty frame.
5320 * term.c (Fresume_tty): Resize if the size has changed while the
5321 tty was suspended.
5322
4d18a7a2
DN
5323 * alloc.c (mark_stack): Properly conditionalize previous change.
5324
8984df7c
JB
53252009-01-30 Juanma Barranquero <lekktu@gmail.com>
5326
5327 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5328 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5329 Remove; this code is not used on Windows.
5330
75f4f1ac
EZ
53312009-01-30 Eli Zaretskii <eliz@gnu.org>
5332
5333 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5334 EOLs that also has stray ^M characters.
5335
07a1e794
JB
53362009-01-30 Juanma Barranquero <lekktu@gmail.com>
5337
5338 * atimer.c (run_timers, alarm_signal_handler):
5339 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5340 * w32inevt.c (w32_console_read_socket):
5341 * w32term.c (w32_read_socket):
5342 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5343
a8b11cc9
CY
53442009-01-30 Chong Yidong <cyd@stupidchicken.com>
5345
5346 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5347 Initialize it as a relative filename pattern.
5348 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5349 (Fcall_process_region): Simplify temp file creation using
5350 temporary-file-directory.
5351
c279587b
EZ
53522009-01-29 Eli Zaretskii <eliz@gnu.org>
5353
5354 * msdos.c: Rename pending_signals to msdos_pending_signals.
5355 (sig_suspender, sigprocmask): Adjust.
5356
a8fe3242
CY
53572009-01-29 Chong Yidong <cyd@stupidchicken.com>
5358
5359 * keyboard.c (pending_signals): New var.
5360 (poll_for_input, input_available_signal, init_keyboard): Set it.
5361 (process_pending_signals): New function.
5362
5363 * lisp.h (QUIT): Check pending_signals instead of
5364 interrupt_input_pending. Use process_pending_signals.
5365
51d861de 5366 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5367
51d861de 5368 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5369
5370 * sysdep.c (emacs_write): Use process_pending_signals.
5371
5372 * xterm.c (XTread_socket): Update pending_signals.
5373
5374 * w32term.c (w32_read_socket): Update pending_signals.
5375
5376 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5377
6570a1c4
KH
53782009-01-29 Kenichi Handa <handa@m17n.org>
5379
5380 * xftfont.c (xftfont_has_char): New function.
5381 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5382
d72a4afa
AR
53832009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5384
5385 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5386 under GNUstep.
5387 (ns_query_color): New declaration.
5388
5389 * nsterm.m (ns_confirm_quit): New variable.
5390 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5391 (EmacsApp-applicationShouldTerminate:): Use it.
5392 (EmacsPrefsController): Let user set it.
5393 (ns_query_color): New function.
5394 (ns_defined_color): Use it.
5395 (ns_initialize): Drop.
5396 (ns_term_init): Add two lines from ns_initialize(), and set
5397 input_interrupt_mode to nil.
5398
5399 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5400 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5401
9fe78804
KH
54022009-01-28 Kenichi Handa <handa@m17n.org>
5403
5404 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5405 (fontset_get_font_group): Remember that no font-group is specified
5406 for C.
9fe78804 5407
fa57de36
CY
54082009-01-27 Chong Yidong <cyd@stupidchicken.com>
5409
930600e9
CY
5410 * fns.c (concat): Check for string overflow (bug#1787).
5411
fa57de36
CY
5412 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5413 Quadruple undo limits (bug#1501).
5414
7179ce7b
KH
54152009-01-27 Kenichi Handa <handa@m17n.org>
5416
5417 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5418 directly use GT_Get_Char_index.
5419
5420 * xftfont.c (struct xftfont_info): New member `index'.
5421
5422 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5423 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5424
5be8fcc0
CY
54252009-01-26 Kenichi Handa <handa@m17n.org>
5426
5427 * fontset.c (fontset_find_font): Fix handling of non-cons return
5428 value of fontset_get_font_group.
5429 (fontset_font): Revert last change.
5430
19ae3e61
JR
54312009-01-26 Jason Rumney <jasonr@gnu.org>
5432
5433 * w32font.c (w32font_list_internal): Return quickly if registry is
5434 unknown. Simplify final return.
5435 (add_font_entity_to_list): Break complex logic down into more
5436 manageable chunks. Move unknown registry check to
5437 w32font_list_internal.
5438
8612b71a
AR
54392009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5440
5441 Changes to remove Feval calls from GUI under NS.
5442
d8038940
JB
5443 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5444 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5445 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5446
5447 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5448 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5449 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5450 instead of NON_ASCII_KEYSTROKE_EVENT.
5451 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5452 (EmacsApp-applicationShouldTerminate:): Query user.
5453 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5454 instead of Feval.
5455
5456 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5457
5458 * keyboard.c (kbd_buffer_get_event): Check for it.
5459 (keys_of_keyboard): Define lispy keys for
5460 ns-put/unput-working-text.
5461
5462 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5463 versions.
5464 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5465
6288ae55
CY
54662009-01-25 Chong Yidong <cyd@stupidchicken.com>
5467
5468 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5469 setting current_buffer directly. (Bug#2044)
6288ae55 5470
289e7f8f
CY
54712009-01-24 Chong Yidong <cyd@stupidchicken.com>
5472
5ce87308 5473 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5474 any work. (Bug#1952, bug#1990).
5ce87308 5475
64cc3cf6 5476 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5477
b3243e6f
AR
54782009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5479
5480 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5481 (ns_no_defaults): New declaration.
5482 (main): Use it.
e0d2e69a 5483
d900b2af 5484 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5485
d900b2af 5486 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5487
d900b2af
AR
5488 * nsterm.m (ns_no_defaults): New variable.
5489 (ns_initialize): Don't read defaults when ns_no_defaults.
5490 (EmacsView-readSelectionFromPasteboard:)
5491 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5492 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5493 (ns_dumpglyphs_stretch): New function.
5494 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5495 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5496
e0d2e69a
AR
5497 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5498
3ac71f5d
CY
54992009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5500
5501 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5502 call for Sparc64.
5503
3fe53a83
AR
55042009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5505
5506 * nsfns.m:
5507 * nsgui.h:
5508 * nsmenu.m:
5509 * nsselect.m:
5510 * nsterm.h:
5511 * nsterm.m: Remove '23' comments that indicated code added during
5512 update from emacs-20 -> emacs-23.
5513
10f87c6f 55142009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5515
5516 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5517 ns_alternate_modifier. (Bug#1217)
a3b53a85 5518
c7cef62d
AR
5519 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5520 Display all shortcuts, including those w/o super modifier.
5521
575fb8bd
AR
5522 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5523
918b848b
CY
55242009-01-22 Chong Yidong <cyd@stupidchicken.com>
5525
5526 * fileio.c (Vwrite_region_post_annotation_function)
5527 (Vwrite_region_annotation_buffers): New vars.
5528 (build_annotations_unwind): Just reset
5529 Vwrite_region_annotation_buffers.
5530 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5531 Call write-region-post-annotation-function.
5532 (build_annotations): Add to Vwrite_region_annotation_buffers if
5533 buffer changes.
5534
a39e2539
AR
55352009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5536
5537 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5538 Tiger.
51d861de
SM
5539 * nsfns.m (ns_do_applescript):
5540 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5541
35ed44db
AR
55422009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5543
5544 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5545
cbe0b5bf
AR
55462009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5547
5548 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5549
6049d3a0
AR
5550 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5551
5552 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5553 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5554 handle Ctrl-tab. (Bug#1841)
5555 (ns_get_color): Use unsigned long long for scanned hex string value.
5556 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5557 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5558 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5559 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5560 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5561 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5562 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5563
d3810c21 5564 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5565 DPI. (Bug#1316)
d3810c21
AR
5566 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5567 values in onTiger section.
4c7077c3 5568
e301e634
CY
55692009-01-19 Chong Yidong <cyd@stupidchicken.com>
5570
7f82490b
CY
5571 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5572 Check return value of font_spec_from_name.
64cc3cf6 5573 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5574
5575 * font.c (font_spec_from_name): Return Qnil if font name could not
5576 be parsed.
5577 (font_parse_name): Treat a `?' character as part of an XLFD.
5578
e301e634
CY
5579 * fns.c (Fsubstring): Doc fix.
5580
1c0db158
KH
55812009-01-19 Kenichi Handa <handa@m17n.org>
5582
51d861de 5583 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5584 (ftfont_list): Likewise.
5585
acf20901
JB
55862009-01-18 Juanma Barranquero <lekktu@gmail.com>
5587
fff4e459
JB
5588 * dbusbind.c (Fdbus_register_signal):
5589 * process.c (conv_sockaddr_to_lisp):
5590 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5591
acf20901
JB
5592 * callproc.c (Fgetenv_internal): Doc fix.
5593
e7abcdfb
CY
55942009-01-16 Chong Yidong <cyd@stupidchicken.com>
5595
5596 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5597 it is not even used.
5598
b60861e6
GM
55992009-01-16 Glenn Morris <rgm@gnu.org>
5600
5601 * font.c (Ffont_variation_glyphs): Silence compiler.
5602
8db52afe
JB
56032009-01-15 Juanma Barranquero <lekktu@gmail.com>
5604
5605 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5606 Reported by David Robinow <drobinow@gmail.com>.
5607
4cddb209
KH
56082009-01-15 Kenichi Handa <handa@m17n.org>
5609
51d861de 5610 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5611
f247f67b
JR
56122009-01-14 Jason Rumney <jasonr@gnu.org>
5613
5614 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5615 never a fontset. (Bug#1562)
f247f67b 5616
f56a4450
KH
56172009-01-14 Kenichi Handa <handa@m17n.org>
5618
5619 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5620 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5621
4e99855e
CY
56222009-01-13 Chong Yidong <cyd@stupidchicken.com>
5623
5624 * font.c (font_clear_prop): If clearing the family, clear the font
5625 width index too.
5626
fff4e459 5627 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5628
24f01470
JB
56292009-01-12 Juanma Barranquero <lekktu@gmail.com>
5630
5631 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5632 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5633 functions, use sizeof.
5634
a41240a3
MR
56352009-01-12 Martin Rudalics <rudalics@gmx.at>
5636
5637 * keyboard.c (read_char): Fix case where last_nonmenu_event
5638 returned a bad value with submenus. (Bug#447)
5639
944636b8
CY
56402009-01-12 Chong Yidong <cyd@stupidchicken.com>
5641
5642 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5643 family, clear the font width index too.
5644
0dad7c6f
JR
56452009-01-11 Jason Rumney <jasonr@gnu.org>
5646
5647 * keyboard.c (cmd_error_internal): Exit when errors occur before
5648 frame creation and not in daemon mode. (Bug#1836)
5649
7c2363af
CY
56502009-01-10 Chong Yidong <cyd@stupidchicken.com>
5651
5652 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5653 of a display vector, backtrack.
5654 (try_window_reusing_current_matrix): Check glyph type before
5655 referencing charpos member.
5656
97b1b294
EZ
56572009-01-10 Eli Zaretskii <eliz@gnu.org>
5658
5659 Fix Bug #876:
5660
5661 * coding.c (inhibit_null_byte_detection): New variable.
5662 (detect_coding, detect_coding_system): Don't pay attention to null
5663 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5664 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5665 <inhibit-iso-escape-detection>: Doc fix.
5666
4624b6e3
JR
56672009-01-09 Jason Rumney <jasonr@gnu.org>
5668
5669 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5670 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5671 Only report Unicode Plane 2 fonts as unicode-sip.
5672
323b840c
CY
56732009-01-09 Chong Yidong <cyd@stupidchicken.com>
5674
51d861de
SM
5675 * xfaces.c (Fx_font_family_list): Delete function.
5676 Move compatibility version to faces.el.
323b840c 5677
51d861de 5678 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5679
eba7400d
MR
56802009-01-09 Martin Rudalics <rudalics@gmx.at>
5681
5682 * frame.c (x_set_frame_parameters): Remember requested value for
5683 fullscreen before it's reset by the parameter handler.
5684
4b09796d
GM
56852009-01-09 Glenn Morris <rgm@gnu.org>
5686
5687 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5688 (last_command_event): ... and update all users.
4b09796d
GM
5689 (last_input_char): For clarity, rename to...
5690 (last_input_event): ... and update all users.
5691 (last-command-char, last-input-char): Move to subr.el as aliases.
5692 * cmds.c, commands.h: Update for last_command_char rename.
5693
14ccea62
CY
56942009-01-08 Chong Yidong <cyd@stupidchicken.com>
5695
51d861de 5696 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5697
5f004711
JR
56982009-01-08 Jason Rumney <jasonr@gnu.org>
5699
5700 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5701 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5702 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5703 Don't declare.
fff4e459 5704 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5705 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5706
b71f6f73
KH
57072009-01-07 Kenichi Handa <handa@m17n.org>
5708
50b06221 5709 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5710 remember the coding system used for decoding in
50b06221
KH
5711 coding_system (Bug#1039).
5712
b71f6f73 5713 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5714 breaking the loop. (Bug#870)
b71f6f73
KH
5715 (decode_coding_utf_16, decode_coding_emacs_mule)
5716 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5717 (decode_coding_charset): Likewise.
5718
56f668f7
MR
57192009-01-05 Martin Rudalics <rudalics@gmx.at>
5720
5721 * frame.c (x_set_frame_parameters): Make sure height (width) get
5722 applied when fullwidth (fullheight) is set. (Bug#1522)
5723
5da9424d
JB
57242009-01-04 Juanma Barranquero <lekktu@gmail.com>
5725
5726 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5727 (utc_base): Declare as ULONGLONG, not long double.
5728 (convert_time_raw): Delete.
5729 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5730 (initialize_utc_base): New function.
5731 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5732 (convert_from_time_t): Use initialize_utc_base; compute result with
5733 64-bit arithmetic.
5734 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5735
c4605e09
EZ
57362009-01-03 Eli Zaretskii <eliz@gnu.org>
5737
9acef61c 5738 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5739 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5740 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5741 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5742 [!subprocesses]: Define.
5743 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5744 (Flist_system_processes, Fsystem_process_attributes)
5745 [!subprocesses]: Call list_system_processes and
5746 system_process_attributes instead of returning Qnil.
5747
9acef61c
JB
5748 * dosfns.c (system_process_attributes, list_system_processes):
5749 New functions.
c4605e09
EZ
5750
5751 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5752
5753 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5754 Don't use the default (no-op) implementation.
5755
8b7d0a16
JR
57562009-01-03 Jason Rumney <jasonr@gnu.org>
5757
a6d46bc1
JR
5758 * keyboard.c (parse_modifiers_uncached): Wheel events are
5759 clicks (bug#687).
5760
8b7d0a16
JR
5761 * w32term.c (x_query_colors, x_query_color): New functions.
5762
5763 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5764 (svg_load_image): Cast returned pointers from dynamically loaded
5765 functions. Eliminate W32 specific code.
5766
bfe11752
DN
57672009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5768
89e2438a
DN
5769 * nsfns.m (x_set_foreground_color, x_set_background_color)
5770 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5771 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5772 x_ prefix instead of ns_. Update references.
5773 (syms_of_nsfns): Add a FIXME comment.
5774
5775 * nsterm.m (x_set_cursor_type): New prototype.
5776 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5777
bfe11752
DN
5778 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5779 for Solaris instead of incorrectly providing Qutime and Qcutime.
5780
031da700
EZ
57812009-01-02 Eli Zaretskii <eliz@gnu.org>
5782
5783 * w32.c (process_times): Compute sum of utime and stime.
5784 (system_process_attributes): Add Qtime to the alist.
5785
5786 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5787 and add them to the alist.
5788
5789 * process.c (top level) <Qtime, Qctime>: New variables.
5790 (syms_of_process): staticpro them.
5791 (Fsystem_process_attributes): Add their documentation to the doc
5792 string.
5793
5794 * process.h: Declare Qtime and Qctime.
5795
df23bf08
JR
57962009-01-02 Jason Rumney <jasonr@gnu.org>
5797
9acef61c 5798 * image.c (Qgobject): New symbol.
df23bf08
JR
5799 (syms_of_image): Initialize it.
5800 (init_svg_functions): Load some functions from gobject library.
5801
5bbdf7aa
DN
58022009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5803
5804 * frame.c (make_terminal_frame): Remove redundant code and useless
5805 block.
5806
63136da6
AS
58072009-01-01 Andreas Schwab <schwab@suse.de>
5808
5809 * process.c (conv_sockaddr_to_lisp): Add workaround for
5810 getsockname bug on BSD.
5811
9ef69046
CY
58122009-01-01 Chong Yidong <cyd@stupidchicken.com>
5813
d6fafbe0
CY
5814 * xfns.c (x_create_tip_frame): Set border width of the X window.
5815
51d861de 5816 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5817
f9c34147
JR
58182009-01-01 Jason Rumney <jasonr@gnu.org>
5819
9acef61c 5820 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5821 Don't block input, as per earlier xterm.c changes.
5822
f5497e45
AR
58232008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5824
5825 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5826 (ns_appkit_version_int): New function.
5827 (x-server-version): Use ns_appkit_version_int and follow 21+
5828 convention of returning 3 integers.
5829
c19cab20
KH
58302008-12-30 Kenichi Handa <handa@m17n.org>
5831
5832 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5833 (CHAR_SURROGATE_PAIR_P): New macro.
5834
5835 * font.h (struct font_driver): New member get_variation_glyphs.
5836
9acef61c 5837 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5838 (Ffont_variation_glyphs): New function.
5839 (syms_of_font): Defsubr it.
5840
5841 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5842 ftfont_variation_glyphs.
5843 (setup_otf_gstring): New function.
5844 (ftfont_drive_otf): Use it.
5845 (ftfont_shape_by_flt): Handle variation selector.
5846 (ftfont_variation_glyphs): New function.
5847
28cd591f
MR
58482008-12-30 Martin Rudalics <rudalics@gmx.at>
5849
5850 * frame.c (Vemacs_iconified): Remove.
5851
7f714baf
JR
58522008-12-30 Jason Rumney <jasonr@gnu.org>
5853
5854 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5855 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5856
9d2d22ab
CY
58572008-12-30 Chong Yidong <cyd@stupidchicken.com>
5858
5859 * indent.c (Fvertical_motion): Don't advance iterator if we have
5860 reseated to the desired position.
5861
5862 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5863 checking for pos match.
5864
545312c2
KH
58652008-12-30 Kenichi Handa <handa@m17n.org>
5866
1ede3eb6
KH
5867 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5868 just get the low 8-bit of the code.
5869
545312c2
KH
5870 * font.c (font_intern_prop): Validate str as multibyte.
5871
bd7bbf29
DN
58722008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5873
31e0750e
DN
5874 * dispextern.h (struct face): Move lface and hash from the middle
5875 of bitfields.
5876
bd7bbf29
DN
5877 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5878
b5672e7c
DN
58792008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5880
5881 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5882 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5883 instead of intervals.h.
5884
d704470f
AS
58852008-12-26 Andreas Schwab <schwab@suse.de>
5886
5887 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5888 cons.
5889
54b33868
MR
58902008-12-26 Martin Rudalics <rudalics@gmx.at>
5891
5892 * textprop.c (Qminibuffer_prompt): New variable.
5893 (syms_of_textprop): Initialize it.
5894 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5895 in minibuffer-prompt face. (Bug#1662)
5896
40b615d6
JR
58972008-12-25 Jason Rumney <jasonr@gnu.org>
5898
5899 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5900
baae5c2d
JR
59012008-12-24 Jason Rumney <jasonr@gnu.org>
5902
5903 * ralloc.c (r_alloc_reset_variable): New function.
5904
5905 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5906 record of what points where. (Bug#716)
baae5c2d 5907
a9051c88
DN
59082008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5909
5910 * minibuf.c (read_minibuf): Follow the non-interactive case when
5911 running as a daemon, before detaching.
5912
8b146312
AS
59132008-12-22 Andreas Schwab <schwab@suse.de>
5914
5915 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5916 * gtkutil.c (free_widget_value): Use xfree instead of free.
5917
56f2de10
MR
59182008-12-22 Martin Rudalics <rudalics@gmx.at>
5919
5920 * frame.c (delete_frame): New function derived from
5921 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5922 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5923 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5924 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5925 * frame.h: Extern delete_frame.
5926 * window.c (window_loop):
5927 * terminal.c (delete_terminal):
5928 * xterm.c (x_connection_closed):
5929 * xfns.c (Fx_hide_tip):
9acef61c 5930 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5931
1fc200d6
JR
59322008-12-21 Jason Rumney <jasonr@gnu.org>
5933
5934 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5935 when character maps to .notdef character.
5936
5e252df2
SM
59372008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5938
5939 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5940
99b72cc4
JR
59412008-12-20 Jason Rumney <jasonr@gnu.org>
5942
5943 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5944 a graphical frame on Windows. (Bug#1325)
99b72cc4 5945
acc49a52
JD
59462008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5947
5948 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5949
6ea15123
CY
59502008-12-20 Chong Yidong <cyd@stupidchicken.com>
5951
5952 * minibuf.c (Fread_buffer): Doc fix.
5953
b2dab6c8
JR
59542008-12-20 Jason Rumney <jasonr@gnu.org>
5955
54ea0c87 5956 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5957 server name in UNC paths. (Bug#719)
54ea0c87 5958
b2dab6c8 5959 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5960 charbuf. (Bug#1035)
b2dab6c8 5961
6d1921be
DN
59622008-12-19 Daniel Engeler <engeler@gmail.com>
5963
5964 * sysdep.c (serial_configure): Fix typo.
5965
53934c98
DN
59662008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5967
5968 * sysdep.c: Include alloca.h.
f4f634e8
DN
5969 (system_process_attributes): Add implementation for Solaris.
5970
5971 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5972
06e111a6
DN
59732008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5974
5975 Reorganize implementation of Flist_system_processes and
5976 Fsystem_process_attributes. No functional changes.
5977 * process.c: Don't #include pwd.h, grp.h and limits.h.
5978 (Flist_system_processes): Just call list_system_processes.
5979 (Fsystem_process_attributes): Just call system_process_attributes.
5980 (procfs_list_system_processes, time_from_jiffies)
5981 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5982 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5983
5984 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5985 (list_system_processes): Rename from
5986 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5987 Provide a do nothing implementation.
5988 (system_process_attributes): Rename from
5989 procfs_list_system_processes.
5990 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5991 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5992
5993 * w32.c (list_system_processes): Rename from
5994 w32_list_system_processes.
5995 (system_process_attributes): Rename from
5996 w32_system_process_attributes.
5997
5998 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5999
6000 * process.h (w32_list_system_processes)
6001 (w32_system_process_attributes): Remove.
362654a6
JB
6002 (list_system_processes, system_process_attributes):
6003 New prototypes.
06e111a6 6004
6a705b23
KH
60052008-12-19 Kenichi Handa <handa@m17n.org>
6006
6007 * xfont.c (xfont_decode_coding_xlfd): New function.
6008 (xfont_encode_coding_xlfd): New function.
6009 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6010 (xfont_list): Decode and encode XLFD by iso-8859-1.
6011 (xfont_match): Likewise.
6012 (xfont_list_family): Likewise.
6013 (xfont_open): Likewise.
6014
d66c0241 6015 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6016 names are utf-8.
6017
d66c0241 6018 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6019 names are utf-8.
6020
5a130941
JD
60212008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6022
6023 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6024 changed.
bfd20325
JD
6025 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6026 clicked on a detached tool bar button.
5a130941 6027
fd95644b
DN
60282008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6029
6030 * emacs.c (main): Print and error and exit when no data is read
6031 from the pipe.
6032
e6eee6ae
JR
60332008-12-17 Jason Rumney <jasonr@gnu.org>
6034
6035 * w32font.c (w32font_has_char): Always return -1.
6036
a35dd56b
KH
60372008-12-16 Kenichi Handa <handa@m17n.org>
6038
6039 * font.c (font_open_entity): Fix previous change.
6040
0e3635c2
DN
60412008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6042
6043 * process.c: Include <limits.h>.
6044
d4835507 60452008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6046
6047 * font.c (font_update_drivers): Fix mistake in reconstructing the
6048 driver list.
6049
60502008-12-16 Chong Yidong <cyd@stupidchicken.com>
6051
6052 * font.c (font_clear_cache): Fix format of font cache data.
6053
e2cbc401
CY
60542008-12-15 Chong Yidong <cyd@stupidchicken.com>
6055
6056 * xftfont.c (xftfont_open): Free Xft font pattern if
6057 XftFontOpenPattern fails.
6058
6059 * xterm.c (x_free_frame_resources): Remove extraneous call to
6060 free_frame_faces.
6061
b131d535
CY
60622008-12-13 Chong Yidong <cyd@stupidchicken.com>
6063
6064 * xterm.c (x_delete_display): Move xim_close_dpy call to
6065 x_delete_terminal.
6066 (x_delete_terminal): Call xim_close_dpy.
6067
e6df5336
JR
60682008-12-13 Jason Rumney <jasonr@gnu.org>
6069
6070 * w32font.c (intern_font_name): New function.
6071 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6072 (w32font_open_internal, Fx_select_font): Decode font name.
6073 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6074
6075 * w32font.h (intern_font_name): Declare new function.
6076
6077 * w32uniscribe.c (add_opentype_font_name_to_list):
6078 Use intern_font_name.
6079
20d68145
CY
60802008-12-13 Chong Yidong <cyd@stupidchicken.com>
6081
9f2554de
CY
6082 * frame.c (Fdelete_frame): Call free_font_driver_list.
6083
3d9bec9a
CY
6084 * font.c (free_font_driver_list): Implement missing function.
6085
20d68145
CY
6086 * w32term.c (w32_term_init): Don't initialize the image cache
6087 here; it will be done in init_frame_faces.
6088
6089 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6090 (struct x_display_info): Remove unused member null_pixel. New
6091 member xim_callback_data.
6092
6093 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6094 (xim_initialize): Save pointer to callback function data.
6095 (xim_close_dpy): Free callback function data. Call XCloseIM,
6096 reverting 2008-11-04 change by David Smith.
6097 (x_term_init): Don't initialize the image cache here; it will be
6098 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6099 (x_delete_display): Free x_dnd_atoms member.
6100
96f9306b
KH
61012008-12-13 Kenichi Handa <handa@m17n.org>
6102
6dec9044
JB
6103 * font.c (font_rescale_ratio): Moved from xfaces.c.
6104 Argument type changed. Handle a font-spec too.
96f9306b 6105 (font_score): Check Vface_font_rescale_alist.
6dec9044 6106 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6107
6108 * xfaces.c (font_rescale_ratio): Moved to font.c.
6109
8d5b4964
CY
61102008-12-13 Chong Yidong <cyd@stupidchicken.com>
6111
6112 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6113
e6df5336
JR
61142008-12-12 Jason Rumney <jasonr@gnu.org>
6115
6116 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6117 Vwindow_system_version to the real w32 major version.
6118
97c6058a
DN
61192008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6120
6121 * term.c (init_tty): Move setting the terminal name before the
6122 potential user: maybe_fatal.
6123
ec4e88d7
CY
61242008-12-11 Chong Yidong <cyd@stupidchicken.com>
6125
d4835507
JB
6126 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6127 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6128
b4233ec9
JR
61292008-12-11 Jason Rumney <jasonr@gnu.org>
6130
8ec71e23 6131 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6132 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6133
b4233ec9 6134 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6135 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6136
011a0143
JB
61372008-12-11 Juanma Barranquero <lekktu@gmail.com>
6138
6139 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6140
3c309f34
JB
61412008-12-11 Juanma Barranquero <lekktu@gmail.com>
6142
6143 * process.c (Fsystem_process_attributes, syms_of_process):
6144 Fix typo in name of Ssystem_process_attributes.
6145 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6146
fedc6ab5
JB
61472008-12-11 Juanma Barranquero <lekktu@gmail.com>
6148
6149 * syntax.c (Fmodify_syntax_entry): Doc fix.
6150
ba3de0e8
JB
61512008-12-10 Juanma Barranquero <lekktu@gmail.com>
6152
6153 * font.c (Ffont_spec): Move usage to end of docstring.
6154
174f1c74
JR
61552008-12-10 Jason Rumney <jasonr@gnu.org>
6156
6157 * w32font.c (Qcham): New symbol.
6158 (font_supported_scripts): Add cham, and comments for other new
6159 scripts in bitfield from OpenType spec.
9d32f818
JR
6160 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6161 contain characters beyond the bmp.
174f1c74 6162
7b649478
KH
61632008-12-10 Kenichi Handa <handa@m17n.org>
6164
6165 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6166 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6167 Qunicode_sip.
6168
2133e2d1
JB
61692008-12-10 Juanma Barranquero <lekktu@gmail.com>
6170
6171 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6172 (Fcoding_system_put): Use QCdefault_char.
6173 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6174
9af886ee
CY
61752008-12-09 Chong Yidong <cyd@stupidchicken.com>
6176
74d819eb
CY
6177 * xftfont.c (syms_of_xftfont): Fix typo.
6178
4ccfa1c0 6179 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6180
7c19d3ae
DN
61812008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6182
6183 * emacs.c (main): Close daemon_pipe on exec.
6184
567826bb
CY
61852008-12-08 Chong Yidong <cyd@stupidchicken.com>
6186
6187 * termchar.h (struct tty): New members termcap_term_buffer and
6188 termcap_strings_buffer.
6189
6190 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6191 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6192 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6193 All callers changed.
6194 (init_tty): Store termcap data and string buffers in new struct
6195 tty members termcap_term_buffer and termcap_strings_buffer.
6196 (delete_tty): Free them.
4ccfa1c0 6197 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6198
aa96c42b
SZ
61992008-12-07 Seiji Zenitani <zenitani@mac.com>
6200
6201 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6202 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6203
b7e1d896
CY
62042008-12-06 Chong Yidong <cyd@stupidchicken.com>
6205
6206 * coding.c (make_conversion_work_buffer): Disable buffer
6207 modification hooks in the work buffer.
6208
b5ec91a5
EZ
62092008-12-05 Eli Zaretskii <eliz@gnu.org>
6210
6211 * process.c (procfs_system_process_attributes): If `nread' has a
6212 negative value, assign zero to it.
6213
a5d2a52b
CY
62142008-12-05 Chong Yidong <cyd@stupidchicken.com>
6215
68c5540b 6216 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6217
7bf1bb21
KH
62182008-12-05 Kenichi Handa <handa@m17n.org>
6219
6220 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6221 second character is a combining character.
6222
2fdc7d00
EZ
62232008-12-05 Eli Zaretskii <eliz@gnu.org>
6224
6225 * process.c (procfs_system_process_attributes): Don't use cmd,
6226 cmdsize, and q without initializing them first.
6227
bf6bfba8
JR
62282008-12-04 Jason Rumney <jasonr@gnu.org>
6229
6230 * w32font.c (w32font_draw): Initialize orig_clip before getting
6231 it, and delete it when finished.
6232
a3b1a468
DN
62332008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6234
6235 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6236 case when running as a daemon before detaching.
6237
8b8be8eb
JB
62382008-12-03 Juanma Barranquero <lekktu@gmail.com>
6239
805f2638 6240 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6241
b1bde622
KH
62422008-12-03 Kenichi Handa <handa@m17n.org>
6243
e500c47d
KH
6244 * font.c (font_at): Set `multibyte' at first.
6245
ca516334
KH
6246 * coding.c (decode_coding_charset): Check type of an element of
6247 vector VALIDS.
7bf1bb21 6248 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6249
4ccfa1c0 6250 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6251 (font_for_char): Likewise.
6252
1e5ecd37
CY
62532008-12-03 Chong Yidong <cyd@stupidchicken.com>
6254
d5b01609 6255 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6256 (font_update_lface): Handle fonts with corrupted size specs,
6257 i.e. non-int and non-float.
d5b01609 6258
11e3a6e4 6259 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6260 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6261 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6262
ab06788b
CY
6263 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6264
1e5ecd37 6265 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6266 underline_minimum_offset for underline position.
1e5ecd37 6267
63c125ab
DN
62682008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6269
6270 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6271
6272 * character.c (c_string_width): Specify the type for LEN.
6273
3a8406e1
KH
62742008-12-03 Kenichi Handa <handa@m17n.org>
6275
4ccfa1c0 6276 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6277 (decode_coding_utf_8): Likewise.
4ccfa1c0 6278 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6279 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6280
651df7d9
CY
62812008-12-02 Chong Yidong <cyd@stupidchicken.com>
6282
6283 * keyboard.c (make_lispy_position): Only use PT if the selected
6284 window is current.
6285
1f625c6c
AS
62862008-12-02 Andreas Schwab <schwab@suse.de>
6287
f7741ce9
AS
6288 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6289
1f625c6c
AS
6290 * doprnt.c (doprnt1): Fix size of charbuf.
6291
92bc2678
CY
62922008-12-02 Chong Yidong <cyd@stupidchicken.com>
6293
6294 * keyboard.c (timer_check): Revert last change.
6295
93b9e8cc
JB
62962008-12-02 Juanma Barranquero <lekktu@gmail.com>
6297
6298 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6299
fd7a37d5
JB
63002008-12-01 Juanma Barranquero <lekktu@gmail.com>
6301
6302 * makefile.w32-in: Update dependencies.
6303 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6304
c115043b
AS
63052008-12-01 Andreas Schwab <schwab@suse.de>
6306
6307 * font.c (register_font_driver): Use xmalloc.
6308 (font_put_frame_data): Likewise.
6309
f5668d2a
CY
63102008-12-01 Chong Yidong <cyd@stupidchicken.com>
6311
860d96be
CY
6312 * xfaces.c (realize_x_face): Make abort condition clearer.
6313
f5668d2a
CY
6314 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6315
379c17e7
CY
63162008-11-30 Chong Yidong <cyd@stupidchicken.com>
6317
6318 * keyboard.c (timer_check): After a timer runs, ensure that the
6319 selected window's buffer is current.
6320
35f36d65
JB
63212008-11-30 Juanma Barranquero <lekktu@gmail.com>
6322
f952c61c
JB
6323 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6324 It was accidentally restored by the Unicode merge.
6325
35f36d65
JB
6326 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6327
b23077df
JB
63282008-11-29 Juanma Barranquero <lekktu@gmail.com>
6329
6330 * w32proc.c: Include "coding.h".
6331 (Fw32_short_file_name): Encode filename passed to Windows API.
6332 (Fw32_long_file_name): Encode filename passed to Windows API and
6333 decode back the result. (Bug#1433)
6334
b8ebe9dd
KH
63352008-11-29 Kenichi Handa <handa@m17n.org>
6336
8cc53f96
KH
6337 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6338 not before accessing it.
6339
b8ebe9dd
KH
6340 * charset.c (Fdefine_charset_internal): After calculating
6341 min_char, max_char, and fastmap, copy the charset structure again.
6342 (encode_char): Fix the previous change.
6343
59bc82c0
SZ
63442008-11-28 Seiji Zenitani <zenitani@mac.com>
6345
6346 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6347
6348 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6349
6350 * nsterm.m (x_set_frame_alpha): New function.
6351
32247e3d
EZ
63522008-11-27 Eli Zaretskii <eliz@gnu.org>
6353
6354 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6355
b003e5ff
JB
63562008-11-27 Juanma Barranquero <lekktu@gmail.com>
6357
6358 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6359 pointer to check_face_name.
6360
708550f5
KH
63612008-11-27 Kenichi Handa <handa@m17n.org>
6362
6363 * category.h (SET_CATEGORY_SET): Call set_category_set.
6364 (set_category_set): Extern it.
6365
6366 * category.c (hash_get_category_set): New function.
6367 (Fmodify_category_entry): Adjusted for the change of
6368 char_table_ref_and_range. Call hash_get_category_set to get a
6369 category set to store in the table.
6370
6371 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6372 Funify_charset.
6373
2ae37cf0 6374 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6375 (DECODE_CHAR): Check if the decoder vector is ready.
6376 (ENCODE_CHAR): Check if the encoder char-table is ready.
6377 (maybe_unify_char): Extern it.
6378
6379 * charset.c (Vchar_unified_charset_table): Delete it.
6380 (inhibit_load_charset_map): New variable.
6381 (temp_charset_work): New variable.
6382 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6383 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6384 New macros.
6385 (load_charset_map): Meaning of control_flag changed. If
6386 inhibit_load_charset_map is nonzero, setup a table in
6387 temp_charset_work.
6388 (load_charset): New argument control_flag.
6389 (map_charset_for_dump): New function.
6390 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6391 map_charset_for_dump.
6392 (Fdefine_charset_internal): If the charset method is MAP, load
6393 mapping tables by calling load_charset.
6394 (Funify_charset): Don't load a mapping table but directly set
6395 Vchar_unify_table.
6396 (maybe_unify_char): New function.
6397 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6398 Handle the case of inhibit_load_charset_map being nonzero.
6399 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6400 Handle the case of inhibit_load_charset_map being nonzero.
6401 (Fclear_charset_maps): Just free temp_charset_work.
6402 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6403 variable.
6404
6405 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6406 change of char_table_ref_and_range.
6407 (char_table_ref_and_range): Change the meaning of argument FROM
6408 and TO. Now the caller must provide initial values for *FROM
6409 and *TO.
6410
6411 * fontset.c (fontset_add): Adjusted for the change of
6412 char_table_ref_and_range.
6413 (fontset_get_font_group): Likewise.
6414 (Ffontset_info): Likewise.
6415
6416 * keymap.c (describe_vector): Adjusted for the change of
6417 char_table_ref_and_range. For char-table, put boundary between
6418 non-ASCII and 8-bit characters.
6419
6420 * print.c (print_object): For bool-vector, delete unnecessary
6421 check of ASCII_BYTE_P.
6422
9196133b
JR
64232008-11-26 Jason Rumney <jasonr@gnu.org>
6424
6425 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6426 leading in font height. (Bug#879)
9196133b 6427
9f688acf
GM
64282008-11-26 Glenn Morris <rgm@gnu.org>
6429
6430 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6431 redefinition with ifdef. (Bug#1383)
6432
90d19aff
AR
64332008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6434
6435 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6436
4ccfa1c0 64372008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6438
6439 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6440 New EmacsView methods.
6441 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6442 Fixes bug #1048,1357,1414.
6443
64442008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6445
6446 Fix bug #1362.
6447 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6448 is not an indexed color.
6449 * nsterm.m (free_indexed_color): Add argument checking.
6450 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6451
e7d5ecb3
CY
64522008-11-24 Chong Yidong <cyd@stupidchicken.com>
6453
6454 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6455 Document confirm-after-completion value for
6456 minibuffer-completion-confirm.
6457
c285743c
JR
64582008-11-24 Jason Rumney <jasonr@gnu.org>
6459
6460 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6461 warning.
6462
b0857706
JR
64632008-11-23 Jason Rumney <jasonr@gnu.org>
6464
6465 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6466 restored before returning.
6467
6468 * w32font.c (check_face_name): New function.
6469 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6470 fonts. (Bug#642)
b0857706 6471
ee50ff07
MR
64722008-11-22 Martin Rudalics <rudalics@gmx.at>
6473
6474 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6475 confirm-nonexistent-file-or-buffer in doc-string.
6476
b8ff72fa
SM
64772008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6478
6479 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6480 Fix copy/paste typo. Add checks.
6481
cee53ed4
KH
64822008-11-21 Kenichi Handa <handa@m17n.org>
6483
6484 * coding.c (detect_coding_iso_2022): Reject invalid composition
6485 sequence.
6486 (DECODE_COMPOSITION_START): If the current source is the last
6487 block, and the current composition doesn't end, regard this
6488 sequence as invalid.
6489 (decode_coding_iso_2022): Handle invalid composition sequence.
6490
f6ef1e65
MR
64912008-11-20 Martin Rudalics <rudalics@gmx.at>
6492
6493 * window.c (coordinates_in_window): Don't return
6494 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6495 line when the window is not the rightmost one. (Bug#1372)
6496
e08b1705
MR
64972008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6498
6499 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6500
ad98e89f
EZ
65012008-11-15 Eli Zaretskii <eliz@gnu.org>
6502
6503 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6504 and bright_bg if noninteractive is non-zero.
6505
fb098a4b
CY
65062008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6507
6508 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6509 x_draw_glyph_string_background.
6510
6511 * w32term.c (x_draw_glyph_string): Likewise.
6512
ce952b6e
CY
65132008-11-15 Chong Yidong <cyd@stupidchicken.com>
6514
6515 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6516 the next glyph string once past the overhang width.
6517
6518 * nsterm.m (ns_draw_glyph_string): Likewise.
6519
6520 * w32term.c (x_draw_glyph_string): Likewise.
6521
26ea7079
CY
65222008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6523
6524 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6525 double file close.
6526
1c33c906
MR
65272008-11-14 Martin Rudalics <rudalics@gmx.at>
6528
6529 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6530 dedicated status of window before attempting to display another
6531 buffer in it.
6532
8fc29035
JB
65332008-11-14 Juanma Barranquero <lekktu@gmail.com>
6534
6535 * msdos.c (Fmsdos_long_file_names):
6536 (syms_of_msdos) <dos-unsupported-char-glyph>:
6537 * dosfns.c (Fint86): Fix typos in docstrings.
6538
55fb4286
EZ
65392008-11-14 Eli Zaretskii <eliz@gnu.org>
6540
6541 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6542
3fda0315
KY
65432008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6544
6545 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6546
7e849c17
CY
65472008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6548
6549 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6550
6551 * frame.h: Negative alpha means "don't touch".
6552
6553 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6554
6555 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6556
b9fd67bd
DN
65572008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6558
6559 * hftctl.c:
6560 * chpdef.h:
6561 * acldef.h: Remove files used only for systems no longer supported.
6562
6563 * Makefile.in: Fix .o alphabetical ordering.
6564 (hftctl.o): Remove dependency, file removed.
6565 (keymap.o, print.o): Depend on charset.h.
6566
d5998e03
KH
65672008-11-10 Kenichi Handa <handa@m17n.org>
6568
2ae37cf0 6569 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6570
be70e183
CY
65712008-11-08 Chong Yidong <cyd@stupidchicken.com>
6572
6573 * dired.c (file_name_completion): If completion_ignore_case is
6574 enabled, ignore case when checking completion-regexp-list.
6575
7cf94eac
EZ
65762008-11-08 Eli Zaretskii <eliz@gnu.org>
6577
6578 * vm-limit.c (get_lim_data): Fix last change.
6579
ee107a89
KH
65802008-11-08 Kenichi Handa <handa@m17n.org>
6581
6582 * character.c (Fget_byte): New function.
6583 (syms_of_character): Defsubr Fget_byte.
6584
5fd15622
CY
65852008-11-07 Chong Yidong <cyd@stupidchicken.com>
6586
6587 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6588 cursor position is valid after scrolling.
6589
13d62fad
JB
65902008-11-06 Juanma Barranquero <lekktu@gmail.com>
6591
6592 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6593
a1dd2936
GM
65942008-11-06 Glenn Morris <rgm@gnu.org>
6595
6596 * xterm.c (handle_one_xevent): Don't let popup menus cause
6597 mouse-autoselect-window related window switching. (Bug#1261)
6598
860cd236
CY
65992008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6600
6601 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6602
653a3150
AS
66032008-11-04 Andreas Schwab <schwab@suse.de>
6604
6605 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6606
870f5cac
CY
66072008-11-03 Chong Yidong <cyd@stupidchicken.com>
6608
6609 * xfns.c (Fx_wm_set_size_hint): New function.
6610
1e02f3cb
MR
66112008-11-03 Martin Rudalics <rudalics@gmx.at>
6612
6613 * textprop.c (Fprevious_single_char_property_change): Return 0
6614 when there's no change in a string. (Bug#1301)
6615
e630dfc6
MR
66162008-11-02 Martin Rudalics <rudalics@gmx.at>
6617
6618 * frame.c (do_switch_frame): New argument NORECORD passed to
6619 Fselect_window.
6620 (Fselect_frame): New argument NORECORD passed to
6621 do_switch_frame.
6622 (Fset_frame_selected_window): New argument NORECORD passed to
6623 Fselect_frame.
6624 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6625 in call of do_switch_frame.
6626 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6627 Handle NORECORD argument in call of Fselect_frame.
6628 * lisp.h (do_switch_frame, Fselect_frame)
6629 (Fset_frame_selected_window): Adjust declarations.
6630 * window.c (select_frame_norecord): New function.
6631 (run_window_configuration_change_hook): Use it and call
6632 Fselect_frame with NORECORD set.
6633 (Fselect_window): Pass NORECORD to Fselect_frame.
6634 (Fset_window_configuration): Handle NORECORD argument in call of
6635 do_switch_frame.
6636 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6637 Fset_frame_selected_window.
6638 * keyboard.c (command_loop_1): Handle NORECORD in call of
6639 Fselect_frame (currently ifdefd).
6640
9020b223
GM
66412008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6642
6643 * emacs.c (USAGE2): Untabify.
6644
793ffee8
SM
66452008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6646
6647 * composite.c (fill_gstring_header): Fix copy/paste typo.
6648
ab6d1131
MR
66492008-10-31 Martin Rudalics <rudalics@gmx.at>
6650
6651 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6652 (Fother_window): Rename argument and rewrite doc-string.
6653 (select_window_norecord): Fix return value. (Bug#1276)
6654
601a9cf1
JB
66552008-10-30 Juanma Barranquero <lekktu@gmail.com>
6656
6657 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6658 new frames overriding foreground for tooltips. Based on similar patch
6659 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6660
813b0652
CY
66612008-10-29 Chong Yidong <cyd@stupidchicken.com>
6662
6663 * emacs.c (Fdaemon_initialized): Initialize nfd.
6664
4414f58f
MR
66652008-10-29 Martin Rudalics <rudalics@gmx.at>
6666
6667 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6668 (Fwindow_text_height): Clarify doc-strings.
6669 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6670 doc-string of window-scroll-functions.
6671
ecdcaa09
RS
66722008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6673
6674 * category.c (syms_of_category): Fix typo in docstring.
6675
23fe745a
JB
66762008-10-28 Juanma Barranquero <lekktu@gmail.com>
6677
6678 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6679 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6680 Fix typos in docstrings.
6681
ff808935
DN
66822008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6683
6684 * emacs.c (daemon_pipe): Make non-static.
6685 (IS_DAEMON): Move definition ...
6686 * lisp.h (IS_DAEMON): ... here.
6687 (daemon_pipe): Declare.
6688 (is_daemon): Remove.
6689 * dispnew.c (init_display): Use IS_DAEMON.
6690
fc012771
SM
66912008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6692
6693 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6694 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6695
6696 * emacs.c (is_daemon): Remove.
6697 (main): Don't set is_daemon.
6698 (IS_DAEMON): New macro.
6699 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6700 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6701 parent exits.
6702 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6703
d8bdbe6f
CY
67042008-10-27 Chong Yidong <cyd@stupidchicken.com>
6705
d1a072bf
CY
6706 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6707 over-sized glyph, draw it with the default glyph width.
6708
e2e325aa
CY
6709 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6710 glyph, draw it with the default glyph width.
6711
6712 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6713 glyph, draw it with the default glyph width.
6714
d8bdbe6f
CY
6715 * xdisp.c (try_scrolling): When computing the distance from the
6716 scroll margin to PT, try moving some distance past the window
6717 bottom before giving up.
6718
7bfac547
MR
67192008-10-27 Martin Rudalics <rudalics@gmx.at>
6720
6721 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6722 (Fset_window_buffer): Explain in doc-string that a window can be
6723 "strongly" dedicated to its buffer.
6724
4ff029f6
DN
67252008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6726
6727 * emacs.c (daemon_name): New variable.
6728 (main): Deal with --daemon=SERVER_NAME.
6729 (Fdaemonp): Return a name if one was passed to --daemon.
6730
5790ef40
DN
67312008-10-26 Romain Francoise <romain@orebokech.com>
6732
f9bd0df9 6733 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6734 (main): Create a pipe before forking, make the parent exit only after
6735 the child has closed its end of the pipe. Move closing the
6736 descriptors ...
6737 (Fdaemon_initialized): ... here. New function.
6738
f5385255
SM
67392008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6740
4d632321
SM
6741 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6742 the previous unoptimized table.
6743
f5385255
SM
6744 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6745 the distinction between non-nil and non-t value of `dedicated'.
6746
6c56a0f3
CY
67472008-10-25 Chong Yidong <cyd@stupidchicken.com>
6748
6749 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6750 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6751
fec89261
MR
67522008-10-25 Martin Rudalics <rudalics@gmx.at>
6753
6754 * window.c (Fget_buffer_window, Fdelete_windows_on)
6755 (Freplace_buffer_in_windows): Make buffer argument optional and
6756 rename to buffer_or_name.
6757
34fcddd0
CY
67582008-10-24 Chong Yidong <cyd@stupidchicken.com>
6759
f5385255
SM
6760 * xdisp.c (handle_single_display_spec, handle_display_prop):
6761 Undo 2005-05-16 change.
34fcddd0
CY
6762 (handle_stop): Pop iterator if it's loaded with an empty string.
6763 (get_overlay_strings_1): Don't save iterator if it's loaded with
6764 an empty string (bug#1201).
6765
064766f2
KH
67662008-10-24 Kenichi Handa <handa@m17n.org>
6767
6768 * ftfont.c (ftfont_otf_features): Fix previous change.
6769 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6770 calling ftfont_otf_features.
6771
f9bd0df9 67722008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6773
6774 * font.c (font_match_p): Fix for the case that a vector of
6775 characters is in script-representative-chars.
6776
1dae9197
MA
67772008-10-24 Michael Albinus <michael.albinus@gmx.de>
6778
6779 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6780 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6781 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6782 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6783 macro. (Bug#1186)
1dae9197 6784
f9bd0df9 67852008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6786
6787 * s/sol2-10.h: New file.
6788
878a4584
JB
67892008-10-23 Juanma Barranquero <lekktu@gmail.com>
6790
6791 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6792 poor beast has survived 9+ years and the jump from xterm.c!).
6793
cd265ca6
MR
67942008-10-23 Martin Rudalics <rudalics@gmx.at>
6795
6796 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6797 Reword doc-string.
f5385255 6798 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6799
472a4dc9
JB
68002008-10-23 Juanma Barranquero <lekktu@gmail.com>
6801
6802 * character.c (syms_of_character) <script-representative-chars>:
6803 <unicode-category-table>: Doc fixes.
6804
159bd5a2
NF
68052008-10-23 Noah Friedman <friedman@splode.com>
6806
6807 * coding.c (make_conversion_work_buffer): Check that
6808 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6809 Fget_buffer_create.
6810
49f9c344
KH
68112008-10-23 Kenichi Handa <handa@m17n.org>
6812
6813 * font.c (font_add_log): Check the values of extra properties.
6814
12bb3111
MR
68152008-10-22 Martin Rudalics <rudalics@gmx.at>
6816
6817 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6818 Reword doc-string.
6819 (Fset_window_parameter): Use NILP.
6820 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6821 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6822
bbeb4e99
JB
68232008-10-22 Juanma Barranquero <lekktu@gmail.com>
6824
6825 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6826
68272008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6828
6829 * nsfns.m (ns_appkit_version): New function.
6830 (x-server-version): Use it.
6831 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6832 (x-server-vendor): Don't check_ns().
6833
6834 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6835
a9b555d3
JB
68362008-10-22 Juanma Barranquero <lekktu@gmail.com>
6837
6838 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6839 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6840
4626499f
KH
68412008-10-22 Kenichi Handa <handa@m17n.org>
6842
e3681952
KH
6843 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6844 scripts.
6845
4626499f
KH
6846 * category.c (word_boundary_p): Check scripts instead of charset.
6847 Handle nil value in word-separating-categories and
6848 word-combining-categories.
6849 (syms_of_category): Fix docstrings of word-separating-categories
6850 and word-combining-categories.
6851
1560f91a
EZ
68522008-10-21 Eli Zaretskii <eliz@gnu.org>
6853
6854 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6855 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6856
f4668441
MR
68572008-10-21 Martin Rudalics <rudalics@gmx.at>
6858
6859 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6860 Rename arg "buffer" to "buffer_or_name".
6861 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6862 it optional.
6863 (no_switch_window): Remove since the return value is not used.
a9b555d3 6864 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6865 Consider window as dedicated when Fwindow_dedicated_p returns a
6866 non-nil value.
6867 * lisp.h: Remove prototype for no_switch_window.
6868
fd75ddb2
JD
68692008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6870
6871 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6872 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6873
07295713
KH
68742008-10-21 Kenichi Handa <handa@m17n.org>
6875
6876 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6877 check Vlatin_extra_code_table.
6878
712adc82
EZ
68792008-10-20 Eli Zaretskii <eliz@gnu.org>
6880
6881 * fileio.c (Fset_file_modes): Doc fix.
6882
f549eb0b
MA
68832008-10-19 Michael Albinus <michael.albinus@gmx.de>
6884
6885 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6886 in arrays.
6887
aac0c6e3
MR
68882008-10-19 Martin Rudalics <rudalics@gmx.at>
6889
6890 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6891 Mention kill-buffer in doc-string.
6892 (Fset_window_buffer): Reinsert tem check removed in last commit.
6893 (Fenlarge_window, Fshrink_window): Have argument names and
6894 doc-string follow Elisp manual more closely.
6895
68962008-10-18 Eli Zaretskii <eliz@gnu.org>
6897
6898 * fileio.c (Fset_file_modes): Doc fix.
6899
69002008-10-18 Martin Rudalics <rudalics@gmx.at>
6901
6902 * window.c (Fwindow_width, Fset_window_start)
6903 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6904 (Fdelete_windows_on, Freplace_buffer_in_windows):
6905 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6906 (Fwindow_dedicated_p): Make window argument optional.
6907 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6908 (Fset_window_buffer): Respect any non-nil dedicated value for
6909 window. Rename "buffer" argument to "buffer_or_name".
6910
69112008-10-18 Ulrich Mueller <ulm@gentoo.org>
6912
6913 * m/sh3.h: New file, machine description for SuperH.
6914
69152008-10-17 Martin Rudalics <rudalics@gmx.at>
6916
6917 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6918
69192008-10-17 Kenichi Handa <handa@m17n.org>
6920
6921 * ftfont.c (ftfont_otf_features): Fix indexing
6922 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6923
69242008-10-16 Magnus Henoch <mange@freemail.hu>
6925
6926 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6927 (Fdbus_call_method_asynchronously): Ditto.
6928 This change makes C-h f display the argument list.
6929
69302008-10-16 Chong Yidong <cyd@stupidchicken.com>
6931
6932 * fileio.c (Fexpand_file_name): Doc fix.
6933
6934 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6935 of :foreground and :background equivalent to unspecified (20.x
6936 compatibility).
6937
69382008-10-15 Eli Zaretskii <eliz@gnu.org>
6939
6940 * buffer.c (syms_of_buffer): Doc fix.
6941
69422008-10-14 Kenichi Handa <handa@m17n.org>
6943
6944 * font.c (font_clear_prop): When clearing font width, clear the
6945 average width field too.
6946
69472008-10-12 Andreas Schwab <schwab@suse.de>
6948
6949 * ftfont.c (ftfont_shape_by_flt): Make static.
6950 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6951
6952 * font.c: Don't include <m17n-flt.h>.
6953
69542008-10-10 Eli Zaretskii <eliz@gnu.org>
6955
6956 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6957
69582008-10-09 Eli Zaretskii <eliz@gnu.org>
6959
6960 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6961 away code.
6962
69632008-10-09 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * dispnew.c (update_text_area): Avoid looping due to large glyph
6966 overhangs (bug#1070).
6967
69682008-10-09 Kenichi Handa <handa@m17n.org>
6969
6970 * fontset.c (face_for_char): If face->fontset is negative, just
6971 return ascii_face.
6972
f5385255
SM
6973 * font.c (font_delete_unmatched): Fix previous change.
6974 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6975
69762008-10-09 Martin Rudalics <rudalics@gmx.at>
6977
6978 * frame.c (Fraise_frame): On text-only terminals select frame in
6979 order to make it visible. (Bug#1061)
6980
69812008-10-08 Chong Yidong <cyd@stupidchicken.com>
6982
6983 * fontset.c (fontset_find_font): Check frame validity.
6984
69852008-10-07 Chong Yidong <cyd@stupidchicken.com>
6986
a9b555d3 6987 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6988 (xg_display_close): Allow Emacs to close all displays (bug#985).
6989
69902008-10-06 Andreas Schwab <schwab@suse.de>
6991
f5385255 6992 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6993
69942008-10-06 Chong Yidong <cyd@stupidchicken.com>
6995
f5385255 6996 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6997
a9b555d3 6998 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6999
7000 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7001 during initialization.
7002
70032008-10-04 Eli Zaretskii <eliz@gnu.org>
7004
7005 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7006 whole thing on MSDOS frames as well as on a TTY.
7007
7008 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7009 well as for TTY.
7010 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7011 well as on a TTY.
7012
7013 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7014 as well as for TTY.
7015
7016 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7017
7018 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7019 MSDOS frames as well.
7020
70212008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7022
7023 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7024 correct arguments.
b71ac3dd 7025 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7026
70272008-10-03 Glenn Morris <rgm@gnu.org>
7028
7029 * emacs.c (USAGE1): Add --daemon.
7030
70312008-10-02 Eli Zaretskii <eliz@gnu.org>
7032
7033 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7034 100, so it's in percents as advertised.
7035
70362008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7037
7038 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7039 (ns_output.current_cursor, ns_output.desired_cursor)
7040 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7041 (FRAME_NEW_CURSOR_COLOR): Remove.
7042
7043 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7044 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7045 enumeration (HOLLOW_BOX_CURSOR, etc.).
7046
7047 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7048 (draw_window_cursor): Simplify code.
f5385255
SM
7049 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7050 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7051 updates manually.
a9b555d3
JB
7052 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7053 Use core Emacs cursor types.
aac0c6e3 7054
b8ff72fa 7055 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7056
70572008-10-02 Martin Rudalics <rudalics@gmx.at>
7058
7059 * process.c (Faccept_process_output): Fix doc-string.
7060
70612008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7062
7063 * gmalloc.c (__sbrk): Also define for uClibc.
7064
7065 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7066 for uClibc.
7067
70682008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7069
7070 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7071 styles.
7072 (nsfont_open): Reenable the cache.
7073
70742008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7075
7076 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7077 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7078
70792008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7080
7081 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7082 a suspended terminal.
7083
70842008-09-30 Michael Albinus <michael.albinus@gmx.de>
7085
7086 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7087
70882008-09-30 Eli Zaretskii <eliz@gnu.org>
7089
7090 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7091
70922008-09-30 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7095 in a continued line coincides with a line beginning.
7096
70972008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7098
7099 * nsfont.m (nsfont_trait_distance): Fix bug.
7100 (nsfont_list): Return a list rather than a vector (syncs with Handa
7101 changes of 2008-05-14).
7102 (nsfont_open): Improve logging.
7103
71042008-09-29 Andreas Schwab <schwab@suse.de>
7105
7106 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7107
71082008-09-28 Martin Rudalics <rudalics@gmx.at>
7109
7110 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7111 name as char-resolve-modifiers.
7112 Reported by: Markus Triska <markus.triska@gmx.at>
7113
71142008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7115
7116 * dispnew.c (init_display): Return earlier when running as a daemon.
7117
71182008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7119
7120 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7121
71222008-09-27 Eli Zaretskii <eliz@gnu.org>
7123
7124 * composite.c (Fcomposition_get_gstring)
7125 (Fcompose_region_internal, Fcompose_string_internal)
7126 (Ffind_composition_internal): Doc fix.
7127 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7128 (syms_of_composite) <auto-composition-function>: Doc fix.
7129 (syms_of_composite) <composition-function-table>: Doc fix.
7130
71312008-09-25 Chong Yidong <cyd@stupidchicken.com>
7132
7133 * search.c (wordify): New argument for lax word-ends.
7134 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7135
71362008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7137
7138 * lisp.h (is_daemon): Declare.
7139 * dispnew.c (init_display): Do not try to initialize the terminal
7140 when running as a daemon.
7141
71422008-09-22 Chong Yidong <cyd@stupidchicken.com>
7143
7144 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7145 x_display_pixel_height.
7146
71472008-09-22 Martin Rudalics <rudalics@gmx.at>
7148
7149 * undo.c (record_point): Don't call Fundo_boundary for first
7150 change. (Bug#731)
7151
71522008-09-22 Juanma Barranquero <lekktu@gmail.com>
7153
7154 * emacs.c (Fdaemonp): Doc fix.
7155
71562008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7157
7158 * emacs.c (main): Place #ifdef in the proper place.
7159
71602008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7161
7162 * emacs.c (standard_args): Add --daemon.
7163 (main): Disconnect from the terminal when --daemon is passed.
7164 (is_daemon): New variable.
7165 (Fdaemonp): New function.
7166 (syms_of_emacs): Defsubr it.
7167
71682008-09-20 Chong Yidong <cyd@stupidchicken.com>
7169
7170 * xdisp.c (get_next_display_element): Handle string display
7171 correctly when checking for the end of a box run.
7172
71732008-09-20 Glenn Morris <rgm@gnu.org>
7174
7175 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7176 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7177 (Frename_file): Avoid copying to trash if a rename involves
7178 a delete. (Bug#964).
7179
71802008-09-20 Eli Zaretskii <eliz@gnu.org>
7181
7182 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7183 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7184 frames as well as termcap frames.
7185 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7186 get_named_tty.
7187
71882008-09-19 Eli Zaretskii <eliz@gnu.org>
7189
7190 * process.c (procfs_system_process_attributes): Fix cmdline in
7191 case /proc/PID/cmdline is empty.
7192
7193 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7194 x_display_pixel_height.
7195
71962008-09-19 Juanma Barranquero <lekktu@gmail.com>
7197
7198 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7199
7200 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7201 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7202
72032008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7204
7205 * dispextern.h (struct it): Move line_wrap away from the middle of
7206 bitfields. Move voffset in struct iterator_stack_entry after the
7207 bitfields. Move tab_width near after another short.
7208
72092008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7210
7211 * frame.h (struct frame): Move alpha from the middle of bitfields.
7212
7213 * window.h (struct window): Move frozen_window_start_p after the
7214 rest of the bitfields to reduce padding.
7215
72162008-09-18 Chong Yidong <cyd@stupidchicken.com>
7217
7218 * xterm.h (x_display_info): Remove `height' and `width' members.
7219
7220 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7221
7222 * w32term.h (w32_display_info): Remove `height', `width',
7223 `height_in', and `width_in' members.
7224
b8ff72fa
SM
7225 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7226 New functions.
aac0c6e3
MR
7227 (x_calc_absolute_position): Use them.
7228 (x_term_init): Omit removed `height' and `width' members.
7229
b8ff72fa
SM
7230 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7231 New functions.
aac0c6e3
MR
7232 (w32_read_socket, x_calc_absolute_position): Use them.
7233 (w32_initialize_display_info, w32_term_init): Omit removed members
7234 of w32_display_info.
7235
b8ff72fa
SM
7236 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7237 New functions.
7238 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7239
b8ff72fa
SM
7240 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7241 New functions.
aac0c6e3
MR
7242 (x_calc_absolute_position): Use them.
7243 (x_term_init): Omit removed `height' and `width' members.
7244
7245 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7246 (compute_tip_xy):
7247 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7248 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7249 x_display_pixel_width.
7250
72512008-09-18 Kenichi Handa <handa@m17n.org>
7252
7253 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7254 (composition_compute_stop_pos): Fix handling of static composition.
7255 (Fcomposition_get_gstring): Check FROM and TO at first.
7256
72572008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7258
46e722a9 7259 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7260 mixup (YAILOM).
7261
72622008-09-17 Chong Yidong <cyd@stupidchicken.com>
7263
7264 * indent.c (Fvertical_motion): Use position reported by iterator
7265 instead of PT for determining screen motion (bug#943).
7266
72672008-09-17 Romain Francoise <romain@orebokech.com>
7268
7269 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7270
72712008-09-17 Kenichi Handa <handa@m17n.org>
7272
7273 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7274
7275 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7276 if necessary.
7277
72782008-09-16 Kenichi Handa <handa@m17n.org>
7279
7280 * coding.c (make_conversion_work_buffer): Avoid calling
7281 Fget_buffer_create if it is not necessary.
7282
72832008-09-15 Martin Rudalics <rudalics@gmx.at>
7284
7285 * window.c (Fselect_window): Don't update window_select_count and
7286 use_time when norecord is not nil.
7287
72882008-09-14 Kenichi Handa <handa@m17n.org>
7289
7290 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7291 specpdl_ptr.
7292
72932008-09-12 Kenichi Handa <handa@m17n.org>
7294
7295 * indent.c (scan_for_column): Don't handle automatic composition
7296 if the current buffer is not associated with a window.
7297
7298 * composite.c (composition_reseat_it): If the current buffer is
7299 not associated with a window, ignore the automatic composition.
7300 (find_automatic_composition): Likewise.
7301
73022008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7303
7304 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7305 (Fgpm_mouse_stop): Use it.
7306 * termhooks.h (close_gpm): Declare.
7307 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7308 connection if Gpm_GetEvent fails.
7309
7310 * window.c (set_window_buffer): Always preserve current-buffer.
7311
73122008-09-12 Glenn Morris <rgm@gnu.org>
7313
7314 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7315
73162008-09-11 Glenn Morris <rgm@gnu.org>
7317
7318 * charset.c (charset-map-path): Doc fix.
7319
73202008-09-10 Kenichi Handa <handa@m17n.org>
7321
7322 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7323
7324 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7325 compose a grapheme cluster with the preceding base glyph.
7326
7327 * composite.c (composition_compute_stop_pos): Fix previous change.
7328 Reset cmp_it->id to -1 at first.
7329
73302008-09-10 Glenn Morris <rgm@gnu.org>
7331
7332 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7333
73342008-09-09 Chong Yidong <cyd@stupidchicken.com>
7335
7336 * keyboard.c (read_key_sequence): Reapply translation maps when
7337 switching keyboards.
7338
73392008-09-09 Kenichi Handa <handa@m17n.org>
7340
7341 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7342 characters.
7343
7344 * composite.c (FORWARD_CHAR): Fix calculation
7345 of (POSITION).pos_byte.
7346 (composition_compute_stop_pos): Limit the search of composition to
7347 at most 500 characters ahead. If we reach the limit or find a
7348 newline, set cmp_it->ch to -2 and return 0.
7349 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7350
73512008-09-08 Kenichi Handa <handa@m17n.org>
7352
7353 * indent.c (Fvertical_motion): Be sure to set
7354 it_overshoot_expected if it.cmp_it.id is non-negative.
7355
73562008-09-07 Andreas Schwab <schwab@suse.de>
7357
7358 * callproc.c (Fcall_process): Don't hold references to string data
7359 across garbage collection. Move initialisation of new_argv down
7360 to avoid compiler bug.
7361
73622008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7363
7364 * process.c (Fsystem_process_attributes): Doc fix.
7365
73662008-09-07 Chong Yidong <cyd@stupidchicken.com>
7367
7368 * callproc.c (Fcall_process): Canonicalize current directory name.
7369
7370 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7371 iterator advances to the next line if the current line ends in a
7372 continued tab.
7373
73742008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7375
7376 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7377 member to point to cmp_from.
7378
7379 * xdisp.c: Doc fix for references to gidx data member.
7380
73812008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7382
7383 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7384
73852008-09-07 Kenichi Handa <handa@m17n.org>
7386
7387 * composite.c (FORWARD_CHAR): Check STOP after
7388 incrementing (POSITION).pos.
7389
73902008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7391
7392 * process.c (Fsystem_process_attributes): Doc fix.
7393
73942008-09-06 Chong Yidong <cyd@stupidchicken.com>
7395
7396 * keyboard.c (Ftop_level): Doc fix.
7397
73982008-09-06 Eli Zaretskii <eliz@gnu.org>
7399
7400 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7401 minibuffer, don't let lower part of menu invade the echo area.
7402
7403 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7404 "char *q" to access menu text and advance through it. Revert the
7405 change that displayed ">" instead of ASCII character 0x10.
7406
74072008-09-05 Eli Zaretskii <eliz@gnu.org>
7408
7409 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7410 toggle boxes and radio buttons on MS-DOS as well.
7411
74122008-09-05 Kenichi Handa <handa@m17n.org>
7413
7414 * composite.c (autocmp_chars): Check lookback count.
7415 (composition_compute_stop_pos): Set cmp_it->lookback.
7416 (composition_reseat_it): Check lookback count.
7417 (struct position_record): New struct.
7418 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7419 (find_automatic_composition): New function.
7420 (composition_adjust_point): Use find_automatic_composition.
7421
7422 * dispextern.h (struct composition_it): New member lookback.
7423
74242008-09-02 Chong Yidong <cyd@stupidchicken.com>
7425
7426 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7427 if moving by a single line.
7428
74292008-09-02 Andreas Schwab <schwab@suse.de>
7430
7431 * xterm.c (x_delete_display): Fix merge error.
7432
7433 * fileio.c (Fexpand_file_name): Remove unused variables.
7434
74352008-09-02 Eli Zaretskii <eliz@gnu.org>
7436
7437 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7438 storage on all platforms, not just on DOS_NT.
7439
74402008-09-02 Jason Rumney <jasonr@gnu.org>
7441
b8ff72fa
SM
7442 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7443 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7444
74452008-09-01 Chong Yidong <cyd@stupidchicken.com>
7446
7447 * xfaces.c (Finternal_set_alternative_font_family_alist)
7448 (Finternal_set_alternative_font_registry_alist): Properly copy
7449 entire alist structure.
7450
74512008-09-01 Kenichi Handa <handa@m17n.org>
7452
d66c0241 7453 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7454 representative chars of the script is a vector.
d66c0241
JB
7455 (ftfont_list): Handle the case where the representative chars of
7456 the script is a vector.
aac0c6e3
MR
7457
7458 * character.c (syms_of_character): Docstring of
7459 script-representative-chars fixed.
7460
74612008-08-31 Eli Zaretskii <eliz@gnu.org>
7462
7463 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7464 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7465 the menu. Allocate larger buffer for `text', to account for
7466 possible ^C characters.
7467
74682008-08-31 Martin Rudalics <rudalics@gmx.at>
7469
7470 * xdisp.c (prepare_menu_bars): Don't call
7471 Vwindow_size_change_functions with arg Qt.
7472
74732008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7474
7475 * font.h (font_range):
7476 * fileio.c (report_file_error):
46e722a9
SM
7477 * composite.c (composition_update_it): Yet another int/Lisp_Object
7478 mixup (YAILOM).
aac0c6e3
MR
7479
74802008-08-30 Glenn Morris <rgm@gnu.org>
7481
7482 * data.c (Fmake_variable_frame_local): Doc fix.
7483
7484 * frame.c (Fmodify_frame_parameters): Doc fix.
7485
74862008-08-30 Eli Zaretskii <eliz@gnu.org>
7487
7488 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7489 needed by GetTokenInformation.
7490 (w32_system_process_attributes): Check return values of all system
7491 APIs.
7492
7493 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7494 only when the state changes.
7495 (IT_update_begin, IT_update_end): Add termscript trace.
7496
7497 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7498 clipboard is unavailable. Set dst to NULL if it doesn't point to
7499 malloc'ed data.
7500 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7501 passing random values to xfree.
7502
7503 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7504 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7505
75062008-08-29 Jason Rumney <jasonr@gnu.org>
7507
7508 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7509
75102008-08-29 Eli Zaretskii <eliz@gnu.org>
7511
7512 * composite.c (fill_gstring_body): Avoid compiler warnings.
7513
7514 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7515 LGLYPH_SET_CODE to avoid compiler warnings.
7516
2ae37cf0 7517 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7518
7519 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7520
7521 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7522 LGLYPH_SET_CODE.
7523
75242008-08-29 Kenichi Handa <handa@m17n.org>
7525
7526 * fileio.c (report_file_error): Don't downcase the first character
7527 of errstring if it is still unibyte.
7528
75292008-08-29 Kenichi Handa <handa@m17n.org>
7530
7531 These changes are to re-implement the automatic composition so
7532 that it doesn't use text properties.
7533
7534 * Makefile.in (ftfont.o): Depend on composite.h.
7535 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7536
7537 * character.h (Vunicode_category_table): Extern it.
7538
7539 * character.c (Vunicode_category_table): New variable.
7540 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7541
7542 * chartab.c (optimize_sub_char_table): Perform more greedy
7543 optimization.
7544
b8ff72fa
SM
7545 * composite.h (enum composition_method):
7546 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7547 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7548 (Vcomposition_function_table): Extern it.
7549 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7550 (composition_gstring_put_cache, composition_gstring_from_id)
7551 (composition_gstring_p, composition_gstring_width)
7552 (composition_compute_stop_pos, composition_reseat_it)
7553 (composition_update_it, composition_adjust_point): Extern them.
7554 (Fcomposition_get_gstring): EXFUN it.
7555
d66c0241 7556 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7557 (Vcomposition_function_table)
7558 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7559 (gstring_hash_table, gstring_work, gstring_work_headers):
7560 New variables.
aac0c6e3
MR
7561 (gstring_lookup_cache, composition_gstring_put_cache)
7562 (composition_gstring_from_id, composition_gstring_p)
7563 (composition_gstring_width, fill_gstring_header)
7564 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7565 (composition_reseat_it, composition_update_it)
b8ff72fa 7566 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7567 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7568 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7569 Defsubr composition_get_gstring.
aac0c6e3
MR
7570
7571 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7572 cmp_id.
7573 (struct glyph_string): Delete the member gidx. New members
7574 cmp_id, cmp_from, and cmp_to.
7575 (enum it_method): Delete GET_FROM_COMPOSITION.
7576 (struct composition_it): New struct.
7577 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7578 Delete c, len, cmp_id, cmp_len in u.comp.
7579
7580 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7581 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7582 (enum lglyph_indices): Likewise.
b8ff72fa 7583 (font_range): Adjust extern.
aac0c6e3
MR
7584 (font_fill_lglyph_metrics): Extern it.
7585
7586 * font.c (QCf): New variable.
7587 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7588 (font_prepare_composition): Delete this function.
7589 (font_range): Type and arguments changed.
7590 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7591 (font_fill_lglyph_metrics): New function.
b8ff72fa 7592 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7593 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7594 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7595 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7596
7597 * fontset.h (font_for_char): Extern it.
7598
7599 * fontset.c (font_for_char): New function.
7600
7601 * ftfont.c: Include composite.h.
7602 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7603 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7604
7605 * indent.c: Include composite.h and dispextern.h.
7606 (check_composition): Delete this function.
7607 (scan_for_column): Handle composition by
7608 composition_compute_stop_pos, composition_reseat_it, and
7609 composition_update_it.
7610 (compute_motion): Likewise.
7611 (Fvertical_motion): Fix checking of composition.
7612
7613 * keyboard.c (adjust_point_for_property): Check composition by
7614 composition_adjust_point.
7615
b8ff72fa 7616 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7617 struct glyph_string.
7618
b8ff72fa
SM
7619 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7620 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7621 struct glyph.
7622 (produce_composite_glyph): Likewise.
7623
b8ff72fa
SM
7624 * w32term.c (x_draw_composite_glyph_string_foreground):
7625 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7626 (x_draw_glyph_string): Likewise.
7627
7628 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7629 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7630
7631 * xdisp.c: Include font.h.
7632 (it_props): Delete the entry for Qauto_composed.
7633 (init_iterator): Initialize it->cmp_it.id to -1.
7634 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7635 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7636 (handle_auto_composed_prop): Delete it.
7637 (handle_composition_prop): Handle only static composition.
7638 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7639 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7640 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7641 (pop_it): Likewise.
7642 (get_next_element): Delete next_element_from_composition.
7643 (CHAR_COMPOSED_P): New macro.
7644 (get_next_display_element): For automatic composition, get a face
7645 from the font in the glyph-string.
7646 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7647 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7648 (next_element_from_string): Check if the character at the current
7649 position is composed by CHAR_COMPOSED_P.
7650 (next_element_from_buffer): Likewise.
d66c0241
JB
7651 (next_element_from_composition): Adjust for the change of struct it.
7652 Update it->cmp_it.
b8ff72fa
SM
7653 (dump_glyph): Adjust for the change of struct glyph.
7654 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7655 it and struct glyph. Don't handle automatic composition here.
7656 (fill_gstring_glyph_string): New function.
7657 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7658 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7659 (BUILD_GSTRING_GLYPH_STRING): New macro.
7660 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7661 automatic composition.
b8ff72fa 7662 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7663 struct glyph.
b8ff72fa 7664 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7665
b8ff72fa 7666 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7667 the change of struct glyph_string.
7668 (x_draw_glyph_string): Likewise.
7669
76702008-08-29 Glenn Morris <rgm@gnu.org>
7671
7672 * buffer.c (word-wrap): Doc fix.
7673 * xdisp.c (truncate-partial-width-windows): Doc fix.
7674 Increase default to 50.
7675
76762008-08-29 Chong Yidong <cyd@stupidchicken.com>
7677
7678 * xdisp.c (update_tool_bar_unwind): New function.
7679 (update_tool_bar): Temporarily set selected frame before building
7680 tool-bar items.
7681
76822008-08-28 Michael Albinus <michael.albinus@gmx.de>
7683
7684 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7685 snprintf, respectively.
7686 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7687
76882008-08-28 Chong Yidong <cyd@stupidchicken.com>
7689
7690 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7691 LDFLAGS to GNUstep CC invocation.
7692
76932008-08-27 Chong Yidong <cyd@stupidchicken.com>
7694
7695 * indent.c (Fvertical_motion): Revert last change. Handle the
7696 general case where we are moving forward, and PT spans multiple
7697 screen lines.
7698
7699 * eval.c (find_handler_clause): Temporarily increase
7700 max-lisp-eval-depth while printing the backtrace buffer, to
7701 guarantee that help-mode code can run.
7702
77032008-08-27 Eli Zaretskii <eliz@gnu.org>
7704
7705 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7706 colors under -rv.
7707 (IT_set_frame_parameters): Don't swap foreground and background
7708 colors if `(reverse . t)' is present in the frame properties.
7709 (internal_terminal_init): Call init_frame_faces only for the
7710 initial frame.
7711
77122008-08-27 Andreas Schwab <schwab@suse.de>
7713
7714 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7715
77162008-08-27 Andreas Schwab <schwab@suse.de>
7717
7718 * search.c (search_buffer): Set char_base to zero only at the end.
7719
77202008-08-27 Kenichi Handa <handa@m17n.org>
7721
b8ff72fa 7722 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7723
77242008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7725
7726 * xterm.c (x_term_init): Temporarily hide the partially
7727 initialized terminal while calling vendor-specific-keysyms.
7728
77292008-08-26 Eli Zaretskii <eliz@gnu.org>
7730
7731 * msdos.c (internal_terminal_init): Most initializations done only
7732 once, especially initial_screen_colors[] and termscript open.
7733
77342008-08-26 Chong Yidong <cyd@stupidchicken.com>
7735
7736 * eval.c (Fcondition_case): Doc fix.
7737
7738 * widgetprv.h (EmacsFramePart): Change font member to the new font
7739 struct.
7740
7741 * widget.c: Include character.h and font.h for XSETFONT.
7742 (setup_frame_gcs): Compute X font id from font struct, just once.
7743
77442008-08-26 Eli Zaretskii <eliz@gnu.org>
7745
7746 * term.c (get_named_tty): Fix last change.
7747
77482008-08-26 Chong Yidong <cyd@stupidchicken.com>
7749
7750 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7751 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7752
77532008-08-25 Eli Zaretskii <eliz@gnu.org>
7754
7755 * frame.c (do_switch_frame): Mark previously displayed frame as
7756 obscured for FRAME_MSDOS_P frames as well.
7757
77582008-08-24 Eli Zaretskii <eliz@gnu.org>
7759
7760 * frame.c (make_terminal_frame): Initialize f->terminal,
7761 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7762 Set the top frame to newly created frame.
7763 (Fmake_terminal_frame): Reuse the_only_display_info.
7764
7765 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7766 estimating available memory.
7767
b97439ce 77682008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7769
7770 * nsterm.m (ns_draw_window_cursor): Don't call
7771 NSDisableScreenUpdates and NSEnableScreenUpdates on
7772 non-NS_IMPL_COCOA systems.
7773
77742008-08-23 Andreas Schwab <schwab@suse.de>
7775
7776 * process.c (procfs_system_process_attributes): Fix use of
7777 uninitialized variables.
7778
77792008-08-23 Eli Zaretskii <eliz@gnu.org>
7780
7781 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7782
7783 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7784 calling tty-set-up-initial-frame-faces.
7785
b8ff72fa
SM
7786 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7787 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7788
7789 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7790 addition to output_termcap.
7791
7792 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7793
7794 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7795 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7796 highlight.
7797
7798 * process.c [!subprocesses]: Define QCname.
7799 (syms_of_process): Intern and staticpro it.
7800
7801 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7802 Adjust for changes in encoding/decoding routines.
7803 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7804 encode_coding and decode_coding.
7805
b8ff72fa 7806 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7807
7808 * dosfns.c: Include frame.h before termhooks.h.
7809 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7810 variable termscript.
7811
7812 * s/msdos.h (USER_FULL_NAME): Define.
7813 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7814
7815 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7816 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7817 pw->pw_gecos.
7818
7819 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7820 SELECTED_FRAME as additional (1st) argument.
7821 (tty_read_avail_input): Handle output_msdos_raw in
7822 addition to output_termcap.
7823
7824 * msdos.c: Include frame.h before termhooks.h.
7825 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7826 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7827 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7828 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7829 (IT_set_terminal_modes, IT_reset_terminal_modes)
7830 (IT_set_frame_parameters): Use tty->termscript instead of a global
7831 variable termscript.
7832 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7833 global variable terminal_coding. Don't refer to
7834 Vnonascii_translation_table.
7835 (internal_terminal_init): Set Vwindow_system in current_kboard.
7836 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7837 Announce date and time of session start, if termscript is open.
7838 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7839 term.c:init_tty). Open termscript only of not already open.
7840 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7841 here instead of dos_ttraw. Don't initialize display if this is an
7842 initial tty. Don't set FRAME_FONT.
7843 (Vwindow_system_version): Bump to 23.
7844 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7845 is available, set up mouse_position_hook.
7846 (dos_ttraw, IT_set_terminal_modes): If called with initial
7847 terminal, do nothing.
7848 (IT_set_frame_parameters): Handle the Qtty_type frame
7849 parameter by calling internal_terminal_init.
7850 (dos_set_window_size, show_mouse_face)
7851 (clear_mouse_face, IT_note_mode_line_highlight)
7852 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7853 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7854 (initialize_msdos_display): New function.
7855 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7856 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7857 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7858 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7859 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7860 (request_sigio, unrequest_sigio): Don't define, now defined on
7861 sysdep.c.
7862 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7863
7864 * term.c [MSDOS]: Include msdos.h.
7865 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7866 conditional to DOS_NT. Allow only one call to this function in a
7867 session. Don't allocate a new struct tty_display_info; instead,
7868 reuse the_only_display_info. Call get_tty_size to get screen
7869 dimensions. Call init_baud_rate to set bad_rate.
7870 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7871 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7872 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7873 (get_tty_terminal, get_named_tty, Ftty_type)
7874 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7875 output_termcap.
b8ff72fa
SM
7876 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7877 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7878 only when subprocesses are supported.
aac0c6e3
MR
7879
7880 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7881 f->output_data.x.
7882 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7883 terminal devices.
7884
5582fbc7 7885 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7886 x_output.
7887 (FRAME_FONT): Use output_data.tty.
7888 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7889 (struct x_display_info): Rename from display_info. Update all users in
7890 msdos.c.
aac0c6e3 7891 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7892 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7893 (dos_ttraw): Update prototype.
7894
7895 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7896 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7897
78982008-08-23 Jason Rumney <jasonr@gnu.org>
7899
7900 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7901 (fn_TIFFSetDirectory): New library function used.
7902 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7903 (tiff_load): Use :index to select among multiple images. Set count
7904 property when multiple images exist.
7905 (gif_format): Use :index, not :image.
7906
79072008-08-23 Chong Yidong <cyd@stupidchicken.com>
7908
7909 * xdisp.c (try_scrolling): Check INT_MAX instead of
7910 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7911 to obtain INT_MAX.
7912
79132008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7914
7915 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7916
79172008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7918
7919 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7920 GNUstep library location.
7921
79222008-08-21 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7925 before using it.
7926
7927 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7928
79292008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7930
7931 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7932 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7933 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7934 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7935 (EmacsApp-cursor_blink_handler): Remove declaration.
7936 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7937 match 01 Feb 2008 changes in xterm.c.
7938 (ns_read_socket): Add cast to avoid warning.
7939 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7940 GNUstep.
7941
79422008-08-20 Chong Yidong <cyd@stupidchicken.com>
7943
7944 * xselect.c (x_get_foreign_selection): Return nil if desired
7945 selection could not be obtained, instead of signalling an error.
7946
79472008-08-20 David Reitter <david.reitter@gmail.com>
7948
7949 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7950 * nsterm.m: Remove ns-specific code for cursor blinking.
7951 (ns_draw_window_cursor): Clear cursor properly rather than
7952 redrawing the area. Respect width of bar cursors.
7953 These changes enable the use of generic blink-cursor-mode and
7954 generic cursor types in NS and support smooth cursor movements (do
7955 not blink off after command).
7956 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7957 Nextstep, too.
7958
79592008-08-19 Kenichi Handa <handa@m17n.org>
7960
7961 * font.c (Vfont_log_deferred): New variable.
7962 (font_add_log): Check Vfont_log_deferred.
7963 (font_deferred_log): New function.
7964
7965 * font.h (font_deferred_log): Extern it.
7966
7967 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7968 for sorting.
7969 (face_for_char): Use deferred log.
7970
79712008-08-18 Kenichi Handa <handa@m17n.org>
7972
7973 * fontset.c (face_for_char): Add font log.
7974
7975 * font.c (font_add_log): Add the font properties :script, :lang,
7976 and :otf in the log.
7977
79782008-08-17 Chong Yidong <cyd@stupidchicken.com>
7979
7980 * xdisp.c: Remove dead code.
7981 (handle_invisible_prop, next_overlay_string): Defer call to
7982 setup_for_ellipsis.
7983 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7984
79852008-08-15 Chong Yidong <cyd@stupidchicken.com>
7986
7987 * xfaces.c (lookup_derived_face): Properly handle possible zero
7988 return value of get_lface_attributes.
7989 (merge_faces): Don't tell lookup_derived_face to signal an error
7990 if face is not found.
7991
7992 * dired.c (Fdirectory_files): Doc fix.
7993
7994 * process.c (make_process): Initialize kill_without_query struct
7995 member.
7996
79972008-08-15 Eli Zaretskii <eliz@gnu.org>
7998
7999 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8000 Alternative calculation of totphys for Visual Studio 6.
8001
8002 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8003
8004 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8005 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8006 All users changed.
8007 (stat): Only root directory passed to GetDriveType. Allow RAM
8008 disk as well as local fixed disk when w32-get-true-file-attributes
8009 is set to `local'.
8010 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8011 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8012 (w32_cached_id, w32_add_to_cache): New functions.
8013 (get_name_and_id): Look account names in the cache before calling
8014 lookup_account_sid.
8015 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8016 New initialization flags.
8017 (globals_of_w32): Initialize them to zero.
8018 (w32_system_process_attributes): Use w32_cached_id and
8019 w32_add_to_cache.
8020
80212008-08-14 Lawrence Mitchell <wence@gmx.li>
8022
8023 * lread.c (Fread_char, Fread_char_exclusive): If no character
8024 event is read before timeout is reached, return nil, rather than
8025 converting to a number.
8026
80272008-08-14 Chong Yidong <cyd@stupidchicken.com>
8028
8029 * fns.c (use_dialog_box): Doc fix.
8030
8031 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8032 on OS X.
8033
80342008-08-13 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * frame.c (Qns_parse_geometry): New var.
8037 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8038
80392008-08-11 Chong Yidong <cyd@stupidchicken.com>
8040
8041 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8042 space character in calculating tabs.
8043
80442008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8045
8046 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8047
80482008-08-10 Glenn Morris <rgm@gnu.org>
8049
8050 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8051 silence gcc "limited range of data type" warnings in some
8052 make_fixnum_or_float calls.
8053
80542008-08-09 Eli Zaretskii <eliz@gnu.org>
8055
8056 * w32.c (w32_system_process_attributes): If the process does not
8057 exist, return nil.
8058
8059 * w32.c: Include thelp32.h, psapi.h and coding.h.
8060 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8061 declarations.
8062 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8063 (Process32Next_Proc): New typedefs.
8064 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8065 (g_b_init_process32_next, g_b_init_open_thread_token)
8066 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8067 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8068 (g_b_init_get_process_working_set_size)
8069 (g_b_init_global_memory_status_ex): New static variables.
8070 (globals_of_w32): Initialize them.
8071 (create_toolhelp32_snapshot, process32_first, process32_next)
8072 (open_thread_token, impersonate_self, revert_to_self)
8073 (get_process_memory_info, get_process_working_set_size)
8074 (global_memory_status, global_memory_status_ex): New wrapper
8075 functions.
8076 (w32_list_system_processes, w32_system_process_attributes)
8077 (enable_privilege, restore_privilege, ltime, process_times):
8078 New functions.
8079 (convert_time_raw): New function.
8080 (convert_time): Remove conversion of FILETIME into time in 100
8081 nsec units, call convert_time_raw instead.
8082
8083 * process.h (w32_list_system_processes, w32_system_process_attributes):
8084 Add prototypes.
8085 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8086 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8087 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8088 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8089
8090 * process.c (Fsystem_process_attributes): Doc fix.
8091
80922008-08-08 Chong Yidong <cyd@stupidchicken.com>
8093
8094 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8095 a continued multi-char glyph; if so, advance to the actual glyph.
8096
80972008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8098
8099 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8100
8101 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8102 (.m.o): Use it.
8103 * config.in: Regenerate.
8104
81052008-08-07 Chong Yidong <cyd@stupidchicken.com>
8106
8107 * xdisp.c (redisplay_window): Revert last change.
8108 (try_window): Check bottom scroll margin too.
8109
81102008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8111
8112 * config.in: Regenerate.
8113
8114 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8115 -list-load-path-shadows'.
8116 (nsgui.h): Reduce number of things depending on it.
8117
81182008-08-06 Chong Yidong <cyd@stupidchicken.com>
8119
8120 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8121 instead of window-end which does the wrong thing at eob.
8122 (try_cursor_movement): Minor optimization.
8123 (redisplay_window): If scroll margin is defined, don't assume
8124 window doesn't need scrolling.
8125
81262008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8127
8128 * config.in: Regenerate.
8129
8130 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8131 (mostlyclean): Don't delete *.d under NS.
8132
8133 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8134
81352008-08-06 Kenichi Handa <handa@m17n.org>
8136
8137 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8138
81392008-08-06 Andreas Schwab <schwab@suse.de>
8140
8141 * config.in: Regenerate.
8142
81432008-08-05 Chong Yidong <cyd@stupidchicken.com>
8144
8145 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8146 forcing a window start.
8147
8148 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8149 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8150
81512008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8152
8153 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8154 argument.
8155
81562008-08-05 Juanma Barranquero <lekktu@gmail.com>
8157
8158 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8159 <scroll-down-aggressively, before-change-functions>:
8160 <after-change-functions>: Reflow docstrings.
8161
81622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8163 Ken Raeburn <raeburn@gnu.org>
8164
8165 Dock menu customization, based on a patch by Ken Raeburn, plus some
8166 other fixes.
8167 * nsmenu.m (dockMenu): New variable.
8168 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8169
8170 * nsterm.h (dockMenu): Declare.
8171
8172 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8173 (ns_term_init): Initialize dockMenu.
8174 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8175 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8176 left.
8177
8178 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8179
81802008-08-04 Chong Yidong <cyd@stupidchicken.com>
8181
8182 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8183
8184 * config.in: Regenerate.
8185
81862008-08-04 Seiji Zenitani <zenitani@mac.com>
8187
8188 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8189
81902008-08-04 Chong Yidong <cyd@stupidchicken.com>
8191
8192 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8193
81942008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8195
8196 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8197
8198 * keyboard.h: Comment an #endif.
8199
8200 * lisp.h (have_menus_p): Adjust comment.
8201
8202 * menu.c (find_and_return_menu_selection): Fix comparison with
8203 client_data.
8204
8205 * nsmenu.m (popup_activated_flag): New variable.
8206 (popup_activated): New function.
8207 (menu-or-popup-active-p): New exported lisp definition.
8208 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8209 when popup done.
8210 (ns_popup_dialog): Set popup_activated_flag.
8211
8212 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8213 version for GNUstep (handled by conditional typedef in nsterm.m).
8214 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8215 in rgb.txt).
8216
8217 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8218
8219 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8220
8221 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8222
8223 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8224 shortcircuit if popup_activated like GTK and X toolkit.
8225
8226 * m/inter386.h: Change DARWIN to DARWIN_OS.
8227
8228 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8229 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8230 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8231 comment on NO_SOCK_SIGIO.
8232
82332008-08-03 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * nsterm.m (windowDidResize): Remove stopModal call.
8236
82372008-08-03 Andreas Schwab <schwab@suse.de>
8238
8239 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8240 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8241
82422008-08-02 Chong Yidong <cyd@stupidchicken.com>
8243
8244 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8245 Don't use uninitialized pointer variable when using getrlimit.
8246
82472008-08-02 Jason Rumney <jasonr@gnu.org>
8248
8249 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8250
82512008-08-02 Eli Zaretskii <eliz@gnu.org>
8252
8253 * alloc.c (NSTATICS): Bump to 0x640.
8254
8255 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8256
8257 * lisp.h: Add prototype for directory_files_internal.
8258
8259 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8260 New functions.
8261 (syms_of_process): Defsubr them. Add initializations for various
8262 Q* symbols used in procfs_system_process_attributes.
8263 (procfs_list_system_processes, procfs_system_process_attributes)
8264 [HAVE_PROCFS]: New functions.
8265 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8266 (procfs_get_total_memory): New functions.
8267
82682008-08-01 Juanma Barranquero <lekktu@gmail.com>
8269
8270 * xfaces.c (Fx_load_color_file): Fix previous change;
8271 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8272
82732008-08-01 Michael Albinus <michael.albinus@gmx.de>
8274
8275 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8276
82772008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8278
8279 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8280
82812008-08-01 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8284
8285 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8286 define NSApplicationDelegateReplySuccess.
8287 (EmacsView -converstationIdentifier): Use long instead of
8288 NSInteger for GNUstep, since it doesn't have NSInteger.
8289
8290 * xmenu.c: Revert last change.
8291
8292 * keyboard.h: Fix last change.
8293
82942008-08-01 Juanma Barranquero <lekktu@gmail.com>
8295
8296 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8297 on Windows.
8298
82992008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8300
8301 Warning clearing and clean-up in NS port.
8302 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8303 Add prototypes.
8304 * nsgui.h (FACE_DEFAULT): Remove, unused.
8305 (XGCValues): Change colors to unsigned long.
8306 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8307 nsterm.m.
8308 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8309 (ns_list_fonts): Remove, unused.
8310 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8311 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8312 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8313 (nsfont_draw): Compare face colors to 0, not nil.
8314 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8315 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8316 (-addSubmenuWithTitle:): Use NSMenuItem class.
8317 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8318 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8319 (ns_clip_to_row): Make gc arg a BOOL.
8320 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8321 ns_clip_to_row() call.
8322 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8323 used). Cast FRAME_FONT assignments.
8324 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8325 (ns_string_to_lispmod): Change arg to const char.
8326 (ns_term_init): Use NSMenuItem class.
8327 (EmacsApp -openFile:): Move to different section of file.
8328 (EmacsApp -application:openFiles:): Don't return a value, call
8329 -replyToOpenOrPrint:.
8330 (EmacsView -keyDown:): Fix up cast.
8331 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8332 (EmacsView -menuDown:): Cast tag in call to
8333 find_and_call_menu_selection().
8334 (ns_list_fonts): Remove, unused.
8335 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8336 (ns_fontname_to_xlfd): Make static.
8337 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8338 Remove prototypes (now in keyboard.h).
8339 (next_menubar_widget_id): Remove, unused.
8340 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8341 Remove prototypes (now in keyboard.h).
8342 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8343
83442008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8345
8346 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8347 (floatfns.o): Depend on syssignal.h.
8348 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8349
8350 * systty.h: Fix previous change that removed BSD_TERMIOS.
8351 Add comments to #ifdefs.
8352
83532008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8354
8355 * w32fns.c (w32-load-color-file): Remove.
8356 (x-open-connection): Use renamed Fx_load_color_file.
8357 * xfaces.c (x-load-color-file): Add.
8358 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8359 Emacs.clr.
8360 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8361
83622008-07-31 Michael Albinus <michael.albinus@gmx.de>
8363
8364 * dbusbind.c (Fdbus_call_method_asynchronously)
8365 (Fdbus_method_error_internal): New defuns.
8366 (xd_read_message): Handle also reply messages.
8367 (Vdbus_registered_functions_table): Extend docstring.
8368
83692008-07-31 Juanma Barranquero <lekktu@gmail.com>
8370
8371 * keyboard.c (gobble_input): Fix previous change.
8372
83732008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8374
8375 * bitmaps/README:
8376 * xfns.c:
8377 * termcap.c:
8378 * term.c:
8379 * syswait.h:
8380 * systty.h:
8381 * systime.h:
8382 * syssignal.h:
8383 * sysdep.c:
8384 * process.h:
8385 * process.c:
8386 * print.c:
8387 * ndir.h:
8388 * lread.c:
8389 * keyboard.c:
8390 * getpagesize.h:
8391 * floatfns.c:
8392 * fileio.c:
8393 * emacs.c:
8394 * doc.c:
8395 * dispnew.c:
8396 * dired.c:
8397 * data.c:
8398 * callproc.c:
8399 * buffer.c:
8400 * README:
8401 * Makefile.in:
8402 * s/template.h:
8403 * s/msdos.h:
8404 * m/vax.h: Remove VMS support.
8405 * s/vms.h:
8406 * vlimit.h:
8407 * uaf.h:
8408 * temacs.opt:
8409 * param.h:
8410 * ioctl.h: Remove file.
8411
84122008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8413
8414 * s/ms-w32.h (MULTI_KBOARD): Remove.
8415 * xterm.c:
8416 * xselect.c:
8417 * xfns.c:
8418 * window.c:
8419 * w32term.c:
8420 * w32fns.c:
8421 * terminal.c:
8422 * termhooks.h:
8423 * term.c:
8424 * sysdep.c:
8425 * keyboard.h:
8426 * keyboard.c:
8427 * frame.h:
8428 * frame.c:
8429 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8430 * config.in: Regenerate.
8431
84322008-07-30 Jason Rumney <jasonr@gnu.org>
8433
8434 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8435
8436 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8437 (w32font_open_internal): Get unicode version of textmetrics.
8438 Don't enable or disable glyph indices here.
8439 (w32font_open): Disable use of glyph indices.
8440
8441 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8442
84432008-07-30 Chong Yidong <cyd@stupidchicken.com>
8444
8445 * minibuf.c (Vread_buffer_function): Doc fix.
8446
84472008-07-30 John Paul Wallington <jpw@pobox.com>
8448
8449 * minibuf.c (read_buffer_completion_ignore_case): New var.
8450 (Fread_buffer): Use it.
8451
84522008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8453
8454 * systty.h (sensemode): Remove empty #if. Remove reference to
8455 BSD_TERMIOS, unused.
8456
8457 * sysdep.c: Remove reference to DGUX.
8458 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8459
8460 * config.in: Regenerate.
8461
84622008-07-30 Jason Rumney <jasonr@gnu.org>
8463
8464 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8465
84662008-07-29 Jason Rumney <jasonr@gnu.org>
8467
8468 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8469 is populated.
8470 (uniscribe_encode_char): Always use uniscribe.
8471 Avoid using context if cache is populated.
8472
84732008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8474
8475 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8476 open menu.
8477
8478 * gtkutil.c (menu_nav_ended): Remove.
8479 (create_menus): Remove signal connect for menu_nav_ended.
8480
84812008-07-28 Chong Yidong <cyd@stupidchicken.com>
8482
8483 * xdisp.c (redisplay_window): Check return value of
8484 compute_window_start_on_continuation_line before forcing a window
8485 start.
8486
84872008-07-28 Jason Rumney <jasonr@gnu.org>
8488
8489 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8490
8491 * w32term.c (w32_enable_unicode_output, cleartype_active):
8492 Remove obsolete display options.
8493 (x_draw_glyph_string_background): Don't use old cleartype_active
8494 workaround.
8495 (w32_initialize): Remove cleartype_active initialization.
8496 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8497
84982008-07-28 Andreas Schwab <schwab@suse.de>
8499
8500 * lisp.h (init_weak_hash_tables, syms_of_font)
8501 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8502 (remove_hash_entry): Don't declare.
8503 * eval.c (maybe_call_debugger): Make static and move before use.
8504 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8505 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8506 * xterm.h (x_set_frame_alpha): Declare.
8507
85082008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8509
8510 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8511 (create_menus): Connect selection-done to menu_nav_ended.
8512
85132008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8514
8515 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8516 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8517 parameter with read of 'alpha' one.
8518 (Qns_frame_parameter): Remove.
5582fbc7 8519 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8520 (next-selection-coding-system, Vselection_coding_system)
8521 (Vnext_selection_coding_system): Drop.
8522
85232008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8524
8525 * nsfns.m (do-applescript, do_applescript): Rename to
8526 ns-do-applescript, ns_do_applescript, and move within file.
8527
85282008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8529
8530 Remove support for Mac Carbon.
8531 * mactoolbox.c:
8532 * macterm.h:
8533 * macterm.c:
8534 * macselect.c:
8535 * macmenu.c:
8536 * macgui.h:
8537 * macfns.c:
8538 * mac.c: Remove file.
8539 * s/darwin.h:
8540 * m/intel386.h:
8541 * xfaces.c:
8542 * xdisp.c:
8543 * window.c:
8544 * tparam.c:
8545 * termhooks.h:
8546 * termcap.c:
8547 * term.c:
8548 * syssignal.h:
8549 * sysselect.h:
8550 * sysdep.c:
8551 * process.c:
8552 * lread.c:
8553 * lisp.h:
8554 * keyboard.c:
8555 * image.c:
8556 * fringe.c:
8557 * frame.h:
8558 * frame.c:
8559 * fontset.c:
8560 * font.h:
8561 * font.c:
8562 * fns.c:
8563 * fileio.c:
8564 * emacs.c:
8565 * dispnew.c:
8566 * dispextern.h:
8567 * config.in:
8568 * atimer.c:
2ae37cf0 8569 * Makefile.in: Remove code for Carbon.
aac0c6e3 8570
f0131492 85712008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8572
8573 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8574
85752008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8576
8577 * macterm.h (kCGBitmapByteOrder32Host): New define for
8578 non-universal SDKs.
8579
8580 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8581 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8582
8583 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8584 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8585
85862008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8587
8588 * w32inevt.c: Include dispextern.h.
8589
85902008-07-26 Andreas Schwab <schwab@suse.de>
8591
8592 * print.c (print_object): Fix off-by-one in last change.
8593
85942008-07-25 Juanma Barranquero <lekktu@gmail.com>
8595
8596 * term.c (syms_of_term): Don't initialize default_orig_pair,
8597 default_set_foreground and default_set_background on Windows.
8598
85992008-07-25 Jason Rumney <jasonr@gnu.org>
8600
8601 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8602 ScriptItemize. Clean up return value checking. Remove unused
8603 variables.
8604 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8605 shaping engine.
8606
8607 * w32font.c (w32font_has_char): Handle the case where we can't
8608 determine the script for a character.
8609
86102008-07-25 Chong Yidong <cyd@stupidchicken.com>
8611
8612 * term.c (syms_of_term): Initialize default_orig_pair,
8613 default_set_foreground, and default_set_background.
8614
8615 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8616 clash (bug#86).
8617 (getloadavg): Callers changed.
8618
8619 * image.c (svg_load_image): Fix last change.
8620 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8621 image size is valid. Use g_object_unref instead of deprecated
8622 rsvg_handle_free to free rsvg handle.
8623 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8624
86252008-07-25 Jason Rumney <jasonr@gnu.org>
8626
8627 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8628 surrogates before looking up glyph index.
8629 (w32font_text_extents): Encode as surrogates if falling back to
8630 functions that need UTF-16 wide chars.
8631
8632 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8633 BMP as surrogates before looking up glyph index.
8634
86352008-07-25 Chong Yidong <cyd@stupidchicken.com>
8636
8637 * image.c (svg_load_image): Check for failure in return value of
8638 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8639
86402008-07-25 Jason Rumney <jasonr@gnu.org>
8641
8642 * w32font.c (Fx_select_font): Reverse sense of second arg.
8643
86442008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8645
8646 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8647 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8648
8649 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8650 (PURESIZE): Use it.
8651
86522008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8653
8654 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8655 * m/alpha.h (TEXT_END):
8656 * m/ibmrs6000.h (TEXT_END):
8657 * m/macppc.h (TEXT_END):
8658 * s/darwin.h (TEXT_END):
8659 * s/msdos.h (TEXT_END): Remove, unused.
8660 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8661 * s/cygwin.h: Remove comment.
8662
8663 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8664 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8665 * m/intel386.h (DOT_GLOBAL_START):
8666 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8667 (USG): Remove, file not used on USG platforms.
8668
8669 * Makefile.in (HAVE_X11): Remove empty #else.
8670
86712008-07-24 Andreas Schwab <schwab@suse.de>
8672
8673 * fileio.c (Finsert_file_contents): Properly adjust undo list
8674 after format conversion.
8675
86762008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8677
8678 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8679 (menu_nav_ended): Remove.
8680 (create_menus): Remove signal connect for menu_nav_ended.
8681 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8682 create_menus.
8683 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8684
86852008-07-23 Jason Rumney <jasonr@gnu.org>
8686
8687 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8688 with opened font.
8689 (w32font_open): Set font type to gdi.
8690
8691 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8692
86932008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8694
8695 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8696 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8697 defines it.
8698 * unexec.c (ADDR_CORRECT): Define unconditionally.
8699
8700 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8701
8702 * unexec.c: Remove code depending on !COFF and USG, the file is
8703 not used for such systems.
8704
8705 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8706 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8707 (LD_SWITCH_SYSTEM_1): Remove, update users.
8708
8709 * s/darwin.h (DATA_END):
8710 * m/intel386.h (DATA_END):
8711 * m/ibmrs6000.h (DATA_END):
8712 * m/alpha.h (DATA_END): Remove, unused.
8713
8714 * config.in: Regenerate.
8715 * s/ms-w32.h (subprocesses): Define unconditionally.
8716 * s/template.h (subprocesses): Update comment.
8717 * s/vms.h (subprocesses):
8718 * s/usg5-4.h (subprocesses):
8719 * s/hpux10-20.h (subprocesses):
8720 * s/gnu-linux.h (subprocesses):
8721 * s/cygwin.h (subprocesses):
8722 * s/bsd-common.h (subprocesses):
8723 * s/aix4-2.h (subprocesses):
8724 * s/darwin.h (subprocesses): Do not define, defined by default now.
8725
8726 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8727 Remove all references.
8728 (temacs): Add GNUstep specific ld flags.
8729
8730 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8731 similarly to what X does.
8732
87332008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8734
8735 * nsfns.m (x-list-fonts): Remove.
8736 (syms_of_nsfns): Drop the x-list-fonts declaration.
8737 * nsterm.m: Get rid of remaining "//" comments.
8738
87392008-07-22 Chong Yidong <cyd@stupidchicken.com>
8740
8741 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8742
8743 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8744 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8745 (Fns_own_selection_internal, Fx_disown_selection_internal)
8746 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8747
8748 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8749 ... */' style of docstrings. Doc fixes.
8750
87512008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8752
8753 * terminfo.c (UP, BC, PC): Undo previous change.
8754
8755 * nsfns.m: Rename ns prefixed functions/variables to the
8756 corresponding x versions. Update references.
8757
87582008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8759
8760 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8761
87622008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8763
8764 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8765 Remove forwarding functions.
8766 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8767 non-static.
8768 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8769 non-static.
8770 (ns_frame_parm_handlers): Use the new names.
8771 (syms_of_nsfns): Move to the end of file.
8772
8773 * nsterm.m (syms_of_nsterm): Move to the end of file.
8774
8775 * dispnew.c (init_display): Remove code for X10.
8776
87772008-07-22 Jason Rumney <jasonr@gnu.org>
8778
8779 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8780 bare drive.
8781
87822008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8783
8784 * nsterm.m (syms_of_nsterm): Remove debugging println.
8785
87862008-07-22 David Reitter <david.reitter@gmail.com>
8787
8788 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8789 Carbon implementation of the same functionality: execute arbitrary
8790 AppleScript code.
8791
87922008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8793
8794 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8795 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8796 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8797 (Fx_display_mm_height, Fx_display_mm_width)
8798 (Fx_display_backing_store, Fx_display_visual_class)
8799 (Fx_display_save_under, Fx_open_connection)
8800 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8801 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8802 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8803 (Fx_display_pixel_width, Fx_display_pixel_height)
8804 (Fx_display_usable_bounds, Fx_display_planes)
8805 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8806 ... */' style of docstrings.
8807
88082008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8809
8810 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8811 on this platform.
8812 (mips):
8813 * m/iris4d.h (mips): Do not define.
8814 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8815
8816 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8817
8818 * image.c:
8819 * nsfns.m:
8820 * nsselect.m:
8821 * nsterm.h:
8822 * nsterm.m: Rename ns prefixed functions/variables to the
8823 corresponding x versions. Update references.
8824
8825 * m/ibms390x.h (NO_REMAP): Do not undefine.
8826
8827 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8828
88292008-07-21 Chong Yidong <cyd@stupidchicken.com>
8830
8831 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8832 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8833 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8834 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8835 (Fns_display_mm_height, Fns_display_mm_width)
8836 (Fns_display_backing_store, Fns_display_visual_class)
8837 (Fns_display_save_under, Fns_open_connection)
8838 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8839 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8840 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8841 (Fns_display_pixel_width, Fns_display_pixel_height)
8842 (Fns_display_usable_bounds, Fx_display_planes)
8843 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8844
88452008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8846
8847 * print.c (print_object): Check print_depth before searching for
8848 circularities.
8849
88502008-07-21 Michael Albinus <michael.albinus@gmx.de>
8851
8852 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8853 only sprintf.
8854
88552008-07-21 Kenichi Handa <handa@m17n.org>
8856
8857 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8858
88592008-07-20 Andreas Schwab <schwab@suse.de>
8860
8861 * syntax.c (find_start_pos, find_start_value)
8862 (find_start_value_byte, find_start_begv, find_defun_start)
8863 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8864
88652008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8866
8867 * s/sol2-3.h: Insert contents of s/sol2.h.
8868 (LD_SWITCH_SYSTEM): Remove redundant definition.
8869 * s/sol2.h: Remove, unused.
8870
88712008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8872
8873 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8874
88752008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8876
8877 * Makefile.in (ns_appdir): Fix typo in find command.
8878
88792008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8880
8881 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8882
8883 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8884 added not supported anymore.
8885
8886 * s/usg5-4-2.h (LIBS_SYSTEM):
8887 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8888
8889 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8890 * s/lynxos.h (GETPGRP_NO_ARG):
8891 * s/hpux10-20.h (NO_SIOCTL_H):
8892 * s/gnu.h (GETPGRP_NO_ARG):
8893 * s/gnu-linux.h (NO_SIOCTL_H):
8894 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8895 * s/cygwin.h (GETPGRP_NO_ARG):
8896 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8897 (C_DEBUG_SWITCH): Remove duplicate definition.
8898
8899 * m/ibms390.h: Remove boilerplate comments.
8900
8901 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8902
8903 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8904 (wait_reading_process_output): Remove code for SunOS, platform not
8905 supported anymore. Use SOLARIS2 instead of sun.
8906
89072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8908
8909 * font.c (font_open_by_name): Under NS, default lface height to zero.
8910 (font_open_for_lface): Under NS, set size based on frame fontsize.
8911 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8912 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8913
89142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8915
8916 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8917 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8918 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8919 YES/NO.
8920 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8921 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8922 * Makefile.in (clean): Clear out build destination dir.
8923
89242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8925
8926 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8927 xterm, xselect.
8928 * lisp.h: Remove declaration of hash_remove.
8929 * nsgui.h: Remove redefinitions of hash_remove.
8930 * fns.c (hash_remove): Rename to hash_remove_from_table.
8931
89322008-07-19 Seiji Zenitani <zenitani@mac.com>
8933
8934 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8935 strdup() the family UTF8String before modifying it.
8936
89372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8938
8939 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8940 NS_FACE_BACKGROUND with 0 instead of nil.
8941 * nsfont.m (nsfont_draw): Same.
8942
89432008-07-19 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * nsfns.m (ns_set_background_color): Fix crash.
8946
89472008-07-18 Chong Yidong <cyd@stupidchicken.com>
8948
8949 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8950
89512008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8952
8953 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8954
89552008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8956
8957 * gtkutil.c: Include <config.h> instead of "config.h".
8958
8959 * lisp.h (Foverlay_buffer): Add EXFUN.
8960
8961 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8962 child process to complete child_setup. Undo 2005-09-21 change.
8963
8964 * s/darwin.h: Mention setsid after vfork.
8965
89662008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8967
8968 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8969 Depend on macgui.h.
8970
8971 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8972 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8973
8974 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8975 and f19.
8976 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8977
8978 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8979 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8980 Remove enumerators.
8981
8982 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8983 Check if FACE_FROM_ID returns NULL.
8984
89852008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8986
8987 * w32inevt.c (change_frame_size): Remove extern declaration.
8988 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8989 change_frame_size.
8990
89912008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8992
8993 * getloadavg.c: Revert last change (2008-07-15).
8994
89952008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8996
8997 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8998 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8999 from configure.
9000
90012008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9002
9003 * s/sol2.h:
9004 * s/sol2-4.h: Reorganize conditionals.
9005
9006 * ecrt0.c: Remove code depending on m68000, not used anymore.
9007
9008 * fns.c (hash_remove): Make static.
9009 * lisp.h (hash_remove): Don't prototype.
9010
9011 * m/ibmrs6000.h:
9012 * m/ibms390x.h:
9013 * m/macppc.h: Remove boilerplate comments.
9014
9015 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9016 Solaris, which does not need them.
9017
9018 * m/vax.h: Remove comments about unsupported systems.
9019
9020 * s/darwin.h: Reorganize ifdefs.
9021
90222008-07-17 Andreas Schwab <schwab@suse.de>
9023
9024 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9025
90262008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9027
9028 Use SDATA. Follow coding convention of placing operators at
9029 beginning of next line rather than end of previous line, and placing
9030 spaces around infix operators.
9031
9032 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9033 in case it was defined already.
9034 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9035 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9036 ns_default.
9037 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9038 Lisp_Objects.
9039 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9040 (ns_defined_color, ns_color_to_lisp): Declare.
9041 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9042 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9043 it's accepted even with USE_LISP_UNION_TYPE.
9044 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9045 (update_frame_tool_bar): Remove apparently obsolete tests for
9046 non-integerness of f->tool_bar_lines.
9047 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9048 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9049 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9050 (nsfont_open): Don't confuse NULL for Qnil.
9051 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9052 * menu.h (find_and_call_menu_selection):
9053 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9054 (find_and_return_menu_selection): Always return something.
9055 * frame.h: Include dispextern.h for Display_Info.
9056 (display_x_get_resource): Declare.
9057
90582008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9059
9060 * syntax.c: Remove stdio.h include accidentally introduced in
9061 Emacs.app commit.
9062 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9063 NS_IMPL_COCOA.
9064 * keyboard.c (handle_async_input, input_available_signal): Remove
9065 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9066
90672008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9068
9069 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9070 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9071 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9072 Use SDATA.
9073
9074 * keymap.c: Remove all NS-specific code.
9075 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9076 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9077 where_is_preferred_modifier, return a different value depending on how
9078 preferred is the binding.
9079 (where_is_internal): Adjust accordingly.
9080 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9081 Adjust to new preferred_sequence_p.
9082 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9083 * keyboard.c (parse_solitary_modifier): Not static any more.
9084 * keyboard.h (parse_solitary_modifier): Declare.
9085
90862008-07-16 Andreas Schwab <schwab@suse.de>
9087
9088 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9089 of easymenu.
9090
90912008-07-16 Chong Yidong <cyd@stupidchicken.com>
9092
9093 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9094 that we don't move off the line.
9095
90962008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9097
9098 * keyboard.c (Qsuper): Remove.
9099 (parse_menu_item): Don't call where_is_internal specially for NS.
9100
91012008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9102
9103 * s/gnu-linux.h: Remove boilerplate comments.
9104
9105 * m/alpha.h (__ELF__): Consolidate conditions.
9106
9107 * m/m68k.h (linux): Use GNU_LINUX instead.
9108 Remove boilerplate comments.
9109
9110 * m/intel386.h: Undo refactoring from previous change.
9111 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9112 too, remove dead code.
9113 (linux): Use GNU_LINUX instead.
9114
91152008-07-16 Jason Rumney <jasonr@gnu.org>
9116
9117 * w32gui.h: Repeat 26 June changes lost by last change.
9118
91192008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9120
9121 * systty.h: Remove code for Aix on 386, unsupported platform.
9122
9123 * s/ms-w32.h: Remove boilerplate comments.
9124 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9125
9126 * s/gnu-linux.h (TERM): Remove support.
9127 (HAVE_SYSVIPC): Remove, unused.
9128 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9129 for this system.
9130
9131 * process.c: Remove support for IRIS, unused.
9132 Remove support for TERM, not relevant anymore.
9133
9134 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9135 used with the definition.
9136
9137 * s/aix4-2.h (static): Do not undef.
9138
9139 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9140 only used on Aix.
9141 (HAVE_SYSVIPC): Remove, unused.
9142
9143 * m/hp800.h (CANNOT_DUMP): Do not undef.
9144
9145 * m/alpha.h: Fix comment.
9146
9147 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9148 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9149 used by this configuration.
9150 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9151 * unexec.c: Remove code depending on HPUX and
9152 USG_SHARED_LIBRARIES, not used with this file. Remove code
9153 depending on IRIS, unused. Remove if 0-ed code.
9154
9155 * s/template.h: Remove comments about static.
9156
9157 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9158 Remove if 0-ed code.
9159 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9160 were the same as the default.
9161 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9162 Remove boilerplate comments.
9163 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9164 (HAVE_SYSVIPC): Remove, unused.
9165 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9166
9167 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9168 Remove boilerplate comments.
9169 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9170 Remove boilerplate comments.
9171 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9172 Remove boilerplate comments.
9173 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9174
9175 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9176 USG systems which do not use DATA_SEG_BITS.
9177 Refactor code. Remove boilerplate comments.
9178
9179 * m/ibms390.h:
9180 * m/m68k.h:
9181 * s/bsd-common.h:
9182 * s/cygwin.h:
9183 * s/darwin.h:
9184 * s/freebsd.h:
9185 * s/gnu.h:
9186 * s/msdos.h: Remove boilerplate comments.
9187
9188 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9189 do not use this file.
aac0c6e3
MR
9190 (IRIS_4D): Remove, unused.
9191
9192 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9193 do not use this file.
aac0c6e3
MR
9194 (SIGN_EXTEND_CHAR):
9195 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9196 * unexmips.c: Remove file, unused.
9197
9198 * editfns.c (Fuser_full_name): Replace the only use of
9199 USER_FULL_NAME with its value.
9200 * config.in: Regenerate.
9201
92022008-07-16 David Reitter <david.reitter@gmail.com>
9203
9204 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9205 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9206
92072008-07-16 Glenn Morris <rgm@gnu.org>
9208
9209 * emacs.c (system-type): Doc fix.
9210
92112008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9212
9213 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9214 If the cache doesn't work, let's fix it, rather than work around it.
9215
92162008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9217
9218 * Makefile.in: Correct additions for nsfont.o in last commit.
9219 * nsfont.m: New file (forgot last commit).
9220
92212008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9222
9223 * callproc.c (set_initial_environment): Initialize
9224 Vprocess_environment under CANNOT_DUMP (fixes crash when
9225 batch-compiling for bootstrap).
9226
92272008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9228 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9229
9230 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9231 fix crash due to different init order.
9232
92332008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9234
9235 Changes and additions for NeXTstep windowing system (Cocoa and
9236 GNUstep) support.
9237
9238 * Makefile.in:
9239 * config.in: Support defines and build commands for NS port.
9240 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9241 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9242 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9243 windowing.
9244 (struct face): Add synth_ital field.
9245 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9246 (init_display): Initialize Vinitial_window_system to "ns" when so
9247 compiled.
9248 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9249 (display_arg): Use under NS.
9250 (main): Under NS, allocate autorelease pool and handle command line
9251 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9252 (standard_args): Add NS-specific args.
9253 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9254 * font.c (DEFAULT_ENCODING): New variable.
9255 (font_find_for_lface): Use it.
9256 (syms_of_font): Load syms_of_nsfont under NS.
9257 * font.h: Declare nsfont_driver when compiled under NS.
9258 * fontset.c: When compiling under NS, include nsterm.h.
9259 (fontset_from_font): Autoconstruct fontset under NS.
9260 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9261 symbol, document and use it.
9262 (do_switch_frame): When for_deletion under Cocoa, add
9263 Fraise_frame(Qnil).
9264 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9265 (x_get_arg): Allow "yes" and "no" as boolean values.
9266 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9267 Qright under Cocoa.
9268 (focus-follows-mouse): Default to 0 under NS.
9269 * frame.h (enum output_method): Add output_ns.
9270 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9271 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9272 (FRAME_WINDOW_P): NS-specific definition.
9273 * fringe.c (max_used_fringe_bitmap): Make public.
9274 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9275 (getloadavg): Use NeXT code under descendant OS's.
9276 * image.c (includes and header section, x_create_bitmap_from_data)
9277 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9278 (image_background_transparent, x_clear_image_1)
9279 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9280 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9281 (x_to_xcolors, x_from_xcolors, x_disable_image)
9282 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9283 other GUIs, including XPM support using code originally written for
9284 Carbon GUI.
9285 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9286 using NS API.
9287 (image_ascent): Use font metrics macros instead of direct struct field
9288 access.
9289 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9290 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9291 Also, handle NS as GTK for menu bar purposes.
9292 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9293 toolkit where they differ.
9294 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9295 use cachelist, still needed under NS.
9296 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9297 (struct widget_value): Define it here for menu.c.
9298 * keymap.c (includes): Include modifier internals.
9299 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9300 NS.
9301 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9302 support for preferring sequences using certain modifiers, specified by
9303 the FIRSTONLY argument.
9304 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9305 under NS GNUstep implementation.
9306 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9307 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9308 * menu.c: Include nsterm.h under NS.
9309 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9310 (free_menubar_widget_tree_value, update_submenu_strings)
9311 (find_and_call_menu_selection): Treat NS as X and NT.
9312 (find_and_return_menu_selection): New function, used for popup menus.
9313 * nsgui.h:
9314 * nsterm.h:
9315 * nsfns.m:
9316 * nsimage.m:
9317 * nsmenu.m:
9318 * nsselect.m:
9319 * nsterm.m: New files.
9320 * process.c (wait_reading_process_output): Under NS, call ns_select()
9321 instead of plain select().
9322 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9323 beginning of buffer.
9324 * sysselect.h (init_process): Rename when compiling under Cocoa to
9325 avoid name conflict.
9326 * termhooks.h (display_info): Add ns_display_info to union.
9327 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9328 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9329 COCOA environment.
9330 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9331 unexec() signature. (Note, this will dump, but the resulting file
9332 crashes; unexosx is used instead; keeping around for reference and
9333 possible aid in getting dump working under GNUstep.)
9334 * w32gui.h (button_type, widget_value): Remove definitions (now in
9335 keyboard.h).
9336 * window.c: Include nsterm.h when compiling under NS.
9337 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9338 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9339 other GUI windowing systems.
9340 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9341 GTK.
9342 (x_consider_frame_title): Under NS, set icon type and frame
9343 modified-state indicator; use ns_set_name_as_filename() when using
9344 formatted title.
9345 (update_window_cursor): Make public when compiling under NS.
9346 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9347 (hourglass_atimer, Vhourglass_delay
9348 * xfaces.c (header section, init_frame_faces, clear_font_table)
9349 (defined_color, unload_color, x_face_list_fonts)
9350 (prepare_face_for_display): Add NS support parallel to other GUIs.
9351 Emulate GCs like other non-X GUIs.
9352 (split_font_name): Don't lowercase font name under NS.
9353 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9354 under NS.
9355 * s/darwin.h: Add support for compilation under NS.
9356
93572008-07-15 Jason Rumney <jasonr@gnu.org>
9358
9359 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9360 (w32_show_hourglass): Rename from show_hourglass.
9361 (w32_hide_hourglass): Rename from hide_hourglass.
9362 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9363 (Vhourglass_delay): Declare extern.
9364 (hourglass_started): Remove.
9365
9366 * xdisp.c (Vhourglass_delay): Remove static.
9367 (hourglass_started, start_hourglass, cancel_hourglass):
9368 Don't include these versions on WINDOWSNT.
9369
93702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9371
9372 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9373 variables (formerly in xfns.c).
9374 (show_hourglass, hide_hourglass): New prototypes (same).
9375 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9376 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9377 in xfns.c).
9378 (syms_of_xdisp): Declare/initialize display-hourglass,
9379 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9380 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9381 formerly in xfns.c.
9382 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9383 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9384 (start_hourglass, cancel_hourglass): Remove.
9385 (show_hourglass, hide_hourglass): Remove prototypes and static
9386 modifiers.
9387 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9388 hourglass_atimer, hourglass_shown_p declaration/initialization.
9389 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9390 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9391 (start_hourglass, cancel_hourglass): Remove.
9392 (show_hourglass, hide_hourglass): Remove prototypes and static
9393 modifiers.
9394 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9395 hourglass_atimer, hourglass_shown_p declaration/initialization.
9396 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9397 (DEFAULT_HOURGLASS_DELAY): Remove.
9398 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9399 hourglass_shown_p declaration/initialization.
9400
94012008-07-14 Jason Rumney <jasonr@gnu.org>
9402
9403 * w32fns.c (w32_get_arg): Remove wrapper function.
9404 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9405 directly.
9406 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9407
94082008-07-14 Kenichi Handa <handa@m17n.org>
9409
9410 * xfont.c (xfont_open): Add workaround for X's bug.
9411
94122008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9413
9414 * fontset.c: Include <stdio.h> unconditionally.
9415
94162008-07-13 Michael Albinus <michael.albinus@gmx.de>
9417
9418 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9419 for filtering.
9420
94212008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9422
9423 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9424
9425 * m/macppc.h:
9426 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9427
9428 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9429 (SPECIAL_EMACS_INT):
9430 * m/ia64.h (SPECIAL_EMACS_INT):
9431 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9432 * s/gnu.h (NLIST_STRUCT):
9433 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9434 * s/gnu-linux.h (LINUX):
9435 * s/msdos.h (HAVE_FACES):
9436 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9437
9438 * systty.h:
9439 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9440 anymore.
9441
94422008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9443
9444 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9445 always defined as int.
9446
9447 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9448 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9449 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9450 * s/freebsd.h (HAVE_WAIT_HEADER):
9451 * s/bsd-common.h (HAVE_UNION_WAIT):
9452 * s/aix4-2.h (HAVE_WAIT_HEADER):
9453 * m/mips.h (HAVE_UNION_WAIT):
9454 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9455 (COFF, static): Do not define, they are undefined later in the file.
9456
9457 * process.c (update_status): Don't use a union.
9458 (status_convert):
9459 (sigchld_handler): Use int instead of WAITTYPE.
9460
94612008-07-12 Chong Yidong <cyd@stupidchicken.com>
9462
9463 * indent.c (Fvertical_motion): Restore hscroll before moving to
9464 goal column.
9465
94662008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9467
9468 * lisp.h: Remove left over code.
9469
94702008-07-11 Andreas Schwab <schwab@suse.de>
9471
9472 * lisp.h: Fix logic in last change.
9473
9474 * menu.h: New file.
9475 * menu.c: Include it.
9476 * xmenu.c: Likewise.
9477 * Makefile.in: Update dependencies.
9478
94792008-07-11 Kenichi Handa <handa@m17n.org>
9480
9481 * fontset.c (fontset_from_font): Cancel the previous change.
9482
94832008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9484
9485 * lisp.h:
9486 * w32heap.c:
9487 * emacs.c:
9488 * alloc.c: Replace all references of NO_UNION_TYPE with
9489 USE_LISP_UNION_TYPE.
9490
9491 * m/xtensa.h (NO_UNION_TYPE):
9492 * m/vax.h (NO_UNION_TYPE):
9493 * m/template.h (NO_UNION_TYPE):
9494 * m/sparc.h (NO_UNION_TYPE):
9495 * m/mips.h (NO_UNION_TYPE):
9496 * m/macppc.h (NO_UNION_TYPE):
9497 * m/m68k.h (NO_UNION_TYPE):
9498 * m/iris4d.h (NO_UNION_TYPE):
9499 * m/intel386.h (NO_UNION_TYPE):
9500 * m/ibms390x.h (NO_UNION_TYPE):
9501 * m/ibms390.h (NO_UNION_TYPE):
9502 * m/ibmrs6000.h (NO_UNION_TYPE):
9503 * m/ia64.h (NO_UNION_TYPE):
9504 * m/hp800.h (NO_UNION_TYPE):
9505 * m/arm.h (NO_UNION_TYPE):
9506 * m/amdx86-64.h (NO_UNION_TYPE):
9507 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9508 defining it the same.
9509
95102008-07-10 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9513
95142008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9515
9516 * fileio.c:
9517 * sysdep.c
9518 * systty.h:
9519 * m/ibmrs6000.h:
9520 * m/iris4d.h:
9521 * s/aix4-2.h:
9522 * s/freebsd.h:
9523 * s/gnu-linux.h:
9524 * s/hpux10-20.h:
9525 * s/hpux11.h:
9526 * s/netbsd.h:
9527 * s/sol2-3.h:
9528 * s/sol2-4.h:
9529 * s/sol2.h:
9530 * s/usg5-4.h:
9531 * s/vms.h: Remove references to unused variables.
9532
95332008-07-10 Andreas Schwab <schwab@suse.de>
9534
9535 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9536 pattern before matching the generic family.
9537
95382008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9539
9540 * unexec.c:
9541 * s/vms.h:
9542 * s/usg5-4-2.h:
9543 * s/sol2-5.h:
9544 * s/freebsd.h:
9545 * s/darwin.h: Remove dead code.
9546
9547 * m/template.h:
9548 * m/sparc.h:
9549 * m/mips.h:
9550 * m/m68k.h:
9551 * m/iris4d.h:
9552 * m/intel386.h:
9553 * m/ibms390x.h:
9554 * m/ibms390.h:
9555 * m/ia64.h:
9556 * m/hp800.h:
9557 * m/arm.h:
9558 * m/amdx86-64.h: Remove dead code and references to unused
9559 and compiler defined symbols.
9560
9561 * unexmips.c:
9562 * unexelf.c: Remove references to desupported systems.
9563
9564 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9565
9566 * m/powermac.h: Remove boilerplate comments.
9567 (NO_REMAP): Remove unused definition.
9568
9569 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9570 define them.
9571
95722008-07-10 Kenichi Handa <handa@m17n.org>
9573
9574 * xfont.c (xfont_open): Log the reason of failure.
9575
95762008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9577
9578 * fontset.c (fontset_get_font_group):
9579 * font.c (font_check_otf): Specify argument types.
9580
95812008-07-09 Kenichi Handa <handa@m17n.org>
9582
9583 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9584 non-ASCII char is found.
9585
9586 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9587 (reorder_font_vector): Change the arg preferred_family to font.
9588 Prefer the spec matching with font.
9589 (fontset_get_font_group): New function.
9590 (fontset_find_font): Change the format of an element of a realized
9591 fontset. Use fontset_get_font_group.
9592 (fontset_font): Try the current fontset, the default fontset, the
9593 fallbacks of the current fontset, and the fallbacks of the default
9594 fontset in this order.
9595 (face_for_char): Delete the shortcut to use the current font.
9596 (fontset_from_font): Don't set fonts for Latin in the fontset.
9597
9598 * font.h (font_make_object, font_match_p): Adjust prototypes.
9599
9600 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9601
9602 * font.c (font_make_object): New arg entity and pixelsize.
9603 (font_check_otf_features, font_check_otf): New functions.
9604 (font_match_p): Check :lang, :script, and :otf properties.
9605
9606 * xfont.c (xfont_open): Adjust it for the change of
9607 font_make_object.
9608 (xfont_text_extents): Fix initial setting of metrics.
9609
9610 * ftfont.c (struct ftfont_info): New member index, delete member
9611 fc_charset_idx. Make the member order compatible with struct
9612 xftfont_info.
9613 (fc_charset_table): Change charset names to registry names.
9614 (ftfont_pattern_entity): Delete the args registry and
9615 fc_charset_idx. Change the value of :font-entity property
9616 to (FONTNAME . INDEX). Always set :registry property to
9617 `iso10646-1'.
9618 (struct ftfont_cache_data): New struct.
9619 (ftfont_lookup_cache): New arg for_face.
9620 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9621 (ftfont_driver): Set the member otf_capability.
9622 (ftfont_get_charset): Adjust it for the change of
9623 fc_charset_table.
9624 (OTF_TAG_SYM): New macro.
9625 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9626 for the change of fc_charset_table.
9627 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9628 ftfont_pattern_entity. Add FC_INDEX to objset.
9629 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9630 and ftfont_pattern_entity.
9631 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9632 font_make_object, struct ftfont_info.
9633 (ftfont_has_char): Use ftfont_get_fc_charset.
9634 (ftfont_otf_features, ftfont_otf_capability): New functions.
9635 (ftfont_shape): Use ftfont_get_otf.
9636 (ftfont_text_extents): Fix initial setting of metrics.
9637
9638 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9639 member order compatible with struct ftfont_info.
9640 (xftfont_open): Add FC_CHARSET to the pattern. Set
9641 xftfont_info->ft_size. Don't unlock the face. Check BDF
9642 properties if appropriate.
9643 (xftfont_close): Unlock the face.
9644 (xftfont_anchor_point, xftfont_shape): Deleted.
9645 (syms_of_xftfont): Don't set members anchor_point and shape of
9646 xftfont_driver.
9647
9648 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9649 font_make_object.
9650
9651 * w32font.c (w32font_open): Adjust it for the change of
9652 font_make_object.
9653 (w32font_open_internal): Don't set properties of font_object here.
9654
96552008-07-08 Chong Yidong <cyd@stupidchicken.com>
9656
9657 * macfns.c (x_create_tip_frame):
9658 * w32fns.c (x_create_tip_frame):
9659 * xfns.c (x_create_tip_frame): Pass parameter argument to
9660 face-set-after-frame-default.
9661
9662 * xfaces.c (Finternal_merge_in_global_face): Save merged
9663 attributes for the default face back into the face vector.
9664
96652008-07-08 Andreas Schwab <schwab@suse.de>
9666
9667 * fontset.h: Declare fontset_from_font. Don't declare
9668 new_fontset_from_font and fontset_from_font_name.
9669 * xterm.c: Include "fontset.h".
9670 * Makefile.in (xterm.o): Update dependencies.
9671
96722008-07-08 Glenn Morris <rgm@gnu.org>
9673
9674 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9675 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9676
96772008-07-07 Chong Yidong <cyd@stupidchicken.com>
9678
9679 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9680 (x_set_frame_parameters): Don't bind it.
9681
96822008-07-07 Juanma Barranquero <lekktu@gmail.com>
9683
9684 * w32fns.c (map_w32_filename): Declare extern.
9685
96862008-07-07 Jason Rumney <jasonr@gnu.org>
9687
9688 * w32term.c (WS_EX_LAYERED): Define if not already.
9689
96902008-07-06 Chong Yidong <cyd@stupidchicken.com>
9691
9692 * xfaces.c (set_font_frame_param): Don't try to set the font
9693 parameter if it is still unspecified in the lface.
9694
96952008-07-05 Chong Yidong <cyd@stupidchicken.com>
9696
9697 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9698 face if it didn't already exist.
9699
9700 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9701
97022008-07-05 Andreas Schwab <schwab@suse.de>
9703
9704 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9705
97062008-07-05 Chong Yidong <cyd@stupidchicken.com>
9707
9708 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9709 word-wrapping.
9710 (IT_DISPLAYING_WHITESPACE): New macro.
9711 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9712 when word-wrapping. Simplify word-wrapping logic. Use correct
9713 pixel positions when saving copies of the iterator.
9714 (display_line): Use proper wrap point if the last character on a
9715 line was preceded by whitespace.
9716
97172008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9718
9719 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9720
97212008-07-04 Kenichi Handa <handa@m17n.org>
9722
9723 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9724
9725 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9726
97272008-07-02 Jason Rumney <jasonr@gnu.org>
9728
9729 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9730 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9731
9732 * xdisp.c (next_element_from_display_vector): Move assignment out
9733 of if statement.
9734
97352008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9736
9737 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9738
9739 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9740 (syms_of_fileio): Initialize and export them.
9741 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9742
9743 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9744 (Fsystem_move_file_to_trash): New function.
9745 (syms_of_w32fns): Export it to lisp.
9746
97472008-07-01 Jason Rumney <jasonr@gnu.org>
9748
9749 * w32font.c (w32font_text_extents): Don't count overhang as part
9750 of width.
9751
97522008-06-30 Miles Bader <miles@gnu.org>
9753
9754 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9755 Add `avoid_cursor_p' field.
9756
9757 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9758 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9759 (append_glyph, append_composite_glyph, produce_image_glyph)
9760 (append_stretch_glyph): Initialize avoid_cursor_p.
9761 (get_it_property): Rename from `get_line_height_property'.
9762 (x_produce_glyphs): Use get_it_property.
9763 (handle_line_prefix, push_display_prop): New functions.
9764 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9765 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9766 New variables.
9767 (syms_of_xdisp): Initialize them.
9768
97692008-06-30 Kenichi Handa <handa@m17n.org>
9770
9771 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9772 XftDefaultSubstitute (they are called in XftFontMatch).
9773 (xftfont_open): Fix args to ftfont_font_format.
9774
9775 * ftfont.c (fc_charset_table): New member lang.
9776 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9777 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9778 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9779 (ftfont_open): Fix args to ftfont_font_format.
9780 (ftfont_font_format): New arg filename.
9781
97822008-06-30 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * xfaces.c (Finternal_merge_in_global_face): If default face was
9785 modified, realize it again. Update the font face attribute.
9786
97872008-06-29 Jason Rumney <jasonr@gnu.org>
9788
9789 * w32term.c (x_set_frame_alpha): Fix logic.
9790
97912008-06-29 Kenichi Handa <handa@m17n.org>
9792
9793 * fontset.c (Finternal_char_font): Return font-object instead of
9794 font-name.
9795
9796 * composite.c (get_composition_id): Fix the width calculation for TAB.
9797
97982008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9799
9800 * indent.c (Fvertical_motion): Properly handle float column arg.
9801
98022008-06-28 Jason Rumney <jasonr@gnu.org>
9803
9804 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9805 (pfnSetLayeredWindowAttributes): New function pointer.
9806 (w32_initialize): Initialize it when supported.
9807 (x_set_frame_alpha): New function.
9808
9809 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9810 (w32_frame_parm_handlers): Set alpha handler.
9811
9812 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9813
98142008-06-27 Jason Rumney <jasonr@gnu.org>
9815
9816 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9817 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9818 (w32_to_x_charset, x_to_w32_charset)
9819 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9820 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9821 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9822 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9823 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9824 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9825 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9826 (Qw32_charset_unicode): Remove.
9827 (syms_of_w32fns): Update for above changes.
9828
9829 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9830 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9831 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9832 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9833 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9834 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9835 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9836 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9837 (syms_of_w32font): Update for above changes.
9838
98392008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9840
9841 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9842 removed #if.
9843 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9844
98452008-06-26 Juanma Barranquero <lekktu@gmail.com>
9846 Eli Zaretskii <eliz@gnu.org>
9847
9848 * makefile.w32-in (LOCAL_FLAGS):
9849 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9850
9851 * sysdep.c (_spawnlp, _getpid):
9852 Declare with explicit _cdecl instead of _CRTAPI1.
9853
9854 * editfns.c (Fget_internal_run_time):
9855 Check for WINDOWSNT with #ifdef, not #if.
9856
98572008-06-26 Jason Rumney <jasonr@gnu.org>
9858
9859 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9860
9861 * w32term.c (x_draw_glyph_string_foreground)
9862 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9863 Use FONT_HANDLE macro.
9864 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9865
9866 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9867 (uniscribe_encode_char): Use FONT_HANDLE macro.
9868
9869 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9870 (w32font_text_extents): Use precast w32_font.
9871 (w32font_close): Free cached metrics.
9872 (w32font_open_internal): Allocate space for name on stack.
9873
98742008-06-26 Chong Yidong <cyd@stupidchicken.com>
9875
9876 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9877
98782008-06-26 Jason Rumney <jasonr@gnu.org>
9879
9880 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9881 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9882
98832008-06-26 Juanma Barranquero <lekktu@gmail.com>
9884
9885 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9886
98872008-06-26 Jason Rumney <jasonr@gnu.org>
9888
9889 * w32bdf.c, w32bdf.h: Remove obsolete files.
9890
9891 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9892
9893 * w32gui.h: Don't include w32bdf.h.
9894 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9895 Remove obsolete font support.
9896
9897 * w32font.h (struct w32font_info): Remove compat_w32_font.
9898 Add hfont member.
9899 (FONT_COMPAT): Remove obsolete macro.
9900
9901 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9902 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9903 (w32font_open_internal): Remove compat code. Set new hfont member.
9904 (Fx_select_font): Use new hfont member.
9905
9906 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9907 (uniscribe_encode_char): Use new hfont member.
9908
9909 * w32term.c (x_draw_glyph_string_foreground)
9910 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9911 (x_draw_glyph_string): Use metrics in w32font_info.
9912
99132008-06-26 Kenichi Handa <handa@m17n.org>
9914
9915 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9916
99172008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9918
9919 * unexnext.c:
9920 * m/ews4800.h:
9921 * m/hp9000s300.h:
9922 * m/ibm370aix.h:
9923 * m/mips-siemens.h:
9924 * m/ncr386.h:
9925 * m/next.h:
9926 * m/pmax.h:
9927 * m/powerpcle.h:
9928 * m/tandem-s2.h:
9929 * s/386bsd.h:
9930 * s/bsd386.h:
9931 * s/bsd4-1.h:
9932 * s/bsd4-2.h:
9933 * s/bsdos2-1.h:
9934 * s/bsdos2.h:
9935 * s/bsdos3.h:
9936 * s/bsdos4.h:
9937 * s/nextstep.h:
9938 * s/ultrix4-3.h:
9939 * s/usg5-0.h:
9940 * s/usg5-2-2.h:
9941 * s/usg5-2.h:
9942 * s/usg5-4-3.h:
9943 * s/ux4800.h:
9944 * s/uxpds.h:
9945 * s/uxpv.h: Remove support for obsolete systems.
9946 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9947 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9948 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9949 Remove, insert contents in s/aix4-2.h.
9950 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9951 * s/bsd4-3.h: Rename to ...
9952 * s/bsd-common.h: ... this.
9953 * data.c:
9954 * doc.c:
9955 * ecrt0.c:
9956 * emacs.c:
9957 * fileio.c:
9958 * floatfns.c:
9959 * keyboard.c:
9960 * mem-limits.h:
9961 * print.c:
9962 * process.c:
9963 * sysdep.c:
9964 * syssignal.h:
9965 * systty.h:
9966 * syswait.h:
9967 * term.c:
9968 * unexec.c:
9969 * unexelf.c:
9970 * unexhp9k800.c:
9971 * m/hp800.h:
9972 * m/ibmrs6000.h:
9973 * m/mips.h:
9974 * m/vax.h:
9975 * s/darwin.h:
9976 * s/freebsd.h:
9977 * s/gnu.h:
9978 * s/ms-w32.h:
9979 * s/msdos.h:
9980 * s/netbsd.h:
9981 * s/template.h: Remove references to obsolete variables.
9982
9983 * Makefile.in: Add dependencies for all unexec files.
9984 (admindir): Remove unused variable.
9985 (UNEXEC_SRC): Remove references.
9986
99872008-06-25 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * xfns.c (x_default_font_parameter): If Xft is available, first
9990 try Monospace-12 for the default font.
9991
99922008-06-25 Jason Rumney <jasonr@gnu.org>
9993
9994 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9995
99962008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9997
9998 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9999
10000 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10001
100022008-06-25 Juanma Barranquero <lekktu@gmail.com>
10003
10004 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10005 <scroll-conservatively>: Fix typo in docstring.
10006
10007 * xselect.c (Fx_send_client_event): Doc fix.
10008
100092008-06-25 Kenichi Handa <handa@m17n.org>
10010
10011 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10012
10013 * font.c (font_parse_fcname): Remove unused variables.
10014 (font_sort_entites): Delete the arg SPEC. Caller changed.
10015 Fix for the case of ! best_only.
10016 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10017
10018 * lisp.h (Fstring_to_unibyte): EXFUN it.
10019
10020 * character.h (str_to_unibyte): Extern it.
10021
10022 * character.c (str_to_unibyte): New function.
10023
10024 * fns.c (Fstring_to_unibyte): New function.
10025 (syms_of_fns): Defsubr it.
10026
100272008-06-24 Kenichi Handa <handa@m17n.org>
10028
10029 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10030 DPI too.
10031 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10032
100332008-06-24 Andreas Schwab <schwab@suse.de>
10034
10035 * Makefile.in (${lispsource}loaddefs.el): Rename from
10036 ../lisp/loaddefs.el.
10037 (bootstrap-clean): Do what distclean does but don't remove
10038 Makefile.
10039 (distclean): Depend on bootstrap-clean and remove Makefile.
10040
100412008-06-24 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * buffer.h (struct buffer): New member word_wrap.
10044
10045 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10046 word-wrap.
10047 (init_buffer_once): Initialize them.
10048
10049 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10050 line_wrap enum possessing three possible values.
10051
10052 * termopts.h: Replace truncate_partial_width_windows with
10053 Vtruncate_partial_width_windows.
10054
10055 * dispnew.c (direct_output_for_insert): Avoid direct output when
10056 inserting a space with word wrap on.
10057
10058 * indent.c (compute_motion): Obey integer values of
10059 truncate-partial-width-windows.
10060
10061 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10062 replacing truncate_partial_width_windows.
10063 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10064 truncate only if the window width is below that integer.
10065 (start_display, resize_mini_window, produce_stretch_glyph)
10066 (display_string, move_it_in_display_line_to): Use line_wrap.
10067 (back_to_previous_visible_line_start, reseat_1): Reset
10068 string_from_display_prop_p.
10069 (display_line): Extend default face to end of line when wrapping.
10070
100712008-06-24 Kim F. Storm <storm@cua.dk>
10072
10073 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10074 to wrap continued lines at word boundaries.
10075
100762008-06-24 Jason Rumney <jasonr@gnu.org>
10077
10078 * font.c (Ffont_face_attributes): Multiply pixel size before point
10079 conversion to avoid multiplying rounding error.
10080
100812008-06-23 Jason Rumney <jasonr@gnu.org>
10082
10083 * w32term.c (x_draw_glyph_string_background)
10084 (x_draw_glyph_string): Remove old bdf font code.
10085
10086 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10087
100882008-06-22 Kenichi Handa <handa@m17n.org>
10089
10090 * font.c (font_find_for_lface): Try the adstyle specified in
10091 the property of LFACE_FONT of LFACE (if any).
10092
100932008-06-21 Seiji Zenitani <zenitani@mac.com>
10094 Ryo Yoshitake <ryo@shiftmode.net>
10095
10096 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10097
100982008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10099
10100 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10101 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10102 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10103 (witness-emacs): Remove.
10104 (lisp, shortlisp): Move loaddefs.el earlier.
10105 (mostlyclean): Forget about witness-emacs.
10106
101072008-06-22 Glenn Morris <rgm@gnu.org>
10108
10109 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10110 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10111
101122008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10113
10114 * Makefile.in (PRECOMP): Remove.
10115 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10116 (witness-emacs): Run `compile-first'.
10117 (.el.elc): Use the new compile-onefile target.
10118
101192008-06-21 Kenichi Handa <handa@m17n.org>
10120
10121 * xftfont.c (xftfont_open): Handle QCembolden only when
10122 FC_EMBOLDEN is defined.
10123
101242008-06-21 Andreas Schwab <schwab@suse.de>
10125
10126 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10127 (.el.elc): Likewise.
10128
101292008-06-21 Miles Bader <miles@gnu.org>
10130
10131 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10132 build dir, not the lisp source dir.
10133
101342008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10135
10136 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10137 (bootstrapclean): Remove.
10138 (.el.elc): New rule.
10139 (PRECOMP): New var.
10140 (../lisp/subdirs.el): Remove.
10141 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10142 (witness-emacs): New target.
10143 (mostlyclean): Remove witness-emacs as well.
10144 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10145 Add witness-emacs dependency.
10146
101472008-06-20 Chong Yidong <cyd@stupidchicken.com>
10148
10149 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10150 defined by the font.
10151
101522008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10153
10154 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10155 (bootstrap-clean): New target that keeps TAGS around.
10156 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10157 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10158
101592008-06-20 Jason Rumney <jasonr@gnu.org>
10160
10161 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10162 Remove obsolete font code.
10163
10164 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10165 to determine language support.
10166
101672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10168
10169 * sysdep.c (cfsetspeed): New fun extracted from the code.
10170 (cfmakeraw): Move before first use.
10171
101722008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10173
10174 * sysdep.c (cfmakeraw): Provide fallback implementation.
10175 (serial_configure): Provide fallback implementation of cfsetspeed.
10176
101772008-06-20 Kenichi Handa <handa@m17n.org>
10178
10179 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10180 the pattern.
10181
10182 * fontset.c (fontset_from_font): Copy font_spec before changing
10183 the elements.
10184
10185 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10186
101872008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10188
10189 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10190 for explicit `font' parameters.
10191
10192 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10193
101942008-06-19 Kenichi Handa <handa@m17n.org>
10195
10196 * frame.c: Include <ctype.h>.
10197 (x_set_font_backend): Allow spacing characters in the X resource
10198 for FontBackend.
10199
102002008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10201
10202 * w32fns.c, xfns.c (Qfont_param): New var.
10203 (syms_of_w32fns): Initialize it.
10204 (x_default_font_parameter): Record explicit `font' into
10205 `font-parameter'.
10206
102072008-06-18 Kenichi Handa <handa@m17n.org>
10208
10209 * font.c (font_parse_xlfd): Fix previous change.
10210 (font_parse_fcname): Don't use :fc-unknown-spec.
10211 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10212 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10213 (font_add_log): Prepend the driver name to the resulting fonts.
10214
10215 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10216 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10217 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10218
10219 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10220 (QCembolden): New variables.
10221 (syms_of_xftfont): DEFSYM them.
10222 (xftfont_open): Call XftFontMatch. Don't trust the result of
10223 XftTextExtents8 if the pixel_size is less than 5.
10224
102252008-06-18 Andreas Schwab <schwab@suse.de>
10226
10227 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10228 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10229
102302008-06-18 Jason Rumney <jasonr@gnu.org>
10231
10232 * w32font.c (w32font_list, w32font_match): Add logging.
10233
10234 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10235
102362008-06-17 Chong Yidong <cyd@stupidchicken.com>
10237
10238 * font.c (font_parse_fcname): Store divider characters for
10239 unknown-spec list. For known key symbols, intern using correct
10240 symbol name.
10241
102422008-06-17 Kenichi Handa <handa@m17n.org>
10243
10244 * xfaces.c (realize_default_face): If the frame is not on window
10245 system, set the fontset of face to nil.
10246
102472008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10248
10249 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10250
102512008-06-16 Juanma Barranquero <lekktu@gmail.com>
10252
10253 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10254 (build_font_name_from_vector): Delete externs.
10255
10256 * xfaces.c (struct font_name): Don't declare.
10257
102582008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10259
10260 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10261
102622008-06-16 Chong Yidong <cyd@stupidchicken.com>
10263
10264 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10265
102662008-06-16 Juanma Barranquero <lekktu@gmail.com>
10267
10268 * font.c (Ffont_spec): Fix usage in docstring.
10269 (Ffont_face_attributes): Doc fix.
10270
102712008-06-16 Andreas Schwab <schwab@suse.de>
10272
10273 * font.c (Ffont_face_attributes): Fix definition.
10274
102752008-06-16 Jason Rumney <jasonr@gnu.org>
10276
10277 * font.h (font_style_symbolic_from_value): Remove.
10278
10279 * font.c (font_style_symbolic_from_value): Remove.
10280 (font_style_symbolic): Revert to pre 2008-06-13 version.
10281
10282 * w32font.c (w32_to_fc_weight): New function.
10283 (w32font_full_name, logfont_to_fcname): Use it.
10284
102852008-06-16 Kenichi Handa <handa@m17n.org>
10286
10287 * font.c (font_check_object): Delete it.
10288 (font_clear_cache): Check if a font-object is alive.
10289 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10290 font-object to nil.
10291 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10292 (font_at): Don't call font_check_object.
10293 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10294
102952008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10296
10297 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10298
102992008-06-16 Chong Yidong <cyd@stupidchicken.com>
10300
10301 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10302
103032008-06-15 Chong Yidong <cyd@stupidchicken.com>
10304
10305 * font.c (font_parse_fcname): Only one decimal point.
10306 (font_unparse_fcname): Handle data in family and foundry indices
10307 as symbols, not strings.
10308 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10309
10310 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10311
10312 * font.h (font_unparse_gtkname): Add prototype.
10313
103142008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10315
10316 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10317
103182008-06-15 Andreas Schwab <schwab@suse.de>
10319
10320 * font.c (font_update_drivers): Fix crash when no drivers match.
10321
103222008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10323
10324 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10325 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10326
103272008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10328
10329 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10330
103312008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10332
10333 * process.c (Fserial_process_configure, Fprocess_send_eof):
10334 Use EQ to compare Lisp_Objects.
10335
103362008-06-13 Jason Rumney <jasonr@gnu.org>
10337
10338 * w32fns.c (Fw32_select_font): Remove old font API function.
10339
10340 * w32font.c (logfont_to_fcname): New function.
10341 (Fx_select_font): New font dialog function compatible with
10342 GTK/fontconfig version.
10343
10344 * font.c (font_style_symbolic_from_value): New function.
10345 (font_style_symbolic): Use it.
10346
10347 * font.h (font_style_symbolic_from_value): Declare new function.
10348
103492008-06-13 Juanma Barranquero <lekktu@gmail.com>
10350
10351 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10352 <font-width-table>: Fix typos in docstrings.
10353
103542008-06-13 Daniel Engeler <engeler@gmail.com>
10355
10356 These changes add serial port access.
10357 * process.c: Add HAVE_SERIAL.
10358 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10359 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10360 (list_processes_1, select_wrapper, Fstop_process)
10361 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10362 (status_notify): Modify to handle serial processes.
10363 [HAVE_SERIAL] (Fserial_process_configure)
10364 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10365 New functions.
10366 * process.h (struct Lisp_Process): Add `type'.
10367 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10368 New functions.
10369 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10370 serial ports.
b71ac3dd 10371 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10372 * w32.h: Add FILE_SERIAL.
10373 (struct _child_process): Add ovl_read, ovl_write.
10374
103752008-06-13 Kenichi Handa <handa@m17n.org>
10376
10377 * dispextern.h (enum lface_attribute_index): New member
10378 LFACE_FOUNDRY_INDEX.
10379
10380 * font.c (font_score): Delete arg alternate_families. Check only
10381 weight, slant, width, and size. Ignore the difference of alias
10382 style symbols.
10383 (font_sort_entites): Adjust for the above change. Reflect the
10384 order of font-driver to scores.
10385 (font_list_entities): Don't check alternate_familes here.
10386 (font_clear_prop): Handle foundry.
10387 (font_update_lface): Don't parse "foundry-family" form here.
10388 Handle FONT_FOUNDRY_INDEX.
10389 (font_find_for_lface): Likewise. Handle alternate families here.
10390 If registry is nil, try iso8859-1 and ascii-0.
10391 (font_open_for_lface): Pay attention to size in ENTITY.
10392 (font_open_by_name): Simplify by calling font_load_for_lface.
10393 (free_font_driver_list): Delete it.
10394 (font_update_drivers): Preserve the order of backends.
10395 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10396 of font_score and font_sort_entites.
10397 (font_update_sort_order): Likewise.
10398
10399 * xfaces.c (LFACE_FOUNDRY): New macro.
10400 (check_lface_attrs): Check foundry.
10401 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10402 (merge_face_vectors): Check foundry.
10403 (merge_face_ref): Likewise.
10404 (Finternal_set_lisp_face_attribute): Likewise.
10405 (x_update_menu_appearance): Likewise.
10406 (Finternal_get_lisp_face_attribute): Likewise.
10407 (lface_hash): Likewise.
10408 (lface_same_font_attributes_p): Likewise.
10409 (x_supports_face_attributes_p): Likewise.
10410 (tty_supports_face_attributes_p): Likewise.
10411 (Finternal_set_alternative_font_family_alist): Intern strings.
10412 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10413 (realize_default_face): Set LFACE_FOUNDRY (lface).
10414
10415 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10416 font-driver at first.
10417
10418 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10419
104202008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10421
10422 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10423
104242008-06-12 Jim Meyering <meyering@redhat.com>
10425
10426 Make unexec_free handle NULL the same way free does.
10427 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10428
104292008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10430
10431 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10432 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10433 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10434 (WEAK_ALIAS): Simplify.
10435 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10436 when searching a unibyte buffer.
10437
104382008-06-12 Chong Yidong <cyd@stupidchicken.com>
10439
10440 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10441
104422008-06-12 Juanma Barranquero <lekktu@gmail.com>
10443
10444 * w32font.c: Include ctype.h.
10445
104462008-06-11 Jason Rumney <jasonr@gnu.org>
10447
10448 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10449 misreported as space.
10450 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10451 as aliases for registry iso10646-1.
10452
104532008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10454
10455 * buffer.c (clone_per_buffer_values): Skip `name'.
10456
104572008-06-11 Chong Yidong <cyd@stupidchicken.com>
10458
10459 * font.c (font_parse_fcname): Fix last change; accept decimal
10460 points in font size.
10461
104622008-06-10 Jason Rumney <jasonr@gnu.org>
10463
10464 * w32uniscribe.c (add_opentype_font_name_to_list):
10465 Skip non unicode fonts.
10466
104672008-06-10 Chong Yidong <cyd@stupidchicken.com>
10468
10469 * xfns.c (Fx_font_dialog): New function.
10470
10471 * gtkutil.c (xg_dialog_response_cb): Rename from
10472 xg_file_response_callback.
10473 (pop_down_dialog): Rename from pop_down_file_dialog.
10474 (xg_get_file_name): Callers changed.
10475 (xg_get_font_name): New function.
10476
10477 * gtkutil.h (xg_get_font_name): Insert prototype.
10478
104792008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10480
10481 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10482 x_underline_minimum_display_offset.
10483 (syms_of_xdisp): Declare it here rather than in xterm.c.
10484 * dispextern.h (underline_minimum_offset): Declare it.
10485 * w32term.c (x_draw_glyph_string): Use it.
10486 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10487 (syms_of_xterm): Don't declare it any more.
10488 (x_draw_glyph_string): Adjust to the new name.
10489
8719abec 104902008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10491
10492 * xterm.c (x_underline_minimum_display_offset): New var.
10493 (x_draw_glyph_string): Use it.
10494 (syms_of_xterm): Declare it.
10495
104962008-06-10 Chong Yidong <cyd@stupidchicken.com>
10497
10498 * font.c (font_parse_fcname): Accept GTK-style font names too.
10499
105002008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10501
10502 * dired.c (file_name_completion): Don't return t if the match is exact
10503 but with different capitalization.
10504 * minibuf.c (Ftry_completion): Simplify.
10505
10506 * window.c (Vwindow_point_insertion_type): New var.
10507 (set_window_buffer): Use it.
10508 (syms_of_window): Init and export it to Lisp.
10509
105102008-06-10 Kenichi Handa <handa@m17n.org>
10511
10512 * font.h (font_intern_prop): Prototype adjusted.
10513
10514 * font.c (font_intern_prop): New arg force_symbol.
10515 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10516 Adjust for the change of font_intern_prop.
10517
10518 * ftfont.c (ftfont_pattern_entity):
10519 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10520 (w32_registry):
10521 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10522 the change of font_intern_prop.
10523
105242008-06-09 Juanma Barranquero <lekktu@gmail.com>
10525
10526 * w32menu.c (digest_single_submenu): Declare extern.
10527
105282008-06-09 Jason Rumney <jasonr@gnu.org>
10529
10530 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10531
10532 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10533 (parse_single_submenu): Remove.
10534 (digest_single_submenu): Remove.
10535 (syms_of_w32menu): Don't initialise variables that have moved
10536 to menu.c.
10537 (set_frame_menubar): Sync with version in xmenu.c.
10538 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10539
10540 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10541 Make static again.
10542
105432008-06-09 Jason Rumney <jasonr@gnu.org>
10544
10545 Changes to w32 files related to the move of common menu code
10546 to menu.c on 2008-06-08 by Chong Yidong.
10547
10548 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10549 defs to w32gui.h.
10550 (single_keymap_panes, push_menu_item, push_menu_pane):
10551 Make globally visible.
10552
10553 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10554 (local_free, malloc_widget_value, free_widget_value)
10555 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10556 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10557 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10558 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10559 (menu_items, menu_items_allocated, menu_items_used)
10560 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10561 (init_menu_items, finish_menu_items, discard_menu_items)
10562 (grow_menu_items, push_submenu_start, push_submenu_end)
10563 (push_left_right_boundary, push_menu_pane, push_menu_item)
10564 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10565 (free_menubar_widget_tree_value, parse_single_submenu)
10566 (update_submenu_strings): Remove functions.
10567 (xmalloc_widget_value): Remove and declare extern.
10568
10569 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10570 (OBJ1): Build it.
10571
10572 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10573 (local_heap, local_alloc, local_free, malloc_widget_value)
10574 (free_widget_value): Define here.
10575
105762008-06-09 Kenichi Handa <handa@m17n.org>
10577
10578 * font.h (Qascii_0): Extern it.
10579
10580 * font.c (Qascii_0): New variable.
10581 (syms_of_font): DEFSYM it.
10582 (font_open_by_name): If the registry "iso8859-1" fails, try also
10583 "ascii-0".
10584
10585 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10586
105872008-06-08 Kenichi Handa <handa@m17n.org>
10588
10589 * .gdbinit (xfont): New command.
10590
105912008-06-08 Andreas Schwab <schwab@suse.de>
10592
10593 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10594 * Makefile.in (menu.o): Update dependencies.
10595
10596 * Makefile.in (obj): Always add menu.o.
10597 * emacs.c (main): Always call syms_of_menu.
10598 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10599
106002008-06-08 Chong Yidong <cyd@stupidchicken.com>
10601
10602 * Makefile.in: Compile menu.c.
10603
10604 * lisp.h: Declare syms_of_menu.
10605
10606 * emacs.c (main): Call syms_of_menu.
10607
10608 * keyboard.h: Relocate platform-independent menu definitions from
10609 xmenu.c.
10610
10611 * menu.c: New file. Relocate platform-independent menu
10612 definitions from xmenu.c. Suggested by Adrian Robert.
10613
10614 * xmenu.c: Remove platform-independent menu definitions.
10615 (menu_items menu_items_inuse, menu_items_allocated)
10616 (menu_items_used, menu_items_n_panes)
10617 (menu_items_submenu_depth): Move to keyboard.h.
10618 (init_menu_items, finish_menu_items, unuse_menu_items)
10619 (discard_menu_items, restore_menu_items, save_menu_items)
10620 (grow_menu_items, push_submenu_start, push_submenu_end)
10621 (push_left_right_boundary, push_menu_pane, push_menu_item)
10622 (keymap_panes, single_keymap_panes, single_menu_item)
10623 (list_of_panes, list_of_items, find_and_call_menu_selection)
10624 (xmalloc_widget_value, free_menubar_widget_value_tree)
10625 (parse_single_submenu, digest_single_submenu)
10626 (update_submenu_strings): Move to menu.c.
10627
106282008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10631
106322008-06-06 Miles Bader <miles@gnu.org>
10633
10634 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10635 face, not frame default.
10636
106372008-06-05 Martin Rudalics <rudalics@gmx.at>
10638
10639 * window.c (pop_up_windows, pop_up_frames)
10640 (display_buffer_reuse_frames, Vpop_up_frame_function)
10641 (Vdisplay_buffer_function, Veven_window_heights)
10642 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10643 (Vspecial_display_function, Vsame_window_buffer_names)
10644 (Vsame_window_regexps, split_height_threshold)
10645 (Vsplit_window_preferred_function): Move those vars to window.el.
10646 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10647 (Fdisplay_buffer): Move those functions to window.el.
10648 (syms_of_window): Remove corresponding declarations.
10649 (display_buffer): New function.
10650 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10651 * dispnew.c (Flast_nonminibuf_frame): New function.
10652 * buffer.c (Fpop_to_buffer): Move to window.el.
10653
106542008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10655
10656 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10657
106582008-06-05 Kenichi Handa <handa@m17n.org>
10659
10660 * coding.c (detect_coding): Fix previous change.
10661 (detect_coding_system): Likewise.
10662
106632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10664
10665 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10666
10667 * keymap.c (Vminibuffer_local_filename_must_match_map):
10668 Rename from Vminibuffer_local_must_match_filename_map.
10669 (syms_of_keymap):
10670 * minibuf.c (Fcompleting_read): Adjust accordingly.
10671 * commands.h: Rename declaration as well.
10672
106732008-06-05 Kenichi Handa <handa@m17n.org>
10674
10675 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10676 family name.
10677 (Ffont_put): Likewise.
10678
10679 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10680 current font-spec.
10681
10682 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10683 is unspecified.
10684
10685 * xfaces.c (realize_x_face): If the font-related face attributes
10686 are the same as those of default face, realize a new fontset from
10687 default->fontset.
10688 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10689
106902008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10693 (move_it_in_display_line): New wrapper.
10694
10695 * window.c (window_scroll_pixel_based_preserve_x)
10696 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10697 (window_scroll_pixel_based, window_scroll_line_based):
10698 Use them to preserve column positions.
10699 (syms_of_window): Initialize them.
10700
10701 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10702 (HPOS . VPOS) pair.
10703
10704 * dispextern.h (move_it_in_display_line): Declare.
10705
107062008-06-05 Juanma Barranquero <lekktu@gmail.com>
10707
10708 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10709 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10710 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10711
107122008-06-04 Juanma Barranquero <lekktu@gmail.com>
10713
10714 * window.c (Fset_window_parameter): Doc fix.
10715 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10716
107172008-06-04 Joakim Verona <joakim@verona.se>
10718
10719 * window.h (struct window): Add new member window_parameters.
10720
10721 * window.c (Fwindow_parameters, Fwindow_parameter)
10722 (Fset_window_parameter): New defuns.
10723 (syms_of_window): Defsubr the new defuns.
10724 (make_window): Initialize window_parameters to nil.
10725
107262008-06-04 John Paul Wallington <jpw@pobox.com>
10727
10728 * eval.c (Fdefmacro): Doc fix.
10729
107302008-06-04 Kenichi Handa <handa@m17n.org>
10731
10732 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10733 Be sure to call setup_coding_system when we find a proper coding system.
10734 (detect_coding_system): Fix handling of coding->head_ascii.
10735
107362008-06-03 Andreas Schwab <schwab@suse.de>
10737
10738 * font.c (font_prop_validate_spacing): Fix last change.
10739
107402008-06-03 Kenichi Handa <handa@m17n.org>
10741
10742 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10743 (font_parse_fcname): Fix handling of unknown key.
10744
10745 * xfont.c (xfont_list): Try an alias.
10746
10747 * charset.c (char_charset): Return NULL if the arg charset_list is
10748 specified and C doesn't belong to any of them.
10749
107502008-06-02 Chip Coldwell <coldwell@redhat.com>
10751
10752 * font.c (font_pixel_size): Don't take cdr of an integer.
10753
107542008-06-02 Jim Meyering <meyering@redhat.com>
10755
10756 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10757 * alloc.c (xfree): Return right away for a NULL arg.
10758 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10759 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10760 * mac.c (create_apple_event_from_event_ref): Likewise.
10761 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10762 Likewise.
10763 * doprnt.c (doprnt1): Likewise.
10764 * frame.c (frame): Likewise.
10765 * keyboard.c (wipe_kboard): Likewise.
10766 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10767 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10768 * term.c (tty_default_color_capabilities, maybe_fatal)
10769 (delete_tty): Likewise.
10770 * w16select.c (string): Likewise.
10771 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10772 * w32bdf.c (w32_free_bdf_font): Likewise.
10773 * w32fns.c (w32_unload_font): Likewise.
10774 * w32font.c (w32font_close): Likewise.
10775 * window.c (size_window): Likewise.
10776 * xselect.c (receive_incremental_selection): Likewise.
10777 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10778 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10779 * w32.c (stat): Likewise.
10780
10781 Remove useless if-before-free tests.
10782 * editfns.c (Fset_time_zone_rule): Likewise.
10783 * lread.c (nosuffix): Likewise.
10784 * ralloc.c (get_bloc): Likewise.
10785 * regex.c (reg_free): Likewise.
10786 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10787 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10788 * xsmfns.c (smc_save_yourself_CB): Likewise.
10789
107902008-06-02 Kenichi Handa <handa@m17n.org>
10791
10792 * font.c (font_find_for_lface): Handle float font size.
10793 (font_open_for_lface): Likewise.
10794
10795 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10796 comparing the properties.
10797
107982008-06-01 Jason Rumney <jasonr@gnu.org>
10799
10800 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10801 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10802 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10803 Don't add empty script list.
10804 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10805
108062008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10807
10808 * Makefile.in (dot, dotdot): Remove, update users.
10809 ".." has been used elsewhere in the file for a long time.
10810 (LIBXT_STATIC): Remove conditional based on unused variable.
10811
108122008-06-01 Miles Bader <miles@gnu.org>
10813
10814 * xfaces.c (Vface_remapping_alist): New variable.
10815 (syms_of_xfaces): Initialize it.
10816 (enum named_merge_point_kind): New type.
10817 (struct named_merge_point): Add `named_merge_point_kind' field.
10818 (push_named_merge_point): Make cycle detection respect different
10819 named-merge-point kinds.
10820 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10821 Remove face-name alias resolution.
10822 (lface_from_face_name): New definition using
10823 `lface_from_face_name_no_resolve'.
10824 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10825 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10826 (get_lface_attributes): New definition that layers face-remapping on
10827 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10828 (lookup_basic_face): New function.
10829 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10830 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10831 `get_lface_attributes'.
10832 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10833 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10834 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10835
10836 * xdisp.c (init_iterator): Pass base_face_id through
10837 `lookup_basic_face' when we actually use it as a face-id.
10838 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10839 DEFAULT_FACE_ID.
10840
10841 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10842 lookup the initial face-id.
10843
10844 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10845
108462008-06-01 Juanma Barranquero <lekktu@gmail.com>
10847
10848 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10849 (Fremove_text_properties): Fix typos in docstrings.
10850
108512008-05-31 Kenichi Handa <handa@m17n.org>
10852
10853 * font.c (font_list_entities): Fix the car part of data to be
10854 stored in the cache.
10855
10856 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10857
108582008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10861 Add a `test' argument so another predicate than `equal' can be used.
10862 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10863 (map_char_table): Remove unused vars `c' and `i'.
10864 * lisp.h (Foptimize_char_table): Adjust declaration.
10865 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10866
108672008-05-30 Kenichi Handa <handa@m17n.org>
10868
10869 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10870 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10871 defined.
10872
108732008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10874
10875 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10876 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10877 frame-local settings for the same variable.
10878
108792008-05-30 Kenichi Handa <handa@m17n.org>
10880
10881 * fontset.c (Ffont_info): Move to font.c.
10882 (syms_of_fontset): Delete defsubr of Sfont_info.
10883
10884 * font.c (font_style_to_value, font_score): Delete casting of the
10885 args to xstcasecmp.
10886 (register_font_driver): Increment num_font_drivers only when
10887 registering the driver globally.
10888 (Ffont_info): Move from fontset.c. Handle a font object too.
10889 (syms_of_font): Defsubr Sfont_info.
10890
108912008-05-29 Kenichi Handa <handa@m17n.org>
10892
10893 * coding.h (enum define_coding_utf8_arg_index): New enum.
10894 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10895 coding_attr_utf_bom.
10896 (enum utf_bom_type): Rename from utf_16_bom_type.
10897 (struct utf_16_spec): Adjust for the above change.
10898 (struct coding_system): Add utf_8_bom in `spec' union.
10899
10900 * coding.c (CODING_UTF_8_BOM): New macro.
10901 (enum coding_category): Delete coding_category_utf_8, add
10902 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10903 coding_category_utf_8_sig.
10904 (CATEGORY_MASK_UTF_8): Delete it.
10905 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10906 (CATEGORY_MASK_UTF_8_SIG): New macros.
10907 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10908 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10909 CATEGORY_MASK_UTF_8_SIG.
10910 (CATEGORY_MASK_UTF_8): New macro.
10911 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10912 (detect_coding_utf_8): Check BOM.
10913 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10914 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10915 (encode_coding_utf_16): Likewise.
10916 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10917 (detect_coding, detect_coding_system): Handle utf-8-auto.
10918 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10919 (syms_of_coding): Fix setting up of Vcoding_category_table.
10920
109212008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10922
10923 * process.c (Faccept_process_output): If `millisec' is non-nil,
10924 `seconds' default to 0.
10925 (wait_reading_process_output): Also return non-nil if we read output
10926 from a non-running process.
10927
109282008-05-29 Jason Rumney <jasonr@gnu.org>
10929
10930 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10931 `raster' specified.
10932 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10933 in the uniscribe backend, but disallow any font that has no
10934 unicode subrange support.
10935
109362008-05-29 Juanma Barranquero <lekktu@gmail.com>
10937
10938 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10939 Fix typos in docstrings.
10940
109412008-05-29 Kenichi Handa <handa@m17n.org>
10942
10943 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10944 (Fx_family_fonts): Set frame correctly.
10945
109462008-05-28 Jason Rumney <jasonr@gnu.org>
10947
10948 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10949
109502008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10951
10952 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10953 calling build_annotations.
10954
109552008-05-28 Juanma Barranquero <lekktu@gmail.com>
10956
10957 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10958 (Fencode_coding_string):
10959 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10960 <latin-extra-code-table>: Fix typos in docstrings.
10961 (syms_of_coding) <coding-system-alist>: Doc fix.
10962 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10963
109642008-05-28 Kenichi Handa <handa@m17n.org>
10965
10966 * fontset.c (Ffont_info): Don't call font_close_object.
10967
10968 * font.c (font_parse_family_registry): Use Ffont_put to validate
10969 foundry and family.
10970 (font_delete_unmatched): Don't check spacing.
10971 (font_list_entities): Add spacing to the spec to list fonts.
10972
10973 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10974 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10975
10976 * coding.c (encode_coding_raw_text): Fix previous change.
10977 (encode_coding_object): When the dst_object is a buffer and is
10978 different from src_object, move gap to PT.
10979
109802008-05-27 Chong Yidong <cyd@stupidchicken.com>
10981
10982 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10983
109842008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10985
10986 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10987 all branches. Compute it differently.
10988
10989 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10990
109912008-05-27 Juanma Barranquero <lekktu@gmail.com>
10992
10993 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10994 into "else if () ... else ...".
10995
109962008-05-27 Jason Rumney <jasonr@gnu.org>
10997
10998 * w32font.c (w32font_open_internal): Determine if glyph indices
10999 are likely to work here.
11000
110012008-05-27 Chong Yidong <cyd@stupidchicken.com>
11002
11003 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11004 draw overlap glyphs with appropriate highlighting.
11005
110062008-05-27 Kenichi Handa <handa@m17n.org>
11007
11008 * xfont.c (xfont_open): Fix calculation of font->average_width.
11009
110102008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11011
11012 * casefiddle.c (casify_object): Try to guess better whether the
11013 argument is a byte or a char.
11014
110152008-05-26 Andreas Schwab <schwab@suse.de>
11016
11017 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11018 Always send multiples of format size.
11019
11020 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11021
110222008-05-26 Jason Rumney <jasonr@gnu.org>
11023
11024 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11025 (compute_metrics): Don't set failure if we just cleared the cache.
11026 (w32_weight_table): Remove unused variable.
11027 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11028 backwards compatibility.
11029
110302008-05-25 Kenichi Handa <handa@m17n.org>
11031
11032 * w32term.c (x_draw_glyph_string):
11033 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11034
11035 * xfaces.c: Delete unused function prototypes.
11036 (xstrlwr, font_frame): Delete them.
11037 (clear_face_cache): Delete unused variable.
11038
11039 * xftfont.c (xftfont_open): Delete unused variable.
11040 If underline_thickness is not 1, adjust underline_position.
11041
11042 * ftxfont.c (ftxfont_open): Delete unused variable.
11043
11044 * fontset.c (face_for_char): Optimize for the case of no charset
11045 property.
11046
11047 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11048 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11049 (otf_open, font_otf_capability, generate_otf_features)
11050 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11051 Comment out by surrounding "#if 0" and "#endif" for the moment.
11052 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11053 (syms_of_font): Codes for accessing above commented out.
11054
110552008-05-24 Eli Zaretskii <eliz@gnu.org>
11056
11057 * w32proc.c: Include dispextern.h.
11058
11059 * w32.c: Include dispextern.h.
11060
110612008-05-23 Juanma Barranquero <lekktu@gmail.com>
11062
11063 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11064 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11065 Fix typos in docstrings.
11066
110672008-05-23 Jason Rumney <jasonr@gnu.org>
11068
11069 * xsmfns.c: Remove includes that are already included by config.h.
11070
110712008-05-23 Kenichi Handa <handa@m17n.org>
11072
11073 * charset.c (Qemacs, charset_emacs): New variables.
11074 (char_charset): Fix for non-Unicode characters.
11075 (syms_of_charset): Define charset_emacs.
11076
11077 * w32term.c (x_draw_glyph_string): Be sure to update
11078 s->underline_thickness and s->underline_position. Be sure to draw
11079 underline within the current line area.
11080
11081 * xterm.c (x_draw_glyph_string): Be sure to update
11082 s->underline_thickness and s->underline_position. Be sure to draw
11083 underline within the current line area.
11084
11085 * fontset.c: Delete unused variables and add casting for char *
11086 throughout the file.
11087 (fontset_font): Try the fallback fonts of the current fontset
11088 before consulting the default fontset.
11089
11090 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11091
11092 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11093
110942008-05-22 Jason Rumney <jasonr@gnu.org>
11095
11096 * font.c: Don't include strings.h.
11097
11098 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11099
11100 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11101 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11102 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11103 to call xstrcasecmp.
11104
11105 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11106
11107 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11108
11109 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11110
11111 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11112
111132008-05-22 Kenichi Handa <handa@m17n.org>
11114
11115 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11116
11117 * font.c (font_prop_validate_style): Adjust for the format
11118 change of font_style_table.
11119
11120 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11121 two args.
11122
11123 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11124 two args.
11125
111262008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11127
11128 * minibuf.c (keys_of_minibuf): Delete.
11129 * lisp.h (keys_of_minibuf): Delete.
11130 * emacs.c (main): Don't call keys_of_minibuf.
11131
111322008-05-22 Kenichi Handa <handa@m17n.org>
11133
11134 * ftfont.c (ftfont_resolve_generic_family): Rename from
11135 ftfont_list_generic_family. Return a single family for each
11136 generic family.
11137 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11138 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11139 Call font_add_log.
11140 (ftfont_match): Call font_add_log.
11141
11142 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11143 (FONT_DEBUG): Define it.
11144 (font_add_log): Extern it.
11145 (font_assert): Rename from xassert.
11146
11147 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11148 (xfont_list_family): Call font_add_log.
11149 (xfont_match): Likewise.
11150 (memq_no_quit): Delete.
11151
11152 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11153 call of Ffont_xlfd_name.
11154
11155 * xfaces.c (struct table_entry, slant_table, weight_table)
11156 (swidth_table): Move to font.c.
11157
11158 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11159 xassert are changed to font_assert. Delete many unused variables.
11160 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11161 New variables.
11162 (struct table_entry): Move from xfaces.c and modified.
11163 (weight_table, slant_table, width_table): Move from xfaces.c and
11164 contents adjusted for the change of struct table_entry.
11165 (font_style_to_value, font_style_symbolic): Adjust for the
11166 format change of font_style_table.
11167 (font_parse_family_registry): Don't overwrite existing foundry and
11168 family of font_spec.
11169 (font_score): Fix calculation of diff for sizes.
11170 (font_sort_entites): Call font_add_log.
11171 (font_delete_unmatched): Return a newly created list.
11172 (font_list_entities): Fix previous change. Call font_add_log.
11173 (font_matching_entity, font_open_entity, font_close_entity):
11174 Call font_add_log.
11175 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11176 (Finternal_set_font_style_table): Delete.
11177 (BUILD_STYLE_TABLE): New macro.
11178 (build_style_table): New function.
11179 (Vfont_log, font_log_env_checked): New variables.
11180 (font_add_log): New function.
11181 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11182 Declare Lisp variables "font-weight-table", "font-slant-table",
11183 "font-width-table", and "font-log". Initialize font_style_table.
11184
111852008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11186
11187 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11188
111892008-05-21 Seiji Zenitani <zenitani@mac.com>
11190 Ryo Yoshitake <ryo@shiftmode.net>
11191
11192 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11193 (Vframe_alpha_lower_limit): New variable.
11194 (x_set_alpha): New function.
11195
11196 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11197
11198 * xfns.c (x-create-frame, Qalpha):
11199 Initialize the frame parameter `alpha'.
11200 * xterm.c (OPAQUE, OPACITY): New.
11201 (x_set_frame_alpha): New function.
11202 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11203
11204 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11205 * w32fns.c (w32_frame_parm_handlers): Likewise.
11206
112072008-05-20 Jason Rumney <jasonr@gnu.org>
11208
11209 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11210 truetype fonts to opentype list.
11211
112122008-05-20 Juanma Barranquero <lekktu@gmail.com>
11213
11214 * fontset.c (Ffontset_info): Doc fix.
11215 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11216 <ignore-relative-composition>: Fix typos in docstrings.
11217
11218 * font.c (syms-of-font) <font-encoding-alist>:
11219 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11220 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11221 (Ffont_otf_alternates): Doc fixes.
11222
112232008-05-20 Kenichi Handa <handa@m17n.org>
11224
11225 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11226 font.h through out the file.
11227 (FONT_DRIVERS): Rename from FONTOBJ.
11228 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11229 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11230
11231 * emacs.c (main): Call syms_of_font unconditionally.
11232
11233 * font.h (find_font_encoding): Extern it.
11234
11235 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11236 fontset.c.
194d44e7 11237 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11238 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11239 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11240 only when HAVE_WINDOW_SYSTEM is defined.
11241 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11242 when HAVE_WINDOW_SYSTEM is defined.
11243
11244 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11245 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11246
11247 * xfaces.c: Include font.h unconditionally.
11248 (merge_face_ref, merge_face_vectors)
11249 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11250
112512008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11252
11253 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11254 indirect_variable.
11255 * eval.c (lisp_indirect_variable): New fun.
11256 (Fuser_variable_p): Use it.
11257
112582008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11259
11260 * lisp.h (indirect_variable):
11261 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11262 Use Lisp_Symbol pointers rather than Lisp_Object.
11263 Adjust callers.
11264 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11265 To this end, change calling-convention.
11266
11267 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11268 if some non-hidden buffers are selected by string&pred.
11269
112702008-05-19 Chong Yidong <cyd@stupidchicken.com>
11271
11272 * process.c (wait_reading_process_output): Always check status
11273 when in batch mode.
11274
112752008-05-19 Kenichi Handa <handa@m17n.org>
11276
11277 * font.c (font_list_entities): Fix handling of cache.
11278 (font_matching_entity): Likewise.
11279
11280 * ftfont.c (cs_iso8859_1): Delete.
11281 (ft_face_cache): New variable.
11282 (struct ftfont_info): New member fc_charset_idx.
11283 (ftfont_build_basic_charsets): Delete.
11284 (fc_charset_table): New variable.
11285 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11286 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11287 Callers changed.
11288 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11289 (ftfont_spec_pattern): New argument fc_charset_idx.
11290 Check registry more rigidly. Change callers.
11291 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11292 change of :font-entity property of the font.
11293
11294 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11295 property of the font.
11296
112972008-05-18 Juanma Barranquero <lekktu@gmail.com>
11298
11299 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11300 (Funencodable_char_position, Fcheck_coding_systems_region)
11301 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11302 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11303 (Ffind_operation_coding_system, Fset_coding_system_priority)
11304 (Fcoding_system_eol_type): Doc fixes.
11305
113062008-05-17 Glenn Morris <rgm@gnu.org>
11307
11308 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11309
113102008-05-16 Eli Zaretskii <eliz@gnu.org>
11311
11312 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11313 and st_gid.
11314
11315 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11316 HAVE_WINDOW_SYSTEM is not defined.
11317
11318 * xfaces.c (merge_face_ref, merge_face_vectors)
11319 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11320 HAVE_WINDOW_SYSTEM is defined.
11321 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11322
113232008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11324
11325 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11326
113272008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11328
11329 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11330
113312008-05-15 Kenichi Handa <handa@m17n.org>
11332
11333 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11334 preference.
11335
113362008-05-15 Glenn Morris <rgm@gnu.org>
11337
11338 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11339
113402008-05-15 Chong Yidong <cyd@stupidchicken.com>
11341
11342 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11343 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11344
11345 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11346
113472008-05-15 Kenichi Handa <handa@m17n.org>
11348
11349 * ftfont.c (ftfont_list): Downcase family name to check generic
11350 families.
11351
11352 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11353 font-spec for QCfont value.
11354
11355 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11356 buffer. Check the return value of it.
11357
113582008-05-14 Jason Rumney <jasonr@gnu.org>
11359
11360 * w32term.c (w32_get_glyph_overhangs): Remove.
11361 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11362
113632008-05-14 Kenichi Handa <handa@m17n.org>
11364
11365 * font.c (font_prop_validate): Make nil a valid value.
11366 (font_clear_cache): Check if the cached vector of entities is nil
11367 or not.
11368
113692008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11370
11371 * emacs.c (main_thread): Conditionalize on
11372 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11373 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11374
11375 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11376 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11377 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11378
113792008-05-14 Kenichi Handa <handa@m17n.org>
11380
11381 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11382 has no corresponding coding system.
11383
113842008-05-14 Jason Rumney <jasonr@gnu.org>
11385
11386 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11387
11388 * w32font.h (w32font_open_internal): Update declaration.
11389
11390 * w32font.c (w32font_open_internal): Change last argument from
11391 w32font_info struct to font object. Fill in font object from
11392 font_entity. Get Outline metrics if possible. Use them to
11393 calculate underline position and thickness. Use xlfd name as name
11394 property. Don't set codepage.
11395 (w32font_open): Pass font_object to w32font_open_internal. Don't
11396 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11397 (w32font_draw): Use s->font.
11398 (clear_cached_metrics): Don't clear non-existent blocks.
11399
11400 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11401 font was not found.
11402 (x_draw_glyph_string): Use underline position and thickness from font.
11403
11404 * w32uniscribe.c (uniscribe_open): Pass font_object to
11405 w32font_open_internal.
11406
114072008-05-14 Kenichi Handa <handa@m17n.org>
11408
11409 These changes are to delete all legacy font-handling codes, and
11410 make Emacs use only font-backends.
11411
11412 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11413 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11414
11415 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11416
11417 * charset.h (Vcharset_non_preferred_head)
11418 (Vcurrent_iso639_language): Extern them.
11419
11420 * charset.c (Vcharset_non_preferred_head): New variable.
11421 (Vcurrent_iso639_language): New variable.
11422 (syms_of_charset): Declare it as a Lisp variable.
11423 (char_charset): Don't check non preferred charsets. As a last
11424 resort, return charset_unicode.
11425 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11426
11427 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11428 conditionals. Don't check enable_font_backend. Delete all codes
11429 used only when USE_FONT_BACKEND is not defined.
11430
11431 * dispextern.h (struct glyph_string): Change type of `font' to
11432 `struct font *'.
11433 (struct glyph_string): New member underline_position and
11434 underline_thickness.
11435 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11436 (struct face): Change type of `font' to `struct font *'. Remove
11437 members `font_name', `font_info_id'.
11438 (per_char_metric, encode_char): Delete externs.
11439 (calc_pixel_width_or_height): Adjust the prototype.
11440
11441 * emacs.c (enable_font_backend): Delete extern.
11442 (main): Don't set enable_font_backend. Don't check the command
11443 line argument "-disable-font-backend".
11444
11445 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11446 (enum font_property_index): New members FONT_DPI_INDEX,
11447 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11448 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11449 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11450 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11451 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11452 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11453 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11454 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11455 (struct font_spec, struct font_entity): New structs.
11456 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11457 (struct font): Many members from old "struct font_info" moved to
11458 here. Members font and entity deleted.
11459 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11460 the new font-related objects.
11461 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11462 (CHECK_FONT_GET_OBJECT): Likewise.
11463 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11464 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11465 (struct font_driver): New members case_sensitive anc check. Type
11466 of the member list and open changed.
11467 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11468 (font_symbolic_width, font_find_object, font_get_spec)
11469 (font_set_lface_from_name): Delete extern.
11470 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11471
11472 * font.c: Include <strings.h>.
11473 (enable_font_backend): Delete it.
11474 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11475 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11476 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11477 (null_string): Delete it.
11478 (null_vector): Make it static.
11479 (font_family_alist): Delete it.
11480 (Qnormal): Extern it.
11481 (QCextra, QClanguage): Delete it.
11482 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11483 (font_make_spec, font_make_entity, font_make_object)
11484 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11485 the string. Callers changed.
11486 (font_pixel_size): Adjusted for the format change of font-related
11487 objects.
11488 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11489 (font_style_to_value, font_style_symbolic): New function.
11490 (build_font_family_alist): Delete it.
11491 (font_registry_charsets): Use Fassoc_string instead of
11492 assq_no_quit.
11493 (font_prop_validate_symbol): Don't return null_string.
11494 (font_prop_validate_style): Adjusted for the change of
11495 style-related values in a font vector.
11496 (font_property_table): Delete entries for QClanguage and
11497 QCantialias, add entries for QCavgwidth.
11498 (get_font_prop_index): Delete the 2nd argument FROM.
11499 (font_prop_validate): Arguments changed.
11500 (font_put_extra): Adjusted for the change of font-related objects.
11501 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11502 (font_parse_fcname, font_unparse_fcname)
11503 (font_prepare_composition): Likewise.
11504 (font_parse_family_registry): Renamed from font_merge_old_spec.
11505 (otf_open): Delete the 1st arg entity.
11506 (font_otf_capability): Adjusted for the above change.
11507 (font_score): New arg alternate_families. Adjusted for the change
11508 of font-related objects.
11509 (font_sort_entites): New arg best_only.
11510 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11511 Delete them.
11512 (font_match_p): Check alternate families.
11513 (font_find_object): Delete it.
11514 (font_check_object): New function.
11515 (font_clear_cache): Adjusted for the change of font-related objects.
11516 (font_delete_unmatched): New arg.
11517 (font_list_entities): Call font_driver->list with a spec that
11518 doesn't specify style-related properties.
11519 (font_matching_entity): Arguments changed. Caller changed.
11520 (font_open_entity): Adjusted for the change of font-related objects.
11521 (font_close_object, font_has_char, font_encode_char)
11522 (font_get_name, font_get_spec): Likewise.
11523 (font_spec_from_name, font_clear_prop, font_update_lface):
11524 New functions.
11525 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11526 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11527 (font_at): Adjusted for the change of font-related objects.
11528 (font_range): New function.
11529 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11530 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11531 (Fcopy_font_spec, Fmerge_font_spec): New function.
11532 (Ffont_family_list): Renamed from list-families.
11533 (Finternal_set_font_style_table): Arguments changed.
11534 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11535 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11536 change of font-related objects.
11537 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11538
11539 * fontset.h (struct font_info): Delete it. Most members go to
11540 struct font.
11541 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11542 (enum FONT_SPEC_INDEX): Delete it.
11543 (font_info, list_fonts_func, load_font_func, query_font_func)
11544 (set_frame_fontset_func, find_ccl_program_func)
11545 (get_font_repertory_func, new_fontset_from_font_name): Delete
11546 externs.
11547 (fontset_from_font_name): Extern it.
11548 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11549 (FONT_INFO_FROM_FACE): Deleted.
11550 (face_for_font): Adjust prototype.
11551
11552 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11553 conditionals. Don't check enable_font_backend. Delete all codes
11554 used only when USE_FONT_BACKEND is not defined.
11555 (get_font_info_func, list_font_func, load_font_func)
11556 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11557 (get_font_repertory_func): Delete them.
11558 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11559 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11560 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11561 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11562 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11563 (fontset_compare_rfontdef): New function.
11564 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11565 rfont-defs by qsort. Adjusted for the change of font-group vector.
11566 (load_font_get_repertory): Deleted.
11567 (fontset_find_font): Use new macros to ref/set elements of
11568 font-def and rfont-def.
11569 (fontset_font): Fix the timing of remembering that no font for C.
11570 (free_face_fontset): Do nothing if the face has no fontset.
11571 (face_suitable_for_char_p): Use new macros to ref/set elements of
11572 rfont-def.
11573 (face_for_char): Likewise. Call face_for_char with font_object.
11574 (fs_load_font): Delete. Delete #pragma surrounding it.
11575 (fs_query_fontset): Use strcasecmp instead of strcmp.
11576 (generate_ascii_font_name): Adjusted for the format change of
11577 font-spec.
11578 (Fset_fontset_font): Likewise. Use new macros to set elements of
11579 font-def.
11580 (Fnew_fontset): Use font_unparse_xlfd to generate
11581 FONTSET_ASCII (fontset).
11582 (new_fontset_from_font_name): Deleted.
11583 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11584 a fontset is already created for the font. FIx updating of
11585 Vfontset_alias_alist.
11586 (fontset_ascii_font): Deleted.
11587 (Ffont_info): Adjusted for the format change of font-spec.
11588 (Finternal_char_font): Likewise.
11589 (Ffontset_info): Likewise.
11590 (syms_of_fontset): Don't check load_font_func.
11591
11592 * fns.c (internal_equal): Handle PREV_FONT.
11593
11594 * frame.h: Delete USE_FONT_BACKEND conditional.
11595
11596 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11597 conditionals. Don't check enable_font_backend. Delete all codes
11598 used only when USE_FONT_BACKEND is not defined.
11599 (x_set_font): Call x_new_font, not x_new_fontset2.
11600 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11601 already set for the frame.
11602
11603 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11604 a font-entity by font_make_entity. Use font_intern_prop instead
11605 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11606 font property. If a font is scalable, set avgwidth property to 0.
11607 Set font-entity property by font_put_extra.
11608 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11609 (ffont_driver): Adjusted for the change of struct font_driver.
11610 (ftfont_spec_pattern): New function.
11611 (ftfont_list): Return a list, not vector.
11612 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11613 (ftfont_list_family): Don't downcase names.
11614 (ftfont_free_entity): Deleted.
11615 (ftfont_open): Return a font-object. Adjusted for the change of
11616 struct font. Get underline_thickness and underline_position from
11617 font property. Don't update dpyinfo->smallest_font_height and
11618 dpyinfo->smallest_char_width.
11619 (ftfont_close): Don't free `struct font'.
11620 (ftfont_has_char): Adjusted for the format change of font-entity.
11621 (ftfont_encode_char, ftfont_text_extents): Likewise.
11622
11623 * ftxfont.c (ftxfont_list): Return a list, not vector.
11624 (ftxfont_open): Return a font-object. Adjusted for the change of
11625 struct font. Get underline_thickness and underline_position from
11626 font property. Don't update dpyinfo->smallest_font_height and
11627 dpyinfo->smallest_char_width.
11628 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11629 (ftxfont_draw): Adjusted for the change of struct font.
11630
11631 * image.c (image_ascent): Don't include "charset.h". Include
11632 "character.h" and "font.h".
11633
11634 * lisp.h (enum pvec_type): New member PREV_FONT.
11635 (Fassoc_string): EXFUN it.
11636
11637 * print.c: Include font.h.
11638 (print_object): Handle font-related objects.
11639
11640 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11641 conditionals. Don't check enable_font_backend. Delete all codes
11642 used only when USE_FONT_BACKEND is not defined.
11643 (handle_auto_composed_prop): Do nothing if it->f is not on a
11644 window system. Check how many following characters can be
11645 displayed by the same font.
11646 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11647 'struct font *'.
11648 (get_char_face_and_encoding): Assign the whole encoding task to
11649 the `encode-char' method of a font driver.
11650 (fill_composite_glyph_string): Adjusted for the change of `struct
11651 face' and `struct glyph_string'.
11652 (fill_glyph_string): Likewise.
11653 (get_per_char_metric): Arguments changed.
11654 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11655 and `struct glyph_string'.
11656 (produce_stretch_glyph, calc_line_height_property)
11657 (x_produce_glyphs): Likewise.
11658
11659 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11660 conditionals. Don't check enable_font_backend. Delete all codes
11661 used only when USE_FONT_BACKEND is not defined. Use
11662 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11663 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11664 (Qp): Extern them.
11665 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11666 Deleted.
11667 (struct font_name): Deleted.
11668 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11669 (compare_fonts_by_sort_order): New function.
11670 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11671 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11672 Deleted.
11673 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11674 compare_fonts_by_sort_order.
11675 (Fx_font_family_list): Call Ffont_family_list.
11676 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11677 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11678 (face_symbolic_slant, face_symbolic_swidth)
11679 (split_font_name_into_vector, build_font_name_from_vector)
11680 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11681 (font_rescale_ratio, split_font_name, build_font_name)
11682 (free_font_names, sort_fonts, x_face_list_fonts)
11683 (face_font_available_p, sorted_font_list, cmp_font_names)
11684 (font_list_1, concat_font_list, font_list, remove_duplicates):
11685 Deleted.
11686 (Fx_list_fonts): Use Ffont_list.
11687 (LFACE_AVGWIDTH): Deleted.
11688 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11689 by FONTP.
11690 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11691 (set_lface_from_font_name): Delete it.
11692 (set_lface_from_font): Renamed from
11693 set_lface_from_font_and_fontset. Caller changed. Don't set
11694 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11695 for face.
11696 (merge_face_vectors): Copy font-spec if necessary.
11697 Clear properties of the font-spec if necessary.
11698 (merge_face_ref): Clear properties of the font-spec if necessary.
11699 (Finternal_set_lisp_face_attribute): Likewise.
11700 (set_font_frame_param): Use font_load_for_lface to load a
11701 font-object, and call Fmodify_frame_parameters with it.
11702 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11703 font name by Ffont_xlfd_name.
11704 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11705 QCslant, and QCwidth.
11706 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11707 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11708 Compare fonts by EQ.
11709 (lookup_non_ascii_face): Deleted.
11710 (face_for_font): The 2nd argument changed.
11711 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11712 Check atomic font properties by case insensitive.
11713 (realize_non_ascii_face): Set face->overstrike correctly.
11714 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11715 (dump_realized_face): Get font name from
11716 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11717
11718 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11719 conditionals. Don't check enable_font_backend. Delete all codes
11720 used only when USE_FONT_BACKEND is not defined.
11721 (xic_create_xfontset): Original code deleted and renamed from
11722 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11723 (x_make_gc): Don't set GCFont in GCs.
11724 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11725 opened by "fixed".
11726 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11727 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11728 get_font_repertory_func.
11729
11730 * xfont.c: Include <stdlib.h> and "ccl.h".
11731 (struct xfont_info): New structure.
11732 (xfont_query_font): Deleted.
11733 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11734 moved from xterm.c.
11735 (xfont_driver): Adjusted for the change of struct font_driver.
11736 (compare_font_names): New function.
11737 (xfont_list_pattern): Sort font names case insensitively. Make
11738 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11739 (xfont_list): Return a list, not vector.
11740 (xfont_match): If the font doesn't have QCname property, generate
11741 a name from the other font properties.
11742 (xfont_open): Return a font-object. Adjusted for the change of
11743 struct font. Get underline_thickness and underline_position from
11744 font property. Don't update dpyinfo->smallest_font_height and
11745 dpyinfo->smallest_char_width.
11746 (xfont_close): Don't free struct font.
11747 (xfont_prepare_face): Adjusted for the change of struct font.
11748 (xfont_done_face): Deleted.
11749 (xfont_has_char): Adjusted for the change of struct font.
11750 (xfont_encode_char, xfont_draw): Likewise.
11751 (xfont_check): New function.
11752
11753 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11754 callback function.
11755 (xftfont_match): Adjusted for the format change of font-entity.
11756 (xftfont_open): Adjusted for the format change of font-entity and
11757 font-object. Adjusted for the change of struct font. Return a
11758 font-object. Don't update dpyinfo->smallest_font_height and
11759 dpyinfo->smallest_char_width.
11760 (xftfont_close): Block input while calling XftFontClose.
11761 (xftfont_prepare_face): Don't block input while calling
11762 xftfont_get_colors. Adjusted for the change of struct font.
11763 (xftfont_shape): Return value of error case fixed.
11764
11765 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11766
11767 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11768 conditionals.
11769 (FONT_WIDTH): Return (f)->max_width.
11770 (struct x_display_info): Delete member `font'.
11771 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11772 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11773 (struct x_output): Change type of `font' to `struct font *'.
11774
11775 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11776 conditionals. Don't check enable_font_backend. Delete all codes
11777 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11778 (x_per_char_metric, x_encode_char): Deleted.
11779 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11780 (x_compute_glyph_string_overhangs): Adjusted for the change of
11781 `struct face'.
11782 (x_draw_glyph_string_foreground)
11783 (x_draw_composite_glyph_string_foreground): Likewise.
11784 (x_draw_glyph_string): Likewise. Use font->underline_position and
11785 font->underline_thickness.
11786 (x_new_font): Renamed from x_new_fontset2.
11787 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11788 (x_check_font): Call `check' method of a font driver.
11789 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11790 (x_query_font, x_get_font_repertory): Deleted.
11791 (x_find_ccl_program): Renamed and moved to xfont.c.
11792 (x_redisplay_interface): Adjusted for the change of `struct
11793 redisplay_interface'.
11794
11795 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11796 conditionals. Don't check enable_font_backend. Delete all codes
11797 used only when USE_FONT_BACKEND is not defined. Surround non-used
11798 code by "#ifdef OLD_FONT" and "endif".
11799 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11800
11801 * w32font.h (struct w32font_info): New member.
11802 (FONT_COMPAT): New macro.
11803 (w32font_open_internal): Prototype adjusted.
11804
11805 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11806 OLD_FONT" and "endif".
11807
11808 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11809 conditionals. Don't check enable_font_backend. Delete all codes
11810 used only when USE_FONT_BACKEND is not defined.
11811 (w32font_open): Return a font-object. Make a font-object by
11812 font_make_object. Adjusted for the change of struct w32font_info.
11813 (w32font_close): Don't free struct font. Adjusted for the change
11814 of struct w32font_info.
11815 (w32font_encode_char, w32font_text_extents, w32font_draw):
11816 Adjusted for the change of struct w32font_info.
11817 (w32font_draw): Likewise.
11818 (w32font_list_internal): Return a list, not vector.
11819 (w32font_open_internal): Change the 4th arg to font-object.
11820 Adjusted for the change of struct w32font_info and font-object format.
11821 (add_font_name_to_list): Don't downcase names.
11822 (w32_enumfont_pattern_entity): Make a font-entity by
11823 font_make_entity. Adjusted for the format change of font-entity.
11824 Use FONT_SET_STYLE to set a style-related font property. If a
11825 font is scalable, set avgwidth property to 0. Set font-entity
11826 property by font_put_extra.
11827 (font_matches_spec): Adjusted for the format change of font-entity.
11828 (w32_weight_table, w32_decode_weight): New variables.
11829 (w32_encode_weight): New function.
11830 (fill_in_logfont): Adjusted for the format change of font-spec.
11831 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11832 weight value.
11833 (w32font_driver): Adjusted for the change of struct font_driver.
11834
11835 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11836 conditionals. Don't check enable_font_backend. Surround non-used
11837 code by "#ifdef OLD_FONT" and "endif".
11838 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11839 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11840
11841 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11842 conditionals. Don't check enable_font_backend. Delete all codes
11843 used only when USE_FONT_BACKEND is not defined. Surround non-used
11844 code by "#ifdef OLD_FONT" and "endif".
11845
11846 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11847 (uniscribe_open): Return value changed to font-object.
11848 Adjusted for the format change of font-object.
11849 (uniscribe_otf_capability): Adjusted for the change of struct font.
11850 (add_opentype_font_name_to_list): Don't downcase names.
11851 (uniscribe_font_driver): Adjusted for the change of struct
11852 font_driver.
11853
118542008-05-13 Chong Yidong <cyd@stupidchicken.com>
11855
11856 * dispnew.c (update_frame_1): Check if tty output is still valid
11857 before flushing it.
11858
118592008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11860
11861 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11862 to Gtk+ menus.
11863
118642008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11865
11866 * dired.c (file_name_completion): Tweak the code so as to always do it
11867 in a single pass. Tighten the scope of some variables.
11868
11869 * dired.c (Qdefault_directory): New var.
11870 (file_name_completion): Use it instead of Fexpand_file_name.
11871 (syms_of_dired): Initialize it.
11872
118732008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11874
11875 * fileio.c (double_dollars): Remove dead code.
11876
118772008-05-10 Eli Zaretskii <eliz@gnu.org>
11878
11879 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11880 Mention w32-get-true-file-attributes in doc string.
11881
11882 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11883
118842008-05-09 Glenn Morris <rgm@gnu.org>
11885
11886 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11887 2008-04-23.
11888
118892008-05-09 Eli Zaretskii <eliz@gnu.org>
11890
11891 Support for reporting owner and group of each file on MS-Windows:
11892 * dired.c (stat_uname, stat_gname): New functions, with special
11893 implementation for w32.
11894 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11895
11896 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11897 (dflt_group_name): New static variable.
11898 (dflt_group): Rename from the_group.
11899 (init_user_info): Init dflt_group fields. Get user's group name
11900 from LookupAccountSid.
11901 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11902 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11903 New initialization states.
11904 (globals_of_w32): Initialize them to zero. Initialize the default
11905 group name to "None".
11906 (GetFileSecurity_Name): New global var, the name of the function
11907 to call for GetFileSecurity.
11908 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11909 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11910 (get_file_security, get_security_descriptor_owner)
11911 (get_security_descriptor_group, is_valid_sid)
11912 (get_file_security_desc, get_rid, get_name_and_id)
11913 (get_file_owner_and_group): New functions.
11914 (stat): Use get_file_security_desc and get_file_owner_and_group to
11915 report the owner and primary group of each file. Don't ignore the
11916 high 32 bits of file's size, now that st_size is 64-bit wide.
11917 Fix test when to get true file attributes.
11918 (init_user_info): Use get_rid instead of equivalent inline code.
11919 (fstat): Don't ignore the high 32 bits of file's size.
11920
119212008-05-09 Chong Yidong <cyd@stupidchicken.com>
11922
11923 * image.c (png_load): Use correct bit-depth for setting background
11924 color.
11925
119262008-05-08 Eli Zaretskii <eliz@gnu.org>
11927
11928 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11929 epa-hook.elc.
11930
119312008-05-08 Juanma Barranquero <lekktu@gmail.com>
11932
11933 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11934
119352008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11936
11937 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11938 because the original parameters are in pure storage now.
11939 (mac_window): Remove unused params. Update callers.
11940
119412008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11942
11943 * lread.c (substitute_object_recurse): Use lower-level primitives.
11944 Don't signal errors when traversing sub-char-tables.
11945 Don't loop over all the possible characters when traversing char-tables.
11946
11947 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11948 just like we do in print.c.
11949
119502008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11951
11952 * minibuf.c (Ftry_completion): Remove code left over from when we used
11953 scmp instead of Fcompare_strings.
11954
119552008-05-04 Juanma Barranquero <lekktu@gmail.com>
11956
11957 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11958
119592008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11960
11961 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11962 Create bitmap context in native byte order.
11963
11964 * macterm.c (XDrawLine)
11965 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11966 context in native byte order.
11967
119682008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11969
11970 * config.in: Regenerate.
11971
11972 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11973 New definitions for Image I/O support.
11974 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11975 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11976 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11977 (mac_data_provider_release_data, image_load_image_io)
11978 [USE_MAC_IMAGE_IO]: New functions.
11979 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11980 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11981 (init_image_func_pointer) [MAC_OSX]: Remove function.
11982 (image_load_quartz2d) [MAC_OSX]: Check availability of
11983 CGImageCreateWithPNGDataProvider at compile time.
11984 Use lowercase `false' for boolean constant.
11985 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11986 Use image_load_image_io.
11987 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11988 Don't check MyCGImageCreateWithPNGDataProvider.
11989 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11990 Don't call init_image_func_pointer.
11991
11992 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11993
11994 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11995 Make variable non-static.
11996 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11997 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11998
11999 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12000 (RED_FROM_ULONG): Mask off higher bits.
12001 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12002
12003 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12004 Include AvailabilityMacros.h.
12005 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12006 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12007
120082008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * chartab.c (Fset_char_table_range): If range is t, really set all
12011 chars to that value.
12012
120132008-05-03 Eli Zaretskii <eliz@gnu.org>
12014
12015 * dired.c (Ffile_attributes): Don't allow the device number become
12016 negative.
12017
120182008-05-02 Daiki Ueno <ueno@unixuser.org>
12019
12020 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12021
120222008-05-02 Juri Linkov <juri@jurta.org>
12023
12024 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12025 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12026 DEFAULT argument as a list of default values in docstrings.
12027
120282008-05-01 Chong Yidong <cyd@stupidchicken.com>
12029
12030 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12031
120322008-05-01 Martin Rudalics <rudalics@gmx.at>
12033
12034 * dispnew.c (change_frame_size_1): Preserve small windows when
12035 shrinking frames by calling set_window_height|width with third
12036 arg 2.
12037
12038 * window.h (struct window): Replace field too_small_ok by field
12039 resize_proportionally.
12040
12041 * window.c (make_window): Initialize resize_proportionally.
12042 (enlarge_window): Temporarily set resize_proportionally to make
12043 sure that shrink_windows does scale the window proportionally.
12044 (shrink_windows): When window has resize_proportionally set try
12045 to shrink it proportionally by stealing from other windows.
12046 (struct saved_window, Fset_window_configuration)
12047 (compare_window_configurations): Handle resize_proportionally.
12048 (WINDOW_TOTAL_SIZE): New macro.
12049 (window_min_size, shrink_windows, size_window): Use it.
12050 (check_min_window_sizes): Remove. Invalid values of
12051 window-min-height|width are handled by window_min_size_2 now.
12052 (size_window, Fsplit_window, enlarge_window)
12053 (adjust_window_trailing_edge, grow_mini_window): Don't call
12054 check_min_window_sizes.
12055 (window_min_size_2, window_min_size_1, window_min_size):
12056 New argument safe_p for retrieving "safe" minimum sizes.
12057 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12058 (adjust_window_trailing_edge, grow_mini_window):
12059 Adjust arguments of window_min_size... functions.
12060 (shrink_windows): Argument min_size removed. New argument
12061 safe_p allows shrinking windows to their safe minimum sizes.
12062 Calculate minimum size and decide whether a window shall be
12063 deleted for each window individually.
12064 (size_window): When nodelete_p equals 2, tell shrink_windows to
12065 delete windows only if their new minimum size is no more safe.
12066 (shrink_window_lowest_first): Call window_min_size_1 to make
12067 sure to preserve modeline of bottom-most window when resizing
12068 the minibuffer.
12069 (Fset_window_configuration, Fcurrent_window_configuration)
12070 (compare_window_configurations): Do not handle
12071 window-min-height|width any more.
12072 (syms_of_window): Clarify window-min-height|width doc-strings.
12073
120742008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12075
12076 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12077 some more. Copy some of the code from Ftry_completions.
12078 Remove special case code that dates back to initial revision when the
12079 slash was only added when necessary and that can't trigger nowadays.
12080
120812008-04-27 Kenichi Handa <handa@m17n.org>
12082
12083 * font.c (font_prop_validate): Signal `error' instead of `font'.
12084
120852008-04-29 Jason Rumney <jasonr@gnu.org>
12086
12087 * w32fns.c (Fw32_battery_status): New defun.
12088 (syms_of_w32fns): Defsubr it.
12089
120902008-04-28 Andreas Schwab <schwab@suse.de>
12091
12092 * dired.c (file_name_completion): Fix another mixing of encoded
12093 and decoded names.
12094
120952008-04-28 Juanma Barranquero <lekktu@gmail.com>
12096
12097 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12098
120992008-04-27 Juanma Barranquero <lekktu@gmail.com>
12100
12101 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12102
121032008-04-27 Andreas Schwab <schwab@suse.de>
12104
12105 * dired.c (file_name_completion): Fix inappropriate mixing of
12106 encoded and decoded names.
12107
12108 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12109
12110 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12111
121122008-04-26 Eli Zaretskii <eliz@gnu.org>
12113
12114 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12115 2008-03-31, it's not needed anymore with `struct stat' definition
12116 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12117 for the same reasons.
12118
121192008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12120
12121 * m/sparc.h: Additional redefinitions for GNU/Linux.
12122
121232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12124
12125 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12126 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12127 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12128 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12129 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12130 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12131 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12132 Likewise.
12133
12134 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12135 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12136 (mac_ax_number_of_characters): Add externs.
12137 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12138 [USE_MAC_TSM]: Likewise.
12139 (mac_handle_text_input_event) [MAC_OSX]:
12140 Handle kEventTextInputOffsetToPos for no active input area case.
12141 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12142 (mac_handle_document_access_event)
12143 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12144 (install_application_handler) [MAC_OSX]: Register handlers for
12145 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12146 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12147 Register mac_handle_document_access_event.
12148
12149 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12150 Make functions non-static.
12151
121522008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12153
12154 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12155 (read_file_name_completion_ignore_case, insert_default_directory)
12156 (Qdefault_directory): Move to minibuffer.el.
12157 (Fread_file_name): Call the new `read-file-name' instead.
12158
121592008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12160
12161 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12162 Make function non-static.
12163 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12164 Remove function.
12165 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12166 Move to mactoolbox.c.
12167 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12168
12169 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12170 (mac_rect_make): New macro.
12171
12172 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12173 instead of float.
12174 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12175 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12176 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12177 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12178 CGRectMake.
12179 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12180 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12181 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12182 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12183 instead of WindowRef in argument type.
12184 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12185 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12186 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12187 instead of DISPLAY. All uses changed.
12188 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12189 (x_calc_absolute_position): Simplify so as not to use
12190 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12191
12192 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12193 instead of WindowRef in argument type.
12194 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12195 [TARGET_API_MAC_CARBON]: Remove externs.
12196 (create_apple_event, mac_event_parameters_to_lisp)
12197 [TARGET_API_MAC_CARBON]: Add externs.
12198
12199 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12200 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12201 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12202 is clicked.
12203 (x_activate_menubar): Remove extern for saved_menu_event_location.
12204 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12205 Move from mac.c.
12206
122072008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12208
12209 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12210 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12211
122122008-04-23 Jason Rumney <jasonr@gnu.org>
12213
12214 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12215 attributes only for local files.
12216
12217 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12218 default to Qlocal.
12219
122202008-04-22 Juri Linkov <juri@jurta.org>
12221
12222 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12223 read-buffer-to-switch instead of using the letter "B".
12224
122252008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12226
12227 * fileio.c (Qdefault_directory): New variable.
12228 (Fread_file_name): Use it to pass `dir' to the completion functions.
12229
122302008-04-20 Chong Yidong <cyd@stupidchicken.com>
12231
12232 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12233
122342008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12235
12236 * keyboard.c (Vpre_help_message): Remove.
12237 (show_help_echo): Remove default C code.
12238
12239 * dired.c (directory_files_internal, file_name_completion):
12240 Only call ENCODE_FILE if the string is indeed decoded.
12241
122422008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12243
12244 * Makefile.in (TOOLKIT_DEFINES): Remove.
12245 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12246
122472008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12248
12249 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12250 (mactoolbox.o): New target.
12251
12252 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12253 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12254
12255 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12256 Use mac_set_frame_window_background instead of XSetWindowBackground.
12257 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12258 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12259 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12260 instead of SetWindowTitleWithCFString.
12261 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12262 Move function to mactoolbox.c.
12263 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12264 Use mac_set_window_modified instead of SetWindowModified.
12265 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12266 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12267 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12268 FrontNonFloatingWindow. Use mac_activate_window instead of
12269 ActivateWindow. Use mac_active_non_floating_window instead of
12270 ActiveNonFloatingWindow.
12271 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12272 Use mac_show_hourglass and mac_hide_hourglass.
12273 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12274 instead of GetGlobalMouse.
12275 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12276 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12277 Use mac_bring_window_to_front instead of BringToFront.
12278 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12279 mactoolbox.c.
12280 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12281 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12282 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12283 mactoolbox.c.
12284
12285 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12286 (XtPointer): Move typedef from macmenu.c.
12287 (enum button_type): Move enum from macmenu.c.
12288 (widget_value): Move typedef from macmenu.c.
12289 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12290 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12291 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12292 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12293 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12294 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12295 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12296 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12297 (Selection): Move typedef from macselect.c.
12298 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12299 macterm.c.
12300 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12301 (mac_is_window_collapsed, mac_bring_window_to_front)
12302 (mac_send_window_behind, mac_hide_window, mac_show_window)
12303 (mac_collapse_window, mac_front_non_floating_window)
12304 (mac_active_non_floating_window, mac_activate_window)
12305 (mac_move_window_structure, mac_move_window, mac_size_window)
12306 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12307
12308 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12309 (enum mac_menu_kind): Move enum to mactoolbox.c.
12310 (min_menu_id): Move variable to mactoolbox.c.
12311 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12312 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12313 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12314 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12315 [TARGET_API_MAC_CARBON]: Likewise.
12316 (XtPointer): Move typedef to macgui.h.
12317 (enum button_type): Move enum to macgui.h.
12318 (widget_value): Move typedef to macgui.h.
12319 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12320 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12321 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12322 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12323 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12324 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12325 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12326 (popup_activated_flag): Make variable non-static.
12327 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12328 (add_menu_item, fill_menu, dispose_menus):
12329 Move functions to mactoolbox.c.
12330 (restore_show_help_function, menu_target_item_handler)
12331 (install_menu_target_item_handler, mac_handle_dialog_event)
12332 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12333 [TARGET_API_MAC_CARBON]: Likewise.
12334 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12335 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12336 (find_and_call_menu_selection, name_is_separator): Make function
12337 non-static.
12338 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12339 to mactoolbox.c.
12340 (set_frame_menubar): Don't call install_menu_quit_handler.
12341 (menu_item_selection): New variable.
12342 (mac_menu_show): Use create_and_show_popup_menu.
12343 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12344 selection but set variable menu_item_selection. All uses changed.
12345 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12346 Call install_menu_quit_handler. Move to mactoolbox.c.
12347
12348 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12349 (Selection): Move typedef to macgui.h.
12350 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12351 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12352 Make variables non-static.
12353 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12354 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12355 Make functions non-static.
12356 (Vmac_service_selection) [MAC_OSX]: Likewise.
12357 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12358 (mac_valid_selection_target_p, mac_clear_selection)
12359 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12360 (mac_put_selection_value, mac_selection_has_target_p)
12361 (mac_get_selection_value, mac_get_selection_target_list)
12362 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12363 Move functions to mactoolbox.c.
12364 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12365 Likewise.
12366 (copy_scrap_flavor_data, mac_handle_service_event)
12367 (install_service_handler) [MAC_OSX]: Likewise.
12368 (syms_of_macselect) <Vmac_dnd_known_types>:
12369 Use mac_dnd_default_known_types.
12370
12371 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12372 Move to mactoolbox.c.
12373 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12374 (Fx_selection_owner_p): Add EXFUN.
12375 (install_window_handler, remove_window_handler, XSetWindowBackground):
12376 Remove externs.
12377 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12378 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12379 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12380 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12381 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12382 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12383 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12384 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12385 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12386 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12387 (mac_valid_selection_target_p, mac_clear_selection)
12388 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12389 (mac_put_selection_value, mac_selection_has_target_p)
12390 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12391 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12392 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12393 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12394 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12395 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12396 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12397 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12398 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12399
12400 * mactoolbox.c: New file.
12401
124022008-04-18 Jason Rumney <jasonr@gnu.org>
12403
12404 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12405
124062008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12407
12408 * character.c (Fmultibyte_char_to_unibyte):
12409 Return latin1 chars unchanged.
12410
12411 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12412 relocated if it points to `name'.
12413
124142008-04-17 Kenichi Handa <handa@m17n.org>
12415
12416 * data.c (Faset): Allow setting a multibyte character in an
12417 ASCII-only unibyte string.
12418
12419 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12420
124212008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12422
12423 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12424 done in config.h.
12425
124262008-04-16 Juanma Barranquero <lekktu@gmail.com>
12427
12428 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12429 (Fchar_direction): Add usage in the docstring.
12430
124312008-04-15 Chong Yidong <cyd@stupidchicken.com>
12432
12433 * keyboard.c (read_key_sequence): Remove always-true checks.
12434
124352008-04-14 Jason Rumney <jasonr@gnu.org>
12436
12437 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12438 compatibility struct, for better underline positioning.
12439
124402008-04-13 David Hansen <david.hansen@gmx.net>
12441
12442 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12443 string.
12444
124452008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12446
12447 * m/hp800.h (XUINT, XSET): Remove.
12448
124492008-04-12 Juanma Barranquero <lekktu@gmail.com>
12450
12451 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12452 previous change.
12453
124542008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12455
12456 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12457 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12458
124592008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * keymap.h (map_keymap_canonical): Declare.
12462 * xmenu.c (single_keymap_panes): Use it.
12463
124642008-04-11 Glenn Morris <rgm@gnu.org>
12465
12466 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12467 set the target's value to that of the alias.
12468
124692008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12470
12471 * term.c (set_tty_color_mode): Left over typo.
12472
124732008-04-10 Michael Albinus <michael.albinus@gmx.de>
12474
12475 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12476 only after check for file name handler functions. Signal, when
12477 native functionality is not supported.
12478 (syms_of_fileio): Declare it unconditionally.
12479
124802008-04-10 Jason Rumney <jasonr@gnu.org>
12481
12482 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12483 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12484
12485 * w32.c (logon_network_drive): Also logon to remote drives that
12486 are mapped to drive letters.
12487
124882008-04-10 Glenn Morris <rgm@gnu.org>
12489
12490 * xdisp.c (truncate-partial-width-windows): Doc fix.
12491
124922008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12493
12494 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12495 Move functions to minibuffer.el.
12496 (syms_of_fileio): Don't declare them.
12497
124982008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12499
12500 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12501 (syms_of_minibuf): Remove its initialization.
12502
12503 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12504
125052008-04-09 Juanma Barranquero <lekktu@gmail.com>
12506
12507 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12508
125092008-04-09 Jason Rumney <jasonr@gnu.org>
12510
12511 * makefile.w32-in (distclean): Delete makefile too.
12512 (maintainer-clean): New target.
12513
12514 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12515
12516 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12517 for new font backend and composite cases.
12518
125192008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12520
12521 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12522 Most of the code moved to run_timers.
12523 (do_pending_atimers): Call run_timers.
12524 (run_timers): New function.
12525
12526 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12527 run atimers.
12528
12529 * process.c (wait_reading_process_output): The same as above.
12530
125312008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * minibuf.c (last_exact_completion): Remove variable.
12534 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12535 (complete_and_exit_1, complete_and_exit_2)
12536 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12537 (Fdisplay_completion_list, display_completion_list_1)
12538 (Fminibuffer_completion_help, Fself_insert_and_exit)
12539 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12540 minibuffer.el.
12541 (syms_of_minibuf): Remove corresponding initializations.
12542
12543 * keyboard.c (Qdeactivate_mark): New var.
12544 (command_loop_1): Use it to call `deactivate-mark'.
12545 (syms_of_keyboard): Initialize it.
12546
12547 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12548 to another frame.
12549 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12550 Don't call set_tty_color_mode.
12551 (store_frame_param): Reset previous_frame rather than call
12552 set_tty_color_mode.
12553 * term.c (set_tty_color_mode): Rewrite.
12554 * dispextern.h (set_tty_color_mode): New type.
12555 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12556
125572008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12558
12559 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12560 for generic chars, which do not exist any more in emacs-unicode.
12561
125622008-04-08 Michael Albinus <michael.albinus@gmx.de>
12563
12564 * coding.c (detect_coding_emacs_mule)
12565 (Ffind_operation_coding_system): Fix typo.
12566
125672008-04-08 Jason Rumney <jasonr@gnu.org>
12568
12569 * w32uniscribe.c (SNAME): Extract only symbol name.
12570
12571 * w32font.h (struct w32_metric_cache): New struct.
12572 (w32font_info): Use it.
12573 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12574 (CACHE_BLOCKSIZE): New constants.
12575
12576 * w32font.c (Qja, Qko, Qzh): New symbols.
12577 (syms_of_w32font): Initialise them.
12578 (font_matches_spec): Use them to filter by language.
12579 (recompute_cached_metrics): Remove function.
12580 (compute_metrics, clear_cached_metrics): New functions.
12581 (w32font_encode_char): Use them to manage metric cache.
12582 (w32font_text_extents): Cache metrics for all glyphs on demand.
12583 Delay converting glyph indices to WORD until needed.
12584 (w32font_open_internal): Initialize metric cache to empty.
12585 (registry_to_w32_charset): Charset should always be a symbol.
12586 (fill_in_logfont, list_all_matching_fonts): Family should
12587 always be a symbol.
12588
125892008-04-06 Jason Rumney <jasonr@gnu.org>
12590
12591 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12592 Give up if glyph indices not supported. Use uniscribe obtained
12593 ABC widths for individual metrics. Map glyph clusters back to
12594 characters using fClusterStart flag. Return number of glyphs
12595 produced, not chars processed.
12596 (uniscribe_shape): Map char at FROM to current glyph.
12597
125982008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12599
12600 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12601 Use SetMenuItemHierarchicalMenu.
12602
126032008-04-05 Jason Rumney <jasonr@gnu.org>
12604
12605 * image.c (pbm_load): Allow color values up to 65535.
12606 Throw an error if max_color_idx is outside the supported range.
12607 Report an error when image size is invalid.
12608 Read two bytes at a time when raw images have max_color_idx above 255.
12609
126102008-04-05 Eli Zaretskii <eliz@gnu.org>
12611
12612 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12613 cFileName a file name that includes `?' characters, use the 8+3
12614 alias in cAlternateFileName instead.
12615
126162008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12617
12618 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12619 append "CCL: Quitted" when the CCL program is quitted.
12620 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12621
12622 * ccl.h (struct ccl_program): New member quit_silently.
12623
126242008-04-05 Chong Yidong <cyd@stupidchicken.com>
12625
12626 * search.c (compile_pattern_1): Treat non-nil and non-string of
12627 search-spaces-regexp as nil.
12628
12629 * minibuf.c (Fassoc_string): Tweak docstring.
12630
126312008-04-05 Eli Zaretskii <eliz@gnu.org>
12632
12633 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12634 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12635 2008-03-14 to force inode be positive.
12636
12637 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12638 _S_* ones, since we now use our own sys/stat.h.
12639 (stat, fstat): Don't mangle the inode number.
12640 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12641
126422008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12643
12644 * frame.h (struct frame): Give one more bit to `visible' since we use
12645 values larger than 1 to indicate obscured frames on ttys.
12646
12647 * keymap.c (Qkeymap_canonicalize): New var.
12648 (Fmap_keymap_internal): New fun.
12649 (describe_map): Use keymap-canonicalize.
12650
12651 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12652 (Fundo_boundary): Set them.
12653 (syms_of_undo): Initialize them.
12654 (record_point): Use them instead of last_point_position*.
12655 (last_undo_buffer): Change type.
12656
126572008-04-04 Jason Rumney <jasonr@gnu.org>
12658
12659 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12660 (recompute_cached_metrics): Don't set ascent and descent per char.
12661
12662 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12663 (uniscribe_check_otf): Add GC protection before consing.
12664 Rearrange loop for counting features.
12665
126662008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12667
12668 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12669 buffer with byte-size of source buffer.
12670
126712008-04-03 Chong Yidong <cyd@stupidchicken.com>
12672
12673 * callint.c (Fcall_interactively): Handle temporary region even
12674 when shift-select-mode is off.
12675
126762008-04-03 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12679
126802008-04-03 Kenichi Handa <handa@m17n.org>
12681
12682 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12683 (CATEGORY_MASK_UTF_16): Likewise.
12684 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12685 binary file.
12686 (detect_coding): Add null-byte detection for a binary file.
12687 (detect_coding_system): Likewise.
12688
126892008-04-03 Jason Rumney <jasonr@gnu.org>
12690
12691 * w32uniscribe.c: New file.
12692
12693 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12694
12695 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12696
12697 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12698 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12699 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12700 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12701 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12702 (Qphonetic): New symbols.
12703 (syms_of_w32font): Initialize them.
12704 (font_supported_scripts): Use them.
12705 (w32font_list_family): List all charsets.
12706 (w32font_text_extents, recompute_cached_metrics): Fix metric
12707 calculations.
12708 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12709 Give opentype fonts their own format.
12710 (font_matches_spec): New arguments backend and logfont.
12711 Handle :otf spec for uniscribe backend.
12712 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12713 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12714
12715 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12716 font backend.
12717 (globals_of_w32fns): Initialize uniscribe font backend.
12718
12719 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12720 dependencies.
12721 (w32uniscribe.$(O)): New file to build.
12722 (FONT_OBJ): Include w32uniscribe.$(O).
12723 (LIBS): Add uniscribe libraries.
12724
12725 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12726
127272008-04-02 Chong Yidong <cyd@stupidchicken.com>
12728
12729 * callint.c (Vshift_select_mode): New var.
12730 (Finteractive): Document new ^ spec.
12731 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12732 is present.
12733
12734 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12735 (command_loop_1): Avoid running the direct display versions of
12736 forward-char and backward-char if shift-selection may occur.
12737 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12738 shift-translation takes place.
12739
12740 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12741 avoid clobbering by define-minor-mode.
12742
12743 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12744 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12745
12746 * syntax.c (Fforward_word): Add ^ interactive spec.
12747
12748 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12749 (Fscroll_right): Add ^ interactive spec.
12750
127512008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12752
12753 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12754
12755 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12756
12757 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12758
127592008-03-31 Juri Linkov <juri@jurta.org>
12760
12761 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12762
127632008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12764
12765 * gtkutil.c (xg_set_geometry): Fix indentation.
12766 (xg_resize_outer_widget): Remove.
12767 (x_wm_size_hint_off): Fix indentation.
12768 (xg_frame_set_char_size): Call flush_and_sync after
12769 gtk_window_resize.
12770 (x_wm_set_size_hint): Pass NULL as geometry window to
12771 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12772 Add menu bar and tool bar height to base height.
12773 (xg_update_frame_menubar, free_frame_menubar)
12774 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12775 (update_frame_tool_bar, free_frame_tool_bar):
12776 Change xg_resize_outer_widget to xg_frame_set_char_size.
12777
127782008-03-30 Michael Albinus <michael.albinus@gmx.de>
12779
12780 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12781 (Fdbus_call_method): New parameter TIMEOUT.
12782 (dbus-send-signal): Optimize UNGCPRO call.
12783
127842008-03-29 Juri Linkov <juri@jurta.org>
12785
12786 * window.c (Fdisplay_buffer): Move call to
12787 Vsplit_window_preferred_function out of conditions that check
12788 if window is eligible for vertical splitting.
12789 When Vsplit_window_preferred_function is non-nil, call it and use
12790 its non-nil return value as window. Otherwise, continue doing
12791 vertical splitting using Fsplit_window with arg horflag=nil.
12792 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12793 default value from `split-window' to nil.
12794
127952008-03-29 Juri Linkov <juri@jurta.org>
12796
12797 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12798 for interactive code letters 'b' and 'B'.
12799
128002008-03-29 Eli Zaretskii <eliz@gnu.org>
12801
12802 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12803 multibyte string.
12804
128052008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12806
12807 * keyboard.c (pending_funcalls): New var.
12808 (timer_check): Run it.
12809 (syms_of_keyboard): Initialize it.
12810 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12811 (Vdelete_terminal_functions): New vars.
12812 (syms_of_terminal): Initialize them.
12813 (Fdelete_terminal): Run delete-terminal-functions.
12814 * xdisp.c (safe_eval): Rewrite.
12815 (safe_call2): New fun.
12816 * frame.c (Qdelete_frame_functions): New var.
12817 (syms_of_frame): Initialize it.
12818 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12819 * lisp.h (safe_call2, pending_funcalls): Declare.
12820
128212008-03-28 Andreas Schwab <schwab@suse.de>
12822
12823 * indent.c (Fmove_to_column): Move declaration before statements.
12824
128252008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12826
12827 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12828 (struct frame): Use bit fields for boolean vars.
12829
12830 * process.c (server_accept_connection): Simplify naming.
12831 (emacs_get_tty_pgrp): Use SDATA.
12832
12833 * coding.c (decode_coding_object): Fix last change.
12834
128352008-03-27 Jason Rumney <jasonr@gnu.org>
12836
12837 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12838
128392008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12840
12841 * charset.c (Fdefine_charset_internal): Change the way of
12842 registering charsets in Vcharset_order_list.
12843 (syms_of_charset): Make the charset `eight-bit' supplementary.
12844
128452008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12846
12847 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12848 operations, to avoid having the difference between pointers
12849 overflow.
12850
128512008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12852
12853 * indent.c (check_display_width): New fun.
12854 (scan_for_column): Use it.
12855
12856 * data.c (syms_of_data): Mark most-positive-fixnum and
12857 most-negative-fixnum as constants.
12858
12859 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12860
12861 * indent.c (scan_for_column): Extract from current_column_1.
12862 Merge with the same code from Fmove_to_column.
12863 (current_column_1, Fmove_to_column): Use it.
12864
128652008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12866
12867 * keymap.c (map_keymap_internal): New fun.
12868 (map_keymap): Use it.
12869 (Fmap_keymap_internal): New fun.
12870 (Fmap_keymap): Remove left-out test from before make_save_value.
12871
12872 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12873
12874 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12875 Use XCAR/XCDR.
12876
12877 * process.h (struct Lisp_Process): Remove filter_multibyte.
12878 * process.c (QCfilter_multibyte): Remove.
12879 (setup_process_coding_systems): Don't use filter_multibyte.
12880 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12881 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12882 (Fset_process_filter_multibyte): Change the coding-system to
12883 approximate the previous behavior.
12884 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12885 coding-system.
12886
12887 * coding.c (decode_coding_object): When not decoding into a buffer,
12888 obey the coding system's preference of (uni|multi)byte.
12889
128902008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12893 every char is changed and has a different byte-length.
12894 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12895 Fix int -> EMACS_INT.
12896
128972008-03-23 David Hansen <david.hansen@gmx.net>
12898
12899 * dbusbind.c (xd_read_message): Remove extra copying of message
12900 strings. Check for NULL `interface' or `member'.
12901
129022008-03-22 Eli Zaretskii <eliz@gnu.org>
12903
12904 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12905 cFileName a file name that includes `?' characters, use the 8+3
12906 alias in cAlternateFileName instead.
12907
129082008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12909
12910 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12911
129122008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12913
12914 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12915 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12916 work on current_buffer only instead (that was already the case
12917 for some of the code anyway).
12918 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12919 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12920 (SET_PT, SET_PT_BOTH): Adjust.
12921 * intervals.h (set_point, temp_set_point, set_point_both)
12922 (temp_set_point_both): Remove redundant declarations.
12923
129242008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12925
12926 * fileio.c (Finsert_file_contents):
12927 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12928 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12929 when buffer != current_buffer anyway.
12930
129312008-03-20 Andreas Schwab <schwab@suse.de>
12932
12933 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12934 as default.
12935
129362008-03-19 Jason Rumney <jasonr@gnu.org>
12937
12938 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12939 (syms_of_w32fns): Initialize them.
12940 (HOURGLASS_ID): New constant.
12941 (x_window_to_frame): Don't check hourglass_window.
12942 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12943 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12944 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12945 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12946 Only change the cursor if hourglass is not active.
12947 (Fx_create_frame): Initialize frame's current_cursor.
12948 (hourglass_atimer): Remove.
12949 (hourglass_started): New function.
12950 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12951 (show_hourglass): Adapt to w32, changing argument to frame.
12952
12953 * w32term.h (struct w32_output): Remove hourglass_window.
12954 Add current_cursor.
12955
12956 * eval.c (call_debugger, Fsignal):
12957 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12958 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12959 (Fexecute_extended_command, cancel_hourglass_unwind):
12960 * minibuf.c (read_minibuf):
12961 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12962
129632008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * window.c (run_funs): New fun.
12966 (run_window_configuration_change_hook): Use it to run the buffer-local
12967 and the global part of the hook.
12968
12969 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12970 (unwind_format_mode_line): Restore selected window.
12971 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12972
129732008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * editfns.c (Fchar_equal): Check they are valid characters.
12976
12977 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12978
129792008-03-17 Andreas Schwab <schwab@suse.de>
12980
12981 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12982 against a charset.
12983
12984 * lisp.h (Fbuffer_list): Declare.
12985
129862008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12987
aac0c6e3
MR
12988 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12989 handlebox_widget is != 0.
12990
129912008-03-16 Juri Linkov <juri@jurta.org>
12992
12993 * callint.c (Fcall_interactively): For interactive code letters
12994 'b' and 'B' put the buffer list into the list of default "future"
12995 values of the minibuffer.
12996
129972008-03-16 Andreas Schwab <schwab@suse.de>
12998
12999 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13000 modifiers.
13001
13002 * regex.c (re_match_2_internal): Correct matching of a charset
13003 against latin-1 characters.
13004
130052008-03-16 Kenichi Handa <handa@m17n.org>
13006
13007 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13008 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13009 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13010 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13011 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13012 CHAR_STRING_ADVANCE.
13013 (produce_chars): Fix for the case that the source and the
13014 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13015 instead of CHAR_STRING_ADVANCE.
13016 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13017 STRING_CHAR_ADVANCE.
13018
130192008-03-15 Andreas Schwab <schwab@suse.de>
13020
13021 * regex.c (re_match_2_internal): Correct matching of eight bit
13022 characters in unibyte strings.
13023
130242008-03-15 Martin Rudalics <rudalics@gmx.at>
13025
13026 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13027 at end of range when it coincides with the end of the buffer.
13028
130292008-03-14 Eli Zaretskii <eliz@gnu.org>
13030
13031 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13032
13033 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13034
130352008-03-14 Jason Rumney <jasonr@gnu.org>
13036
13037 * editfns.c (initial_tz): New variable.
13038 (syms_of_editfns): Initialize it.
13039 (Fset_time_zone_rule): Set it when first called.
13040 Use it when TZSTRING is nil.
13041
13042 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13043 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13044 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13045 (globals_of_w32fns): Initialize them.
13046 (compute_tip_xy): Use them to position tooltips.
13047
130482008-03-14 Glenn Morris <rgm@gnu.org>
13049
13050 * emacs.c (main): Revert previous change.
13051 (standard_args): Revert -internal-script back to -scriptload,
13052 and remove the long-option form.
13053
130542008-03-13 Glenn Morris <rgm@gnu.org>
13055
13056 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13057 Remove option -enable-font-backend.
13058
130592008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13060
13061 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13062
130632008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13064
13065 * xterm.c (x_connection_closed): For GTK: If this is the last
13066 terminal just exit without closing the display.
13067
130682008-03-11 Jason Rumney <jasonr@gnu.org>
13069
13070 * w32font.c (w32font_full_name): Use floor to round.
13071
f0131492 130722008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13073
13074 * sound.c (alsa_configure): Declare vol at beginning of block.
13075
13076 * fontset.c (Ffontset_info): Remove extra semicolon.
13077
130782008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13079
13080 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13081 size of resulting string.
13082
130832008-03-10 Jason Rumney <jasonr@gnu.org>
13084
13085 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13086
130872008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13088
13089 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13090 Don't pretend as if characters with display property haven't been
13091 consumed for string-replacing-string case.
13092
130932008-03-08 Kim F. Storm <storm@cua.dk>
13094
13095 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13096 (get_next_display_element, next_element_from_string)
13097 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13098
130992008-03-08 Andreas Schwab <schwab@suse.de>
13100
13101 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13102
131032008-03-06 Jason Rumney <jasonr@gnu.org>
13104
13105 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13106 when charset not specified. Only translate ANSI to unicode when
13107 font_type is truetype.
13108 (w32font_coverage_ok): New function.
13109 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13110
131112008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13112
13113 * lread.c (Fread_char): Resolve modifiers.
13114 (Fread_char_exclusive): Likewise.
13115
13116 * character.c (char_resolve_modifier_mask): New function.
13117 (char_string): Use char_resolve_modifier_mask.
13118 (Fchar_resolve_modifiers): New function.
13119 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13120 function.
13121
131222008-03-04 Jason Rumney <jasonr@gnu.org>
13123
13124 * makefile.w32-in: Always include w32font.c in the build.
13125 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13126
131272008-03-04 Andreas Schwab <schwab@suse.de>
13128
13129 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13130 (versionclean): Likewise.
13131
131322008-03-04 Juanma Barranquero <lekktu@gmail.com>
13133
13134 * .cvsignore: Add oo.
13135
131362008-03-03 Andreas Schwab <schwab@suse.de>
13137
13138 * coding.c (decode_coding_object): Inhibit gap shrinking while
13139 decoding in place.
13140
131412008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13142
13143 * w32term.c: Remove unused include "gnu.h".
13144 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13145
13146 * gnu.h: Rename to ...
13147 * emacs-icon.h: ... this.
13148 * xterm.c: Use emacs-icon.h instead of gnu.h.
13149 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13150
131512008-03-03 Juanma Barranquero <lekktu@gmail.com>
13152
13153 * w32font.c: Include math.h.
13154
131552008-03-03 Jason Rumney <jasonr@gnu.org>
13156
13157 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13158 Compute options separately.
13159 (w32font_open_internal): Set glyph_idx before caching metrics.
13160
13161 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13162 Define if system headers don't.
13163 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13164 (w32font_encode_char): Don't declare here.
13165
13166 * w32font.c (Quniscribe, QCformat): New symbols.
13167 (syms_of_w32font): Define them.
13168 (w32font_has_char): Indicate uncertainty.
13169 (w32font_encode_char): Encode as glyph point. Make static.
13170 (recompute_cached_metrics): New function.
13171 (w32font_open_internal): Use it. Set font to use glyph points
13172 initially. Set format based on type of font.
13173 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13174 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13175 on it. Set format based on information available here.
13176 (add_font_entity_to_list): Identify backend based on opentype_only.
13177
131782008-03-02 Andreas Schwab <schwab@suse.de>
13179
13180 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13181
13182 * coding.c (decode_coding_big5, produce_chars):
13183 Fix typos in last change.
13184
131852008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13186
13187 * gnu.h: New icon.
13188
131892008-03-02 Kenichi Handa <handa@m17n.org>
13190
13191 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13192 `dos', don't decode '\r' if that is the last in the source.
13193 (decode_coding_utf_16, decode_coding_emacs_mule)
13194 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13195 (decode_coding_raw_text, decode_coding_charset): Likewise.
13196 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13197
131982008-03-01 Jason Rumney <jasonr@gnu.org>
13199
13200 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13201
132022008-03-01 Kim F. Storm <storm@cua.dk>
13203
13204 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13205
132062008-03-01 Jason Rumney <jasonr@gnu.org>
13207
13208 * w32font.c (w32font_full_name): New function.
13209 (w32font_open_internal): Use it.
13210
132112008-03-01 Kim F. Storm <storm@cua.dk>
13212
13213 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13214
132152008-03-01 Jason Rumney <jasonr@gnu.org>
13216
13217 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13218
132192008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13220
13221 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13222 xg_frame_resized when the event is for the edit widget.
13223
13224 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13225
13226 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13227 set_char_size.
13228 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13229 operations on widgets here. Just set frame size if needed.
13230 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13231 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13232 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13233 the whole frame.
13234 (xg_create_tool_bar): Move attachment of the tool bar to
13235 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13236 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13237
132382008-03-01 Jason Rumney <jasonr@gnu.org>
13239
13240 * w32fns.c (w32_msg_pump): Disable debug code.
13241
132422008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13243
13244 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13245
132462008-02-29 Chong Yidong <cyd@stupidchicken.com>
13247
13248 * xdisp.c (next_overlay_string): Don't set
13249 overlay_strings_at_end_processed_p if we're currently reading from
13250 a display string.
13251
132522008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13253
13254 * xdisp.c (get_overlay_strings_1): Fix typo.
13255
132562008-02-29 Chong Yidong <cyd@stupidchicken.com>
13257
13258 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13259
132602008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13261
13262 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13263
13264 * xdisp.c (display_mode_element): Cancel the previous change.
13265 (decode_mode_spec): Likewise.
13266 (handle_auto_composed_prop): Don't make composition if it->string
13267 is a string.
13268
132692008-02-27 Kim F. Storm <storm@cua.dk>
13270
13271 * lisp.h (GLYPH): Change type from int to struct with separate char
13272 and face_id members.
13273 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13274 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13275 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13276 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13277 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13278 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13279 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13280 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13281 handle new Lisp glyph code encoding, either an integer or a cons.
13282
13283 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13284 (GLYPH_ALIAS): Delete.
13285 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13286 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13287 (GLYPH_FROM_CHAR): Replace macro by ...
13288 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13289
13290 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13291 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13292 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13293 (GLYPH_INVALID_P): New macro.
13294 (spec_glyph_lookup_face): Update prototype.
13295
13296 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13297 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13298 new glyph code encoding.
13299 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13300 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13301
13302 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13303 Adapt to new glyph type and new glyph code encoding.
13304
13305 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13306
13307 * indent.c (current_column, current_column_1, Fmove_to_column)
13308 (compute_motion): Adapt to new glyph code encoding.
13309
13310 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13311
133122008-02-27 Chong Yidong <cyd@stupidchicken.com>
13313
13314 * process.c (wait_reading_process_output): Check for window
13315 changes caused by timers.
13316 Suggested by Johan Bockgård.
13317
133182008-02-27 Glenn Morris <rgm@gnu.org>
13319
13320 * emacs.c (USAGE1): Add `--disable-font-backend'.
13321
133222008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13323
13324 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13325 is made to the buffer.
13326
133272008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13328
13329 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13330 (face_at_string_position):
13331 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13332 (face_at_string_position):
13333 * xdisp.c (display_string, next_overlay_change):
13334 * buffer.h (overlays_at):
13335 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13336 Update callers.
13337
133382008-02-26 Chong Yidong <cyd@stupidchicken.com>
13339
13340 * editfns.c (Fformat): Doc fix.
13341
133422008-02-26 Juanma Barranquero <lekktu@gmail.com>
13343
13344 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13345 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13346 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13347
133482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13349
13350 * buffer.c (Fbuffer_swap_text): New function.
13351 (syms_of_buffer): Defsubr it.
13352
133532008-02-25 Chong Yidong <cyd@stupidchicken.com>
13354
13355 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13356
133572008-02-25 Jason Rumney <jasonr@gnu.org>
13358
13359 * w32font.c (w32font_draw): Draw one character at a time when padding.
13360
133612008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13362
13363 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13364 Handle a nil arg. Use run_window_configuration_change_hook.
13365 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13366 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13367 Use run_window_configuration_change_hook.
13368
133692008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13370
13371 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13372 1-pixel width.
13373
133742008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13375
13376 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13377 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13378 if the glyph in the font is zero pixel with.
13379
13380 * dispextern.h (struct glyph_string): New member padding_p.
13381
13382 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13383
13384 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13385
13386 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13387
13388 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13389
13390 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13391
133922008-02-25 Jason Rumney <jasonr@gnu.org>
13393
13394 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13395
133962008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13397
13398 Allow fine-grained image-cache flushing.
13399 * dispextern.h (struct image): Add `dependencies' field.
13400 (clear_image_caches): Change arg to Lisp_Object.
13401 * image.c (make_image): Initialize `dependencies' field.
13402 (clear_image_cache): Change arg to allow fine-grained flushing.
13403 Perform the flush even if image-cache-eviction-delay is nil.
13404 (clear_image_caches): Change arg to Lisp_Object.
13405 (Fclear_image_cache): Expand meaning of the argument.
13406 (mark_image): Mark `dependencies' field.
13407 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13408 (lface_hash): Use XHASH rather than XFASTINT.
13409 (face_at_buffer_position): Fix int -> EMACS_INT position.
13410 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13411 (select_frame_for_redisplay): Remove code duplication.
13412 (redisplay_internal): Adapt arg to call to clear_image_caches.
13413
134142008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13415
13416 * s/vms4-0.h:
13417 * s/vms4-2.h:
13418 * s/vms4-4.h:
13419 * s/vms5-5.h: Remove, unused.
13420
13421 * s/irix5-2.h:
13422 * s/irix6-0.h:
13423 * s/riscos5.h:
13424 * s/mach-bsd4-3.h:
13425 * m/mips4.h: Remove files for obsolete systems.
13426
13427 * Makefile.in:
13428 * filelock.c:
13429 * unexmips.c:
13430 * m/hp9000s300.h:
13431 * m/iris4d.h:
13432 * s/aix3-1.h:
13433 * s/hpux.h:
13434 * s/msdos.h:
13435 * s/usg5-0.h:
13436 * s/usg5-2-2.h:
13437 * s/usg5-2.h:
13438 * s/usg5-3.h: Remove references to obsolete variables.
13439
13440 * s/irix5-0.h: Remove, move all the contents ...
13441 * s/irix6-5.h: ... here. Simplify.
13442 * config.in: Regenerate.
13443
134442008-02-24 Jason Rumney <jasonr@gnu.org>
13445
13446 * w32term.c (x_draw_glyph_string_background): Clear the background
13447 manually when cleartype is in use.
13448 (x_draw_glyph_string_foreground): Draw text transparently when
13449 cleartype is in use.
13450
13451 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13452 a font into it unless we have to.
13453
134542008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13455
13456 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13457 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13458
aac0c6e3
MR
134592008-02-18 Jason Rumney <jasonr@gnu.org>
13460
13461 * w32fns.c (Fw32_shell_execute): Encode parameters.
13462
134632008-02-09 Eli Zaretskii <eliz@gnu.org>
13464
13465 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13466
134672008-02-05 Juanma Barranquero <lekktu@gmail.com>
13468
13469 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13470
134712008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13472
13473 * xterm.c (x_set_offset): Don't change the gravity if
13474 CHANGE_GRAVITY is -1.
13475
134762008-02-23 Chong Yidong <cyd@stupidchicken.com>
13477
13478 * fileio.c (auto_save_error_occurred): New var.
13479 (auto_save_error): Set it.
13480 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13481 error occurred.
13482
134832008-02-23 Eli Zaretskii <eliz@gnu.org>
13484
13485 * w32.c (globals_of_w32): Add initializations for
13486 g_b_init_get_sid_sub_authority and
13487 g_b_init_get_sid_sub_authority_count.
13488
134892008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13490
13491 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13492 (font_parse_xlfd): Use them for sanity check.
13493 (Finternal_set_font_style_table): Make sure the table is bijective.
13494
13495 Consolidate the image_cache to the terminal struct.
13496 * termhooks.h (P_): Remove redundant def.
13497 (struct terminal): New field `image_cache'.
13498 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13499 of FRAME_X_IMAGE_CACHE.
13500 * xterm.h (struct x_display_info): Remove image_cache field.
13501 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13502 * w32term.h (struct w32_display_info): Remove image_cache field.
13503 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13504 * macterm.h (struct mac_display_info): Remove image_cache field.
13505 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13506 * xterm.c (x_term_init):
13507 * w32term.c (w32_term_init):
13508 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13509 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13510 Remove declarations.
13511 (clear_image_caches, mark_image_cache): New declarations.
13512 * xfaces.c (clear_face_cache):
13513 * xdisp.c (redisplay_internal): Use clear_image_caches.
13514 * image.c (clear_image_cache): Don't check that a frame is on
13515 a window-system before checking if it shares the same cache.
13516 (clear_image_caches): New function.
13517 (Fclear_image_cache): Use it.
13518 (mark_image): Move from allo.c.
13519 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13520 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13521 (mark_object): Don't call mark_image_cache for frames.
13522 (mark_terminals): Call mark_image_cache.
13523
13524 * lisp.h (Fdelete_terminal): Declare.
13525
13526 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13527 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13528 wrong_type_argument.
13529
135302008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13531
13532 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13533 malayalam.el, and tamil.el. Add sinhala.el.
13534
135352008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13536
13537 * xterm.c (x_connection_closed): Consolidate identical tests.
13538 (x_delete_terminal): Don't crash if called via x_connection_closed.
13539
135402008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13541
13542 * xdisp.c (decode_mode_spec): New arg string.
13543 (display_mode_element): Adjust for the above change.
13544
135452008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * callint.c (Fcall_interactively): Use AREF.
13548
135492008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13550
13551 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13552
135532008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13554
13555 * xfns.c (Fx_show_tip): Set string to " " if empty.
13556
135572008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13558
13559 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13560 with Qt.
13561
135622008-02-17 Kenichi Handa <handa@m17n.org>
13563
13564 * ftfont.c (ftfont_shape): Return Lispy number.
13565
13566 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13567 for GCs.
13568 (Finternal_set_font_selection_order): Call font_update_sort_order
13569 only when enable_font_backend is set.
13570 (realize_x_face): Set face->font_info to that of default face only
13571 when enable_font_backend is set.
13572
13573 * xdisp.c (handle_composition_prop): Set it->c to the fist
13574 character of the composed region.
13575 (fill_composite_glyph_string): Set base_face->font_info to
13576 s->font_info. Get a face for ascii from base_face->ascii_face.
13577 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13578 with a face already decided.
13579 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13580 non-negative.
13581 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13582 call font_prepare_composition unconditionally.
13583
13584 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13585
13586 * xterm.h (struct x_display_info): New member font.
13587
13588 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13589 (x_set_mouse_face_gc, x_new_font): Likewise.
13590 (x_term_init): Setup display_info->font.
13591 (x_delete_terminal): Free display_info->font.
13592
13593 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13594
13595 * ftxfont.c (ftxfont_default_fid): Delete it.
13596 (ftxfont_open): Set xfont->fid to 0.
13597 (ftxfont_end_for_frame): Clear data specific to the frame and the
13598 font-driver.
13599
13600 * xftfont.c (xftfont_default_fid): Delete it.
13601 (xftfont_open): Set xfont->fid to 0.
13602
13603 * fontset.c (FONTSET_OBJLIST): New macro.
13604 (fontset_find_font): Update font-object list of the fontset.
13605 (free_realized_fontset): New function.
13606 (free_face_fontset): Call free_realized_fontset.
13607 (Ffont_info): Call font_close_object only when enable_font_backend
13608 is set.
13609
13610 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13611 [HAVE_NTGUI]: Include w32term.h.
13612 [MAC_OS]: Include macterm.ch.
13613 (font_otf_ValueRecord): Use make_number.
13614 (font_finish_cache): Fix handling of reference count.
13615 (font_clear_cache): Update num_fonts.
13616 (font_open_entity): Update smallest_char_width and
13617 smallest_font_height of the frame.
13618 (font_close_object): Update num_fonts.
13619 (Fclear_font_cache): Fix finding the target cache data.
13620
136212008-02-16 Glenn Morris <rgm@gnu.org>
13622
13623 * fontset.c (Finternal_char_font): Fix compilation warning.
13624
136252008-02-16 Eli Zaretskii <eliz@gnu.org>
13626
13627 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13628 instead of char arrays. Enlarge the size of array passed to
13629 get_token_information.
13630
13631 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13632 warnings.
13633
136342008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13635
13636 * .gdbinit: Don't set `args', it breaks gdb --args.
13637
136382008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13639
13640 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13641 within a narrowed buffer.
13642
136432008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13644
13645 * coding.c (decode_coding_object, encode_coding_object):
13646 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13647
136482008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13649
13650 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13651 hardcoding 1.
13652 (detect_coding_system):
13653 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13654 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13655 * insdel.c (insert_from_gap):
13656 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13657 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13658 (string_to_multibyte):
13659 * character.c (chars_in_text, multibyte_chars_in_text):
13660 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13661
13662 * character.h (FETCH_STRING_CHAR_ADVANCE)
13663 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13664 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13665 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13666
13667 * casefiddle.c (casify_region): Only call after-change and composition
13668 functions on the part of the region that was changed.
13669
13670 * keyboard.c (read_avail_input):
13671 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13672
136732008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13674
13675 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13676 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13677
136782008-02-11 Juanma Barranquero <lekktu@gmail.com>
13679
13680 * w32menu.c (push_submenu_start, push_submenu_end)
13681 (push_left_right_boundary, push_menu_pane, push_menu_item):
13682 * keyboard.c (read_key_sequence): Don't pass args with side effects
13683 to AREF, it fails when compiling with -DENABLE_CHECKING.
13684
136852008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13686
13687 * Makefile.in (${lispsource}international/charprop.el):
13688 Delete this target.
13689
13690 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13691 emacs-unicode-2.
13692
136932008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13694
13695 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13696
136972008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13698
13699 * frame.c (Qnoelisp): New symbol.
13700 (syms_of_frame): Initialize it.
13701 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13702 harmless Elisp code, from a strong `force' from x_connection_closed.
13703 * frame.h (Qnoelisp): Declare.
13704 * xterm.c (x_connection_closed): Pass `noelisp'.
13705
13706 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13707 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13708 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13709 rather than `int' for the type of `type'.
13710
137112008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13712
13713 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13714
13715 * Makefile.in (GNUC): Remove support for gcc-1.x.
13716
137172008-02-10 Richard Stallman <rms@gnu.org>
13718
13719 * lisp.h (ASET): Use AREF, not ASLOT.
13720
137212008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13722
13723 * lisp.h (ASET): Check bounds.
13724
137252008-02-10 Glenn Morris <rgm@gnu.org>
13726
13727 * buffer.c (mode-name): Doc fix.
13728
137292008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13730
13731 * Makefile.in:
13732 * emacs.c:
13733 * gmalloc.c:
13734 * keyboard.c:
13735 * lisp.h:
13736 * m/ibm370aix.h:
13737 * process.c:
13738 * regex.c:
13739 * s/hpux.h:
13740 * sysdep.c:
13741 * sysselect.h:
13742 * systty.h:
13743 * unexec.c:
13744 * w32term.c:
13745 * xsmfns.c:
13746 * xterm.c: Remove code that deals with obsolete variables.
13747
13748 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13749
13750 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13751 nothing else needs it anymore.
13752
137532008-02-09 Eli Zaretskii <eliz@gnu.org>
13754
13755 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13756 instead of unibyte_char_to_multibyte.
13757
137582008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13759
13760 * s/gnu-linux.h: Remove commented out code.
13761
13762 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13763
13764 * Makefile.in: Update what RMS says about using autoconf.
13765 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13766 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13767 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13768 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13769
137702008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13771
13772 * keymap.c (Fkey_description): Move side effect outside of macro call.
13773
13774 * xfaces.c (Finternal_make_lisp_face):
13775 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13776
13777 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13778 (syms_of_fontset): Use ASET.
13779
13780 * fns.c (concat): Move side effect outside of macro call.
13781 (hash_clear): Use ASET.
13782
137832008-02-08 Richard Stallman <rms@gnu.org>
13784
13785 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13786 If FORCE, and frame has a surrogate minibuffer for another frame,
13787 delete the other frame first.
13788
137892008-02-07 Timo Savola <timo.savola@iki.fi>
13790
13791 * xterm.c (x_detect_focus_change): Handle embed client message.
13792 (handle_one_xevent): Ditto.
13793 (handle_one_xevent): If embedded and we get a button press/release,
13794 request focus.
13795 (xembed_set_info, xembed_send_message): New functions.
13796 (x_make_frame_visible): Call xembed_set_info if embedded.
13797 (x_make_frame_invisible): Call xembed_set_info if embedded.
13798 (x_term_init): Initialize Xatom_XEMBED.
13799 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13800 (x_iconify_frame): Ditto.
13801
13802 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13803 (enum xembed_info, enum xembed_message, enum xembed_focus)
13804 (enum xembed_modifier, enum xembed_accelerator): New.
13805 (xembed_set_info, xembed_send_message): Declare.
13806 (FRAME_X_EMBEDDED_P): New.
13807
13808 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13809 gtk_plug_new.
13810
13811 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13812 window ID of a frame.
13813 (x_window): Reparent frame if embedded.
13814 (Fx_create_frame): Don't set border width if embedded.
13815
13816 * emacs.c (USAGE3): Add --parent-id.
13817 (standard_args): Ditto.
13818
138192008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13820
13821 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13822
138232008-02-07 Jim Meyering <meyering@redhat.com>
13824
13825 Use "do...while (0)", not "if (1)...else" in macro definitions.
13826 The latter provokes a warning from gcc about the empty else, when
13827 followed by ";". Also, without that trailing semicolon, it would
13828 silently swallow up any following statement.
13829 * syntax.h (SETUP_SYNTAX_TABLE)
13830 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13831 * buffer.h (DECODE_POSITION): Likewise.
13832 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13833 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13834 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13835 (FETCH_CHAR_ADVANCE): Likewise.
13836 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13837
138382008-02-07 Jim Meyering <meyering@redhat.com>
13839
13840 * lread.c [lint]: Don't include <sys/inode.h>.
13841
138422008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13843
13844 * xselect.c (x_handle_dnd_message):
13845 * xmenu.c (digest_single_submenu, xmenu_show):
13846 * xdisp.c (with_echo_area_buffer_unwind_data)
13847 (format_mode_line_unwind_data, unwind_format_mode_line)
13848 (display_menu_bar):
13849 * eval.c (Ffetch_bytecode):
13850 * doc.c (store_function_docstring):
13851 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13852 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13853 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13854
138552008-02-07 Kenichi Handa <handa@m17n.org>
13856
13857 * ftxfont.c (ftxfont_open): Don't set
13858 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13859
13860 * ftfont.c (ftfont_open): Fix previous change.
13861
138622008-02-06 Jason Rumney <jasonr@gnu.org>
13863
13864 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13865 Use cached metrics for ASCII characters.
13866 (w32font_open_internal): Don't set font's owning_frame.
13867 Cache metrics for ASCII characters.
13868
13869 * w32font.h (struct w32font_info): Add ascii_metrics.
13870 Remove owning_frame.
13871
138722008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13873
13874 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13875 to negative value.
13876
13877 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13878
13879 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13880
13881 * charset.c (syms_of_charset): Set QCtest and Qeq.
13882
138832008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13884
13885 * process.c (Fstart_process):
13886 * callproc.c (Fcall_process): Handle the case where
13887 Funhandled_file_name_directory returns nil.
13888
13889 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13890 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13891 * font.c (check_gstring): Use them and AREF to access the vector before
13892 we know it's really a gstring.
13893 (Ffont_shape_text): Fix typo.
46e722a9 13894 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13895
13896 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13897 Declare.
13898
13899 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13900
139012008-02-05 Jason Rumney <jasonr@gnu.org>
13902
13903 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13904 Set smallest_font_height and smallest_char_width in display info.
13905
139062008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13907
13908 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13909
139102008-02-05 Miles Bader <miles@gnu.org>
13911
13912 * xfaces.c (get_lface_attributes, merge_named_face)
13913 (lookup_named_face, lookup_derived_face, realize_named_face):
13914 Revert 2008-02-01 change by cyd@stupidchicken.com.
13915
139162008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13917
13918 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13919 fallback fonts.
13920 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13921
139222008-02-04 Jason Rumney <jasonr@gnu.org>
13923
13924 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13925 set full_name.
13926 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13927
139282008-02-03 Jason Rumney <jasonr@gnu.org>
13929
13930 * makefile.w32-in (OBJ1): Include font.o here.
13931 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13932
139332008-02-02 Jason Rumney <jasonr@gnu.org>
13934
13935 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13936
139372008-02-01 Jason Rumney <jasonr@gnu.org>
13938
13939 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13940
13941 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13942
139432008-02-01 Andreas Schwab <schwab@suse.de>
13944
13945 * Makefile.in (shortlisp, lisp): Update for rename of
13946 ../lisp/language/myanmar.el.
13947
139482008-02-01 Chong Yidong <cyd@stupidchicken.com>
13949
13950 * xfaces.c (get_lface_attributes): Delete function.
13951 (merge_named_face, lookup_named_face, lookup_derived_face)
13952 (realize_named_face): Call lface_from_face_name directly, and use
13953 the fact that merge_face_vectors does not alter its FROM argument.
13954
139552008-02-01 Jason Rumney <jasonr@gnu.org>
13956
13957 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13958 input in the default locale. Handle non-Unicode multibyte input.
13959
139602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13961
13962 * fontset.c (reorder_font_vector): Exclude nil elements from the
13963 font group. Don't try multiple fonts.
13964 (fontset_font): Adjust for the above change.
13965 (Finternal_char_font): Return nil if the found font doesn't
13966 contain the character ch.
13967
13968 * Makefile.in (lisp, shortlisp): Add cham.el.
13969
139702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13971
13972 * font.h (FONTP): Make it return 1 also for a font-object.
13973
13974 * .gdbinit (xfontset): New function.
13975
13976 * font.c (font_find_for_lface): Check if the character C is
13977 supported or not only for the first font.
13978
13979 * fontset.c (reorder_font_vector): Fix typo.
13980 (fontset_find_font): Don't add a font-spec specifying a script.
13981 Use 0 (not Qt) for the indication of empty font-group. Change the
13982 format of RFONT-DEF. Return Qt if no font in the font-group
13983 support the character.
13984 (fontset_font): Adjust for the above change. If no font was
13985 found the character, remember that.
13986 (face_for_char): Adjust for the change of RFONT-DEF.
13987 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13988 no font for the target.
13989 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13990
139912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13992
13993 * font.c (font_load_for_face): Handle the case that the font in
13994 face->lface is a string.
13995
139962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13997
13998 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13999
140002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14001
14002 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14003 Fix previous change. If the frame is not on a window system,
14004 signal an error.
14005
140062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14007
14008 * coding.c (decode_coding_object, encode_coding_object): Adjust
14009 marker positions after conversion.
14010
14011 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14012
140132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14014
14015 * font.c (font_find_for_lface): Fix the handling of the return
14016 value of font_has_char.
14017 (Ffont_shape_text): Fix previous change.
14018
14019 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14020 (fontset_ref_and_range): Delete it.
14021 (fontset_find_font): Call char_table_ref_and_range instead of
14022 FONTSET_REF_AND_RANGE.
14023 (make_fontset): Don't setup font groups of Latin here.
14024 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14025 (new_fontset_from_font): Make the specified font the default for
14026 all Latin characters.
14027
140282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14029
14030 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14031 is on a window system before accessing the fontset of the frame.
14032
140332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14034
14035 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14036
14037 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14038 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14039
14040 * font.c (Ffont_shape_text): If the font driver doesn't have a
14041 shaper function, make zero-width glyphs to have at least one-pixel
14042 width. Fix setting of `to' field of glyphs.
14043
140442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14045
14046 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14047 glyphs.
14048
14049 * font.h (struct font_driver): Improve docstring of member `shape'.
14050
140512008-02-01 Kenichi Handa <handa@m17n.org>
14052
14053 * composite.c (syms_of_composite): Fix docstring of
14054 auto-composition-function.
14055
14056 * font.h (LGLYPH_SIZE): New macro.
14057
14058 * font.c (Ffont_fill_gstring): Stop filling when a character not
14059 supported by the font is found.
14060 (Ffont_shape_text): When a shape callback function returns nil,
14061 try at most two more times with larger gstring.
14062 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14063
14064 * xdisp.c (handle_auto_composed_prop): Change the argument to
14065 auto-composition-function.
14066
14067 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14068 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14069 Lispy glyph and store it in the lgstring.
14070
14071 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14072
14073 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14074
140752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14076
14077 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14078
14079 * fontset.c (Vfont_encoding_charset_alist): New variable.
14080 (syms_of_fontset): DEFVAR it.
14081 (reorder_font_vector, fontset_find_font): Optimize for the case of
14082 no need of reordering.
14083 (face_for_char): Map the charset property by
14084 Vfont_encoding_charset_alist.
14085
140862008-02-01 Jason Rumney <jasonr@gnu.org>
14087
14088 * w32font.c (logfonts_match): Don't check adstyle here.
14089 (font_matches_spec): Check here against physical font instead.
14090 (add_font_entity_to_list): Avoid some substitutions.
14091
14092 * font.c (font_parse_fcname): Default weight and slant to normal.
14093 (font_score): Prefer normal fonts if weight or slant unspecified.
14094 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14095 match freetype scores.
14096
140972008-02-01 Jason Rumney <jasonr@gnu.org>
14098
14099 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14100 font, as it may have been deleted.
14101 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14102 most common hyphenless variation.
14103 (logfonts_match): Check generic family.
14104 (font_matches_spec): Don't check generic family here.
14105 (fill_in_logfont): Set generic family based on adstyle.
14106
14107 * w32font.h (w32font_get_cache): Update declaration.
14108
141092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14110
14111 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14112
14113 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14114 If none of the new drivers are available, call font_update_drivers
14115 with the old drivers.
14116
14117 * w32font.c (w32font_get_cache): Adjust the argument type.
14118
14119 * xfont.c (xfont_get_cache): Adjust the argument type.
14120
14121 * font.h (struct font_driver): Change argument type of get_cache.
14122
14123 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14124
14125 * font.c (Ffont_get): Fix arguments to Fassoc.
14126 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14127 (font_clear_cache): New function.
14128 (font_list_entities, font_matching_entity): Use font_get_cache.
14129 (font_update_drivers): Call font_clear_cache when finishing a driver.
14130
14131 * fontset.c (fontset_find_font): Fix previous change.
14132
141332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14134
14135 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14136 dpyinfo->font_table.
14137 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14138 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14139
14140 * font.c (font_at): Handle the case that the arg C is negative.
14141 Handle the unibyte case.
14142 (Ffont_at): Call font_at with the arg C -1.
14143
14144 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14145 the position here, and call font_at with the arg C -1.
14146 Don't check the range of the existing composition at the point.
14147
141482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14149
14150 * fontset.c (fontset_add): New args charset_id and family.
14151 Change caller.
14152 (load_font_get_repertory, fontset_find_font): Assume that
14153 font_spec is always a font-spec object.
14154 (Fset_fontset_font): Always store a font-spec object in a fontset.
14155
14156 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14157 instead of get_property_and_range.
14158
141592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14160
14161 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14162 (xftfont_open): Don't keep locking face.
14163 (xftfont_close): Don't unlock face.
14164 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14165
14166 * fontset.c (fontset_find_font): Don't prefer a font of
14167 supplementary charset.
14168
141692008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14172 script, langsys_tag to langsys, new member script.
14173 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14174 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14175 listing to the script specified in that property. Fix arg to
14176 OTF_check_features.
14177
141782008-02-01 Jason Rumney <jasonr@gnu.org>
14179
14180 * w32font.h: New file.
14181
14182 * w32font.c: Include it.
14183 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14184 (w32font_open): Set owning_frame.
14185 (w32font_text_extents): Use owning_frame.
14186 (struct font_callback_data): Add opentype_only field.
14187 (add_font_entity_to_list): Use it to filter fonts.
14188 Don't check against full name.
14189 (w32font_list_internal): New function.
14190 (w32font_list): Use it.
14191 (w32font_match_internal): New function.
14192 (w32font_match): Use it.
14193 (w32font_open_internal): New function.
14194 (w32font_open): Use it.
14195 (w32font_get_cache, w32font_close, w32font_has_char)
14196 (w32font_encode_char, w32font_text_extents, w32font_draw):
14197 Make non-static.
14198
14199 * makefile.w32-in (w32font.o): Depend on w32font.h.
14200
142012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14202
14203 * charset.c (Fdefine_charset_internal): Record a supplementary
14204 charset at the tail of Vcharset_order_list.
14205
14206 * font.c (Ffont_shape_text): Fix the return value.
14207
14208 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14209
14210 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14211
142122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14213
14214 * ftfont.c (struct OpenTypeSpec): New struct.
14215 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14216 (ftfont_get_open_type_spec): New function.
14217 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14218
14219 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14220
142212008-02-01 Jason Rumney <jasonr@gnu.org>
14222
14223 * w32font.c (add_font_entity_to_list): Compare only the beginning
14224 of full name.
14225
142262008-02-01 Kenichi Handa <handa@m17n.org>
14227
14228 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14229 Never return HANDLED_RECOMPUTE_PROPS.
14230
142312008-02-01 Kenichi Handa <handa@m17n.org>
14232
14233 * font.c (font_gstring_produce): Delete it.
14234
14235 * composite.h (COMPOSITION_METHOD):
14236 Handle COMPOSITION_WITH_GLYPH_STRING.
14237
142382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14239
14240 * xfont.c (Qx): Delete.
14241 (syms_of_xfont): Don't initialize Qx.
14242
14243 * composite.h (enum composition_method):
14244 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14245
142462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14247
14248 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14249 (choose_face_font): Accept new form of font-spec.
14250
14251 * frame.h (font_driver_list): Declare it unconditionally.
14252 (struct frame): Define members font_driver_list and font_data_list
14253 unconditionally.
14254
14255 * fontset.c: Include "font.h" unconditionally.
14256 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14257 (Fset_fontset_font): Accept a font-spec object.
14258
14259 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14260 PIXEL_SIZE part a wild card.
14261
14262 * dispextern.h (struct glyph_string): Define members clip and
14263 num_clips unconditionally.
14264 (struct face): Define members font_info and extra unconditionally.
14265
14266 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14267 ftfont_info only when HAVE_LIBOTF is defined.
14268
142692008-02-01 Andreas Schwab <schwab@suse.de>
14270
14271 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14272 and end.
14273
142742008-02-01 Jason Rumney <jasonr@gnu.org>
14275
14276 * w32font.c (w32font_driver): Add new fields.
14277
142782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14279
14280 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14281 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14282 (LIBES): Add @M17N_FLT_CFLAGS@.
14283
14284 * composite.c (compose_text): Don't treat the new style
14285 composition specially.
14286
14287 * emacs.c (main): Call syms_of_font unconditionally.
14288
14289 * font.h (FONT_ENTITY_NOT_LOADABLE)
14290 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14291 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14292 (struct font_driver): New member shape.
14293 (font_registry_charsets): Extern it.
14294 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14295 (font_otf_capability, font_drive_otf): Delete their externs.
14296
14297 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14298 (font_charset_alist, font_registry_charsets): Move from xfont.c
14299 and rename.
14300 (font_prop_validate_otf): New function.
14301 (font_property_table): Register it for QCotf.
14302 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14303 (font_drive_otf): Delete.
14304 (font_prepare_composition): New arg F. Adjust for the change of
14305 lispy gstring.
14306 (font_find_for_lface): New arg C.
14307 (font_load_for_face): Adjust for the change of font_find_for_lface.
14308 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14309 lispy gstring.
14310 (Ffont_shape_text): New function.
14311 (Fopen_font): If the font size is not given, use 12-pixel.
14312 (Ffont_at): New arg STRING.
c0943d3d 14313 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14314 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14315 conditionally.
14316
14317 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14318 fonts of the same font-spec. Change the format of RFONT-DEF.
14319 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14320 Adjust for the change of RFONT-DEF.
14321 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14322
14323 * ftfont.h: New file.
14324
14325 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14326 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14327 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14328 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14329 font_otf_capability and font_drive_otf, set ftfont_shape.
14330 (ftfont_list): Adjust for the change of :otf property value.
14331 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14332 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14333 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14334 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14335 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14336 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14337
14338 * w32term.c (x_draw_composite_glyph_string_foreground):
14339 Adjust for the change of lispy gstring.
14340
14341 * xdisp.c (handle_composition_prop): Adjust for the change of
14342 lispy gstring. Call a function for auto-composition with the
14343 third arg it->window.
14344 (fill_composite_glyph_string): Adjust for the change of lispy string.
14345 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14346
14347 * xfaces.c (set_font_frame_param): Adjust for the change of
14348 font_find_for_lface.
14349
14350 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14351 (xfont_registry_charsets): Likewise. Change caller.
14352 (syms_of_xfont): Don't handle x_font_charset_alist.
14353
14354 * xftfont.c: Include "ftfont.h".
14355 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14356 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14357 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14358 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14359 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14360 Set xftfont_driver.shape to xftfont_shape.
14361
14362 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14363 the change of lispy gstring.
14364
143652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14366
14367 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14368
143692008-02-01 Jason Rumney <jasonr@gnu.org>
14370
14371 * w32font.c (w32font_draw): Fill background manually.
14372
143732008-02-01 Jason Rumney <jasonr@gnu.org>
14374
14375 * font.c (Qfontp): Remove unused symbol.
14376 (QCantialias): New symbol.
14377 (syms_of_font): Define it.
14378 (font_property_table): Set a validator for QCantialias.
14379
14380 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14381 Define if not already.
14382 (QCfamily): Share with xfaces.c.
14383 (Qstandard, Qsubpixel, Qnatural): New symbols.
14384 (syms_of_w32font): Define them. Don't define QCfamily here.
14385 (w32_antialias_type, lispy_antialias_type): New functions.
14386 (w32_enumfont_pattern_entity): New arg requested_font.
14387 Set antialias parameter if non-default was requested.
14388 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14389
143902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14391
14392 * lread.c (read1): Undo the previous change.
14393
143942008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14395
14396 * frame.c (Fdelete_frame): Call font_update_drivers only when
14397 USE_FONT_BACKEND is defined.
14398
143992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14400
14401 * font.h (struct font_bitmap): New member bits_per_pixel.
14402 (struct font_driver): New members start_for_frame and end_for_frame.
14403 (struct font_data_list): New struct.
14404 (font_put_frame_data, font_get_frame_data): Extern them.
14405
14406 * frame.h (struct frame): New member font_data_list.
14407
14408 * font.c (font_update_drivers): Call driver->start_for_frame and
14409 driver->end_for_frame at proper timings.
14410 (font_put_frame_data, font_get_frame_data): New functions.
14411 (Ffont_spec): Add usage in the docstring.
14412
14413 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14414 (Fdelete_frame): Call font_update_drivers.
14415
14416 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14417 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14418 (xftfont_get_xft_draw): New function.
14419 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14420 (xftfont_end_for_frame): New function.
14421 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14422
14423 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14424 Change argument. Cache GCs in the per-frame data.
14425 (struct ftxfont_frame_data): New struct.
14426 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14427 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14428 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14429 (ftxfont_end_for_frame): New function.
14430 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14431
14432 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14433
144342008-02-01 Kenichi Handa <handa@m17n.org>
14435
14436 * xselect.c (Vselection_coding_system)
14437 (Vnext_selection_coding_system): Delete them.
14438 (syms_of_xselect): Don't declare selection-coding-system and
14439 next-selection-coding-system. They are declared in select.el.
14440
144412008-02-01 Jason Rumney <jasonr@gnu.org>
14442
14443 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14444
14445 * w32fns.c: Include imm.h.
14446 (get_composition_string_fn, get_ime_context_fn): New optional
14447 system functions.
14448 (globals_of_w32fns): Load them from imm32.dll.
14449 (ignore_ime_char): New flag.
14450 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14451 WM_IME_ENDCOMPOSITION messages.
14452
14453 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14454 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14455
144562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14457
14458 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14459 (READCHAR_REPORT_MULTIBYTE): New macro.
14460 (readchar): New 2nd arg MULTIBYTE.
14461 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14462 Make symbol's name multibyte according to the multibyteness of the
14463 source.
14464
144652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14466
14467 * xfaces.c (face_for_overlay_string): Call lookup_face with
14468 correct arguments (fix of synching with the trunk).
14469
144702008-02-01 Kenichi Handa <handa@m17n.org>
14471
14472 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14473 (font_prop_validate_non_neg, font_prop_validate_spacing):
14474 Delete argument prop_index.
14475 (font_property_table): Change arguments to validater. Change Callers.
14476 (font_lispy_object): Delete.
14477 (font_at): Use font_find_object instead fo font_lispy_object.
14478
144792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14480
14481 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14482 and file names.
14483
144842008-02-01 Jason Rumney <jasonr@gnu.org>
14485
14486 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14487 (font_matches_spec): Remove debug output.
14488 (add_font_entity_to_list): Avoid using substituted fonts.
14489
144902008-02-01 Jason Rumney <jasonr@gnu.org>
14491
14492 * doc.c (Fsnarf_documentation):
14493 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14494
144952008-02-01 Miles Bader <miles@gnu.org>
14496
14497 * dispextern.h (struct glyph_row): Only define "clip" field if
14498 HAVE_WINDOW_SYSTEM is defined.
14499
145002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14501
14502 Fix up multi-tty merge.
14503
14504 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14505 and indentation.
14506
14507 * xfaces.c (free_realized_face, clear_face_gcs):
14508 Include font_done_for_face in the input_blocked section, just in case.
14509
14510 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14511 (get_char_face_and_encoding): Undo last change and remove the *other*
14512 duplicate definition (i.e. keep the one that's better scoped and that
14513 includes code for the font-backend).
14514
14515 * terminal.c (create_terminal): Default keyboard_coding to
14516 `no-conversion' and terminal_coding to `undecided'.
14517
14518 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14519
14520 * fontset.c (free_realized_fontsets): Check that the table entry does
14521 contain a fontset before trying to compare it to `base'.
14522
14523 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14524 syms_of_charset, and syms_of_coding earlier because init_window_once
14525 now needs Vcoding_system_hash_table to be setup.
14526
14527 * coding.h (default_buffer_file_coding): Remove.
14528
14529 * coding.c (default_buffer_file_coding): Remove.
14530 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14531 than ->symbol, and use the terminal-local coding system.
14532 (syms_of_coding): Don't setup the coding-systems that are not
14533 terminal-local.
14534 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14535
14536 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14537 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14538
14539 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14540 in chartab.c and were re-added here by mistake.
14541 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14542
14543 * doc.c (Fsnarf_documentation):
14544 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14545 src to etc.
14546
14547 * ChangeLog.10: Add mistakenly removed entry.
14548
145492008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14550
14551 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14552
145532008-02-01 Miles Bader <miles@gnu.org>
14554
14555 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14556 Add extra args to FACE_FOR_CHAR.
14557
145582008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14561 in sequence.
14562
14563 * chartab.c (map_sub_char_table, map_char_table): If the range
14564 contains just one character, call the function with that character
14565 even if the depth is not 3.
14566
145672008-02-01 Jason Rumney <jasonr@gnu.org>
14568
14569 * w32font.c (w32font_text_extents): Calculate metrics for the
14570 whole string.
14571
145722008-02-01 Jason Rumney <jasonr@gnu.org>
14573
14574 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14575
145762008-02-01 Jason Rumney <jasonr@gnu.org>
14577
14578 * w32term.c (x_set_glyph_string_clipping): Use
14579 get_glyph_string_clip_rects.
14580 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14581 Adjust for the change of struct glyph_string.
14582
14583 * w32font.c (w32font_draw): Do clipping here.
14584
145852008-02-01 Kenichi Handa <handa@m17n.org>
14586
14587 * xftfont.c (xftfont_draw): Adjust for the change of struct
14588 glyph_string.
14589
14590 * xterm.c (x_set_glyph_string_clipping): Use
14591 get_glyph_string_clip_rects.
14592 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14593 Adjust for the change of struct glyph_string.
14594
14595 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14596 the resulting clip(s}.
14597 (expose_overlaps): Add arg r. Change callers. Set it to
14598 row->clip temporarily.
14599 (expose_window): Redraw rows overlapping the exposed area.
14600
14601 * dispextern.h (struct glyph_row): New member clip.
14602 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14603 clip_height, new member clip, and num_clips.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * data.c (Fchar_or_string_p): Fix docstring.
14608
146092008-02-01 Kenichi Handa <handa@m17n.org>
14610
14611 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14612 create a temporary XftDraw object.
14613
146142008-02-01 Kenichi Handa <handa@m17n.org>
14615
14616 * font.c (Ffontp): Fix docstring.
14617
14618 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14619 strong evidence of ISO-2022.
14620
146212008-02-01 Kenichi Handa <handa@m17n.org>
14622
14623 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14624 SYNTAX_ENTRY_FOLLOW_PARENT.
14625
146262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14627
14628 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14629 its type.
14630 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14631 Update to the new type of weak_hash_tables and next_weak.
14632
14633 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14634 a plain C pointer to Lisp_Hash_Table.
14635
14636 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14637 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14638 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14639 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14640 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14641 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14642 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14643 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14644 (GC_EQ): Remove since they've been identical to their non-GC_
14645 alter-egos ever since the markbit was eradicated.
14646
14647 * alloc.c:
14648 * buffer.c:
14649 * buffer.h:
14650 * data.c:
14651 * fileio.c:
14652 * filelock.c:
14653 * fns.c:
14654 * frame.h:
14655 * lisp.h:
14656 * macterm.c:
14657 * print.c:
14658 * process.c:
14659 * w32fns.c:
14660 * w32menu.c:
14661 * w32term.c:
14662 * xfns.c:
14663 * xmenu.c:
14664 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14665
146662008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * chartab.c (map_sub_char_table): Make it work for the top-level
14669 char-table. Fix handling of parent char-table.
14670 (map_char_table): Adjust for the above change.
14671
146722008-02-01 Jason Rumney <jasonr@gnu.org>
14673
14674 * w32font.c (Qgdi): Rename from Qw32.
14675
146762008-02-01 Jason Rumney <jasonr@gnu.org>
14677
14678 * w32bdf.c (get_quoted_string): Make function static.
14679
146802008-02-01 Kenichi Handa <handa@m17n.org>
14681
14682 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14683 bigger ascent and descent than those of the font, use them as
14684 font's ascent and descent.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * Makefile.in (${lispsource}international/charprop.el): Move this
14689 target within "#ifdef HAVE_UNIDATA" and "#endif".
14690
146912008-02-01 Kenichi Handa <handa@m17n.org>
14692
14693 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14694 (shortlisp): Add ../lisp/language/tai-viet.el.
14695
146962008-02-01 Ulrich Mueller <ulm@gentoo.org>
14697
14698 * Makefile.in (${lispsource}international/charprop.el): Depend on
14699 temacs${EXEEXT}.
14700
147012008-02-01 Jason Rumney <jasonr@gnu.org>
14702
14703 * w32font.c (w32font_close): Delete the GDI font object.
14704
14705 * w32menu.c: Include character.h.
14706
14707 * w32proc.c: Likewise.
14708
14709 * w32select.c: Likewise.
14710
14711 * makefile.w32-in (w32proc.o): Depend on character.h.
14712
147132008-02-01 Jason Rumney <jasonr@gnu.org>
14714
14715 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14716
14717 * w32menu.c (syms_of_w32menu): Likewise.
14718
14719 * w32proc.c (syms_of_ntproc): Likewise.
14720
14721 * w32select.c (syms_of_w32select): Likewise.
14722
14723 * w32term.c (syms_of_w32term): Likewise.
14724
147252008-02-01 Jason Rumney <jasonr@gnu.org>
14726
14727 * w32font.c (w32font_draw): Delete brush after using it.
14728
147292008-02-01 Jason Rumney <jasonr@gnu.org>
14730
14731 * w32font.c (w32font_open): Don't set font_idx.
14732 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14733 to font settings.
14734 (w32font_draw): Fill background explicitly.
14735
147362008-02-01 Jason Rumney <jasonr@gnu.org>
14737
14738 * w32term.c (w32_initialize): Don't call w32font_initialize.
14739
14740 * w32font.c (w32font_info): Remove subranges.
14741 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14742 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14743 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14744 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14745 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14746 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14747 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14748 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14749 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14750 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14751 New symbols.
14752 (font_callback_data): New struct.
14753 (w32font_list, w32font_match): Use it.
14754 (w32font_open): Don't populate subranges.
14755 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14756 (w32font_encode_char): Always return unicode code-point as-is.
14757 (w32font_text_extents): Supply a transformation matrix to
14758 GetGlyphOutline. Never look up by glyph index. Avoid looping
14759 twice. Use unicode version of GetTexExtentPoint32 instead of
14760 glyph index version.
14761 (set_fonts_frame): Remove.
14762 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14763 set frame parameter. Use backward compatible fake foundries.
14764 Save generic family in extra slot under QCfamily. Make width slot
14765 constant. Save QCspacing value. Save list of scripts instead of
14766 binary subranges.
14767 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14768 (add_font_entity_to_list): Use font_callback_data struct. Filter
14769 unwanted fonts.
14770 (add_one_font_entity_to_list): Use font_callback_data struct.
14771 (w32_registry): Default to iso10646_1.
14772 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14773 string font registries. Don't fill in font name if it is a generic
14774 family name, fill family instead. Use spacing, family and script
14775 extra info to fill pitch, family and charset fields.
14776 (list_all_matching_fonts): Use font_callback_data struct.
14777 (unicode_range_for_char): Remove.
14778 (font_supported_scripts): New function.
14779 (w32font_initialize): Remove.
14780 (syms_of_w32font): Update which symbols are defined.
14781
147822008-02-01 Jason Rumney <jasonr@gnu.org>
14783
14784 * font.c (font_pixel_size): Reverse assq_no_quit args.
14785
14786 * w32term.h (FONT_WIDTH): Report max width, not average.
14787 (FONT_MAX_WIDTH): Remove.
14788 (FONT_AVG_WIDTH): New macro.
14789
14790 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14791 redefinition of FONT_WIDTH.
14792
14793 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14794 (w32_cache_char_metrics): Use FONT_WIDTH.
14795
14796 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14797
147982008-02-01 Jason Rumney <jasonr@gnu.org>
14799
14800 * w32font.c (w32font_open): Make lfHeight negative.
14801
14802 * w32fns.c (x_default_font_parameter): Use new style font name.
14803 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14804
148052008-02-01 Jason Rumney <jasonr@gnu.org>
14806
14807 * w32font.c (QCsubranges): New symbol.
14808 (w32font_open, w32font_has_char): Get subranges from subproperty
14809 of extra.
14810 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14811 (syms_of_w32font): Define :subranges symbol.
14812
14813 * font.c (font_put_extra): Expose externally.
14814
14815 * font.h (font_put_extra): Move declaration from font.c.
14816
14817 * font.c (Ffont_get): Use font driver to determine otf capability.
14818 (adjust_anchor): Check if driver defines anchor_point before using.
14819
14820 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14821 (w32font_draw): Use options.
14822 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14823 Fix detection of truetype fonts.
14824 (registry_to_w32_charset): Handle charsets other than iso8859-1
14825 expressed as lisp symbols.
14826 (w32_registry): Express charset as lisp symbol.
14827 (fill_in_logfont): Reverse pixel and point height logic.
14828 Don't set width here. Set quality to default.
14829
14830 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14831 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14832
14833 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14834 Remove redundant loop and allocation.
14835
14836 * makefile.w32-in (font.o, w32font.o): New objects.
14837 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14838 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14839
14840 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14841 STORE_XCHARB a valid l-value.
14842
14843 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14844 calculations for non-Truetype fonts.
14845 (x_draw_glyph_string): Sync with xterm.c.
14846 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14847 Remove redundant code.
14848 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14849
14850 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14851 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14852
14853 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14854 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14855
14856 * w32font.c: New file for w32 font backend.
14857
148582008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * term.c: Don't include "buffer.h" twice.
14861
148622008-02-01 Kenichi Handa <handa@m17n.org>
14863
14864 * character.c (Funibyte_string): New function.
14865 (syms_of_character): Defsubr it.
14866
148672008-02-01 Jason Rumney <jasonr@gnu.org>
14868
14869 * w32term.c [USE_FONT_BACKEND]:
14870 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14871 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14872 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14873 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14874 (x_free_frame_resources): Sync with xterm.c.
14875
148762008-02-01 Andreas Schwab <schwab@suse.de>
14877
14878 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14879 char-table size.
14880
148812008-02-01 Kenichi Handa <handa@m17n.org>
14882
14883 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14884
148852008-02-01 Kenichi Handa <handa@m17n.org>
14886
14887 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14888 font_otf_gpos, add font_drive_otf.
14889
14890 * fontset.c (fontset_find_font): Pay attention to font size
14891 specified for a font.
14892 (reorder_font_vector): Check contents of font_def.
14893
14894 * font.c (struct otf_list): Delete it.
14895 (otf_list): Make it a lisp variable.
14896 (otf_open): Use lispy otf_list.
14897 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14898 (check_otf_features): New function.
14899 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14900 New functions.
14901 (font_drive_otf): New function merging font_otf_gsub and
14902 font_otf_gpos.
14903 (font_open_for_lface): New arg spec. Change argument order.
14904 (font_load_for_face): Adjust for the change of font_open_for_lface.
14905 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14906 Ffont_otf_gpos.
14907 (syms_of_font): Staticpro otf_list. Delete defsubr of
14908 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14909
14910 * xfaces.c (set_font_frame_param): Adjust for the change of
14911 font_open_for_lface.
14912
14913 * font.h (font_open_for_lface): Adjust prototype.
14914 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14915 member otf_drive.
14916 (font_otf_gsub, font_otf_gpos): Delete externs.
14917 (font_drive_otf): Extern it.
14918
149192008-02-01 Kenichi Handa <handa@m17n.org>
14920
14921 * font.c (font_at): If the window W is not on a window system,
14922 return Qnil.
14923
14924 * coding.c (produce_chars, encode_coding): Don't call
14925 insert_from_gap if no characters to produce.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14930 Fclear_face_cache.
14931
14932 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14933
149342008-02-01 Miles Bader <miles@gnu.org>
14935
14936 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14937 Parse "--disable-font-backend" option.
14938 (standard_args): Add "--disable-font-backend" option.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * fontset.c (fontset_find_font): New function.
14943 (fontset_font): Use fontset_find_font.
14944 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14945 Register the specified font for all Latin characters.
14946 (new_fontset_from_font): Register the specified font for all Latin
14947 characters.
14948 (dump_fontset): For a realized fontset, include the base fontset
14949 name in the returned vector.
14950
149512008-02-01 Kenichi Handa <handa@m17n.org>
14952
14953 * character.h (CHAR_STRING): Cast C to unsigned on calling
14954 char_string.
14955
14956 * character.c (char_string): Type of arg C changed to unsigned.
14957 Signal an error if C is an invalid character code.
14958
14959 * editfns.c (general_insert_function, Fchar_to_string):
14960 Use CHARACTERP, not INTEGERP.
14961
149622008-02-01 Kenichi Handa <handa@m17n.org>
14963
14964 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14965 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14966
14967 * regex.c (analyse_first): Fix for multibyte characters in "case
14968 charset:" and "case categoryspec:".
14969
149702008-02-01 Andreas Schwab <schwab@suse.de>
14971
14972 * Makefile.in (LIBES): Move standard libraries to the end.
14973
149742008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14977 nonzero, don't shrink the buffer nextb.
14978
14979 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14980
14981 * coding.c (coding_alloc_by_making_gap): New arg offset.
14982 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14983 offset.
14984 (decode_coding_iso_2022): Update coding->safe_charsets.
14985 (decode_coding_gap): Temporarily set
14986 current_buffer->text->inhibit_shrinking to 1.
14987
149882008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14991 indexing into elements of s->cmp and s->char2b.
14992
149932008-02-01 Juanma Barranquero <lekktu@gmail.com>
14994
14995 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15000 target_multibyte instead of multibyte.
15001 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15002 (bcmp_translate): Change the argument name from multibyte to
15003 target_multibyte.
15004
150052008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 These changes are to compile a regexp into a pattern that can be
15008 used both for multibyte and unibyte targets.
15009
15010 * Makefile.in (search.o): Depend on charset.h.
15011
15012 * character.c (multibyte_char_to_unibyte_safe): New function.
15013
15014 * search.c: Include "charset.h".
15015 (compile_pattern_1): Delete argument multibyte. Don't set
15016 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15017 (compile_pattern): Don't compare cp->buf.target_multibyte.
15018 Compare cp->buf.charset_unibyte.
15019 (compile_pattern): Set cp->buf.target_multibyte.
15020
15021 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15022
15023 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15024
15025 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15026 multibyte. Change callers.
15027 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15028 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15029 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15030 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15031 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15032 (regex_compile): Make the compiled pattern usable both for
15033 multibyte and unibyte targets.
15034 (analyse_first): Make the fastmap usable both for multibyte and
15035 unibyte targets.
15036 (TRANSLATE_VIA_MULTIBYTE): Delete.
15037 (re_match_2_internal): Pay attention to the case that the
15038 multibyteness of bufp and target may be different.
15039
150402008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15043 empty box occupy at least one column width.
15044
150452008-02-01 Miles Bader <miles@gnu.org>
15046
15047 * Makefile.in: Remove redundant HAVE_XFT clause.
15048
150492008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15052
150532008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15056 being nil.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15061
150622008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15065
150662008-02-01 Kenichi Handa <handa@m17n.org>
15067
15068 * search.c (simple_search): Fix previous change.
15069
150702008-02-01 Kenichi Handa <handa@m17n.org>
15071
15072 * xftfont.c (ftfont_font_format): Extern declaration.
15073
15074 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15075
15076 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15077 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15078
15079 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15080 (ftfont_font_format): Fix previous change.
15081
15082 * font.h (Ffont_xlfd_name): EXFUN it.
15083
15084 * font.c (font_parse_xlfd): Fix the array size of `f'.
15085 (register_font_driver): Use EQ to compare driver->type.
15086
15087 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15088 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15089 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15090
150912008-02-01 Kenichi Handa <handa@m17n.org>
15092
15093 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15094 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15095
150962008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * xfont.c (xfont_open): Set font->format.
15099
15100 * xftfont.c (xftfont_open): Set font->format.
15101
15102 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15103 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15104 (ftfont_open): Set font->format.
15105 (ftfont_font_format): New function.
15106
15107 * font.h (struct font): New member format.
15108
15109 * font.c (Qopentype): New variable.
15110 (syms_of_font): Defsym it.
15111 (Fquery_font): Change the format of the last element of the return
15112 value.
15113
151142008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15117 last resort.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * coding.c (detect_coding_charset): Fix detection of multi-byte
15122 charset.
15123
151242008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15125
15126 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15127
151282008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 * xdisp.c (get_next_display_element): Set it->face_id for the
15131 first component of a composition.
15132 (x_produce_glyphs): Check if the font is changed or not for composition.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * fontset.c (Qlatin): New variable.
15137 (syms_of_fontset): Define it as a lisp symbol.
15138 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * font.c (font_unparse_fcname): Pay attention to the case that
15143 some of font property is a null string.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * term.c: Include "composite.h".
15148 (encode_terminal_code): Output all components of composition.
15149 Check the size of encode_terminal_src.
15150 (produce_glyphs): For composition, call produce_composite_glyph.
15151 (append_composite_glyph, produce_composite_glyph): New functions.
15152
15153 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15154 is not found, get font_info from the current ascii face.
15155
151562008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15159 buffer-file-name to Qnil before calling insert_from_buffer.
15160
15161 * font.c (font_unparse_fcname): Pay attention to the case that
15162 foundry is a null string.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15167
15168 * font.c (Qunicode_sip): New variable.
15169 (syms_of_font): Declare it as a Lisp symbol.
15170
15171 * font.h (Qunicode_sip): Extern it.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * composite.c (get_composition_id): Pay attention to TAB component.
15176
15177 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15178 TAB. Adjust for the change of s->char2b which always points to
15179 the first element of allocated memory.
15180
15181 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15182
15183 * xdisp.c (handle_composition_prop): Set it->c to the first
15184 non-TAB component.
15185 (fill_composite_glyph_string): Change argument.
15186 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15187 (x_produce_glyphs): Fix handling of left/right padding.
15188
151892008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * coding.c (detect_coding_system): Fix for handling off
15192 inhibit_iso_escape_detection. Fix for the case that no coding
15193 system is defined for a specific coding category.
15194
151952008-02-01 Kenichi Handa <handa@m17n.org>
15196
15197 * font.c (font_matching_entity): Delete unused local var.
15198
15199 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15200 opening a font.
15201
15202 * fileio.c (Finsert_file_contents): On recovering a file, assume
15203 Unix-like eol.
15204 (choose_write_coding_system): On auto-saving a file, force
15205 Unix-like eol.
15206
15207 * coding.c (setup_coding_system): Fix setting of
15208 coding->common_flags based on eol_type.
15209 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15210 inherit from it.
15211
152122008-02-01 Kenichi Handa <handa@m17n.org>
15213
15214 * alloc.c (NSTATICS): Increas to 0x600.
15215
152162008-02-01 Kenichi Handa <handa@m17n.org>
15217
15218 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15219 (ftfont_list): Don't check :name property.
15220 (ftfont_match): New function.
15221 (ftfont_pattern_entity): If the pattern doesn't contain
15222 FC_SPACING, don't assume FC_MONO.
15223
15224 * font.h (struct font_driver): New member `match'.
15225 (font_update_drivers): Adjust prototype.
15226
15227 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15228 property of FONT.
15229 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15230 them unconditionally.
15231 (font_matching_entity): New function.
15232 (font_open_by_name): Try font_matching_entity if exact match is
15233 not found.
15234 (font_update_drivers): Delete the arg FONT. Return a list of
15235 actually used backends. Don't free faces, font caches here.
15236 Don't store data in frame parameters. Don't call x_set_font.
15237 (Ffont_spec): Store :name property as is.
15238 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15239 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15240 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15241 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15242 Call font->driver->otf_gsub instead of font_otf_gsub.
15243
15244 * frame.c (x_set_font_backend): Do more works that were done in
15245 font_update_drivers before.
15246
15247 * xfont.c (xfont_match): New function.
15248 (xfont_driver): Set xfont_driver.match to xfont_match.
15249 (xfont_draw): Set font in GC if necessary.
15250
15251 * ftxfont.c (ftxfont_match): New function.
15252 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15253
15254 * xftfont.c (xftfont_match): New function.
15255 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * font.h (struct font): New member scalable.
15260 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15261 (font_otf_gsub): Adjust prototype.
15262
15263 * font.c (font_otf_capability): Fix handling of the default langsys.
15264 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15265 Check the contents of SPEC.
15266 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15267 (check_gstring): New function.
15268 (REPLACEMENT_CHARACTER): New macro.
15269 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15270 glyph codes of GSTRING.
15271 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15272 (font_prepare_composition): Set cmp->glyph_len.
15273 (font_open_entity): Set font->scalable.
15274 (Ffont_get): Handle :otf property.
15275 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15276 functions.
15277 (Fquery_font): Use font->font.full_name.
15278 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15279 Sfont_otf_alternates.
15280
15281 * ftfont.c (ftfont_open): Set font->font.full_name and
15282 font->font.name properly. Fix calculation of font->font.height
15283 and font->min_width.
15284
15285 * ftxfont.c (ftxfont_create_gcs): New function.
15286 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15287 (ftxfont_draw_backgrond): Fix filling region.
15288 (ftxfont_default_fid): New function.
15289 (ftxfont_open): Set xfont->fid to the return value of
15290 ftxfont_default_fid.
15291 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15292 (ftxfont_done_face): Free only GCs that are created by
15293 ftxfont_create_gcs.
15294 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15295
15296 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15297 Clip to src->width, etc (not src->clip_XXX).
15298
15299 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15300 FontBackend frame parameter.
15301
153022008-02-01 Kenichi Handa <handa@m17n.org>
15303
15304 * font.h (struct font_driver_list): New member `on'.
15305 (Fclear_font_cache): EXFUN it.
15306 (font_update_drivers): Extern it.
15307
15308 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15309 (font_list_entities): Check driver_list->on.
c0943d3d 15310 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15311 (font_update_drivers): New function.
15312 (Fclear_font_cache): Check driver_list->on.
15313
15314 * frame.h (Qfont_backend): Extern it.
15315 (x_set_font_backend): Extern it.
15316
15317 * frame.c (Qfont_backend): New variable.
15318 (frame_parms): New element for font-backend.
15319 (x_set_font_backend): New function.
15320
15321 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15322 FontBackend frame parameter.
15323 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15324 x_set_font_backend.
15325
15326 * xfont.c (xfont_list): Don't try listing by :name property if the
15327 name is not for XLFD.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15332 (LGLYPH_SET_TO): New macros.
15333 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15334 element of G is vector or not.
15335 (font_at): Extern it.
15336
15337 * font.c: Include window.h.
15338 (font_lispy_object): New function.
15339 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15340 end of valid glyph.
15341 (font_close_object): Fix getting (struct font *).
15342 (font_at): New function.
15343 (Ffont_get): If FONT is a font-object, get entity from it.
15344 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15345 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15346 range check.
15347 (Ffont_at): New function.
15348 (syms_of_font): Defsubr Sfont_at.
15349
15350 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15351 before the entry for Qcomposition.
15352 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15353 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15354 the font in gstring.
15355 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15356 LGLYPH_FORM (g) to detect the end of valid glyph.
15357 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15358 we are composing with gstring.
15359
15360 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15361 Check if adjustment is vector or not.
15362
15363 * Makefile.in (font.o): Make it depends on window.h.
15364
153652008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15368 adjustment is vector or not.
15369
153702008-02-01 Miles Bader <miles@gnu.org>
15371
15372 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15377 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15378 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15379
15380 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15381 (DEVICE_DELTA): Fix typo.
15382 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15383 LGLYPH format.
15384
15385 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15386 the change of LGLYPH format.
15387
153882008-02-01 Kenichi Handa <handa@m17n.org>
15389
15390 * ftfont.c (ftfont_list): Fix typo.
15391 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15392
153932008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15394
15395 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15396
15397 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15398 xftface_info is non-NULL.
15399
154002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15401
15402 * ftfont.c (ftfont_list): Move misplaced #endif.
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * ftfont.c (ftfont_list): Pay attention to the case that
15407 FC_CAPABILITY is not defined.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * xftfont.c (xftfont_open): Set charset related members to -1.
15412
15413 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15414 QCname.
15415 (ftfont_open): Set charset related members to -1.
15416
15417 * fontset.c (Votf_script_alist): New variable.
15418 (syms_of_fontset): Initialize it.
15419 (fontset_font): Delete unused variable.
15420
15421 * fontset.h (Votf_script_alist): Extern it.
15422
15423 * font.c (font_find_for_lface): Optimize code.
15424
15425 * font.h (font_close_object, font_merge_old_spec): Extern them.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15430 (syms_of_font): Initialize them.
15431 (font_pixel_size): Allow float value in dpi.
15432 (font_prop_validate_type): Delete.
15433 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15434 Change caller.
15435 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15436 (font_prop_validate_extra): Delete.
15437 (font_prop_validate_spacing): New function.
15438 (font_property_table): Add elements for all known properties.
15439 (get_font_prop_index): Rename from check_font_prop_name. New
15440 argument FROM. Change caller.
15441 (font_prop_validate): Validate all known properties.
15442 (font_put_extra): Delete argument force. Change caller.
15443 (font_expand_wildcards): Make it static. Fix the way of shrinking
15444 the possible range.
15445 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15446 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15447 Change caller.
15448 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15449 (font_parse_fcname): Delete argument merge. Fix parsing of point
15450 size. Don't validate properties values here. Change caller.
15451 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15452 (font_open_by_name): Delete unused variable.
15453 (Ffont_spec): Likewise. Validate property values.
15454 (Ffont_match_p): New function.
15455
15456 * font.h (QCscalable): Extern it.
15457 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15458
15459 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15460
15461 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15462 (xfont_list_pattern): New function.
15463 (xfont_list): Use xfont_list_pattern.
15464
154652008-02-01 Kenichi Handa <handa@m17n.org>
15466
15467 * font.h (Flist_fonts): EXFUN it.
15468
154692008-02-01 Jason Rumney <jasonr@gnu.org>
15470
15471 * w32term.c (w32_initialize): Add back smoothing_type and
15472 smoothing_enabled definitions.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15477 s->face->font on determining underline position.
15478
154792008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15482 (font_has_char): Accept font-object too.
15483 (font_find_for_lface): Try at first with a size specified in face.
15484
154852008-02-01 Kenichi Handa <handa@m17n.org>
15486
15487 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15488 font_open_by_name.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * font.h (QCspacing, QCdpi): Extern them.
15493 (enum font_spacing): New enum.
15494 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15495
15496 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15497 (QCspacing, QCdpi): New variables.
15498 (syms_of_font): Initialize them.
15499 (font_pixel_size): New function.
15500 (font_put_extra): New function.
15501 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15502 in FONT_EXTRA.
15503 (font_parse_fcname): Handle enumerated values (e.g. bold).
15504 Fix handling font size. Add QCname property that contains only
15505 unknown properties.
15506 (font_score): Change argument. Change caller. Pay attention to
15507 FONT_PIXEL_SIZE_QUANTUM.
15508 (font_sort_entites, font_list_entities, font_find_for_lface)
15509 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15510 (Ffont_spec): Add QCname property that contains only unknown properties.
15511
15512 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15513 include weight in listing pattern, instead check weight of each
15514 listed font. Don't include scalable in pattern. Pay attention to
15515 FONT_PIXEL_SIZE_QUANTUM.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * font.c (font_parse_fcname): Fix parsing of point-size.
15520 (font_unparse_fcname): Produce symbolic names for style properties.
15521 (font_list_entities): Handle float size correctly.
15522 (font_open_by_name): Prefer `normal' property values if the name
15523 doesn't specify them.
15524
15525 * fontset.c (Finternal_char_font): Use font_get_name, not
15526 Ffont_xlfd_name.
15527
15528 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15529 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15530 pattern. Don't force scalable.
15531
15532 * xftfont.c (xftfont_open): For generating a name, start from
15533 96-byte buffer.
15534
155352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15536
15537 * frame.h (x_new_fontset2): Fix prototype.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * font.h (struct font_driver): Delete member parse_name.
15542 (font_match_p, font_get_spec, font_parse_fcname)
15543 (font_unparse_fcname): Extern them.
15544 (font_get_name): Adjust prototype.
15545
15546 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15547 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15548 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15549 unnecessary checks for weight, slant, and swidth.
15550 (font_parse_fcname): New function.
15551 (font_unparse_fcname): New function.
15552 (font_parse_name): New function.
15553 (font_match_p): New function.
15554 (font_get_name): Change return value to Lisp string.
15555 (font_get_spec): New function.
15556 (Qunspecified, Qignore_defface): Don't extern them.
15557 (font_find_for_lface): Assume that LFACE is fully specified.
15558 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15559 object, use it for FACE.
15560 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15561 driver->parse_name.
15562 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15563
15564 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15565 prototype.
15566
15567 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15568 argument F. Don't call Fnew_fontset. Instead, directly call
15569 make_fontset.
15570
15571 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15572
15573 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15574 of x_new_fontset2.
15575
15576 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15577 (Qsans__serif): New variables.
15578 (ftfont_generic_family_list): New variable.
15579 (syms_of_ftfont): Initialize the above variables.
15580 (ftfont_pattern_entity): Delete argument NAME.
15581 (ftfont_list_generic_family): New function.
15582 (ftfont_parse_name): Delete this function.
15583 (ftfont_list): Try generic family only when FcFontList found no font.
15584 (ftfont_list_family): Fix args to FcObjectSetBuild.
15585
15586 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15587 object in attrs[LFACE_FONT_INDEX].
15588 (set_lface_from_font_name): Cancel all changes for font-backend.
15589 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15590 function.
15591 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15592 font object in QCfont attribute.
15593 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15594 (realize_default_face) [USE_FONT_BACKEND]: Call
15595 set_lface_from_font_and_fontset.
15596
15597 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15598 "fixed", and signal error here if no suitable font was found.
15599
15600 * xfont.c (xfont_parse_name): Delete this function.
15601
15602 * xftfont.c (xftfont_open): Change coding style of error
15603 handling. Generate fontconfig's fontname pattern.
15604
15605 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15606 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15607
15608 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15609 Both args FONTSET and FONT_OBJECT must be existing ones.
15610
156112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15612
15613 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15614
156152008-02-01 Kenichi Handa <handa@m17n.org>
15616
15617 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15618
15619 * font.h (struct font): Fix typo.
15620
15621 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15622 XLFD_XXX_INDEX.
15623 (enum xlfd_field_mask): New enum.
15624 (intern_font_field): Changed argument. Change caller. If digits
15625 are followed by non-digits, return a symbol.
15626 (font_expand_wildcards): New function.
15627 (font_parse_xlfd): Fix wildcard handling.
15628 (Ffont_spec): If :name is specified, reflect the info in the other
15629 properties.
15630
15631 * ftfont.c (ftfont_pattern_entity): Fix typo.
15632 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15633 locale.
15634
156352008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15638
15639 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15640 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15641 registry doesn't specify encoding part.
15642 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15643 (font_open_by_name): At first try parsing the name.
15644 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15645 as Lisp symbols.
15646
15647 * fontset.c (reorder_font_vector): Pay attention to the case that
15648 the 3rd element of font_def is nil.
15649 (fontset_font): For the default fontset, append one more fontset
15650 elements for a script-based font specification. Don't add script
15651 attribute on finding a font.
15652 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15653 font name.
15654 (fontset_ascii_font): If a font can't be opened, return nil.
15655
15656 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15657 (ftfont_pattern_entity): New function.
15658 (ftfont_get_cache): Assume that freetype_font_cache is already
15659 initialized.
15660 (ftfont_list): Handle the case that a file is specified in font
15661 name. Use ftfont_pattern_entity to generate entities.
15662 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15663 (syms_of_ftfont): Initialize freetype_font_cache.
15664
15665 * xftfont.c (xftfont_open): Make the font name fontconfig's
15666 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15667 (xftfont_close): Free font->font.name if not NULL.
15668
15669 * xfont.c (xfont_list): If script is specified for a font, return
15670 null_vector.
15671 (xfont_list_family): Declare argument type.
15672
15673 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15674 name, set LFACE_FONT (lface) to nil.
15675
15676 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15677 return Qnil.
15678
156792008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15682 (standard_args): Add "-enable-font-backend".
15683
156842008-02-01 Kenichi Handa <handa@m17n.org>
15685
15686 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15687 (struct xftdraw_list, xftdraw_list): Delete them.
15688 (register_xftdraw, check_xftdraw): Delete them.
15689 (xftfont_prepare_face): Don't call register_xftdraw.
15690 (xftfont_done_face): Don't call check_xftdraw.
15691 (xftfont_draw): Get background color only when with_background is
15692 nonzero.
15693
15694 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15695
156962008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 These changes are for the new font handling codes.
15699
15700 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15701 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15702 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15703 (FONTSRC, FONTOBJ): New variables.
15704 (obj): Add $(FONTOBJ).
15705 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15706 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15707 @LIBOTF_LIBS@.
15708 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15709 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15710
15711 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15712
15713 * character.h (Vscript_representative_chars): Extern it.
15714
15715 * character.c (Vscript_representative_chars): New variable.
15716 (syms_of_character): Declare it as a Lisp variable.
15717
15718 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15719 enable_font_backend is nonzero, accept the composition method
15720 COMPOSITION_WITH_GLYPH_STRING.
15721
15722 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15723 enumeration COMPOSITION_WITH_GLYPH_STRING.
15724
15725 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15726 members clip_x, clip_y, clip_width, and clip_height.
15727 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15728
15729 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15730 --enable-font-backend. Call syms_of_font.
15731
15732 * fns.c (assoc_no_quit): New function.
15733
15734 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15735 (face_for_font, new_fontset_from_font)
15736 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15737
15738 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15739 (fontset_font, fontset_ascii, face_for_char)
15740 (make_fontset_for_ascii_face, Ffont_info)
15741 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15742 is nonzero, use font-backend mechanism.
15743 (find_font_encoding): Make it non-static.
15744 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15745 New functions.
15746
15747 * frame.h (struct frame): New members resx and resy.
15748 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15749 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15750
15751 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15752 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15753
15754 * lisp.h (assoc_no_quit): Extern it.
15755
15756 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15757 Through out the file, use FONT_INFO_FROM_FACE instead of
15758 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15759 rif->per_char_metric.
15760 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15761 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15762 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15763 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15764 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15765 nonzero, use font-backend mechanism.
15766 (get_per_char_metric): New function.
15767
15768 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15769 (set_lface_from_font_name)
15770 (set_font_frame_param, free_realized_face)
15771 (prepare_face_for_display, clear_face_gcs)
15772 (Finternal_set_font_selection_order, realize_x_face)
15773 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15774 font-backend mechanism.
15775 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15776 (load_face_font) [USE_FONT_BACKEND]: Abort.
15777 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15778 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15779
15780 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15781 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15782 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15783 nonzero, register all available font drivers. Call
15784 x_default_font_parameter for deciding a font.
15785 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15786
15787 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15788 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15789 (x_set_glyph_string_clipping_exactly)
15790 (x_compute_glyph_string_overhangs)
15791 (x_draw_glyph_string_foreground)
15792 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15793 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15794 enable_font_backend is nonzero, use font-backend mechanism.
15795 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15800 system_eol_type.
15801 (syms_of_coding): Initialize system_eol_type.
15802
15803 * process.c (Fset_process_coding_system): Inherit system's eol
15804 format if necessary.
15805
158062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15807
15808 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15809
158102008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * coding.c (decode_eol): Pay attention to buffer relocation in
15813 del_range_2.
15814 (decode_coding): Call decode_eol before restoring undo_list.
15815
158162008-02-01 Kenichi Handa <handa@m17n.org>
15817
15818 * charset.c (Fdefine_charset_internal): Fix setting of
15819 emacs_mule_bytes.
15820
158212008-02-01 Kenichi Handa <handa@m17n.org>
15822
15823 * keyboard.c (read_char): Check if C is a character or not before
15824 looking up Vkeyboard_translate_table.
15825
158262008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15829 condition to terminate the loop.
15830
158312008-02-01 Kenichi Handa <handa@m17n.org>
15832
15833 * coding.c (produce_composition): Compare charbuf[i] instead of
15834 args[i] against 0.
15835 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15836
158372008-02-01 Kenichi Handa <handa@m17n.org>
15838
15839 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15840 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15841 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15842 detect_coding.
15843 (emacs_mule_char): Handle old style (Emacs 20) component character
15844 of a composition.
15845 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15846 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15847 composition rule.
15848 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15849
158502008-02-01 Kenichi Handa <handa@m17n.org>
15851
15852 * coding.c (encode_coding_ccl): Allocate destination dynamically
15853 when necessary.
15854
158552008-02-01 Kenichi Handa <handa@m17n.org>
15856
15857 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15858 the loop. When quitted, show a proper error message.
15859
158602008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15863 src->clip_head and src->clip_tail temporarily instead of src->hl.
15864
15865 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15866 character sequence.
15867 (Fccl_execute_on_string): Use ASET, not XSET.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15872
158732008-02-01 Kenichi Handa <handa@m17n.org>
15874
15875 * coding.c (decode_coding): Fix the condition of terminating the
15876 decoding loop.
15877
158782008-02-01 Kenichi Handa <handa@m17n.org>
15879
15880 * data.c (Faset): On setting a character bigger than 255 in a
15881 unibyte string, signal an error instead of make the string multibyte.
15882
158832008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15886 made by a mapping table.
15887
158882008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15891 not.
15892 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15893 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15894
15895 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15896 s->face is NULL or not.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15901 (x_draw_glyph_string): Fix drawing of right_overhang and
15902 left_overhang around/on cursor.
15903
15904 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15905
159062008-02-01 Kenichi Handa <handa@m17n.org>
15907
15908 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15909
159102008-02-01 Kenichi Handa <handa@m17n.org>
15911
15912 * coding.c (Fdefine_coding_system_internal)
15913 (Fdefine_coding_system_alias): Avoid a duplicated element in
15914 Vcoding_system_alist.
15915
159162008-02-01 Kenichi Handa <handa@m17n.org>
15917
15918 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15919
15920 * coding.c (Qcoding_system_define_form): New variable.
15921 (syms_of_coding): Intern and staticpro it.
15922 (Fcoding_system_p): Check Qcoding_system_define_form.
15923 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15924
15925 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15926 Fcoding_system_p.
15927 (CHECK_CODING_SYSTEM): If ID is not available, call
15928 Fcheck_coding_system.
15929 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15930 Try also Fcheck_coding_system.
15931
159322008-02-01 Kenichi Handa <handa@m17n.org>
15933
15934 * coding.c (code_conversion_restore): GCPRO arg.
15935
159362008-02-01 Kenichi Handa <handa@m17n.org>
15937
15938 * character.c (lisp_string_width): Check multibyteness of STRING.
15939
159402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15941
15942 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15943 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15944 (decode_mac_font_name): Use decode_coding_c_string instead of
15945 decode_coding.
15946 (x_load_font): Initialize fontp->fontset to -1. Set
15947 fontp->encoding_type.
15948
159492008-02-01 Kenichi Handa <handa@m17n.org>
15950
15951 * search.c (search_buffer): Give up BM search on case-fold-search
15952 if one of a target character has a case-equivalence of different
15953 byte length even if that target charcter is an ASCII.
15954 (simple_search): Fix calculation of byte length of matched text.
15955 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15956
159572008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * coding.c (decode_coding): Fix handling of invalid bytes.
15960
159612008-02-01 Kenichi Handa <handa@m17n.org>
15962
15963 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15964 Unicode characters.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * coding.c (encode_coding_object): If a pre-write-conversion
15969 function makes a new buffer, kill it.
15970
159712008-02-01 Kenichi Handa <handa@m17n.org>
15972
15973 * coding.c (QCascii_compatible_p): New variable.
15974 (syms_of_coding): Initialize it.
15975 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15976 calling string_char.
15977 (record_conversion_result): Add `default:' case.
15978 (coding_charset_list): Delete unused variable `coding_type'.
15979 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15980 property in the plist of the coding system.
15981 (Fcoding_system_put): Check QCascii_compatible_p.
15982
159832008-02-01 Miles Bader <miles@gnu.org>
15984
15985 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15986 removed calculation of frame `f', as it's now used.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15991 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15992 (UNIDATA): New variable.
15993 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15994 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15995 $(RUN_TEMACS) unconditionally.
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16000 (admindir): New variable.
16001 ($(lispsource)international/charprop.el): New target.
16002
160032008-02-01 Miles Bader <miles@gnu.org>
16004
16005 * character.c (chars-in-region): Remove obsolete function.
16006 (syms_of_character): Remove its initialization.
16007
160082008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16009
16010 * w32select.c (validate_coding_system)
16011 (setup_windows_coding_system): New functions.
16012 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16013 setup_windows_coding_system.
16014 (setup_config, Fw32_get_clipboard_data): Use
16015 validate_coding_system.
16016 (Fx_selection_exists): Move call to setup_config to a place
16017 where signals are allowed.
16018
16019 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16020 (Fcheck_coding_system): Add declarations.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16025
160262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16027
16028 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16029 string as the second argument for x_new_fontset.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16034 (encode_coding_object): Use safe_call instead of call2.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16039
16040 * Makefile.in (lisp): Include charprop.el.
16041
160422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16043
16044 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16045 Not sure if it's unnecessary.
16046
160472008-02-01 Steven Tamm <steventamm@mac.com>
16048
16049 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16050 some possibly unnecessary fontset checking code that crashed
16051 when creating a new frame.
16052
160532008-02-01 Kenichi Handa <handa@m17n.org>
16054
16055 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16056 lookup_face.
16057
16058 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16059
16060 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16061
160622008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16065 (coding_charset_list): New function.
16066
16067 * coding.h (coding_charset_list): Extern it.
16068
160692008-02-01 Kenichi Handa <handa@m17n.org>
16070
16071 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16072 concatenation of family and registry.
16073
160742008-02-01 Kenichi Handa <handa@m17n.org>
16075
16076 * character.h (BYTE8_STRING): Fix typo.
16077
16078 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16079 string to multibyte (sync to HEAD).
16080
16081 * casefiddle.c (casify_region): Handle changes in byte-length
16082 using replace_range_2 (sync to HEAD).
16083
160842008-02-01 Andreas Schwab <schwab@suse.de>
16085
16086 * chartab.c (map_char_table): GCPRO table and arg.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16091 already at limit.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16096 instead of fast_c_string_match_ignore_case.
16097 (find_font_encoding): Change argument to Lisp_Object. Use
16098 fast_string_match_ignore_case instead of
16099 fast_c_string_match_ignore_case. Change caller.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * xdisp.c (get_next_display_element): In unibyte case, decide to
16104 display in octal form by checking a character by
16105 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16106
16107 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16108
16109 * character.c (unibyte_has_multibyte_table): New variable.
16110
16111 * character.h (unibyte_has_multibyte_table): Extern it.
16112 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16113
161142008-02-01 Kenichi Handa <handa@m17n.org>
16115
16116 * coding.c (encode_coding_iso_2022): Fix handling of charset
16117 annotation.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * coding.c (setup_coding_system): If coding_system is nil, use
16122 Qundecided.
16123 (Fterminal_coding_system): Return nil if terminal coding system is
16124 `undecided'.
16125 (syms_of_coding): Define coding-system `undecided' here. Setup
16126 terminal_coding as `undecided'.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * xdisp.c (message_dolog, set_message_1): Call
16131 unibyte_char_to_multibyte with arg type int.
16132
16133 * lread.c (read1): Fix reading of a char-table.
16134
16135 * print.c (print_object): Include sub char-table in circularities
16136 detection.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16141 Append the found sequences in car of ARGS instead of prepending.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * fileio.c (report_file_error): Make a unibyte string from
16146 strerror (errorno).
16147 (Fsubstitute_in_file_name): Fix the arg to
16148 unibyte_char_to_multibyte. It is evaluated twice.
16149
161502008-02-01 Kenichi Handa <handa@m17n.org>
16151
16152 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16157 BOM is not found.
16158 (detect_coding, detect_coding_system): Optimization for ISO-2022
16159 when no 8-bit data is found.
16160
161612008-02-01 Jason Rumney <jasonr@gnu.org>
16162
16163 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16164
161652008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16168 CHARS.
16169
161702008-02-01 Steven Tamm <steventamm@mac.com>
16171
16172 * macterm.c (mac_encode_char): Add charset argument and update
16173 to use encoding_type.
16174 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16175 switch to pure fontset.
16176 (decode_mac_font_name): Temporarily remove decoding.
16177 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16178 (x_load_font): Temporarily remove encoding.
16179
161802008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * xfaces.c (Fface_font): If frame is not on a window system,
16183 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16184 refer to face->font.
16185 (split_font_name_into_vector, build_font_name_from_vector)
16186 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16187 when HAVE_WINDOW_SYSTEM is defined.
16188
161892008-02-01 Kenichi Handa <handa@m17n.org>
16190
16191 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16192 (x_produce_glyphs): Fix setting of members of cmp in case
16193 cmp->glyph_len is zero.
16194
16195 * fontset.c (Fset_fontset_font): Fix docstring.
16196 (Ffontset_info): Make it backward compatible. New arg ALL.
16197
161982008-02-01 Kim F. Storm <storm@cua.dk>
16199
16200 * process.c (read_process_output): Grow decoding_buf when needed;
16201 this could cause a crash in allocate_string and compact_small_strings.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16206
162072008-02-01 Kenichi Handa <handa@m17n.org>
16208
16209 * coding.c (setup_coding_system): Set coding->common_flags
16210 correctly for raw-text.
16211 (consume_chars): On encoding unibyte text by raw-text, don't check
16212 multibyte form.
16213 (encode_coding): On encoding by raw-text, never use translation tables.
16214
16215 * fileio.c (e_write): Short cut for the case of no encoding.
16216
162172008-02-01 Kenichi Handa <handa@m17n.org>
16218
16219 * coding.c (detect_coding, detect_coding_system): Delete unused
16220 variables.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16225 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16226
162272008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * coding.c (Ffind_coding_systems_region_internal): Include
16230 raw-text and no-conversion in the result.
16231
162322008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16235 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16236 FONT_DEF.
16237 (font_def_arg, add_arg, from_arg, to_arg): New args.
16238 (set_fontset_font): Change argument.
16239 (Fset_fontset_font): Fix for the case that TARGET is a script
16240 name and charset name.
16241 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16242
162432008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * fontset.c (fontset_font): Rename from fontset_face. Change return
16246 value.
16247 (face_suitable_for_char_p, face_for_char): Adjust for the change
16248 of fontset_font.
16249 (make_fontset_for_ascii_face): Fix setting of the fontset element
16250 for ASCII.
16251 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16252 to get a font name.
16253 (Ffontset_info): Adjust for the change of fontset_font.
16254
16255 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16256
16257 * character.h (LEADING_CODE_LATIN_1_MIN)
16258 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16259
162602008-02-01 Kenichi Handa <handa@m17n.org>
16261
16262 * editfns.c (check_translation): New function.
16263 (Ftranslate_region_internal): Handle M:N mapping.
16264
162652008-02-01 Kenichi Handa <handa@m17n.org>
16266
16267 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16268
162692008-02-01 Kenichi Handa <handa@m17n.org>
16270
16271 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16272 goto invalid_code.
16273 (decode_coding_iso_2022): Fix handling of invalid designation.
16274
16275 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16276 after calling code_conversion_save.
16277
162782008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16281
16282 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16283
16284 * fontset.c: Include "intervals.h".
16285 (fontset_face): Fix comparing of Lisp_Objects.
16286 (free_face_fontset, new_fontset_from_font_name): Fix
16287 Lisp_Object/int mixup.
16288
16289 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16290
16291 * coding.c: Add many prototypes for static functions.
16292 (get_translation_table): Allow max_lookup to be NULL.
16293 (decode_coding, Ffind_coding_systems_region_internal)
16294 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16295 get_translation_table with max_lookup NULL.
16296
162972008-02-01 Kenichi Handa <handa@m17n.org>
16298
16299 * coding.c (get_translation_table): Declare it as Lisp_Object.
16300 (LOOKUP_TRANSLATION_TABLE): New macro.
16301 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16302 instead of CHAR_TABLE_REF.
16303
163042008-02-01 Kenichi Handa <handa@m17n.org>
16305
16306 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16307 annotation data format.
16308 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16309 Change arguments FROM and TO to single argument NCHARS. Change caller.
16310 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16311 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16312 (decode_coding_ccl, decode_coding_charset): Pay attention to
16313 coding->charbuf_used.
16314 (get_translation): New function.
16315 (produce_chars): New arguments translation_table and last_block.
16316 Translate characters here. Return number of carryover chars.
16317 Change caller.
16318 (produce_composition): New argument pos. Change caller.
16319 Adjust for the change of annotation data format.
16320 (produce_charset, produce_annotation): Likewise.
16321 (decode_coding, encode_coding): Don't call translate_chars.
16322 (consume_chars): New arg translation_table. Change caller.
16323 (translate_chars): Delete.
16324 (syms_of_coding): Make translation-table's number of extra slots 2.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * search.c (simple_search): Fix setting this_pos_byte in backward
16329 search.
16330
16331 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16332 byte sequence.
16333 (detect_coding_ccl): Fix setting of the variable valids.
16334
163352008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16338
16339 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16340
16341 * editfns.c (Ftranslate_region_internal): Rename from
16342 Ftranslate_region. Accept a char-table in TABLE.
16343 (syms_of_editfns): Defsubr Stranslate_region_internal.
16344
16345 * xfaces.c (set_lface_from_font_name): If a font is specified for
16346 a frame, generate a fontset from the font.
16347 (build_scalable_font_name): If the scalable font is requested for
16348 a specific size, don't change that size.
16349 (try_font_list): Try a scalable font also in the case that a
16350 pattern string is specified.
16351
163522008-02-01 Kenichi Handa <handa@m17n.org>
16353
16354 * xfaces.c (Fface_font): New optional arg CHARACTER.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * charset.h (CHARSET_OFFSET): New macro.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16363
16364 * fontset.c (fontset_face): Handle the case that repertory is a
16365 char-table.
16366 (find_font_encoding): Return nil for unknown encoding.
16367 (Fset_fontset_font): Ignore a font of unknown encoding.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * keymap.c (describe_vector): Handle default value of a char table.
16372
16373 * fontset.c (fontset_face): Handle fallback fonts correctly.
16374 (Ffontset_info): Return infomation about fallback fonts.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * fontset.c (FONTSET_DEFAULT): New macro.
16379 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16380 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16381 the case that it is nil.
16382 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16383 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16384
16385 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16386 subset or superset.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * emacs.c (main): Call init_charset after syms_of_XXX.
16391
16392 * charset.c (Vcharset_map_directory): Delete.
16393 (Vcharset_map_path): New variable.
16394 (load_charset_map_from_file): Use Vcharset_map_path instead.
16395 (init_charset): Initialize Vcharset_map_path.
16396 (syms_of_charset): Delete declaration of "charset-map-directory",
16397 add declaration of "charset-map-path".
16398
163992008-02-01 Kenichi Handa <handa@m17n.org>
16400
16401 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16402 ASCII only string.
16403
16404 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16405
16406 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16407 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16412
16413 * coding.c (QCmnemonic, QCdefalut_char)
16414 (QCdecode_translation_table, QCencode_translation_table)
16415 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16416 (get_translation_table): Return a list of translation tables if
16417 necessary.
16418 (decode_coding): Call get_translation_table with ENCODEP 0.
16419 (char_encodable_p): If translation_table is non-nil, always call
16420 translate_char.
16421 (Fdefine_coding_system_internal): Accept list of translation
16422 tables as :encode-translation-table and :decode-translation-table.
16423 (Fcoding_system_put): New function.
16424 (syms_of_coding): Declare new symbols. Defsubr
16425 Scoding_system_put.
16426 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16427 typically JISX0212.
16428
16429 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16430 when the charset is superset type.
16431
16432 * character.c (translate_char): Accept list of translation tables.
16433
164342008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16437 (CODING_ATTR_TRANS_TBL): New macro.
16438
16439 * coding.c (get_translation_table): New function.
16440 (translate_chars): Fix the bug of skipping annotation data.
16441 (decode_coding, encode_coding): Utilize get_translation_table.
16442 (char_encodable_p, Funencodable_char_position): Translate char if
16443 necessary.
16444 (Ffind_coding_systems_region_internal)
16445 (Fcheck_coding_systems_region): Setup translation table for encode
16446 in a coding system attribute vector in advance.
16447 (Fdefine_coding_system_internal): Allow a symbol as translation
16448 table. For shift-jis type coding system, allow 4th charset.
16449
164502008-02-01 Kenichi Handa <handa@m17n.org>
16451
16452 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16453
16454 * xdisp.c (get_next_display_element): Pass -1 as POS to
16455 FACE_FOR_CHAR if displaying a C-string.
16456
164572008-02-01 Kenichi Handa <handa@m17n.org>
16458
16459 * composite.c (get_composition_id): Handle xoff and yoff in a
16460 composition rule.
16461
16462 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16463 (struct composition): New member lbearing and rbearing.
16464
16465 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16466 (x_get_glyph_overhangs): Handle a composition glyph.
16467 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16468
16469 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16470 composition glyph.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * print.c: Include charset.h.
16475 (Vprint_charset_text_property): New variable.
16476 (Qdefault): Extern it.
16477 (PRINT_STRING_NON_CHARSET_FOUND)
16478 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16479 (print_check_string_result): New variable.
16480 (print_check_string_charset_prop): New function.
16481 (print_prune_charset_plist): New variable.
16482 (print_prune_string_charset): New function.
16483 (print_object): Call print_prune_string_charset if
16484 Vprint_charset_text_property is not t.
16485 (print_interval): Print nothing if interval->plist is nil.
16486 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16487 variable. Init and staticpro print_prune_charset_plist.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * fontset.c (new_fontset_from_font_name): Use the specified font
16492 for all characters in the new fontset.
16493
16494 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16495 OBJECT args.
16496
16497 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16498 OBJECT args for composition too.
16499
16500 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16501 OBJECT args.
16502
165032008-02-01 Kenichi Handa <handa@m17n.org>
16504
16505 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16506
16507 * fontset.c (reorder_font_vector): Adjust for the change of
16508 FONT_DEF format.
16509 (fontset_face): New arg id. Change caller.
16510 (face_for_char): New args pos and object.
16511 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16512 (fs_query_fontset): Check NAME by Fassoc too.
16513 (Fset_fontset_font): Allow non-XLFD font name.
16514 (Ffontset_info): Adjust for the change of FONT_DEF format.
16515
16516 * fontset.h (face_for_char): Adjust prototype.
16517
16518 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16519 (append_space, extend_face_to_end_of_line)
16520 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16521 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16522
16523 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16524 POS and OBJECT args.
16525
16526 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16527 POS and OBJECT args.
16528
165292008-02-01 Jason Rumney <jasonr@gnu.org>
16530
16531 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16532 of GlobalAlloc'ed memory.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16537
16538 * charset.h (charset_table_used): Delete extern.
16539
16540 * charset.c (charset_table_used): Make it static.
16541 (map_charset_chars): Fix args to c_function with.
16542
16543 * chartab.c (map_sub_char_table_for_charset): Fix args to
16544 c_function with.
16545
16546 * coding.h (enum coding_result_code): Delete
16547 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16548
16549 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16550 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16551 (Vlast_code_conversion_error): New variables.
16552 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16553 (ONE_MORE_BYTE): Record error if any instead of signaling an
16554 error. If non-ASCII multibyte char is found, return the negative
16555 value of the code. All callers changed to check it.
16556 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16557 (record_conversion_result): New function. Change all codes setting
16558 coding->result to call this function.
16559 (detect_coding_utf_8, decode_coding_utf_8)
16560 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16561 Don't use the local variable incomplete.
16562 (emacs_mule_char): Change the second arg to `const'.
16563 (decode_coding): Fix of flushing out unprocessed data.
16564 (make_conversion_work_buffer): Fix making of a work buffer.
16565 (decode_coding_object): Return coding->dst_object.
16566
16567 * fontset.c (set_fontset_font): Fix args.
16568
16569 * lisp.h (CHARACTERBITS): Define as 22.
16570
16571 * process.c (send_process): Be sure to set coding->src_multibyte.
16572
16573 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16574
165752008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * xdisp.c (handle_auto_composed_prop): Give limit to
16578 Fnext_single_char_property_change.
16579
165802008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * composite.c (syms_of_composite): Don't make the composition hash
16583 table weak.
16584
16585 * fontset.c (Fset_fontset_font): Fix docstring.
16586
16587 * lisp.h (detect_coding_system): Adjust prototype.
16588
16589 * fileio.c (kill_workbuf_unwind): Delete this function.
16590 (Finsert_file_contents): Adjust the call of detect_coding_system.
16591 Get conversion_buffer by code_conversion_save. Use the macro
16592 CODING_MAY_REQUIRE_DECODING. After decoding, update
16593 coding_system.
16594
16595 * coding.h (make_conversion_work_buffer): Delete extern.
16596 (code_conversion_save): Extern it.
16597
16598 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16599 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16600 (decode_coding_utf_8): Don't do eol converion.
16601 (detect_coding_utf_16): Check coding->src_chars, not
16602 coding->src_bytes. Add heuristics for those that have no signature.
16603 (decode_coding_emacs_mule, decode_coding_iso_2022)
16604 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16605 Don't do eol converion.
16606 (adjust_coding_eol_type): Return a new coding system.
16607 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16608 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16609 each change.
16610 (decode_coding): Pay attention to undo_list. Do eol conversion for
16611 all types of coding-systems (if necessary).
16612 (Vcode_conversion_work_buf_list): Delete it.
16613 (Vcode_conversion_reused_workbuf): Rename from
16614 Vcode_conversion_reused_work_buf.
16615 (Vcode_conversion_workbuf_name): New variable.
16616 (reused_workbuf_in_use): New variable.
16617 (make_conversion_work_buffer): Delete the arg DEPTH.
16618 (code_conversion_restore): Change argument to cons.
16619 (code_conversion_save): Delete the argument BUFFER. Change callers.
16620 (detect_coding_system): New argument src_chars. Change callers.
16621 Fix for utf-16 detection.
16622 (init_coding_once): Don't use ISO_carriage_return.
16623 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16624 reused_workbuf_in_use.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * keymap.c (store_in_keymap): Pay attention to the case that idx
16629 is a cons specifying a character range.
16630
166312008-02-01 Kenichi Handa <handa@m17n.org>
16632
16633 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16634 HANDLED_RECOMPUTE_PROPS.
16635
16636 * coding.c (Fdefine_coding_system_internal): Fix checking of
16637 ascii compatibility.
16638
166392008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * charset.c (find_charsets_in_text): Delete unused locale variable.
16642 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16643
16644 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16645 Resync charset_list to Vemacs_mule_charset_list.
16646
16647 * keymap.c (store_in_keymap): Pay attention to the case that idx
16648 is a cons specifying a character range.
16649
166502008-02-01 Kenichi Handa <handa@m17n.org>
16651
16652 * composite.c (update_compositions): Bind inhibit-read-only, etc
16653 to t before calling remove-list-of-text-properties.
16654
16655 * print.c (print_object): Always print ASCII chars as is.
16656
166572008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16660
16661 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16662 is a char table.
16663
166642008-02-01 Kenichi Handa <handa@m17n.org>
16665
16666 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * xfaces.c (set_lface_from_font_name): Fix for the case that
16671 FONTNAME is not fontset name.
16672
166732008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 * fns.c (base64_encode_1): Fix previous change.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * fontset.c (set_fontset_font): New function.
16680 (Fset_fontset_font): If a font is specified for a charset, use
16681 map_charset_chars to store the font spec in a fontset.
16682
166832008-02-01 Kenichi Handa <handa@m17n.org>
16684
16685 * fontset.c (fontset_face): Create a fallback fontset on demand.
16686 (make_fontset): Don't create a fallback fontset here.
16687 (free_face_fontset): Free a fallback fontset (if any) too.
16688 (n_auto_fontsets): Delete this variable.
16689 (auto_fontset_alist): New variable.
16690 (new_fontset_from_font_name): Check auto_fontset_alist.
16691 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16692 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16693 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16694 Defsubr Sfontset_list_all.
16695
166962008-02-01 Kenichi Handa <handa@m17n.org>
16697
16698 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16699
167002008-02-01 Kenichi Handa <handa@m17n.org>
16701
16702 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * editfns.c (Fgoto_char): Fix docstring.
16707
167082008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * insdel.c (insert_from_gap): Adjust intervals correctly.
16711
167122008-02-01 Jason Rumney <jasonr@gnu.org>
16713
16714 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16715 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16716 (w32_initialize): Try to load it.
16717 (x_get_font_repertory): Use it if available.
16718 (w32_encode_char): Add shortcut for unicode output.
16719
16720 * w32fns.c (w32_load_system_font): Default charset to -1.
16721 (x_to_w32_charset): Match all fonts for unicode.
16722 (w32_to_x_charset): New parameter matching. Don't return partial
16723 or wildcard charsets.
16724 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16725 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16726 (w32_to_x_font): Match charset to real charset.
16727 (enum_font_cb2): Always list unicode versions.
16728
16729 * makefile.w32-in (temacs): Increase EMHEAP.
16730
167312008-02-01 Jason Rumney <jasonr@gnu.org>
16732
16733 * w32term.c (w32_encode_char): New charset parameter.
16734 font_info.encoding becomes encoding_type.
16735 (x_get_font_repertory): New function. Warning: stub only!
16736 (x_new_font): Return quickly if font already set.
16737 (x_new_fontset): fontsetname parameter is Lisp_Object.
16738 Use new fs_query_fontset. Try new_fontset_from_font_name.
16739 Use fontset_name for return value.
16740
16741 * w32term.h: Declare x_get_font_repertory.
16742
16743 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16744 place of find_charset_in_text. Use encode_coding_object in place
16745 of encode_coding.
16746 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16747 decode_coding.
16748
16749 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16750 of x_new_fontset.
16751 (w32_load_system_font): Initialize charset as unicode.
16752 font_info.encoding becomes encoding_type.
16753 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16754 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16755 (syms_of_w32fns): Set get_font_repertory_func.
16756
16757 * w32console.c: Include character.h. Use terminal_encode_buffer
16758 from term.c.
16759 (write_glyphs): Use new version of encode_terminal_code. Use
16760 encode_coding_object in place of encode_coding.
16761
16762 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16763 encoding becomes encoding_type.
16764
16765 * term.c (terminal_encode_buffer): Make externally visible.
16766
16767 * makefile.w32-in: Add character.h dependancies.
16768 (character.o, chartab.o): New targets.
16769
167702008-02-01 Kenichi Handa <handa@m17n.org>
16771
16772 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16773 CODING_ID_EOL_TYPE.
16774
167752008-02-01 Andreas Schwab <schwab@suse.de>
16776
16777 * coding.c (produce_chars): Revert last change.
16778
167792008-02-01 Kenichi Handa <handa@m17n.org>
16780
16781 * charset.h (charset_unicode): Extern it.
16782
16783 * charset.c (string_xstring_p): Check by (C >= 0x100).
16784 (find_charsets_in_text): Change format of the arc CHARSETS. New
16785 arg MULTIBYTE.
16786 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16787 change of find_charsets_in_text.
16788 (Fsplit_char): Fix doc. Never return unknown.
16789
16790 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16791
16792 * coding.c (Fdefine_coding_system_alias): Update
16793 Vcoding_system_list.
16794
16795 * fontset.c (load_font_get_repertory): Pay attention to the case
16796 that ENCODING of a font is specified by a char-table.
16797
16798 * xterm.c (x_get_font_repertory): Handle the case that the
16799 encoding of font is other than Unicode.
16800
168012008-02-01 Kenichi Handa <handa@m17n.org>
16802
16803 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16804 if a character is encodable by the terminal coding system. If
16805 not, produces proper number of `?'s. Update
16806 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16807 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16812 variables.
16813 (encode_terminal_code): Change argument. Encode multiple
16814 characters at once. Store the result of encoding in
16815 terminal_encode_buffer.
16816 (write_glyphs, insert_glyphs): Adjust for the change of
16817 encode_terminal_code.
16818 (term_init): Initialize terminal_encode_buffer and
16819 terminal_encode_buf_size.
16820
16821 * coding.c (consume_chars): If coding->src_object is nil, don't
16822 check annotation.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * character.c (char_string): Use ASCII_CHAR_P instead of
16827 SINGLE_BYTE_CHAR_P.
16828
168292008-02-01 Kenichi Handa <handa@m17n.org>
16830
16831 * xdisp.c (handle_auto_composed_prop): Check if the last
16832 characters of auto-composed region is newly composed with the
16833 following characters.
16834 (handle_composition_prop): Fix checking of point being inside
16835 composition.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * fns.c (concat): Don't change multibyteness of the result by
16840 concatenating an 8-bit character.
16841
16842 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16843 multibyteness of the result when newelt is an 8-bit character.
16844
168452008-02-01 Dave Love <fx@gnu.org>
16846
16847 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16848 EMACS_INT.
16849
16850 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16851
16852 * xfaces.c (face_numeric_value): Declare dim size_t.
16853 (Finternal_lisp_face_equal_p): Remove unused f.
16854
16855 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16856 (MATRIX_ROW): Remove unused vars.
16857 (draw_glyphs, x_insert_glyphs, fast_find_position)
16858 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16859 byte/char counts.
16860
16861 * regex.c (regex_compile): Remove unused var.
16862
16863 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16864
16865 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16866 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16867
16868 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16869
16870 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16871
16872 * fileio.c (Fwrite_region): Remove unused var.
16873
16874 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16875 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16876
16877 * composite.c (Fremove_list_of_text_properties): Declare.
16878
16879 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16880 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16881 (coding_inherit_eol_type): Remove unused attrs.
16882 (detect_coding): Cast arg of detect_eol.
16883
16884 * charset.c (syms_of_charset): Remove unused var p.
16885 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16886 byte/char counts.
16887
16888 * casetab.c (set_case_table): Remove unused var.
16889
16890 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16891 unused vars.
16892
168932008-02-01 Dave Love <fx@gnu.org>
16894
16895 * xterm.c (x_bitmap_mask): Declare.
16896
168972008-02-01 Dave Love <fx@gnu.org>
16898
16899 * xterm.c (x_term_init): Fix type error.
16900
16901 * lisp.h: Add Funibyte_char_to_multibyte.
16902
16903 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16904 (Fset_coding_system_priority): Doc fix.
16905
16906 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16907
16908 * indent.c (check_composition): Make start and end EMACS_INT.
16909
16910 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16911
16912 * xdisp.c (handle_composition_prop, check_point_in_composition):
16913 Make buffer positions EMACS_INT.
16914
16915 * composite.c (find_composition, run_composition_function)
16916 (update_compositions, Ffind_composition_internal): Make buffer
16917 positions EMACS_INT.
16918
16919 * composite.h (find_composition, update_compositions): Make
16920 position args EMACS_INT.
16921
16922 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16923
16924 * intervals.c (get_property_and_range):
16925 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16926
16927 * unexalpha.c: Don't include varargs.h.
16928
169292008-02-01 Dave Love <fx@gnu.org>
16930
16931 * coding.h (ENCODE_UTF_8): New.
16932
16933 * Makefile.in (gtkutil.o): Depend on coding.h.
16934
16935 * coding.c (Fset_coding_system_priority): Doc fix.
16936
169372008-02-01 Kenichi Handa <handa@m17n.org>
16938
16939 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16940 the case of auto saving.
16941
169422008-02-01 Andreas Schwab <schwab@suse.de>
16943
16944 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16945 `range' from GC.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16950
169512008-02-01 Kenichi Handa <handa@m17n.org>
16952
16953 * fileio.c (choose_write_coding_system): Return a decided coding system.
16954 (Fwrite_region): Set Vlast_coding_system_used to the return value
16955 of choose_write_coding_system.
16956
169572008-02-01 Kenichi Handa <handa@m17n.org>
16958
16959 * charset.c (Fset_charset_priority): Pay attention to duplicated
16960 arguments.
16961
16962 * coding.c (QCcategory): New variable.
16963 (syms_of_coding): Defsym it. Set all elements of
16964 Vcoding_category_table and their symbol values.
16965 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16966 coding-category-XXX, and coding-category-list.
16967 (Fdefine_coding_system_internal): Add category in the plist.
16968
169692008-02-01 Kenichi Handa <handa@m17n.org>
16970
16971 * callproc.c (Fcall_process): Handle carryover correctly.
16972
16973 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16974 (raw_text_coding_system): Check NILP (coding_system).
16975 (coding_inherit_eol_type): Check NILP (coding_system) and
16976 NILP (parent).
16977 (consume_chars): Fix for the case of raw-text.
16978
16979 * process.c (read_process_output): Handle carryover correctly.
16980
169812008-02-01 Dave Love <fx@gnu.org>
16982
16983 * regex.c (re_search_2): Fix last change.
16984
169852008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16988 target_multibyte. Even in a unibyte case, return a converted
16989 multibyte char.
16990 (GET_CHAR_AFTER): New macro.
16991 (PATFETCH): Translate via multibyte char.
16992 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16993 (SETUP_MULTIBYTE_RANGE): New macro.
16994 (regex_compile): Setup compiled code so that its multibyteness
16995 matches that of a target. Fix the handling of "[X-YZ]" using
16996 SETUP_MULTIBYTE_RANGE.
16997 (analyse_first) <charset>: For filling fastmap for all multibyte
16998 characters, don't check by BASE_LEADING_CODE_P.
16999 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17000 the same as RE_MULTIBYTE_P (bufp) now.
17001 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17002 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17003 (TRANSLATE_VIA_MULTIBYTE): New macro.
17004 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17005 It is the same as RE_MULTIBYTE_P (bufp) now.
17006 <exactn>: Translate via multibyte.
17007 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17008 translate it.
17009 <charset, charset_not>: Fetch a character by
17010 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17011 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17012 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17013 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17014 by GET_CHAR_AFTER.
17015 (bcmp_translate): Likewise.
17016
17017 * search.c (compile_pattern): Check the member target_multibyte,
17018 not the member multibyte of buf.
17019
17020 * lread.c (read1): While reading a string, set force_singlebyte
17021 and force_multibyte correctly.
17022
17023 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17024 up of unibyte_to_multibyte_table.
17025
170262008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * coding.c (setup_coding_system): If coding has
17029 post-read-conversion or pre-write-conversion, set
17030 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17031 respectively.
17032 (decode_coding_gap): Run post-read-conversion if any.
17033
17034 * fileio.c (Finsert_file_contents): Even if we read into a
17035 unibyte buffer, check if we must decode the result or not.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * coding.c (make_conversion_work_buffer): Change the work buffer
17040 name to the same one as that of Emacs 21.
17041
170422008-02-01 Kenichi Handa <handa@m17n.org>
17043
17044 * coding.h (make_conversion_work_buffer): Adjust prototype.
17045 (code_conversion_restore): Don't extern it.
17046
17047 * coding.c (detected_mask): Delete unused variable.
17048 (decode_coding_iso_2022): Pay attention to the byte sequence of
17049 CTEXT extended segment, and retain those bytes as is.
17050 (decode_coding_ccl): Delete unused variable `valids'.
17051 (setup_coding_system): Delete unused variable `category'.
17052 (consume_chars): Delete unused variable `category'. Make it work
17053 for non-multibyte case.
17054 (make_conversion_work_buffer): Change argument.
17055 (saved_coding): Delete unused variable.
17056 (code_conversion_restore): Don't check saved_coding->destination.
17057 (code_conversion_save): New function.
17058 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17059 instead of record_unwind_protect.
17060 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17061 (detect_coding_system): Delete unused variable `mask'.
17062 (Fdefine_coding_system_internal): Delete unused variable id.
17063
17064 * fileio.c (kill_workbuf_unwind): New function.
17065 (Finsert_file_contents): On replacing, call
17066 make_conversion_work_buffer with correct args, and call
17067 record_unwind_protect with the first arg kill_workbuf_unwind.
17068
17069 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17070
170712008-02-01 Kenichi Handa <handa@m17n.org>
17072
17073 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17074 (fontset_add): Fix for the case that TO is less than TO1.
17075 (Ffontset_info): Don't use fallback fontset on checking the
17076 default fontset.
17077 (dump_fontset): New function for debugging.
17078
17079 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17080 coding_type is Qcharset.
17081
170822008-02-01 Kenichi Handa <handa@m17n.org>
17083
17084 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17085 (map_char_table): Don't inherit the value from the parent on
17086 initializing VAL. Adjust for the above change.
17087
170882008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * coding.c (Qsignature, Qendian): Delete these variables.
17091 (syms_of_coding): Don't initialize them.
17092 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17093 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17094 detect_info->found.
17095 (decode_coding_utf_16): Don't detect BOM here.
17096 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17097 is NOT utf_16_without_bom.
17098 (setup_coding_system): For a coding system of type utf-16, check
17099 if the attribute :endian is Qbig or not (not nil or not), and set
17100 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17101 (detect_coding): If coding type is utf-16 and BOM detection is
17102 required, detect it.
17103 (Fdefine_coding_system_internal): For a coding system of type
17104 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17105
171062008-02-01 Kenichi Handa <handa@m17n.org>
17107
17108 * coding.c (coding_set_source): Fix for the case that the current
17109 buffer is different from coding->src_object.
17110 (decode_coding_object): Don't use the conversion work buffer if
17111 DST_OBJECT is a buffer.
17112
171132008-02-01 Dave Love <fx@gnu.org>
17114
17115 * lread.c (read_emacs_mule_char) [len==2]: Index
17116 emacs_mule_charset correctly.
17117
171182008-02-01 Dave Love <fx@gnu.org>
17119
17120 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17121 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17122 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17123 treated specially.)
17124 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17125 (detected_mask): Remove Big5 bits.
17126
171272008-02-01 Kenichi Handa <handa@m17n.org>
17128
17129 The following changes are to make the font rescaling facility
17130 compatible with Emacs 21.
17131
17132 * xfaces.c (Vface_font_rescale_alist): Rename from
17133 Vface_resizing_fonts.
17134 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17135 (font_rescale_ratio): Rename from font_resizing_ratio.
17136 (split_font_name): Set font->rescale_ratio.
17137 (better_font_p): Pay attention to font->rescale_ratio.
17138 (build_scalable_font_name): Likewise. Change RESX, and RESY
17139 fields.
17140 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17145 (Qutf_16_le): Remove these variables.
17146 (syms_of_coding): Don't DEFSYM them.
17147 (decode_coding_utf_16): Fix handling of BOM.
17148 (encode_coding_utf_16): Fix handling of BOM.
17149
171502008-02-01 Kenichi Handa <handa@m17n.org>
17151
17152 * fileio.c (Finsert_file_contents): On replacing, before decoding
17153 the file into the work buffer, set point of the work buffer to the end.
17154
171552008-02-01 Dave Love <fx@gnu.org>
17156
17157 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17158
171592008-02-01 Dave Love <fx@gnu.org>
17160
17161 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17162 and fix C types.
17163
171642008-02-01 Kenichi Handa <handa@m17n.org>
17165
17166 * xdisp.c (SKIP_GLYPHS): New macro.
17167 (set_cursor_from_row): Pay attention to string display properties.
17168
17169 * category.c (copy_category_entry): Fix for the case that RANGE
17170 is an integer.
17171
17172 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17173
17174 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * charset.c (Fcharset_id_internal): New function.
17179 (syms_of_charset): Defsubr it.
17180
17181 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17182 with the last arg charset_list acquired from coding.
17183 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17184 the attribute coding_attr_ccl_valids.
17185
17186 * coding.h (enum define_coding_ccl_arg_index): Set the first
17187 member coding_arg_ccl_decoder to coding_arg_max.
17188
17189 * ccl.h (ccl_driver): Adjust prototype.
17190
17191 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17192 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17193 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17194 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17195 last arg Qnil.
17196
171972008-02-01 Kenichi Handa <handa@m17n.org>
17198
17199 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17200 call encode_char.
17201
17202 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17203
172042008-02-01 Dave Love <fx@gnu.org>
17205
17206 * composite.c (syms_of_composite): Make composition_hash_table weak.
17207
172082008-02-01 Kenichi Handa <handa@m17n.org>
17209
17210 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17211 (font_name_registry): Don't extern them.
17212 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17213
17214 * fontset.h (Qfontset): Don't extern it.
17215 (new_fontset_from_font_name): Extern it.
17216
17217 * fontset.c: Give 8 extra slots to fontset objects.
17218 (Qfontset_info): New variable.
17219 (syms_of_fontset): Defsym it.
17220 (FONTSET_FALLBACK): New macro.
17221 (fontset_face): Try also the default fontset.
17222 (make_fontset): Realize a fallback fontset from the default fontset.
17223 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17224 using split_font_name_into_vector and build_font_name_from_vector.
17225 (Fset_fontset_font): Access the elements of font_spec by enum
17226 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17227 name by using split_font_name_into_vector.
17228 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17229 generate a proper font name from the fontset name. Update
17230 Vfontset_alias_alist.
17231 (n_auto_fontsets): New variable.
17232 (new_fontset_from_font_name): New function.
17233 (Ffont_info): Store the information about fonts generated from the
17234 default fontset in the first extra slot of the returned char-table.
17235
17236 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17237 (font_name_registry): Delete function.
17238 (split_font_name_into_vector): New function.
17239 (build_font_name_from_vector): New function.
17240 (font_list): The argument REGISTRY is now a list of registry names.
17241 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17242 specifies an explicit font name, return the name as is. Make a
17243 list of registy names.
17244
17245 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17246 of x_new_fontset.
17247 (Fx_create_frame): Don't call x_new_fontset here. Just use
17248 x_list_fonts to check the existence of fonts.
17249
17250 * xterm.h (x_new_fontset): Adjust prototype.
17251
17252 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17253 string. Use new_fontset_from_font_name to create a fontset from a
17254 font name.
17255
172562008-02-01 Kenichi Handa <handa@m17n.org>
17257
17258 * syntax.c (Vfind_word_boundary_function_table): New name for
17259 Vnext_word_boundary_function_table.
17260 (find-word-boundary-function-table): New name for
17261 next-word-boundary-function-table.
17262
172632008-02-01 Dave Love <fx@gnu.org>
17264
17265 * Makefile.in: Fix some dependencies.
17266
17267 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17268 set it to nil before returning.
17269
17270 * composite.c (update_compositions): Fix type error.
17271
17272 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17273
172742008-02-01 Kenichi Handa <handa@m17n.org>
17275
17276 * xterm.c (x_new_font): Optimize for the case that the font is
17277 already set for the frame.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * chartab.c (char_table_ascii): Check if the char table contents
17282 is sub-char-table or not.
17283 (char_table_set, char_table_set_range): Fix argument to
17284 char_table_ascii.
17285
17286 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17287 (detect_coding_utf_8, detect_coding_utf_16)
17288 (detect_coding_emacs_mule, detect_coding_iso_2022)
17289 (detect_coding_sjis, detect_coding_big5)
17290 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17291 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17292 sequence is valid in this coding system. Change callers.
17293 (MAX_ANNOTATION_LENGTH): New macro.
17294 (ADD_ANNOTATION_DATA): New macro.
17295 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17296 ADD_ANNOTATION_DATA. Change the format of annotation data.
17297 (ADD_CHARSET_DATA): New macro.
17298 (emacs_mule_char): New argument ID. Change callers.
17299 (decode_coding_emacs_mule, decode_coding_iso_2022)
17300 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17301 Produce charset annotation data in coding->charbuf.
17302 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17303 to charset annotation data in coding->charbuf.
17304 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17305 coding->common_flags if the coding system is iso-2022 based and
17306 uses designation.
17307 (produce_composition): Adjust for the new annotation data format.
17308 (produce_charset): New function.
17309 (produce_annotation): Handle charset annotation.
17310 (handle_composition_annotation, handle_charset_annotation): New
17311 functions.
17312 (consume_chars): Handle charset annotation. Utilize the above two
17313 functions.
17314 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17315 buffer, get the deleted text as a string and set
17316 coding->src_object to that string.
17317 (detect_coding, detect_coding_system): Use the new struct
17318 coding_detection_info.
17319
17320 * coding.h (struct coding_detection_info): New structure.
17321 (struct coding_system): Adjust prototype of the member `detector'.
17322 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17327
173282008-02-01 Dave Love <fx@gnu.org>
17329
17330 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17331 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17332 to new local and nullify apropos_accumulate before returning.
17333 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17334
173352008-02-01 Kenichi Handa <handa@m17n.org>
17336
17337 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17338 correctly.
e3eea1fc 17339
aac0c6e3
MR
173402008-02-01 Dave Love <fx@gnu.org>
17341
17342 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17343
173442008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 The following changes are to make character composition happen
17347 automatically on displaying.
17348
17349 * Makefile.in (lisp, shortlisp): Add composite.elc.
17350
17351 * composite.h (Qauto_composed, Vauto_composition_function)
17352 (Qauto_composition_function): Extern them.
17353
17354 * composite.c (Vcomposition_function_table)
17355 (Qcomposition_function_table): Delete variables.
17356 (Qauto_composed, Vauto_composition_function)
17357 (Qauto_composition_function): New variables.
17358 (run_composition_function): Don't call
17359 compose-chars-after-function.
17360 (update_compositions): Clear `auto-composed' text property.
17361 (compose_chars_in_text): Delete this function.
17362 (syms_of_composite): Staticpro Qauto_composed and
17363 Qauto_composition_function. Declare Vauto_composition_function as
17364 a Lisp variable.
17365
17366 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17367
17368 * xdisp.c (it_props): Add an entry for Qauto_composed.
17369 (handle_auto_composed_prop): New function.
17370
17371 * xselect.c (selection_data_to_lisp_data): Don't call
17372 compose_chars_in_text.
17373
173742008-02-01 Dave Love <fx@gnu.org>
17375
17376 * keyboard.c (read_char): Modify checking around use of
17377 Vkeyboard_translate_table.
17378
17379 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17380 and fix C types.
17381
173822008-02-01 Kenichi Handa <handa@m17n.org>
17383
17384 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17385 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17386 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17387 the case that the last byte is '\r' correctly.
17388 (decode_coding): Flush out the unprocessed data correctly.
17389 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17390
173912008-02-01 Dave Love <fx@gnu.org>
17392
17393 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17394 Add XK_ISO... case.
17395 (xaw_scroll_callback): Revert last change.
17396
173972008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * xfaces.c (Vface_resizing_fonts): New variable.
17404 (struct font_name): New member `resizing_ratio'.
17405 (font_resizing_ratio): New function.
17406 (split_font_name): Set font->resizing_ratio.
17407 (better_font_p): Pay attention to font->resizing_ratio.
17408 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17409 RESX, and RESY fields.
17410 (try_alternative_families): Try scalable fonts if
17411 Vscalable_fonts_allowed is not Qt.
17412 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17413
174142008-02-01 Dave Love <fx@gnu.org>
17415
17416 * xterm.c (xaw_scroll_callback): Cast correctly.
17417
174182008-02-01 Dave Love <fx@gnu.org>
17419
17420 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17421 (lispy_kana_keys): Comment out.
17422 (make_lispy_event) [XK_kana_A]: Comment out.
17423
17424 * xterm.c (xaw_scroll_callback): Cast call_data.
17425 (XTread_socket): Deal with ASCII keysyms.
17426 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17427
174282008-02-01 Dave Love <fx@gnu.org>
17429
17430 * xterm.c (Vx_keysym_table): New.
17431 (syms_of_xterm): Initialize it.
17432 (XTread_socket): Use it.
17433 From head: Eliminate incorrect optimization that tried to avoid
17434 decoding the output of X*LookupString.
17435 (x_get_font_repertory): Delete charset declaration.
17436
174372008-02-01 Kenichi Handa <handa@m17n.org>
17438
17439 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17440 return 0.
17441 (Fdefine_coding_system_internal): Setup
17442 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17443
174442008-02-01 Dave Love <fx@gnu.org>
17445
17446 * coding.c (Fcheck_coding_system): Doc fix.
17447
17448 * editfns.c (Finsert_byte): Return a proper value.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * coding.c (decode_coding): Fix args to translate_chars. Pay
17453 attention to Vstandard_translation_table_for_decode.
17454 (encode_coding): Fix args to translate_chars. Pay attention to
17455 Vstandard_translation_table_for_encode.
17456
17457 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17458 SINGLE_BYTE_CHAR_P.
17459
17460 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17461 not by SINGLE_BYTE_CHAR_P.
17462
17463 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17464 SINGLE_BYTE_CHAR_P.
17465
17466 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17467 SINGLE_BYTE_CHAR_P.
17468
17469 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17470 by SINGLE_BYTE_CHAR_P.
17471
17472 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17473 SINGLE_BYTE_CHAR_P.
17474
174752008-02-01 Dave Love <fx@gnu.org>
17476
17477 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17478
174792008-02-01 Dave Love <fx@gnu.org>
17480
17481 * fns.c (Flanginfo): Fix typo.
17482
17483 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17484
174852008-02-01 Kenichi Handa <handa@m17n.org>
17486
17487 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17488 (detect_coding_emacs_mule, detect_coding_iso_2022)
17489 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17490 incomplete byte sequence. Don't update *mask when correctly detected.
17491 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17492 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17493 (detect_coding, detect_coding_system): Adjust for the changes above.
17494
174952008-02-01 Kenichi Handa <handa@m17n.org>
17496
17497 * character.c (char_string): Rename from
17498 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17499 (string_char): Rename from string_char.
17500
17501 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17502 if C is greater than MAX_3_BYTE_CHAR.
17503 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17504 string_char instead of string_char_with_unification.
17505
175062008-02-01 Dave Love <fx@gnu.org>
17507
17508 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17509
175102008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * keymap.c (push_key_description): Pay attention to force_multibyte.
17513
17514 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17515
175162008-02-01 Dave Love <fx@gnu.org>
17517
17518 * charset.c (define_charset_internal): Rename `supprementary'.
17519
17520 * Makefile.in (lisp, shortlisp): Remove latin-N.
17521
175222008-02-01 Dave Love <fx@gnu.org>
17523
17524 * xfns.c (x_window, x_window): Use use_xim.
17525
17526 * xterm.c (use_xim): Initialize.
17527 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17528 (x_term_init): Maybe set use_xim.
17529
17530 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * search.c (search_buffer): Fix case-fold-search of multibyte
17535 characters.
17536 (boyer_moore): Rename the last argument to char_high_bits.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * xdisp.c (display_string): Fix for the case of zero width glyph.
17541
17542 * xfns.c (x_set_font): Change the error message of the case that
17543 x_new_fontset returns Qt.
17544
17545 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17546 (Finternal_set_lisp_face_attribute): Use signal_error for the
17547 error of invalid fontset.
17548
17549 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17550 fontset, return Qt.
17551
175522008-02-01 Dave Love <fx@gnu.org>
17553
17554 * unexelf.c (unexec): Make .got handling not SGI-specific.
17555
17556 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17557
17558 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17559
17560 * keyboard.c (read_key_sequence): Fix type error.
17561
17562 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17563 type error.
17564
17565 * fontset.c (fontset_add): Return Lisp_Object.
17566
175672008-02-01 Dave Love <fx@gnu.org>
17568
17569 * charset.h (charset_ordered_list_tick): Declare extern.
17570
175712008-02-01 Kenichi Handa <handa@m17n.org>
17572
17573 The following changes (and some of 2008-02-01 changes of mine) are
17574 for handling syntax, category, and case conversion for unibyte
17575 characters by converting them to multibyte on the fly. With these
17576 changes, we don't have to setup syntax and case tables for unibyte
17577 characters in each language environment.
17578
17579 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17580 multibyte if necessary.
17581
17582 * bytecode.c (Fbyte_code): Likewise.
17583
17584 * character.h (LEADING_CODE_LATIN_1_MIN)
17585 (LEADING_CODE_LATIN_1_MAX): New macros.
17586 (unibyte_to_multibyte_table): Extern it.
17587 (unibyte_char_to_multibyte): New macro.
17588 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17589 (CHAR_LEADING_CODE): New macro.
17590 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17591
17592 * character.c (unibyte_to_multibyte_table): New variable.
17593 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17594 (multibyte_char_to_unibyte): If C is an eight-bit character,
17595 convert it to the corresponding byte value.
17596
17597 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17598 not 1, signals an error. Update the elements of
17599 unibyte_to_multibyte_table.
17600 (init_charset_once): Initialize unibyte_to_multibyte_table.
17601 (syms_of_charset): Define the charset `iso-8859-1'.
17602
17603 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17604 as is without converting it to unibyte. In a unibyte buffer,
17605 convert C to multibyte before checking the syntax.
17606
17607 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17608
17609 * minibuf.c (Fminibuffer_complete_word): Use the macro
17610 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17611
17612 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17613
17614 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17615 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17616 that is zero, convert an eight-bit char to multibyte.
17617 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17618 non-emacs case.
17619 (PATFETCH): Convert an eight-bit char to multibyte.
17620 (HANDLE_UNIBYTE_RANGE): New macro.
17621 (regex_compile): Setup the compiled pattern for multibyte chars
17622 even if the given regex string is unibyte. Use PATFETCH_RAW
17623 instead of PATFETCH in many places. To handle `charset'
17624 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17625 only for ASCII chars.
17626 (analyse_first) <exactn>: Simplify because the compiled pattern
17627 is multibyte.
17628 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17629 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17630 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17631 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17632 multibyte always 1.
17633 (re_search_2): In emacs, set the locale variable multibyte to 1,
17634 otherwise to 0. New local variable target_multibyte. Check it
17635 to decide the multibyteness of STR1 and STR2. If
17636 target_multibyte is zero, convert unibyte chars to multibyte
17637 before translating and checking fastmap.
17638 (TARGET_CHAR_AND_LENGTH): New macro.
17639 (re_match_2_internal): In emacs, set the locale variable multibyte
17640 to 1, otherwise to 0. New local variable target_multibyte. Check
17641 it to decide the multibyteness of STR1 and STR2. Use
17642 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17643 <charset, charset_not>: If multibyte is nonzero, check fastmap
17644 only for ASCII chars. Call bcmp_translate with
17645 target_multibyte, not with multibyte.
17646 <begline>: Declare the local variable C as `unsigned'.
17647 (bcmp_translate): Change the last arg name to target_multibyte.
17648
17649 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17650 the regexp pattern and the matching target. Set cp->buf.multibyte
17651 to the multibyteness of the regexp pattern. Set
17652 cp->but.target_multibyte to the multibyteness of the matching target.
17653 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17654 FETCH_STRING_CHAR_ADVANCE.
17655 (Freplace_match): Convert unibyte chars to multibyte.
17656
17657 * syntax.c (char_quoted, back_comment, scan_words)
17658 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17659 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17660 unibyte chars to multibyte.
17661 (skip_chars): Delete the arg syntaxp, and move the code for
17662 handling syntaxes to skip_syntaxes. Change callers.
17663 Fix the case that the multibyteness of STRING and the current
17664 buffer doesn't match.
17665 (skip_syntaxes): New function.
17666 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17667 SINGLE_BYTE_CHAR_P.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * xfaces.c (QCfontset): New variable.
17672 (LFACE_FONTSET): New macro.
17673 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17674 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17675 (Finternal_set_lisp_face_attribute)
17676 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17677 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17678 check also LFACE_FONTSET_INDEX.
17679 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17680 attrs[LFACE_FONT_INDEX].
17681 (syms_of_xfaces): Intern and staticpro QCfontset.
17682
17683 * dispextern.h (enum lface_attribute_index): New member
17684 LFACE_FONTSET_INDEX.
17685
17686 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17687
176882008-02-01 Kenichi Handa <handa@m17n.org>
17689
17690 * coding.c (coding_set_destination): Fix coding->destination for
17691 the case converting a region.
17692 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17693 (encode_coding_object): Fix coding->dst_pos and
17694 coding->dst_pos_byte for the case converting a region.
17695
17696 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17697
17698 * character.h (BYTE8_STRING): New macro.
17699
17700 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17705 characters by octal form.
17706
17707 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17708
17709 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17710 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17711 _fetch_multibyte_char_len.
17712 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17713
17714 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17715
17716 * casefiddle.c (casify_object): Simplify. Handle the case that
17717 the case conversion change the byte length.
17718 (casify_region): Likewise.
17719
17720 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17721
17722 * character.c (_fetch_multibyte_char_len): Delete this variable.
17723 (syms_of_character): Setup Vprintable_chars.
17724
17725 * editfns.c (Fchar_equal): Fix for the unibyte case.
17726 (Finsert_byte): New function.
17727 (syms_of_editfns): Defsubr it.
17728
17729 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17730 of direct code 0x3ffff.
17731
17732 * search.c (Freplace_match): Fix for the unibyte case.
17733
177342008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * lread.c (safe_to_load_p): Fix the logic.
17737
17738 * syntax.c (scan_words): Don't treat characters belonging to
17739 different scripts as constituting a word.
17740
17741 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17742
17743 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17744
17745 * emacs.c (main): In the case of --unibyte, instead of aborting on
17746 finding non-empty buffer, make it unibyte.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17751 to create a fontset.
17752
177532008-02-01 Dave Love <fx@gnu.org>
17754
17755 * character.c (Funibyte_char_to_multibyte): Doc fix.
17756
17757 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17758
177592008-02-01 Kenichi Handa <handa@m17n.org>
17760
17761 * fontset.c (fontset_add): Make the type `int'.
17762 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17763
17764 * character.c (unibyte_char_to_multibyte)
17765 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17766 charset_unibyte, not charset_primary.
17767
17768 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17769
17770 * charset.c (charset_unibyte): Rename from charset_primary.
17771 (Funibyte_charset): Rename from Fprimary_charset.
17772 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17773 (syms_of_charset): Adjust for the above changes.
17774
17775 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17776 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17777 it->multibyte_p is zero.
17778
17779 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17780 Delete extern.
17781
177822008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * coding.c (Fdefine_coding_system_internal): Fix category setting
17785 for a coding system of type iso-2022.
17786
177872008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17790
177912008-02-01 Kenichi Handa <handa@m17n.org>
17792
17793 * syntax.c (Vnext_word_boundary_function_table): New variable.
17794 (next-word-boundary-function-table): Declare it as a Lisp variable
17795 in syms_of_syntax.
17796 (scan_words): Call functions in Vnext_word_boundary_function_table
17797 if any.
17798
17799 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17800
17801 * fontset.c (fs_load_font): If fontp->charset is not negative,
17802 return fontp without setting its members.
17803
178042008-02-01 Dave Love <fx@gnu.org>
17805
17806 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17807
17808 * m/sparc.h (HAVE_ALLOCA): Delete.
17809
17810 * s/irix6-5.h: Don't include strings.h.
17811 (bcopy, bzero, bcmp): Don't undef.
17812
17813 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17814
17815 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17816 (TIOCSIGSEND): Don't test IRIX6.
17817 (bcopy, bzero, bcmp): Define conditionally.
17818
178192008-02-01 Kenichi Handa <handa@m17n.org>
17820
17821 * buffer.c (Qas, Qmake, Qto): New variables.
17822 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17823 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17824
17825 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17826 we are inserting a process output into a multibyte buffer.
17827
17828 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17829 multibyte_char_to_unibyte.
17830
17831 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17832 by the primary charset, make it eight-bit char.
17833 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17834
17835 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17836 (charset_8_bit__control, charset_8_bit_graphic)
17837 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17838 (define_charset_internal): New function.
17839 (syms_of_charset): Call define_charset_internal for pre-defined
17840 charsets.
17841
17842 * charset.h (charset_8_bit): Extern it.
17843
17844 * coding.c (make_conversion_work_buffer): Adjust for the change
17845 of Fset_buffer_multibyte.
17846 (encode_coding_raw_text): Increment p0 in the loop.
17847
17848 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17849
17850 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17851 for the change of Fset_buffer_multibyte.
17852
17853 * fns.c (Fstring_to_multibyte): New function.
17854 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17855
178562008-02-01 Dave Love <fx@gnu.org>
17857
17858 * xfns.c (x_put_x_image): Declare args.
17859
17860 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17861 (try_font_list): Declare an arg.
17862
17863 * xdisp.c (message2_nolog, set_message): Declare an arg.
17864
17865 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17866
17867 * syntax.c (scan_sexps_forward): Declare an arg.
17868
17869 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17870 Declare an arg.
17871
17872 * lisp.h (Fnew_fontset): Declare.
17873
17874 * keymap.c (push_key_description): Call CHARACTERP correctly.
17875
17876 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17877 (face_for_char): Delete unused vars.
17878 (Fset_fontset_font): Doc fix. Delete unused vars.
17879
17880 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17881
17882 * composite.c (update_compositions): Declare arg.
17883
17884 * cm.c (calccost, cmgoto): Declare args.
17885
17886 * charset.c: Remove `emacs' conditional. Doc fixes.
17887 (map_char_table_for_charset): Declare.
17888
17889 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17890
17891 * ccl.c: Remove `emacs' conditional.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 The following changes are to allow specifying multiple font
17896 patterns for a character range (specified by script or charset).
17897
17898 * Makefile.in (abbrev.o): Depend on syntax.h.
17899 (xfaces.o): Depend on charset.h.
17900
17901 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17902 SINGLE_BYTE_CHAR_P.
17903
17904 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17905
17906 * character.h (Vchar_script_table): Extern it.
17907
17908 * character.c (Vscript_alist): Delete.
17909 (Vchar_script_table, Qchar_script_table): New variable.
17910 (syms_of_character): Declare Vchar_script_table as a lisp variable
17911 and initialize it.
17912
17913 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17914 have property char-table-extra-slots, make no extra slot.
17915
17916 * dispextern.h (struct face): Delete member `charset'.
17917 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17918 SINGLE_BYTE_CHAR_P.
17919 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17920 Add prototypes.
17921 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17922 (generate_ascii_font_name): Rename from generate_ascii_font.
17923
17924 * fontset.h (get_font_repertory_func): New prototype.
17925 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17926 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17927
17928 * fontset.c (Qprepend, Qappend): New variables.
17929 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17930 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17931 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17932 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17933 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17934 (load_font_get_repertory): New functions.
17935 (fontset_set): Delete.
17936 (fontset_face): New arg FACE. Return face ID, not face.
17937 Complete re-write to handle new fontset structure. Change caller.
17938 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17939 (face_for_char): Don't call lookup_face.
17940 (make_fontset_for_ascii_face): New arg FACE.
17941 (fs_load_font): New arg CHARSET_ID. Don't check
17942 Vfont_encoding_alist here.
17943 (find_font_encoding): New function.
17944 (list_fontsets): Use STRINGP, not ! NILP.
17945 (accumulate_script_ranges): New function.
17946 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17947 re-written to handle new fontset structure.
17948 (Ffontset_font): Return a copy of element.
17949 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17950 docstring of font-encoding-alist.
17951
17952 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17953 (Fset_fotset_font): Fix arguments to 5.
17954
17955 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17956
17957 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17958 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17959 (highlight_trailing_whitespace): Adjust for the change of
17960 lookup_named_face.
17961
17962 * xfaces.c: Include charset.h.
17963 (load_face_font): Delete argument C. Change caller.
17964 (generate_ascii_font_name): Rename from generate_ascii_font.
17965 (font_name_registry): New function.
17966 (cache_face): Store ascii faces before non-ascii faces in buckets.
17967 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17968 Lookup only ascii faces.
17969 (lookup_non_ascii_face): New function.
17970 (lookup_named_face): Delete argument C. Change caller.
17971 (lookup_derived_face): Delete argument C. Change caller.
17972 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17973 a string, just call font_list with it.
17974 (choose_face_font): Delete arguments FACE and C. New arg
17975 FONT_SPEC. Change caller.
17976 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17977 Change caller.
17978 (realize_non_ascii_face): New function.
17979 (realize_x_face): Call load_face_font here.
17980 (realize_tty_face): Delete argument C. Change caller.
17981 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17982 get a face ID.
17983 (dump_realized_face): Don't print charset of FACE.
17984
17985 * xfns.c (x_set_font): Always call x_new_fontset and
17986 store_frame_parameter.
17987 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17988 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17989
17990 * xterm.h (x_get_font_repertory): Extern it.
17991
17992 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17993 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17994 it->multibyte_p is zero.
17995 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17996 (x_new_fontset): If FONTSETNAME doesn't match any existing
17997 fontsets, create a new one.
17998 (x_get_font_repertory): New function.
17999
180002008-02-01 Kenichi Handa <handa@m17n.org>
18001
18002 * coding.c (Ffind_coding_systems_region_internal): Detect an
18003 ASCII only string correctly.
18004
18005 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18006 version is 0.
18007
180082008-02-01 Kenichi Handa <handa@m17n.org>
18009
18010 * lread.c: Include "coding.h".
18011 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18012 (load_each_byte, unread_char): New variables.
18013 (readchar_backlog): Delete.
18014 (readchar): Return a character unless load_each_byte is nonzero.
18015 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18016 cons. If unread_char is not -1, simply return it.
18017 (unreadchar): Handle the case that readcharfun is
18018 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18019 (read_multibyte): Delete.
18020 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18021 (read_emacs_mule_char): New functions.
18022 (Fload): Even if the file doesn't have the extension ".elc", if
18023 safe_to_load_p returns a positive version number, assume that the
18024 file contains bytecompiled code. If the version is less than 22,
18025 load the file while decoding multibyte sequences by emacs-mule.
18026 (readevalloop): Don't use readchar_backlog.
18027 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18028 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18029 (read_escape): Delete the arg BYTEREP.
18030 (read1): Set load_each_byte to 1 temporarily while handling
18031 #@NUMBER. Don't call read_multibyte.
18032 (read_vector): Call Fread with a cons. If readcharfun is
18033 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18034 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18035 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18036 and Qload_force_doc_strings.
18037
180382008-02-01 Kenichi Handa <handa@m17n.org>
18039
18040 * xdisp.c (face_before_or_after_it_pos): Call
18041 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * character.h (TRAILING_CODE_P): New macro.
18046 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18047 (string_char_with_unification): Fix prototype.
18048 (Vscript_alist): Extern it.
18049
18050 * character.c (Vscript_alist): New variable.
18051 (string_char_with_unification, str_as_unibyte)
18052 (string_escape_byte8): Add `const' to local variables.
18053 (syms_of_character): Declare script-alist as a Lisp variable.
18054
18055 * charset.h (Vcharset_ordered_list): Extern it.
18056 (charset_ordered_list_tick): Extern it.
18057 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18058 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18059 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18060 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18061 (Funify_charset): Adjust for the change of Funify_charset.
18062
18063 * charset.c (charset_ordered_list_tick): New variable.
18064 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18065 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18066 deunify intead of unify a charset.
18067 (string_xstring_p): Add `const' to local variables.
18068 (find_charsets_in_text): Add `const' to arguments and local variables.
18069 (encode_char): Adjust for the change of Funify_charset. Fix
18070 detecting of invalid code.
18071 (Fset_charset_priority): Increment charset_ordered_list_tick.
18072 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18073 and TO_CODE.
18074
18075 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18076 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18077 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18078 (decode_coding_ccl, consume_chars)
18079 (Ffind_coding_systems_region_internal)
18080 (Fcheck_coding_systems_region): Add `const' to local variables.
18081
18082 * print.c (print_object): Use octal form for printing the
18083 contents of a bool vector.
18084
180852008-02-01 Dave Love <fx@gnu.org>
18086
18087 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18088 <version == 20>: Refuse to load.
18089
180902008-02-01 Dave Love <fx@gnu.org>
18091
18092 * fns.c: Move coding.h.
18093 (Qcodeset, Qdays, Qmonths): New.
18094 (concat): Use CHARACTERP instead of INTEGERP.
18095 (Flocale_codeset): Delete.
18096 (Flanginfo): New function.
18097 (syms_of_fns): Change accordingly.
18098
18099 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18100
181012008-02-01 Dave Love <fx@gnu.org>
18102
18103 * casetab.c (init_casetab_once, init_casetab_once): Fix
18104 CHAR_TABLE_SET call.
18105
18106 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18107
18108 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18109
18110 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18111 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18112 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18113
18114 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18115
18116 * coding.c (ENCODE_DESIGNATION, decode_eol)
18117 (make_conversion_work_buffer, code_conversion_restore)
18118 (Fdefine_coding_system_internal): Convert Lisp types.
18119 (code_conversion_restore): Use EQ, not ==.
18120 (Fencode_coding_string): Fix code_convert_string call.
18121
18122 * coding.h (code_convert_region): Fix prototype.
18123
18124 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18125
18126 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18127 (Ffontset_info): Convert Lisp types.
18128
18129 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18130
18131 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18132
18133 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18134
18135 * chartab.c: Include "...h", not <...h> in some cases.
18136
18137 * callproc.c (Fcall_process): Remove unused variables.
18138
181392008-02-01 Dave Love <fx@gnu.org>
18140
18141 * coding.c (Fset_coding_system_priority): Allow null arg list.
18142
181432008-02-01 Dave Love <fx@gnu.org>
18144
18145 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18146 (Fself_insert_and_exit): Use CHARACTERP.
18147
18148 * callproc.c (Fcall_process): Remove unused vars.
18149
18150 * xterm.c (XTread_socket): Add extra dead keysyms.
18151
18152 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18153
18154 * dispextern.h: Remove prototypes for redraw_frame,
18155 redraw_garbaged_frames.
18156
18157 * cmds.c (Fself_insert_command): Use CHARACTERP.
18158
18159 * chartab.c (make_sub_char_table): Remove unused var.
18160 (Fset_char_table_default, Fmap_char_table): Doc fix.
18161
18162 * keymap.c (access_keymap): Remove generic char code.
18163 (push_key_description): Use CHARACTERP.
18164
181652008-02-01 Dave Love <fx@gnu.org>
18166
18167 * charset.c: Doc fixes.
18168 (Funify_charset): Extra checking.
18169
181702008-02-01 Dave Love <fx@gnu.org>
18171
18172 * lread.c: Remove some unused variables.
18173 (safe_to_load_p): If safe, return the magic number version byte.
18174 (Fload): Maybe use load-with-code-conversion.
18175
181762008-02-01 Kenichi Handa <handa@m17n.org>
18177
18178 * category.c (Fmodify_category_entry): Don't modify the contents
18179 of category_set for characters out of the range. Avoid
18180 unnecessary modification.
18181
18182 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18183 Vchar_unify_table. The default value of the table is now nil.
18184
18185 * character.c (syms_of_character): Setup Vchar_width_table for
18186 eight-bit-control and raw-byte chars.
18187
18188 * charset.h (enum define_charset_arg_index): Delete
18189 charset_arg_parents and add charset_arg_subset and
18190 charset_arg_superset.
18191 (enum charset_attr_index): Delete charset_parents and add
18192 charset_subset and charset_superset.
18193 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18194 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18195 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18196 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18197 (CHARSET_SUPERSET): New macros.
18198 (charset_work): Extern it.
18199 (ENCODE_CHAR): Use charset_work.
18200 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18201 (map_charset_chars): Extern it.
18202
18203 * charset.c (load_charset_map): Set the default value of encoder
18204 and deunifier char-tables to nil.
18205 (map_charset_chars): Change argument. Change callers. Use
18206 map_char_table_for_charset instead of map_char_table.
18207 (Fmap_charset_chars): New optional args from_code and to_code.
18208 (Fdefine_charset_internal): Adjust for the change of
18209 `define-charset' (:parents -> :subset or :superset).
18210 (charset_work): New variable.
18211 (encode_char, syms_of_charset): Adjust for the change of
18212 Fdefine_charset_internal.
18213 (Ffind_charset_string): Setup the vector `charsets' correctly.
18214
18215 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18216 the previous change.
18217 (char_table_ref_and_range): Adjust for the above change.
18218 (map_sub_char_table_for_charset): New function.
18219 (map_char_table_for_charset): New function.
18220
18221 * keymap.c (describe_vector): Handle a char-table directly here.
18222 (describe_char_table): Delete.
18223
18224 * lisp.h (map_charset_chars): Delete.
18225
182262008-02-01 Dave Love <fx@gnu.org>
18227
18228 * fns.c (count_combining): Comment out (unused).
18229 (Flocale_codeset): New.
18230 (syms_of_fns): Defsubr it.
18231
18232 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18233 (size_t): Remove.
18234
182352008-02-01 Dave Love <fx@gnu.org>
18236
18237 * Makefile.in (chartab.o): Depend on charset.h.
18238
182392008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * character.c (syms_of_character): Set the default value of
18242 Vprintable_chars to Qnil.
18243
182442008-02-01 Dave Love <fx@gnu.org>
18245
18246 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18247
182482008-02-01 Kenichi Handa <handa@m17n.org>
18249
18250 * charset.c (load_charset_map): Handle the case that from < to
18251 correctly.
18252
18253 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18254 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18255 Pay attention to raw-8-bit chars.
18256
182572008-02-01 Kenichi Handa <handa@m17n.org>
18258
18259 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18260 It is not bytecompiled now.
18261
18262 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18263 (charset_jisx0208): New variables.
18264 (Fdefine_charset_internal): Setup them if appropriate.
18265 (init_charset_once): Initialize them to -1.
18266
18267 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18268 (charset_jisx0208): Extern them.
18269
18270 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18271 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18272 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18273 (setup_iso_safe_charsets): Fix arguments to Fassq.
18274 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18275 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18276 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18277 (encode_coding_iso_2022): Change the 1st arg to
18278 ENCODE_ISO_CHARACTER to a variable.
18279
182802008-02-01 Kenichi Handa <handa@m17n.org>
18281
18282 * charset.h (enum define_charset_arg_index): New enums
18283 charset_arg_min_code and charset_arg_max_code.
18284 (struct charset): New member char_index_offset.
18285
18286 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18287 Take charset->char_index_offset into account.
18288 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18289 args[charset_arg_max_code]. Setup charset.char_index_offset.
18290 (syms_of_charset): Fix args to Fdefine_charset_internal.
18291
182922008-02-01 Dave Love <fx@gnu.org>
18293
18294 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18295
182962008-02-01 Dave Love <fx@gnu.org>
18297
18298 * coding.c: Doc fixes.
18299 (Fcoding_system_aliases): Fix return value.
18300 (Qmac): Remove (duplicated) definition.
18301
183022008-02-01 Dave Love <fx@gnu.org>
18303
362654a6
JB
18304 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18305 New functions.
aac0c6e3
MR
18306
18307 * character.c (Fstring): Doc fix.
18308
18309 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18310
362654a6 18311 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18312 (font-encoding-alist): Doc fix.
18313
183142008-02-01 Dave Love <fx@gnu.org>
18315
18316 * term.c (costs_set): Declare static, non-initialized for pcc.
18317 (encode_terminal_code): Remove unused var.
18318
18319 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18320 for K&R.
18321
18322 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18323
18324 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18325 (suffixes): Move out of make_subsidiaries for K&R.
18326
18327 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18328
18329 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18330
183312008-02-01 Dave Love <fx@gnu.org>
18332
18333 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18334
18335 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18336
183372008-02-01 Yong Lu <lyongu@asia-infonet.com>
18338
18339 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18340
18341 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18342
183432008-02-01 Kenichi Handa <handa@m17n.org>
18344
18345 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18346 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18347
183482008-02-01 Kenichi Handa <handa@m17n.org>
18349
18350 * coding.c (decode_coding_charset): Adjust for the change of
18351 Fdefine_coding_system_internal.
18352 (Fdefine_coding_system_internal): For a coding system of
18353 `charset' type, store a list of charset IDs in
18354 `charset_attr_charset_valids' element of coding attributes.
18355
183562008-02-01 Kenichi Handa <handa@m17n.org>
18357
18358 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18359 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18360 caller. Handle 2-byte and 3-byte charsets correctly.
18361 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18362 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18363 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18364 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18365 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18366 sequence.
18367 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18368 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18369 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18370 and alt&rule composition.
18371 (decode_coding_iso_2022): Handle composition correctly.
18372 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18373
18374 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18375 re-defining a charset. If the charset has :emacs-mule-id, setup
18376 emacs_mule_bytes.
18377 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18378
183792008-02-01 Kenichi Handa <handa@m17n.org>
18380
18381 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18382 (encode_coding_big5, encode_coding_charset): If coding requires safe
18383 encoding, produce a character specified by
18384 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18385
183862008-02-01 Dave Love <fx@gnu.org>
18387
18388 * xterm.c (XSetIMValues): Declare.
18389
18390 * process.c: Conditionally include sys/wait.h, pty.h.
18391
18392 * print.c (print_object): Fix print format for 64-bit systems.
18393
18394 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18395
18396 * buffer.c (emacs_strerror): Declare.
18397
18398 * fontset.c (Fclear_face_cache): Declare.
18399 (accumulate_font_info): Comment-out (unused).
18400 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18401 variables.
18402
18403 * character.h (string_escape_byte8): Declare.
18404
18405 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18406 unused vars.
18407 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18408 (Fmap_charset_chars): Doc fix.
18409
18410 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18411 (Fset_coding_system_priority, Fset_coding_system_priority)
18412 (Fdefine_coding_system_internal): Doc fix.
18413
184142008-02-01 Dave Love <fx@gnu.org>
18415
18416 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18417
184182008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * character.c (string_escape_byte8): Make multibyte string with
18421 correct size.
18422
18423 * charset.c (Fmake_char): Delete unnecessary code.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * xfns.c (x_encode_text): Allocate coding.destination here, and
18428 call encode_coding_object with dst_object Qnil.
18429
18430 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18431 multibyte form correctly.
18432
18433 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18434 against Vfont_encoding_alist.
18435
18436 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18437 handling of charset list.
18438 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18439 (decode_coding_object): Move point to coding->dst_pos before
18440 calling post-read-conversion function.
18441 (encode_coding_object): Give correct arguments to
18442 pre-write-conversion. Ignore the return value of
18443 pre-write-conversion function. Pay attention to the case that
18444 pre-write-conversion changes the current buffer. If dst_object is
18445 Qt, even if coding->src_bytes is zero, allocate at least one byte
18446 to coding->destination.
18447
18448 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18449
18450 * charset.c (Fmake_char): Make it more backward compatible.
18451 (Fmap_charset_chars): Fix docstring.
18452
184532008-02-01 Dave Love <fx@gnu.org>
18454
18455 * coding.c: Doc fixes.
18456 (Fdefine_coding_system_alias): Use names, not symbols, in
18457 coding-system-alist.
18458
184592008-02-01 Kenichi Handa <handa@m17n.org>
18460
18461 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18462 of calling free_realized_face.
18463
184642008-02-01 Yong Lu <lyongu@asia-infonet.com>
18465
18466 * charset.c (read_hex): Don't treat SPC as a comment starter.
18467 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18468 (Fdecode_char): Fix typo.
18469
184702008-02-01 Kenichi Handa <handa@m17n.org>
18471
18472 * charset.h (struct charset): New member `code_space_mask'.
18473
18474 * coding.c (coding_set_source): Delete the local variable beg_byte.
18475 (encode_coding_charset, Fdefine_coding_system_internal):
18476 Delete the local variable charset.
18477 (Fdefine_coding_system_internal): Setup
18478 attrs[coding_attr_charset_valids] correctly.
18479
18480 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18481 member to check if CODE is valid or not.
18482 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18483 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18484 is within the range of charset->min_code and carset->max_code.
18485
184862008-02-01 Dave Love <fx@gnu.org>
18487
18488 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18489
18490 * dispextern.h (generate_ascii_font): Fix return type.
18491
18492 * xfaces.c (generate_ascii_font): Fix arg declaration.
18493
18494 * coding.c (coding_inherit_eol_type)
18495 (Fset_terminal_coding_system_internal)
18496 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18497
184982008-02-01 Kenichi Handa <handa@m17n.org>
18499
18500 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18501 multiple charsets correctly.
18502
185032008-02-01 Kenichi Handa <handa@m17n.org>
18504
18505 * search.c (boyer_moore): Fix handling of multibyte character
18506 translation.
18507
18508 * xdisp.c (display_mode_element): When the variable `elt' is
18509 changed, update `this' and `lisp_string'.
18510
185112008-02-01 Kenichi Handa <handa@m17n.org>
18512
18513 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18514
18515 * callproc.c (Fcall_process): Be sure to give the current buffer
18516 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18517
18518 * charset.c (struct charset_map_entries): New struct.
18519 (load_charset_map): Rename from parse_charset_map. New args
18520 entries and n_entries. Change caller.
18521 (load_charset_map_from_file): Rename from load_charset_map.
18522 Change caller. New arg control_flag. Call load_charset_map at
18523 the tail.
18524 (load_charset_map_from_vector): New function.
18525 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18526 (encode_char): If the charset is compact, change a character index
18527 to a code point.
18528
18529 * coding.c (coding_alloc_by_making_gap): Check the case that the
18530 source and destination are the same correctly.
18531 (decode_coding_raw_text): Set coding->consumed_char and
18532 coding->consumed to 0.
18533 (produce_chars): If coding->chars_at_source is nonzero, update
18534 coding->consumed_char and coding->consumed before calling
18535 alloc_destination.
18536 (Fdefine_coding_system_alias): Register ALIAS in
18537 Vcoding_system_alist.
18538 (syms_of_coding): Define `no-conversion' coding system at the tail.
18539
18540 * fileio.c (Finsert_file_contents): Set coding_system instead of
18541 val. If the current buffer is multibyte, always call
18542 decode_coding_gap.
18543
18544 * xfaces.c (try_font_list): Give higher priority to fontset's
18545 family than face's family.
18546
185472008-02-01 Kenichi Handa <handa@m17n.org>
18548
18549 * callproc.c (Fcall_process): Be sure to give the current buffer
18550 to decode_coding_c_string.
18551
18552 * xfaces.c (try_font_list): Give a family specified in a fontset
18553 higher priority than a family specified in a face.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18558 Fix arguments to insert_from_buffer.
18559
18560 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18561
185622008-02-01 Kenichi Handa <handa@m17n.org>
18563
18564 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18565 (decode_coding_gap): Set coding->dst_multibyte correctly.
18566
185672008-02-01 Kenichi Handa <handa@m17n.org>
18568
18569 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18570 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18571 (encode_coding_utf_16): Substitute coding->default_char for
18572 non-Unicode characters.
18573 (decode_coding): Don't call record_insert here.
18574 (setup_coding_system): Initialize `surrogate' of
18575 coding->spec.utf_16 to 0.
18576 (EMIT_ONE_BYTE): Fix for multibyte case.
18577
18578 * insdel.c (insert_from_gap): Call record_insert.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * casefiddle.c (casify_region): Fix multibyte case.
18583
18584 * character.c (c_string_width): Add return type `int'.
18585 (char_string_with_unification): Delete arg ADVANCED.
18586
18587 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18588 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18589 (CHAR_STRING_ADVANCE): Make it do-while statement.
18590
18591 * chartab.c (sub_char_table_set_range): Optimize for the case
18592 DEPTH == 3. Add workaround code for a GCC optimization bug.
18593
18594 * charset.c (parse_charset_map): Remove an unused variable.
18595
18596 * coding.c: Delete unused variables.
18597
18598 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18599 earlier. If inserted is zero and the coding system doesn't
18600 require flushing, don't call decode_coding_gap.
18601
18602 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18603
186042008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 The following changes are for using Unicode as an internal
18607 character model, and use UTF-8 format for buffer/string
18608 representation.
18609
18610 * .gdbinit (xchartable): Adjust for the change of char table structure.
18611 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18612
18613 * Makefile.in (obj): Add character.o and chartab.o.
18614 (lisp, shortlisp): Remove utf-8.elc.
18615 (*.o): For many files, change dependency on charset.h to
18616 character.h, and add dependency on character.h.
18617 (character.o, chartab.o): New targets.
18618
18619 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18620 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18621 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18622 of "charset.h".
18623
18624 * dired.c, filelock.c: Include "character.h".
18625
18626 * alloc.c: Include "character.h" instead of "charset.h".
18627 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18628 (syms_of_alloc): Remove defsubr for Smake_char_table.
18629
18630 * buffer.c: Include "character.h" instead of "charset.h", don't
18631 include "coding.h".
18632 (Fset_buffer_multibyte): Adjust for UTF-8.
18633
18634 * buffer.h: EXFUN Fbuffer_live_p.
18635
18636 * callproc.c: Include "character.h" instead of "charset.h".
18637 (Fcall_process): Big change for the new code-conversion APIs.
18638
18639 * casetab.c: Include "character.h" instead of "charset.h".
18640 (set_canon, set_identity, shuffle): Adjust for the new
18641 map_char_table spec.
18642 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18643 accessing the char table structure.
18644
18645 * chartab.c: New file that implements char table.
18646
18647 * category.c: Include "character.h".
18648 (copy_category_entry): New function.
18649 (copy_category_table): Call map_char_table and copy_category_entry.
18650 (Fmake_category_table): Initialize all top-level slots.
18651 (char_category_set): New function.
18652 (modify_lower_category_set): Delete.
18653 (Fmodify_category_entry): Call char_table_ref_and_range.
18654
18655 * category.h (CATEGORY_SET): Just call char_category_set.
18656
18657 * ccl.c: Include "character.h".
18658 (Qccl, Qcclp): New variables.
18659 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18660 it's less than 256.
18661 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18662 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18663 and DST type.
18664 (ccl_driver): Change types of argument, adjust code accordingly.
18665 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18666 ccl_driver.
18667 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18668
18669 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18670 New members src_multibyte, dst_multibyte, consumed, and produced.
18671 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18672 (CODING_SPEC_CCL_PROGRAM): New macro.
18673 (ccl_driver): Update prototype.
18674 (Qccl, Qcclp, Fccl_program_p): Extern them.
18675 (CHECK_CCL_PROGRAM): New macro.
18676
18677 * character.c, character.h, chartab.c: New files.
18678
18679 * charset.c: Mostly re-written. Move character and multibyte sequence
18680 handling codes to character.c.
18681
18682 * charset.h: Mostly re-written. Move character and multibyte sequence
18683 handling codes to character.h.
18684
18685 * coding.c, coding.h: Mostly re-written.
18686
18687 * composite.c: Include "character.h" instead of "charset.h".
18688 (CHAR_WIDTH): Move to character.h.
18689 (HASH_KEY, HASH_VALUE): Delete.
18690
18691 * composite.h (enum composition_method): Change order of enumeration
18692 symbols.
18693
18694 * data.c: Include "character.h" instead of "charset.h".
18695 (Faref): Call CHAR_TABLE_REF for a char table.
18696 (Faset): Call CHAR_TABLE_SET for a char table.
18697
18698 * dispextern.h (free_realized_face, check_face_attribytes)
18699 (generate_ascii_font): Extern them.
18700 (free_realized_multibyte_face): Delete extern.
18701
18702 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18703 table structure.
18704
18705 * editfns.c: Include "character.h" instead of "charset.h".
18706 (Fchar_to_string): Always call CHAR_STRING.
18707
18708 * emacs.c (main): Call init_charset_once, init_charset,
18709 syms_of_chartab, and syms_of_character.
18710
18711 * fileio.c: Include "character.h" instead of "charset.h".
18712 (Finsert_file_contents): Big change for the new code-conversion API.
18713 (choose_write_coding_system, Fwrite_region): Likewise.
18714 (build_annotations_2): Delete.
18715 (e_write): Big change for the new code-conversion API.
18716
18717 * fns.c: Include "character.h" instead of "charset.h".
18718 (copy_sub_char_table): Move to chartab.c.
18719 (Fcopy_sequence): Call copy_char_table for a char table.
18720 (concat): Delete codes calling count_multibyte.
18721 (string_char_to_byte, string_byte_to_char): Adjust for the new
18722 multibyte form.
18723 (internal_equal): Adjust for the change of char table structure.
18724 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18725 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18726 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18727 (char_table_translate, optimize_sub_char_table)
18728 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18729 chartab.c.
18730 (char_table_ref_and_index): Delete.
18731 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18732 (Fmd5): Call preferred_coding_system instead of accessing
18733 Vcoding_category_list. Adjust for the new code-conversion API.
18734 (syms_of_fns): Move defsubr for char table related functions to
18735 chartab.c.
18736
18737 * fontset.c: Mostly re-written.
18738
18739 * fontset.h (struct font_info): Change type of the member encoding_type.
18740 (enum FONT_SPEC_INDEX): New enum.
18741 (fontset_font_pattern, fs_load_font): Update prototype.
18742 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18743
18744 * indent.c: Include "character.h" instead of "charset.h".
18745 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18746
18747 * insdel.c: Include "character.h" instead of "charset.h".
18748 (copy_text): Don't refer to Vnonascii_translation_table.
18749 (insert_from_gap): New function.
18750
18751 * keyboard.c: Include "character.h" instead of "charset.h".
18752 (command_loop_1): Never call direct_output_forward_char before
18753 a non-ASCII character.
18754 (read_char): If Vkeyboard_translate_table is a char table, always
18755 translate a character.
18756
18757 * keymap.c: Include "character.h".
18758 (store_in_keymap): Handle the case that IDX is a cons.
18759 (Fdefine_key): Handle the case that KEY is a cons and the car part
18760 is also a cons (range).
18761 (push_key_description): Adjust for the new character code.
18762 (describe_vector): Call describe_char_table for a char table.
18763 (describe_char_table): New function.
18764
18765 * keymap.h (describe_char_table): Extern it.
18766
18767 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18768 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18769 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18770 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18771 Delete.
18772 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18773 structure.
18774 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18775 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18776 (CHARTAB_SIZE_BITS_3): New macros.
18777 (chartab_size): Extern it.
18778 (struct Lisp_Char_Table): Re-design.
18779 (struct Lisp_Sub_Char_Table): New structure.
18780 (HASH_KEY, HASH_VALUE): Move from fns.c.
18781 (CHARACTERBITS): Define as 22.
18782 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18783 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18784 (GC_SUB_CHAR_TABLE_P): New macro.
18785 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18786 (code_convert_string_norecord): Deleted extern.
18787 (init_character_once, syms_of_character, init_charset)
18788 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18789
18790 * lread.c: Include "character.h".
18791 (read_multibyte): New arg NBYTES.
18792 (read_escape): Change the meaning of returned *BYTEREP.
18793 (to_multibyte): Delete.
18794 (read1): Adjust the handling of char table and string.
18795
18796 * print.c: Include "character.h" instead of "charset.h".
18797 (print_string): Convert 8-bit raw bytes to octal form by
18798 string_escape_byte8.
18799 (print_object): Adjust for the new multibyte form. Print 8-bit
18800 raw bytes always in octal form. Handle sub char table correctly.
18801
18802 * process.c: Include "character.h" instead of "charset.h".
18803 (read_process_output, send_process): Adjust for the new
18804 code-conversion API.
18805
18806 * puresize.h (BASE_PURESIZE): Increase.
18807
18808 * regex.c: Include "character.h" instead of "charset.h".
18809 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18810 (regex_compile): Accept a range whose starting and ending
18811 character have different leading bytes.
18812 (analyse_first): Adjust for the above change.
18813
18814 * search.c: Include "character.h" instead of "charset.h".
18815 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18816 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18817
18818 * syntax.c: Include "character.h" instead of "charset.h".
18819 (syntax_parent_lookup): Delete.
18820 (Fmodify_syntax_entry): Accept a cons as CHAR.
18821 (skip_chars): Adjust for the new multibyte form.
18822 (init_syntax_once): Call char_table_set_range instead of directly
18823 accessing the structure of a char table.
18824
18825 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18826 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18827 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18828 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18829
18830 * term.c: Include "buffer.h" and "character.h".
18831 (encode_terminal_code, write_glyphs): Adjust for the new
18832 code-conversion API.
18833 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18834
18835 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18836
18837 * xdisp.c: Include "character.h".
18838 (get_next_display_element): Adjust for the new multibyte form.
18839 (disp_char_vector): Adjust for the new char table structure.
18840 (decode_mode_spec_coding): Adjust for the new structure of
18841 coding system.
18842 (decode_mode_spec): Adjust for the new code-conversion API.
18843
18844 * xfaces.c: Include "character.h" instead of "charset.h".
18845 (load_face_font): Adjust for the change of choose_face_font and
18846 FS_LOAD_FONT.
18847 (generate_ascii_font): New function.
18848 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18849 (set_font_frame_param): Adjust for the change of choose_face_font.
18850 (free_realized_face): Make it public.
18851 (free_realized_faces_for_fontset): Rename from
18852 free_realized_multibyte_face. Free also faces realized for ASCII.
18853 (choose_face_font): Change arguments. Adjust for the change of
18854 fontset_font_pattern and FS_LOAD_FONT.
18855
18856 * xfns.c: Include "character.h".
18857 (x_encode_text): Adjust for the new code-conversion API.
18858
18859 * xselect.c: Don't include "charset.h".
18860 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18861
18862 * xterm.c: Include "character.h".
18863 (x_encode_char): New argument CHARSET. Change caller.
18864 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18865 Call ENCODE_CHAR instead of SPLIT_CHAR.
18866 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18867 CHAR_WIDTH instead of CHARSET_WIDTH.
18868 (XTread_socket): Adjust for the new code-conversion API.
18869 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18870 (x_load_font): Adjust for the change of struct font.
18871
188722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18873
18874 * xfaces.c (face_at_buffer_position): Remove unused vars.
18875
188762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18877
18878 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18879 Fix overflow checking.
18880
188812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18882
18883 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18884 Cancel previous change.
18885
188862008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18887
18888 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18889 ccl->eight_bit_control. Fix check for buffer overflow.
18890 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18891 (ccl_driver): Initialize extra_bytes to 0.
18892
188932008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18894
18895 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18896 return it ORed with ctrl_modifier.
18897
188982008-01-29 Miles Bader <miles@gnu.org>
18899
18900 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18901
189022008-01-28 Jason Rumney <jasonr@gnu.org>
18903
18904 * w32.c (stat): Don't double check for networked drive.
18905
189062008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18907
18908 * window.c (run_window_configuration_change_hook): New function.
18909 Code extracted from set_window_buffer. Set the selected frame.
18910 (set_window_buffer): Use it.
18911 * window.h (run_window_configuration_change_hook): Declare.
18912 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18913
18914 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18915
189162008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18917
18918 * Makefile.in: Remove references to unused macros.
18919
189202008-01-26 Eli Zaretskii <eliz@gnu.org>
18921
18922 * w32.c (g_b_init_get_sid_sub_authority)
18923 (g_b_init_get_sid_sub_authority_count): New static variables.
18924 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18925 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18926 (init_user_info): Use them to retrieve uid and gid.
18927 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18928 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18929 st_uid and st_gid of the file.
18930
189312008-01-26 Jason Rumney <jasonr@gnu.org>
18932
18933 * w32.c (logon_network_drive): New function.
18934 (stat): Use it.
18935
189362008-01-26 Chong Yidong <cyd@stupidchicken.com>
18937
18938 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18939 invisible text covered with an ellipsis.
18940
189412008-01-25 Richard Stallman <rms@gnu.org>
18942
18943 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18944 jump back to beginning. Move some other initializations after that.
18945 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18946 New variables.
18947 (syms_of_xdisp): Init them.
18948
18949 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18950
18951 * buffer.c (reset_buffer_local_variables):
18952 Implement `permanent-local-hook'.
18953 (Qpermanent_local_hook): New variable.
18954 (syms_of_buffer): Init and staticpro it.
18955
189562008-01-25 Michael Albinus <michael.albinus@gmx.de>
18957
18958 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18959
189602008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18961
18962 * fns.c (Fclrhash): Return TABLE.
18963
189642008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18965
18966 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18967 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18968 is set even without positional changes.
18969 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18970
18971 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18972
189732008-01-23 Jason Rumney <jasonr@gnu.org>
18974
18975 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18976
18977 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18978 the unicode range available in MULE by locale-coding-system.
18979 Improve dbcs lead byte detection. Set event timestamp and modifiers
18980 earlier.
18981
189822008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18983
18984 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18985 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18986 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18987 when used on child processes.
18988
189892008-01-21 Michael Albinus <michael.albinus@gmx.de>
18990
18991 * dbusbind.c (Fdbus_method_return_internal): Rename from
18992 Fdbus_method_return.
18993 (Fdbus_unregister_object): Move to dbus.el.
18994 (Fdbus_call_method, Fdbus_method_return_internal)
18995 (Fdbus_send_signal): Improve debug messages.
18996
189972008-01-20 Martin Rudalics <rudalics@gmx.at>
18998
18999 * undo.c (undo_inhibit_record_point): New variable.
19000 (syms_of_undo): Initialize it.
19001 (record_point): Don't record point when undo_inhibit_record_point
19002 is set.
19003
190042008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19005
19006 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19007
19008 * xdisp.c (Qauto_hscroll_mode): New var.
19009 (syms_of_xdisp): Initialize it.
19010 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19011 window's buffer.
19012 (hscroll_windows): Don't check automatic_hscrolling_p here.
19013
19014 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19015 vscroll if we're setting window-buffer to the value it already has.
19016
190172008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19018
19019 * m/intel386.h: Remove references to XENIX.
19020
190212008-01-17 Andreas Schwab <schwab@suse.de>
19022
19023 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19024 instead of HAVE_X86_64_LIB64_DIR.
19025 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19026
190272008-01-17 Glenn Morris <rgm@gnu.org>
19028
19029 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19030 to HAVE_X86_64_LIB64_DIR.
19031
190322008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19033
19034 * s/irix3-3.h:
19035 * s/irix4-0.h:
19036 * s/386-ix.h:
19037 * s/domain.h:
19038 * s/hpux9-x11r4.h:
19039 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19040
19041 * sysdep.c: Remove code containing references to symbols defined
19042 by unsupported systems.
19043
190442008-01-16 Glenn Morris <rgm@gnu.org>
19045
19046 * coding.c (select-safe-coding-system-function): Doc fix.
19047
190482008-01-15 Glenn Morris <rgm@gnu.org>
19049
19050 * config.in: Revert 2008-01-13 change: this is a generated file.
19051
190522008-01-13 Tom Tromey <tromey@redhat.com>
19053
19054 * lisp.h: Fix typo.
19055
190562008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19057
19058 * m/sequent-ptx.h:
19059 * m/sequent.h:
19060 * s/ptx.h:
19061 * s/ptx4-2.h:
19062 * s/ptx4.h: Remove files for systems no longer supported.
19063
19064 * callproc.c (Fcall_process): Fix previous change.
19065
190662008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19067
19068 * unexsunos4.c: Remove file, system not supported anymore.
19069
19070 * m/mips.h:
19071 * m/intel386.h:
19072 * callproc.c:
19073 * config.in:
19074 * ecrt0.c:
19075 * emacs.c:
19076 * fileio.c:
19077 * frame.c:
19078 * getpagesize.h:
19079 * keyboard.c:
19080 * lread.c:
19081 * process.c:
19082 * puresize.h:
19083 * sysdep.c:
19084 * systty.h:
19085 * syswait.h:
19086 * unexec.c:
19087 * xdisp.c:
19088 * alloc.c: Remove code containing references to symbols defined by
19089 unsupported systems.
19090
190912008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19092
19093 * coding.c (detect_coding_mask): Fix previous change.
19094
190952008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19096
19097 * coding.c (detect_coding_iso2022): New arg
19098 latin_extra_code_state. Allow Latin extra codes only
19099 when *latin_extra_code_state is nonzero.
19100 (detect_coding_mask): If there is a NULL byte, detect the encoding
19101 as UTF-16 or binary. If Latin extra codes exist, detect the
19102 encoding as ISO-2022 only when there's no other proper encoding is
19103 found.
19104
191052008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19106
19107 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19108 #ifdef MAC_OS.
19109
191102008-01-08 Richard Stallman <rms@gnu.org>
19111
19112 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19113
191142008-01-06 Nick Roberts <nickrob@snap.net.nz>
19115
19116 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19117 menu bar in parentheses.
19118
191192008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19120
19121 * m/7300.h:
19122 * m/acorn.h:
19123 * m/alliant-2800.h:
19124 * m/alliant.h:
19125 * m/alliant1.h:
19126 * m/alliant4.h:
19127 * m/altos.h:
19128 * m/amdahl.h:
19129 * m/apollo.h:
19130 * m/att3b.h:
19131 * m/aviion-intel.h:
19132 * m/aviion.h:
19133 * m/celerity.h:
19134 * m/clipper.h:
19135 * m/cnvrgnt.h:
19136 * m/convex.h:
19137 * m/cydra5.h:
19138 * m/delta88k.h:
19139 * m/dpx2.h:
19140 * m/dual.h:
19141 * m/elxsi.h:
19142 * m/f301.h:
19143 * m/gould-np1.h:
19144 * m/gould.h:
19145 * m/i860.h:
19146 * m/ibmps2-aix.h:
19147 * m/ibmrt-aix.h:
19148 * m/ibmrt.h:
19149 * m/irist.h:
19150 * m/is386.h:
19151 * m/isi-ov.h:
19152 * m/mega68.h:
19153 * m/mg1.h:
19154 * m/news-r6.h:
19155 * m/news-risc.h:
19156 * m/news.h:
19157 * m/nh3000.h:
19158 * m/nh4000.h:
19159 * m/ns16000.h:
19160 * m/ns32000.h:
19161 * m/nu.h:
19162 * m/orion.h:
19163 * m/orion105.h:
19164 * m/paragon.h:
19165 * m/pfa50.h:
19166 * m/plexus.h:
19167 * m/pyramid.h:
19168 * m/pyrmips.h:
19169 * m/sh3el.h:
19170 * m/sps7.h:
19171 * m/sr2k.h:
19172 * m/stride.h:
19173 * m/sun1.h:
19174 * m/sun2.h:
19175 * m/sun3-68881.h:
19176 * m/sun3-fpa.h:
19177 * m/sun3-soft.h:
19178 * m/sun3.h:
19179 * m/sun386.h:
19180 * m/symmetry.h:
19181 * m/tad68k.h:
19182 * m/tahoe.h:
19183 * m/targon31.h:
19184 * m/tek4300.h:
19185 * m/tekxd88.h:
19186 * m/tower32.h:
19187 * m/tower32v3.h:
19188 * m/ustation.h:
19189 * m/wicat.h:
19190 * m/xps100.h:
19191 * s/cxux.h:
19192 * s/cxux7.h:
19193 * s/dgux.h:
19194 * s/dgux4.h:
19195 * s/dgux5-4-3.h:
19196 * s/dgux5-4r2.h:
19197 * s/esix.h:
19198 * s/esix5r4.h:
19199 * s/hiuxmpp.h:
19200 * s/hiuxwe2.h:
19201 * s/iris3-5.h:
19202 * s/iris3-6.h:
19203 * s/isc2-2.h:
19204 * s/isc3-0.h:
19205 * s/isc4-0.h:
19206 * s/isc4-1.h:
19207 * s/newsos5.h:
19208 * s/newsos6.h:
19209 * s/osf1.h:
19210 * s/osf5-0.h:
19211 * s/riscix1-1.h:
19212 * s/riscix12.h:
19213 * s/sco4.h:
19214 * s/sco5.h:
19215 * s/sunos4-0.h:
19216 * s/sunos4-1.h:
19217 * s/sunos413.h:
19218 * s/sunos4shr.h:
19219 * s/umax.h:
19220 * s/unipl5-2.h:
19221 * s/xenix.h:
19222 * cxux-crt0.s:
19223 * unexapollo.c:
19224 * unexconvex.c:
19225 * unexenix.c:
19226 * unexsni.c: Remove files for systems no longer supported.
19227
19228 * m/intel386.h: Remove references to unsupported systems.
19229
19230 * w32.c (get_emacs_configuration): Remove reference to i860.
19231
19232 * sysdep.c: Remove dead code.
19233
192342008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19235
19236 * s/rtu.h:
19237 * m/masscomp.h: Remove files. Platform is obsolete.
19238
192392008-01-04 Michael Albinus <michael.albinus@gmx.de>
19240
19241 * dbusbind.c (Fdbus_method_return): New function.
19242 (xd_read_message): Add the serial number to the event.
19243 (Fdbus_register_method): Activate the function.
19244
192452008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19246
19247 * keyboard.c (read_key_sequence): Fix typo.
19248
192492008-01-03 Michael Albinus <michael.albinus@gmx.de>
19250
19251 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19252 (xd_signature, xd_append_arg): Handle element type detection for
19253 empty arrays.
19254 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19255 SDATA () calls; this must be solved more general.
19256 (Fdbus_register_signal): Use SBYTES instead of strlen.
19257
192582008-01-03 Magnus Henoch <magnus@zemdatav>
19259
19260 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19261 unsigned int for byte values (necessary for big-endian platform).
19262 (Fdbus_call_method): Handle the case of no returned arguments.
19263
192642007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19265
19266 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19267
192682007-12-31 Magnus Henoch <mange@freemail.hu>
19269
19270 * dbusbind.c (xd_signature): Signature of variant is just "v".
19271
192722007-12-30 Michael Albinus <michael.albinus@gmx.de>
19273
19274 * dbusbind.c: Fix several errors and compiler warnings.
19275 Reported by Tom Tromey <tromey@redhat.com>.
19276 (XD_ERROR, XD_DEBUG_MESSAGE)
19277 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19278 (xd_append_arg): Part for basic D-Bus types rewritten.
19279 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19280 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19281 appropriate.
19282 (xd_read_message): Return Qnil. Don't signal an error; it is not
19283 useful during event reading.
19284 (Fdbus_register_signal): Signal an error if the check for
19285 FUNCTIONP fails.
19286 (Fdbus_register_method): New function. The implementation is not
19287 complete, the call of the function signals an error therefore.
19288 (Fdbus_unregister_object): New function, renamed from
19289 Fdbus_unregister_signal. The initial check signals an error, if
19290 the object is not well formed.
19291
192922007-12-30 Richard Stallman <rms@gnu.org>
19293
19294 * textprop.c (get_char_property_and_overlay):
19295 Signal error if POSITION is out of range in a buffer.
19296
192972007-12-29 Martin Rudalics <rudalics@gmx.at>
19298
19299 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19300 because the original parameters are in pure storage now.
19301
193022007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19303
19304 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19305
193062007-12-22 Eli Zaretskii <eliz@gnu.org>
19307
19308 * callint.c (syms_of_callint) <command-history>: Add reference to
19309 history-length in the doc string.
19310
193112007-12-17 Jason Rumney <jasonr@gnu.org>
19312
19313 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19314 before passing as wParam.
19315
193162007-12-22 Michael Albinus <michael.albinus@gmx.de>
19317
19318 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19319 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19320 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19321 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19322 as number.
19323 (Fdbus_call_method): Fix docstring.
19324
193252007-12-21 Michael Albinus <michael.albinus@gmx.de>
19326
19327 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19328 New macros.
19329 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19330 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19331 Simplify.
19332 (xd_signature): New function.
19333 (xd_append_arg): Compute also signatures. Major rewrite.
19334 (xd_retrieve_arg): Make debug messages friendly.
19335 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19336 Check for signatures of arguments.
19337
193382007-12-19 Michael Albinus <michael.albinus@gmx.de>
19339
19340 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19341 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19342 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19343 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19344 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19345 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19346 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19347 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19348 (xd_retrieve_value): Remove. Functionality included in ...
19349 (xd_append_arg): New function.
19350 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19351
193522007-12-16 Michael Albinus <michael.albinus@gmx.de>
19353
19354 * dbusbind.c (top): Include <stdio.h>.
19355 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19356 dbus_message_new_method_call and dbus_message_new_signal.
19357 (Fdbus_register_signal): Rename unique_name to uname.
19358 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19359 non-existing unique name. Fix typos in matching rule. Return an
19360 object which is useful in Fdbus_unregister_signal.
19361 (Fdbus_unregister_signal): Reimplementation, in order to remove
19362 only the corresponding entry.
19363 (Vdbus_registered_functions_table): Change the order of entries.
19364 Apply these changes in xd_read_message and Fdbus_register_signal.
19365
193662007-12-16 Andreas Schwab <schwab@suse.de>
19367
19368 * fileio.c (Finsert_file_contents): Fix overflow check to not
19369 depend on undefined integer overflow.
19370
193712007-12-14 Jason Rumney <jasonr@gnu.org>
19372
19373 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19374 for characters above 127.
19375
193762007-12-13 Jason Rumney <jasonr@gnu.org>
19377
19378 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19379 before dereferencing array.
19380 (lookup_vk_code): Remove zero comparison.
19381
193822007-12-14 Michael Albinus <michael.albinus@gmx.de>
19383
19384 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19385 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19386 Use `unsigned int' instead of `uint'.
19387 (xd_read_message, Fdbus_register_signal): Split expressions into
19388 multiple lines before operators "&&" and "||", according to the
19389 GNU Coding Standards.
19390
193912007-12-14 Eli Zaretskii <eliz@gnu.org>
19392
19393 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19394
193952007-12-12 Juri Linkov <juri@jurta.org>
19396
19397 * buffer.c (Frename_buffer): In interactive spec replace
19398 `read-buffer' with `read-string' that uses `buffer-name-history'
19399 as history, and the current buffer's name as default.
19400
194012007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19402
19403 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19404 manipulating the backtrace manually.
19405 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19406 (struct backtrace, backtrace_list): Remove.
19407 (command_loop_1): Remove dead var `no_direct'.
19408
19409 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19410 preserve non-built-in buffer-local variables.
19411 (Fkill_all_local_variables): Don't re-create&re-set permanent
19412 buffer-local variables.
19413
194142007-12-09 Juri Linkov <juri@jurta.org>
19415
19416 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19417 Lisp code that uses `read-buffer' with current buffer as default.
19418
194192007-12-08 Michael Albinus <michael.albinus@gmx.de>
19420
19421 * dbusbind.c (xd_read_message): Generate an event for every
19422 registered handler. There might be several handlers registered
19423 for the same signal.
19424 (Fdbus_register_signal): Don't overwrite a registration for the
19425 same signal. Add a new registration if handlers are different.
19426 (Vdbus_registered_functions_table): Rework doc string.
19427
194282007-12-07 Michael Albinus <michael.albinus@gmx.de>
19429
19430 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19431 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19432 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19433 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19434 Unify argument lists.
19435 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19436 arguments and hash table keys. Use unique name for service.
19437 (Fdbus_unregister_signal): Remove checks.
19438 (Vdbus_registered_functions_table): Fix doc string.
19439
194402007-12-05 Magnus Henoch <mange@freemail.hu>
19441
19442 * process.c (make_process): Initialize pty_flag to 0.
19443
194442007-12-05 Jason Rumney <jasonr@gnu.org>
19445
19446 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19447 specified XBMs.
19448
194492007-12-05 Richard Stallman <rms@gnu.org>
19450
19451 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19452
194532007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19454
19455 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19456 New variable.
19457 (mac_try_close_socket) [MAC_OSX]: New function.
19458 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19459 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19460
19461 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19462 Use mac_try_close_socket.
19463
194642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19465
19466 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19467 reloc_base.
19468 (copy_dysymtab): Compute relocation base here.
19469 (rebase_reloc_address) [__ppc64__]: New function.
19470 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19471 changed.
19472
194732007-12-05 Jason Rumney <jasonr@gnu.org>
19474
19475 * w32proc.c (sys_spawnve): Quote args with wildcards.
19476
194772007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19478
19479 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19480 __objc_* sections.
19481 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19482
194832007-12-05 Michael Albinus <michael.albinus@gmx.de>
19484
19485 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19486 Move check for Vdbus_registered_functions_table to
19487 xd_read_queued_messages.
19488 (xd_read_queued_messages): Protect xd_read_message calls by
19489 internal_condition_case_1.
19490
194912007-12-04 Michael Albinus <michael.albinus@gmx.de>
19492
19493 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19494 Qdbus_system_bus and Qdbus_session_bus, respectively.
19495 (Vdbus_intern_symbols): Remove.
19496 (Vdbus_registered_functions_table): New hash table.
19497 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19498 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19499 Rewrite in order to manage registered functions by hash table
19500 Vdbus_registered_functions_table.
19501
195022007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19503
19504 * xterm.c: Update URL to Window Manager Specification in comment.
19505
195062007-12-02 Michael Albinus <michael.albinus@gmx.de>
19507
19508 * config.in (HAVE_DBUS): Add.
19509
19510 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19511 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19512 (obj): Add $(DBUS_OBJ).
19513 (LIBES): Add $(DBUS_LIBS).
19514 (dbusbind.o): New target.
19515
19516 * dbusbind.c: New file.
19517
19518 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19519
19520 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19521 (Qdbus_event): New Lisp symbol.
19522 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19523 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19524 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19525
19526 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19527
195282007-12-01 Richard Stallman <rms@gnu.org>
19529
19530 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19531
195322007-11-30 Jason Rumney <jasonr@gnu.org>
19533
19534 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19535 (w32con_reset_terminal_modes): Clear screen buffer.
19536 (w32_face_attributes): Don't use color indexes that are out of range.
19537 Only reverse the default colors.
19538
19539 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19540 WINDOWSNT.
19541
19542 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19543
195442007-11-29 Jason Rumney <jasonr@gnu.org>
19545
19546 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19547 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19548 if the terminal colors are initialized.
19549 (unspecified_fg, unspecified_bg): Remove unused declarations.
19550
195512007-11-29 Andreas Schwab <schwab@suse.de>
19552
19553 * keyboard.c (apply_modifiers): Fix typo.
19554
195552007-11-29 Richard Stallman <rms@gnu.org>
19556
19557 * keymap.c (Fcurrent_local_map): Doc fix.
19558
195592007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19560
19561 * s/gnu-kfreebsd.h: New file.
19562
195632007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19564
19565 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19566 Don't cast redundantly.
19567
19568 * keyboard.c (KEY_TO_CHAR): New macro.
19569 (parse_modifiers, apply_modifiers): Accept integer arguments.
19570 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19571 for chars and symbol keys.
19572 After doing such remapping, apply function-key-map again.
19573
195742007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19575
19576 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19577 compiled anymore.
19578
195792007-11-26 Andreas Schwab <schwab@suse.de>
19580
19581 * process.c (list_processes_1): Fix indentation level of the
19582 command column.
19583
195842007-11-23 Andreas Schwab <schwab@suse.de>
19585
19586 * editfns.c (Fformat): Handle %c specially since it requires the
19587 argument to be of type int.
19588
195892007-11-23 Markus Triska <markus.triska@gmx.at>
19590
19591 * emacs.c (main): Call init_editfns before init_process, since
19592 init_process sets Vprocess_connection_type depending on OS release.
19593
195942007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19595
19596 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19597 (find_symbol_value): Use do_symval_forwarding.
19598
19599 * data.c (set_internal): Set the value in the `cons-cell' (for
19600 Buffer_Local_values) not only for frame-local variables.
19601
196022007-11-22 Andreas Schwab <schwab@suse.de>
19603
19604 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19605 values to sprintf.
19606 * keymap.c (Fsingle_key_description): Likewise.
19607 * print.c (print_object): Likewise.
19608
196092007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19610
19611 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19612 file for image is nil.
19613
196142007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19615
19616 * term.c: Include stdarg.h.
19617 (fatal): Implement using varargs.
19618 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19619
196202007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19621
19622 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19623 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19624 Update call to buffer_slot_type_mismatch.
19625 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19626 (buffer_slot_type_mismatch): Update.
19627 * buffer.c (buffer_local_types): Remove.
19628 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19629 (defvar_per_buffer): Set the type in the buffer_objfwd.
19630
196312007-11-21 Jason Rumney <jasonr@gnu.org>
19632
19633 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19634 CreateFileMapping returns NULL on failure.
19635
196362007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19637
19638 * search.c (Fset_match_data): Remove the `evaporate' feature.
19639 (unwind_set_match_data): Don't use the `evaporate' feature.
19640
196412007-11-21 Jason Rumney <jasonr@gnu.org>
19642
19643 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19644
19645 * w32console.c (w32con_write_glyphs): Remove unused variables.
19646
196472007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19648
19649 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19650
19651 * s/darwin.h (MULTI_KBOARD): Remove.
19652
19653 * macfns.c (x_create_tip_frame, Fx_create_frame)
19654 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19655
196562007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19657
19658 * buffer.c (Fbuffer_local_value): Remove redundant test.
19659 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19660 than in `current-buffer' to match the comment.
19661 Do the swap using swap_in_global_binding.
19662
19663 * data.c (store_symval_forwarding, set_internal):
19664 * eval.c (specbind): Remove dead code.
19665
19666 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19667 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19668 Since we do not want to see internal Lisp_*fwd objects here.
19669
196702007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19671
19672 * sysdep.c (init_system_name): Use getaddrinfo if available.
19673
19674 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19675 (x_scroll_bar_note_movement): start, end, with, height in struct
19676 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19677
196782007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19679
19680 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19681
196822007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19683
19684 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19685 This undoes Richard's change of 14-Oct-2002.
19686
19687 * alloc.c (allocate_other_vector):
19688 * lisp.h (allocate_other_vector): Remove.
19689
19690 * window.c (struct save_window_data): Move non-lisp data to the end
19691 and make it `int' rather than Lisp_Object.
19692 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19693 Done wrap/unwrap integer values.
19694 (Fset_window_configuration, compare_window_configurations):
19695 Update use of fields to their new types.
19696
19697 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19698 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19699 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19700 (SET_SCROLL_BAR_X_WINDOW): Remove.
19701 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19702 Access the new x_window field directly.
19703 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19704 Don't wrap/unwrap integers into Lisp_Objects.
19705 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19706 (x_scroll_bar_report_motion):
19707 Don't wrap/unwrap integers into Lisp_Objects.
19708 (x_term_init): Use SDATA.
19709 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19710 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19711 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19712 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19713 * xfns.c (x_set_background_color):
19714 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19715 Access the new x_window field directly.
19716
19717 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19718 (allocate_pseudovector): Make non-static.
19719
19720 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19721 (allocate_pseudovector): Declare.
19722 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19723
197242007-11-15 Andreas Schwab <schwab@suse.de>
19725
19726 * editfns.c (Fformat): Correctly format EMACS_INT values.
19727 Also take precision into account when formatting an integer.
19728
19729 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19730
197312007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19732
19733 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19734 (syms_of_keyboard): Defsubr it.
19735
19736 * data.c (swap_in_global_binding): Fix longstanding bug where
19737 store_symval_forwarding was not called with the right second argument,
19738 thus causing objfwd-ing from being dropped.
19739
197402007-11-14 Juanma Barranquero <lekktu@gmail.com>
19741
19742 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19743 (Fx_display_pixel_height, Fx_display_planes)
19744 (Fx_display_color_cells, Fx_server_max_request_size)
19745 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19746 (Fx_display_visual_class, Fx_display_save_under):
19747 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19748 (Fx_display_pixel_height, Fx_display_planes)
19749 (Fx_display_color_cells, Fx_server_max_request_size)
19750 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19751 (Fx_display_mm_height, Fx_display_mm_width)
19752 (Fx_display_backing_store, Fx_display_visual_class)
19753 (Fw32_select_font, Fx_display_save_under):
19754 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19755 (Fx_display_pixel_height, Fx_display_planes)
19756 (Fx_display_color_cells, Fx_server_max_request_size)
19757 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19758 (Fx_display_save_under): Fix typos in docstrings.
19759
197602007-11-14 Juanma Barranquero <lekktu@gmail.com>
19761
19762 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19763 corresponding to deleted entries; they are an implementation detail.
19764 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19765 Remove variables.
19766 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19767 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19768 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19769 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19770 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19771 (Fw32_define_rgb_color, Fw32_load_color_file)
19772 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19773 Fix typos in docstrings.
19774 (Fx_server_version): Reflow docstring.
19775 (Fw32_shell_execute): Doc fixes.
19776
197772007-11-13 Juanma Barranquero <lekktu@gmail.com>
19778
19779 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19780 if w32_parse_hot_key returned nil.
19781
197822007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19783
19784 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19785
197862007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19787
aac0c6e3
MR
19788 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19789
19790 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19791
19792 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19793 Remove W32_SCROLL_BAR_CLICK_EVENT.
19794
19795 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19796 Add MULTIMEDIA_KEY_EVENT.
19797
19798 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19799 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19800 (make_lispy_event) [WINDOWSNT]: Use it to translate
19801 MULTIMEDIA_KEY_EVENT.
19802
19803 * w32term.h (WM_APPCOMMAND): Define if not already.
19804 (GET_APPCOMMAND_LPARAM): Likewise.
19805
19806 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19807 WM_APPCOMMAND.
19808
19809 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19810 (syms_of_w32fns): Export and initialize it.
19811 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19812
198132007-11-09 Chong Yidong <cyd@stupidchicken.com>
19814
19815 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19816 twice.
19817
19818 * xdisp.c (handle_face_prop): Fix last change.
19819
198202007-11-09 Richard Stallman <rms@gnu.org>
19821
19822 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19823 not just for after-strings and before-strings.
19824 Call face_for_overlay_string and pass the overlay to it.
19825 (handle_display_prop): Determine whether property came from an overlay.
19826 Pass OVERLAY arg to handle_single_display_spec.
19827 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19828 (load_overlay_strings): Fill in it->string_overlays.
19829 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19830
19831 * xfaces.c (face_for_overlay_string): Function renamed from
19832 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19833
19834 * dispextern.h (struct it): New elt string_overlays.
19835 New elt from_overlay, also in stack.
19836 Rearrange a few elements.
19837 (face_for_overlay_string): Decl renamed from
19838 face_at_buffer_position_no_overlays, and add argument.
19839
198402007-11-09 Richard Stallman <rms@gnu.org>
19841
19842 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19843 to get the base face for an overlay string.
19844
19845 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19846
19847 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19848
19849 * xdisp.c (handle_stop): Move some code out of loop.
19850
198512007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19852
19853 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19854 Fix conversion from Lisp object to ATSUFontID.
19855
198562007-11-09 Jason Rumney <jasonr@gnu.org>
19857
19858 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19859
198602007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19861
19862 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19863 Don't assume regions are aligned to page boundary.
19864 (print_load_command_name): Add LC_UUID if defined.
19865
198662007-11-09 Richard Stallman <rms@gnu.org>
19867
19868 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19869
198702007-11-07 Jason Rumney <jasonr@gnu.org>
19871
19872 * s/windows95.h: Remove.
19873
198742007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19875
19876 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19877 abort with a message on unhandled store_type values.
19878
198792007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19880
19881 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19882 Remove HAVE_X11R5 and HAVE_X11R4.
19883
198842007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19885
19886 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19887
198882007-11-01 Johan Bockgård <bojohan@gnu.org>
19889
19890 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19891 Don't set s->stippled_p here, since it has already been set by
19892 x_set_glyph_string_gc from x_draw_glyph_string.
19893
198942007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19895
19896 * sunfns.c: Remove file.
19897
19898 * m/sun386.h:
19899 * m/sun2.h:
19900 * m/sparc.h: Remove Sun windows code.
19901
199022007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19903
19904 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19905 (init_keyboard): Set current_kboard's window-system to nil.
19906 (tty_read_avail_input): Typo.
19907 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19908
199092007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19910
19911 * s/usg5-4.h:
19912 * s/usg5-3.h:
19913 * s/ptx.h:
19914 * m/is386.h:
19915 * m/ibmps2-aix.h:
19916 * Makefile.in: Remove all mentions of X10.
19917
19918 * dispnew.c (syms_of_display): Don't mention version 10.
19919
199202007-10-28 Juanma Barranquero <lekktu@gmail.com>
19921
19922 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19923 ($(BLD)/abbrev.$(O)): Remove.
19924
199252007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 Rewrite abbrev.c in Elisp.
19928 * image.c (Qcount): Don't declare as extern.
19929 (syms_of_image): Initialize and staticpro `Qcount'.
19930 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19931 * emacs.c (main): Don't call syms_of_abbrev.
19932 * Makefile.in (obj): Remove abbrev.o.
19933 (abbrev.o): Remove.
19934 * abbrev.c: Remove.
19935
199362007-10-26 Martin Rudalics <rudalics@gmx.at>
19937
19938 * window.c (window_min_size_2): Don't count header-line.
19939
199402007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19941
19942 * frame.h (struct frame): Move all bit fields after the first bit
19943 field to take advantage of the available space. Group all the
19944 chars together to reduce wasted space due to padding.
19945
199462007-10-26 Juanma Barranquero <lekktu@gmail.com>
19947
19948 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19949
19950 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19951 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19952 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19953 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19954 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19955 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19956 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19957 (last_marked, mark_object_loop_halt): Make static.
19958
19959 * frame.c (syms_of_frame) <delete-frame-functions>:
19960 Fix typo in docstring.
19961
199622007-10-25 Juanma Barranquero <lekktu@gmail.com>
19963
19964 * w32.c (init_environment): Fix tiny memory leak.
19965 (w32_get_resource): Remove unused variable `ok'.
19966
199672007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19968
19969 Make `window-system' into a keyboard-local variable (rather than
19970 frame-local as done originally by multi-tty).
19971
19972 * keyboard.h (struct kboard): Add Vwindow_system.
19973 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19974 (mark_kboards): Mark Vwindow_system.
19975
19976 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19977 (init_display): Don't set the obsolete `window-system' frame-param.
19978
19979 * xterm.c (x_term_init):
19980 * w32term.c (w32_create_terminal):
19981 * term.c (init_tty): Set Vwindow_system.
19982 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19983 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19984
19985 * xfns.c (Fx_create_frame, x_create_tip_frame):
19986 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19987 * macfns.c (Fx_create_frame):
19988 Don't set the obsolete `window-system' frame-param.
19989
19990 * frame.h (Qwindow_system): Remove.
19991 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19992 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19993
199942007-10-24 Richard Stallman <rms@gnu.org>
19995
19996 * frame.c (x_figure_window_size): For fullscreen case,
19997 set USPosition | PPosition without clobbering rest of window_prompting.
19998
19999 * keyboard.c (Fcurrent_idle_time): Doc fix.
20000
20001 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20002
200032007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20004
20005 * process.c (unwind_request_sigio): Only define if __ultrix__.
20006
20007 * callproc.c (child_setup): Remove spurious *.
20008
20009 * lisp.h (Fget_text_property): Declare.
20010 (have_menus_p): Declare it here rather than in sys-dep header files.
20011 * macterm.h (have_menus_p):
20012 * msdos.h (have_menus_p):
20013 * xterm.h (have_menus_p): Remove.
20014
20015 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20016 (Fmake_variable_frame_local): Just check the variable's const-ness
20017 rather than checking nil or t.
20018
200192007-10-22 Jason Rumney <jasonr@gnu.org>
20020
20021 * w32fns.c: Include math.h.
20022 (w32_abort): Declaration moved to nt/config.nt.
20023
20024 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20025 (abort): Redefinition moved to nt/config.nt.
20026
20027 * m/windowsnt.h: Remove.
20028
200292007-10-22 Juanma Barranquero <lekktu@gmail.com>
20030
20031 * emacs.c (Fdump_emacs): Fix typo in message.
20032 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20033 <installation-directory>: Reflow docstring.
20034
200352007-10-22 Juri Linkov <juri@jurta.org>
20036
20037 * minibuf.c: Allow minibuffer default to be a list of default values.
20038 With empty input use the first element of this list as returned default.
20039 (string_to_object)
20040 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20041 (read_minibuf): If defalt is cons, set histstring to its car.
20042 (Fread_string): If default_value is cons, set val to its car.
20043 (Fread_buffer): If def is cons, use its car.
20044 (Fcompleting_read): If defalt is cons, set val to its car.
20045
200462007-10-21 Michael Albinus <michael.albinus@gmx.de>
20047
20048 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20049
200502007-10-20 Juanma Barranquero <lekktu@gmail.com>
20051
20052 * doc.c (Fdocumentation): Check for advice in all cases.
20053
200542007-10-19 Chong Yidong <cyd@stupidchicken.com>
20055
20056 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20057
200582007-10-19 Richard Stallman <rms@gnu.org>
20059
20060 * doc.c (Fdocumentation): Check for and handle an advised function.
20061
200622007-10-19 Juanma Barranquero <lekktu@gmail.com>
20063
20064 * process.c (Fset_process_filter): Doc fix.
20065
200662007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20067
20068 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20069 which caused key-translation-map to applied repeatedly (thus breaking
20070 double-mode).
20071
200722007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20073
20074 * xselect.c (x_own_selection, x_handle_selection_clear)
20075 (x_clear_frame_selections):
20076 * w32menu.c (list_of_panes, list_of_items):
20077 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20078 * textprop.c (validate_plist, interval_has_all_properties)
20079 (interval_has_some_properties, interval_has_some_properties_list)
20080 (add_properties, text_property_list):
20081 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20082 * minibuf.c (Fassoc_string):
20083 * macselect.c (x_own_selection, x_clear_frame_selections)
20084 (Fx_disown_selection_internal):
20085 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20086 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20087
200882007-10-17 Chong Yidong <cyd@stupidchicken.com>
20089
20090 * process.c: Link to libs for calling res_init() if available.
20091 (Fmake_network_process): Call res_init() before getaddrinfo or
20092 gethostbyname, if possible.
20093
200942007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * lread.c (read1): Set pvectype for char_tables.
20097
20098 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20099 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20100 Add type checks.
20101 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20102
20103 * alloc.c (free_misc): Use XMISCTYPE.
20104 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20105
201062007-10-17 Glenn Morris <rgm@gnu.org>
20107
20108 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20109 (syms_of_minibuf): Add Qcompletion_ignore_case.
20110 * dired.c (Qcompletion_ignore_case): Change to external.
20111 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20112 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20113 (Fread_file_name): Use it rather than intern'ing.
20114
20115 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20116 (Fread_coding_system): Ignore case of user input.
20117
201182007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20119
20120 * xdisp.c (handle_display_prop): Ignore display specs after
20121 replacing one when string text is being replaced.
20122 (handle_single_display_spec): Pretend as if characters with display
20123 property haven't been consumed only when buffer text is being replaced.
20124
201252007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20126
20127 * xfns.c (Fx_create_frame, Fx_display_list):
20128 * window.c (window_fixed_size_p, enlarge_window)
20129 (shrink_window_lowest_first):
20130 * macterm.c (init_font_name_table):
20131 * macfns.c (Fx_create_frame, Fx_display_list):
20132 * lread.c (close_load_descs):
20133 * keyboard.c (read_char_x_menu_prompt):
20134 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20135 * coding.c (code_convert_region_unwind): Test the type of an object
20136 rather than just !NILP before extracting data from it.
20137
20138 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20139
20140 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20141 (XMISCANY): New macro.
20142 (XMISCTYPE): Use it.
20143 (struct Lisp_Misc_Any): New type.
20144 (union Lisp_Misc): Use it.
20145 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20146 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20147 (find_symbol_value, set_internal, default_value, Fset_default)
20148 (Fmake_variable_buffer_local, Fmake_local_variable)
20149 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20150 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20151 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20152 * alloc.c (allocate_buffer): Set the size and tag.
20153 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20154 Use XMISCANY.
20155 (die): Follow the GNU convention for error messages.
20156 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20157 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20158 tag any more.
20159 (set_buffer_internal_1):
20160 * frame.c (store_frame_param):
20161 * eval.c (specbind):
20162 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20163
20164 * doc.c (Fsnarf_documentation): Simplify.
20165
201662007-10-14 Juanma Barranquero <lekktu@gmail.com>
20167
20168 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20169 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20170
201712007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20172
20173 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20174
201752007-10-14 Juanma Barranquero <lekktu@gmail.com>
20176
20177 * eval.c (do_autoload): Don't save autoloads.
20178
20179 * data.c (Ffset): Save autoload of the function being set.
20180
201812007-10-07 John Paul Wallington <jpw@pobox.com>
20182
20183 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20184 parameter before setting up faces.
20185
201862007-10-13 Eli Zaretskii <eliz@gnu.org>
20187
20188 * ccl.c (Fregister_code_conversion_map):
20189 * keyboard.c (append_tool_bar_item): Reformat last change.
20190
20191 * lisp.h (eabs): Rename from `abs'. All callers changed.
20192
201932007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20194
20195 * buffer.c (add_overlay_mod_hooklist):
20196 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20197 * fontset.c (make_fontset):
20198 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20199 (append_tool_bar_item):
20200 * macmenu.c (grow_menu_items):
20201 * w32menu.c (grow_menu_items):
20202 * xmenu.c (grow_menu_items): Use larger_vector.
20203
202042007-10-13 Eli Zaretskii <eliz@gnu.org>
20205
20206 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20207 selected frame'' on MSDOS).
20208
202092007-10-12 Martin Rudalics <rudalics@gmx.at>
20210
20211 * frame.c (Qexplicit_name): New variable.
20212 (x_report_frame_params): Report it in parameter alist.
20213 (syms_of_frame): Intern and staticpro it.
20214
202152007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20216
20217 * macfns.c (x_create_tip_frame): Set terminal for frame.
20218
202192007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20220
20221 * frame.c (Qenvironment): Remove.
20222 (syms_of_frame) <Qenvironment>: Don't initialize.
20223 (Fdelete_frame): Don't treat the `environment' param specially.
20224 * frame.h (Qenvironment): Don't declare.
20225 * callproc.c (set_initial_environment): Don't set unused frame param.
20226
20227 * frame.c (Fframe_with_environment): Remove.
20228 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20229
20230 * lisp.h (Fframe_with_environment): Don't declare.
20231
202322007-10-10 Juanma Barranquero <lekktu@gmail.com>
20233
20234 * indent.c (indent_tabs_mode, last_known_column)
20235 (last_known_column_modified): Make static.
20236 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20237
202382007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20239
20240 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20241
202422007-10-09 Jason Rumney <jasonr@gnu.org>
20243
20244 * w32term.c (x_set_window_size): Disable code that attempts to tell
20245 Lisp code about a size change before it actually happens.
20246
202472007-10-09 Richard Stallman <rms@gnu.org>
20248
20249 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20250 return HANDLED_RETURN.
20251
202522007-10-08 Martin Rudalics <rudalics@gmx.at>
20253
20254 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20255 when there's an unread command event.
20256
20257 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20258 window autoselection act appropriately when leaving selected frame.
20259 (syms_of_frame): Initialize focus_follows_mouse.
20260 * frame.h (focus_follows_mouse): Extern it.
20261 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20262 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20263 * msdos.c (dos_rawgetc): Likewise.
20264 * w32term.c (w32_read_socket): Likewise.
20265 * xterm.c (handle_one_xevent): Likewise.
20266 * xdisp.c (syms_of_xdisp): In doc-string of
20267 mouse-autoselect-window mention focus-follows-mouse.
20268
202692007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20270
20271 * macterm.c (mac_load_query_font): Fix missing return value.
20272 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20273 Add BLOCK_INPUT.
20274
202752007-10-08 Richard Stallman <rms@gnu.org>
20276
20277 * xdisp.c (get_window_cursor_type): Implement documented behavior
20278 for cursor-in-non-selected-windows = t.
20279
202802007-10-08 Jason Rumney <jasonr@gnu.org>
20281
20282 * w32.c (w32_get_resource): Always close registry keys.
20283
202842007-10-08 Jason Rumney <jasonr@gnu.org>
20285
20286 * makefile.w32-in (LIBS): Add COMCTL32.
20287
20288 * w32fns.c (globals_of_w32fns): Init common controls.
20289
202902007-10-08 Richard Stallman <rms@gnu.org>
20291
20292 * image.c (our_memory_buffer): Rename from omfib_buffer.
20293
202942007-10-08 Richard Stallman <rms@gnu.org>
20295
20296 * buffer.c (Foverlays_at): Doc fix.
20297
202982007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20299
20300 * fns.c (Fplist_put): Preserve uneven tail data.
20301
203022007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20303
20304 * termhooks.h (enum event_kind): Remove trailing comma.
20305
20306 * frame.h (enum): Remove trailing comma.
20307
203082007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20309
20310 * w32proc.c (delete_child): Don't terminate threads of zombies.
20311
203122007-10-08 Martin Rudalics <rudalics@gmx.at>
20313
20314 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20315
20316 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20317 last-repeatable-command.
20318 (init_kboard): Initialize Vlast_repeatable_command.
20319 (command_loop_1): Set it to real_this_command unless that was
20320 bound to an input event.
20321 (mark_kboards): Mark it.
20322
203232007-10-08 Richard Stallman <rms@gnu.org>
20324
20325 * eval.c (condition-case): Doc fix.
20326
203272007-10-08 Masatake YAMATO <jet@gyve.org>
20328
20329 * xfaces.c (tty_supports_face_attributes_p): Fix code
20330 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20331 was copied and not edited.
20332
203332007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20334
20335 Add new `input-decode-map' keymap and use it for terminal
20336 escape sequences.
20337 * keyboard.h (struct kboard): Add Vinput_decode_map.
20338 Remove Vlocal_key_translation_map.
20339 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20340 (init_kboard): Init input-decode-map.
20341 Replace local-key-translation-map back with key-translation-map.
20342 (syms_of_keyboard): Declare input-decode-map.
20343 Remove local-key-translation-map. Update docstrings.
20344 (mark_kboards): Mark Vinput_decode_map.
20345 Don't mark Vlocal_key_translation_map.
20346 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20347 Replace local-key-translation-map back with key-translation-map.
20348 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20349 Bind in input-decode-map rather than function-key-map.
20350
20351 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20352 This was made redundant by the previous introduction of XSETPVECTYPE.
20353
203542007-10-09 Richard Stallman <rms@gnu.org>
20355
20356 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20357
203582007-09-29 Richard Stallman <rms@gnu.org>
20359
20360 * eval.c (internal_condition_case_2, internal_condition_case_1)
20361 (internal_condition_case): Reenable abort if x_catching_errors ()
20362 to see if that really happens and why.
20363
203642007-10-06 Andreas Schwab <schwab@suse.de>
20365
20366 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20367
203682007-10-04 Juanma Barranquero <lekktu@gmail.com>
20369
20370 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20371
203722007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20373
20374 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20375
203762007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20377
20378 * window.h (struct window):
20379 * window.c (struct save_window_data, struct saved_window):
20380 * termhooks.h (struct terminal):
20381 * process.h (struct Lisp_Process):
20382 * frame.h (struct frame):
20383 * buffer.h (struct buffer):
20384 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20385 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20386 The size field of (pseudo)vectors is now unsigned.
20387 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20388
20389 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20390 Turn `count' into an integer.
20391
20392 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20393 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20394 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20395 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20396 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20397
20398 * alloc.c (allocate_pseudovector): New fun.
20399 (ALLOCATE_PSEUDOVECTOR): New macro.
20400 (allocate_window, allocate_terminal, allocate_frame)
20401 (allocate_process): Use it.
20402 (mark_vectorlike): New function.
20403 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20404 (mark_terminals): Use it.
20405 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20406 (Fmake_byte_code): Use XSETPVECTYPE.
20407
20408 * frame.c (Fframe_parameters): Minor simplification.
20409
20410 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20411
20412 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20413
20414 * buffer.c (Fget_buffer_create, init_buffer_once):
20415 * lread.c (defsubr):
20416 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20417
20418 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20419 defined differently in the m/*.h files.
20420 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20421 (XSETPVECTYPE): New macro.
20422 (XSETPSEUDOVECTOR): Use it.
20423
20424 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20425 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20426
20427 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20428 * lread.c (defvar_per_buffer):
20429 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20430
20431 * window.c (candidate_window_p): Only consider as visible frames that
20432 are on the same terminal.
20433
20434 * m/ibms390x.h (MARKBIT): Remove unused macro.
20435
204362007-10-01 Juanma Barranquero <lekktu@gmail.com>
20437
20438 * lread.c (Fload): Fix typo in docstring.
20439
204402007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20441
20442 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20443 of a non-zero value can't yield zero.
20444
204452007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20446
20447 * term.c (term_clear_mouse_face, term_mouse_highlight)
20448 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20449
20450 * print.c (safe_debug_print): Use XHASH.
20451
20452 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20453 Lisp elements such as tags.
20454 (XHASH): New macro.
20455 (EQ): Use it.
20456 (SREF, SSET, STRING_COPYIN): Use SDATA.
20457 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20458
20459 * alloc.c (mark_terminal): Remove left-over declaration.
20460 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20461 (allocate_vectorlike): Remove type argument. Adjust callers.
20462 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20463 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20464
20465 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20466 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20467 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20468 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20469 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20470 Use them.
20471
20472 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20473 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20474 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20475
204762007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20477
20478 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20479 loaded by default.
20480
204812007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20482
20483 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20484 on this tty.
20485 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20486
20487 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20488 Update all users.
20489 (handle_one_term_event): Use Gpm_DrawPointer.
20490 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20491 Signal errors instead of returning nil. Always return nil.
20492 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20493 Make it a noop if gpm-mouse was not activated.
20494 (syms_of_term): Update names.
20495
204962007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20499 (init_sys_modes): Check that gpm_tty is the current tty.
20500
20501 * alloc.c (allocate_terminal): Set the vector size to only count the
20502 lisp fields. Initialize those to nil.
20503 (mark_object): Don't treat terminals specially.
20504 (mark_terminal): Remove.
20505 (mark_terminals): Use mark_object instead.
20506
20507 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20508 the GC to the beginning.
20509
20510 * indent.h:
20511 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20512
20513 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20514
205152007-09-25 Jason Rumney <jasonr@gnu.org>
20516
20517 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20518
20519 * w32console.c (create_w32cons_output): Remove.
20520
20521 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20522
20523 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20524 (reset_sys_modes): Use reset_terminal_modes_hook.
20525
205262007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20527
20528 * eval.c (do_autoload): Don't output any message.
20529
205302007-09-24 Juri Linkov <juri@jurta.org>
20531
20532 * emacs.c (standard_args): Change priority of "--no-splash"
20533 from 40 to 3. Add "--no-desktop" with the same priority.
20534
205352007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20536
20537 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20538 and optimize the case where they are all 1.
20539
205402007-09-23 Johannes Weiner <hannes@saeurebad.de>
20541
20542 * lisp.h (abs): Define if not defined.
20543 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20544 Don't define `abs', since it's defined in lisp.h.
20545
205462007-09-22 Eli Zaretskii <eliz@gnu.org>
20547
20548 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20549 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20550 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20551 (init_tty): Use DEV_TTY instead of "/dev/tty".
20552 [WINDOWSNT]: No need to protect from NAME arg being null.
20553
205542007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20555
20556 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20557 up the tty state.
20558
205592007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20560
20561 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20562 (gpm_tty): Change its type.
20563 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20564 (gpm_tty): Change its type and initialize it.
20565 (Fterm_open_connection): Check the frame is indeed a tty.
20566 Use the new gpm_tty.
20567 (Fterm_close_connection): Use the new gpm_tty.
20568 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20569 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20570
205712007-09-21 Juanma Barranquero <lekktu@gmail.com>
20572
20573 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20574 underline_color, to draw strike-through.
20575
205762007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * lisp.h (allocate_terminal): Declare.
20579
20580 * window.c (candidate_window_p): Consider frames that are being placed
20581 by the user as somewhere between visible and iconified.
20582 (window_loop): Prefer windows on the current frame.
20583 (Fselect_window): Move the use of select-frame to the beginning so we
20584 can just delegate all the work (it'll call us back anyway).
20585
20586 * frame.c (Qdisplay_environment_variable):
20587 * frame.h (Qdisplay_environment_variable): Delete.
20588
20589 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20590 of the first arg, since that value may be a union.
20591
20592 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20593 parameter rather than Qdisplay_environment_variable. If all else
20594 fails, look for DISPLAY in initial-environment.
20595
205962007-09-21 Glenn Morris <rgm@gnu.org>
20597
20598 * Makefile.in (emacstool): Remove target.
20599 (lisp, shortlisp): Remove termdev.elc.
20600
206012007-09-21 Markus Triska <markus.triska@gmx.at>
20602
20603 * xterm.c (x_delete_display): Compile session management conditionally.
20604
206052007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20606
20607 * callproc.c (getenv_internal_1): New function.
20608 (getenv_internal): Use it.
20609 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20610
20611 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20612 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20613 (Fset_terminal_parameter): Work with dead terminals as well.
20614 (Fmodify_terminal_parameters): Remove.
20615
20616 * terminal.c (get_terminal): Handle terminals.
20617 Make sure the terminal returned is live.
20618 (create_terminal): Use allocate_terminal.
20619 (mark_terminals): Move to alloc.c.
20620 (delete_terminal): Use terminal->name as liveness status.
20621 NULL out fields after freeing their contents.
20622 Don't deallocate the object.
20623 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20624 rather than an int.
20625 (Fterminal_live_p): Accept non-integer arguments.
20626 (Fterminal_list): Return terminal objects rather than an ints.
20627
20628 * alloc.c (enum mem_type): New member for `terminal' objects.
20629 (allocate_terminal): New function.
20630 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20631 Handle terminals.
20632 (mark_terminal): New fun.
20633 (mark_terminals): Move from terminal.c.
20634
20635 * term.c (get_tty_terminal): Don't treat output_initial specially.
20636 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20637 (delete_tty): Use terminal->name as liveness status.
20638
20639 * termhooks.h (struct terminal): Make it into a pseudovector.
20640 Remove `deleted' replaced by checking `name's nullness.
20641
20642 * print.c (print_object): Handle terminals.
20643
20644 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20645 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20646
20647 * frame.c (make_terminal_frame):
20648 * keyboard.c (tty_read_avail_input):
20649 * w32term.c (x_delete_terminal):
20650 * xfns.c (Fx_create_frame, x_create_tip_frame):
20651 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20652
206532007-09-20 Glenn Morris <rgm@gnu.org>
20654
20655 * process.c (Fmake_network_process): Doc fix.
20656
206572007-09-19 Jason Rumney <jasonr@gnu.org>
20658
20659 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20660
206612007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20662
20663 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20664 Fix a C warning regarding variable constness.
20665
20666 * xterm.c (handle_one_xevent): Fix a C warning.
20667
206682007-09-18 Jason Rumney <jasonr@gnu.org>
20669
20670 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20671
206722007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20673
20674 * gtkutil.c (gdpy_def): New variable.
20675 (xg_initialize): Initialize gdpy_def.
20676 (xg_display_close): If no other display exists, set gdpy_def to a
20677 new connection.
20678
206792007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20680
20681 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20682 when we have no file name for the icon.
20683 (xg_tool_bar_expose_callback): Remove.
20684 (xg_create_tool_bar): Don't connect expose signal to
20685 xg_tool_bar_expose_callback.
20686 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20687
206882007-09-16 Andreas Schwab <schwab@suse.de>
20689
20690 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20691 values instead of zapping them.
20692
206932007-09-14 Glenn Morris <rgm@gnu.org>
20694
20695 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20696 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20697 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20698 scope and rename to omfib_buffer for clarity.
20699 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20700
207012007-09-14 Kenichi Handa <handa@m17n.org>
20702
20703 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20704
207052007-09-13 Jason Rumney <jasonr@gnu.org>
20706
20707 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20708
20709 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20710
20711 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20712 (mac_term_init): Call here instead, passing rif.
20713
207142007-09-13 Glenn Morris <rgm@gnu.org>
20715
20716 * s/hpux.h: No longer define `static' as nothing.
20717
207182007-09-13 Johan Bockgård <bojohan@gnu.org>
20719
20720 * callint.c (Fcall_interactively): Remove unused var `fun'.
20721
207222007-09-12 Romain Francoise <romain@orebokech.com>
20723
20724 * window.c (prefer_window_split_horizontally, display_buffer):
20725 Revert 2007-09-08 change.
20726
207272007-09-12 Glenn Morris <rgm@gnu.org>
20728
20729 * alloca.c: Remove file.
20730 * Makefile.in (alloca): Do not undef.
20731 (allocaobj, alloca.o): Remove.
20732 (otherobj): Remove allocaobj.
20733 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20734 * regex.c (C_ALLOCA): Remove all references and code that was only
20735 used when this was defined.
20736 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20737 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20738 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20739
20740 * Makefile.in (SOURCES, unlock, relock): Delete.
20741
20742 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20743 (menu_grab_callback): All uses changed.
20744
20745 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20746 (x_reply_selection_request): All uses changed.
20747
207482007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20749
20750 * lread.c (load_warn_old_style_backquotes): Change message to look
20751 better when it appears in the middle of byte-compiler messages.
20752
207532007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20754
20755 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20756
20757 * xterm.c (x_create_terminal): Add comment.
20758
20759 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20760
207612007-09-10 Richard Stallman <rms@gnu.org>
20762
20763 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20764
207652007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20766
20767 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20768 (DEFUN): Document `intspec', use it instead of `prompt'.
20769
20770 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20771
20772 * data.c (Finteractive_form): If the interactive specification starts
20773 with a `(', use it as a Lisp form.
20774
20775 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20776 name and file modes.
20777
20778 * callint.c (Fcall_interactively): Comment fixes.
20779
207802007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20781
20782 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20783 and compiled functions.
20784
207852007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20786
20787 * window.c (prefer_window_split_horizontally): New variable.
20788 (display_buffer): Consider splitting window horizontally depending
20789 on prefer_window_split_horizontally.
20790
207912007-09-08 Eli Zaretskii <eliz@gnu.org>
20792
20793 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20794
207952007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20796
20797 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20798
20799 * frame.c (x_set_frame_parameters): Check number is positive before
20800 using XFASTINT.
20801
20802 * window.c (freeze_window_start): Don't presume selected_window holds
20803 a window object.
20804 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20805
208062007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20807
20808 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20809
208102007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20811
20812 * window.c (Vsplit_window_preferred_function): New var.
20813 (Fdisplay_buffer): Use it.
20814 (syms_of_window): Export, and initialize it.
20815
208162007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20817
20818 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20819
208202007-09-06 Glenn Morris <rgm@gnu.org>
20821
20822 * gtkutil.c (menu_grab_callback) <cnt>:
20823 * xselect.c (x_reply_selection_request) <cnt>: Move static
20824 variable to file scope.
20825
208262007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20827
20828 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20829 consistent values of selected_frame and selected_window.
20830
208312007-09-04 Jason Rumney <jasonr@gnu.org>
20832
20833 * w32console.c (initialize_w32_display): Zero unused hooks.
20834
208352007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20836
20837 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20838 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20839
208402007-09-04 Jason Rumney <jasonr@gnu.org>
20841
20842 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20843 in w32console.c. Set up input. Remove XXX comments that have been
20844 confirmed as correct.
20845
20846 * s/ms-w32.h (MULTI_KBOARD): Define.
20847
20848 * w32console.c (one_and_only_w32cons): Remove.
20849 (initialize_w32_display): Take terminal argument.
20850
20851 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20852 initialize_w32_display.
20853 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20854
20855 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20856
20857 * keyboard.c (discard_mouse_events): Discard it.
20858 (make_lispy_event): Translate it to a lisp event.
20859 (lispy_wheel_names): Add wheel-left and right events.
20860 (syms_of_keyboard): Enlarge wheel_syms.
20861
20862 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20863 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20864
20865 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20866
20867 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20868 from WM_MOUSEHWHEEL.
20869 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20870
20871 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20872 terminal.
20873
20874 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20875 keyboard for the terminal.
20876
208772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20878
20879 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20880 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20881 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20882 and resume-tty-function to resume-tty-hook.
20883 (Fsuspend_tty, Fresume_tty): Use new names.
20884
208852007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20886
20887 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20888 if it starts with "n:".
20889
208902007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20891
20892 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20893
208942007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20895
20896 * frame.h:
20897 * frame.c (Qterm_environment_variable): Remove.
20898 (syms_of_frame): Don't init and staticpro it.
20899
20900 * callproc.c (getenv_internal): Remove special case for $TERM.
20901
20902 * callproc.c (Vinitial_environment): New variable.
20903 (set_initial_environment): Initialize it.
20904 (syms_of_callproc): Declare it.
20905 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20906 TERM under which a process runs is never related to the TERM in which
20907 Emacs is running.
20908
209092007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20910
20911 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20912 * s/darwin.h: ... do it here.
20913
209142007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20915
20916 * lisp.h (set_initial_environment): Rename from set_global_environment.
20917
20918 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20919 removed by mistake on the multi-tty branch.
20920
20921 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20922 (Fmodify_frame_parameters): Return a value.
20923
20924 * image.c (png_load): Comment-out var only used in commented-out code.
20925
20926 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20927 before passing it to mark_object.
20928
20929 * xfaces.c (internal_resolve_face_name): Return a value.
20930 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20931
20932 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20933 (x_icon): Comment-out var only used in commented-out code.
20934
209352007-08-29 Romain Francoise <romain@orebokech.com>
20936
20937 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20938 QUIT hasn't been provided.
20939
209402007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20941
20942 * callproc.c (child_setup, getenv_internal): Use the
20943 display-environment-variable and term-environment-variable frame params.
20944 (set_initial_environment): Initialise Vprocess_environment.
20945
20946 * config.in: Disable multi-keyboard support on a mac.
20947
20948 * frame.c (Qterm_environment_variable)
20949 (Qdisplay_environment_variable): New variables.
20950 (syms_of_frame): Intern and staticpro them.
20951 (Fmake_terminal_frame): Disable output method test.
20952
20953 * frame.h: Declare them here.
20954
20955 * macfns.c (x_set_mouse_color): Get rif from the frame.
20956 (x_set_tool_bar_lines): Don't use updating_frame.
20957 (mac_window): Add 2 new parameters for consistency with other systems.
20958 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20959 frame parameters following what is done in X11 and w32. Don't use
20960 FRAME_MAC_DISPLAY_INFO.
20961 (Fx_open_connection, start_hourglass): Remove window-system check.
20962 (x_create_tip_frame): Get the keyboard from the terminal.
20963
20964 * macmenu.c: Reorder includes.
20965 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20966
20967 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20968 terminal parameter.
20969 (x_clear_frame): Add a frame parameter.
20970 (note_mouse_movement): Get rif from the frame.
20971 (mac_term_init): Initialize the terminal.
20972 (mac_initialize): Make static and move terminal initialization ...
20973 (mac_create_terminal): ... to this new function.
20974
20975 * macterm.h (struct mac_display_info): Add terminal.
20976 (mac_initialize): Delete declaration.
20977
20978 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20979
20980 * sysdep.c: Comment out text after #endif.
20981
20982 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20983 is defined. Better initialize ttys in windows. Use terminal
20984 specific mouse_position_hook.
20985
20986 * termhooks.h (union display_info): Add mac_display_info.
20987
20988 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20989 Set the default minibuffer frame, window_system and the rest of the
20990 frame parameters following what is done in X11.
20991
20992 * w32term.c (w32_initialize): Make static.
20993
20994 * xselect.c (x_handle_selection_clear): Only access
20995 terminal->kboard when MULTI_KBOARD is defined.
20996
20997 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20998 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20999
210002007-08-29 Jason Rumney <jasonr@gnu.org>
21001
21002 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21003 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21004
21005 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21006 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21007
21008 * keyboard.c (restore_kboard_configuration): Only define when
21009 MULTI_KBOARD defined.
21010
21011 * makefile.w32-in: Update dependancies from Makefile.in.
21012 (OBJ1): Add terminal.$(O)
21013
21014 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21015 Don't define function body.
21016 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21017
21018 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21019
21020 * w32.c (request_sigio, unrequest_sigio): Remove.
21021
21022 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21023 (w32con_clear_frame, w32con_clear_end_of_line)
21024 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21025 (w32con_delete_glyphs, w32con_set_terminal_window)
21026 (scroll_line, w32_sys_ring_bell): Add frame arg.
21027 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21028 Add terminal arg.
21029 (PICK_FRAME): Remove.
21030 (w32con_write_glyphs): Use frame specific terminal coding.
21031 (one_and_only_w32cons): New global variable.
21032 (initialize_w32_display): Use it for storing hooks.
21033 (create_w32cons_output): New function.
21034
21035 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21036 arg a frame.
21037
21038 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21039 Set window_system.
21040 (x_set_tool_bar_lines): Don't use updating_frame.
21041 (Fx_create_frame): Set terminal and ref count.
21042 (Fx_open_connection): Remove window-system check.
21043
21044 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21045
21046 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21047 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21048 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21049 Add frame arg.
21050 (x_delete_terminal, w32_create_terminal): New functions.
21051 (w32_term_init): Create a terminal.
21052 (w32_initialize): Move terminal specific initialization to
21053 w32_create_terminal.
21054
21055 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21056 (w32_clear_rect, w32_clear_area): Use background from frame.
21057 (w32_display_info): Add terminal.
21058 (w32_sys_ring_bell, x_delete_display): Declare here.
21059
21060 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21061
21062 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21063
210642007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21065
21066 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21067 Fix get_named_tty calls for the controlling tty.
21068
210692007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21070
194d44e7 21071 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21072
210732007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21074
21075 * term.c (tty_insert_glyphs): Add missing first parameter.
21076
210772007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21078
21079 * buffer.c (Fbuffer_list, Fbury_buffer):
21080 Take frame->buried_buffer_list into account.
21081
21082 * cm.c (current_tty): New variable, for cmputc().
21083 (cmputc): Use it.
21084 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21085 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21086 (cmgoto): Add tty parameter. Pass it on to calccost().
21087 Use emacs_tputs() instead of tputs().
21088
21089 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21090 tputs().
21091 (current_tty): New variable, for cmputc().
21092 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21093
21094 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21095 (internal_condition_case, internal_condition_case_1)
21096 (internal_condition_case_2): Don't abort when x_catching_errors.
21097
21098 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21099 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21100 prevent crashes caused by bogus longjmps in read_char.
21101
21102 * keymap.h (Fset_keymap_parent): Add EXFUN.
21103
21104 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21105 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21106 Remove redundant definition.
21107
21108 * macfns.c (x_set_mouse_color, x_make_gc):
21109 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21110
21111 * w32term.c (x_free_frame_resources):
21112 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21113 (w32_initialize): Use the accessor macros for terminal characteristics.
21114
21115 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21116 Use the accessor macros for terminal characteristics.
21117 * msdos.c (internal_terminal_init): Use the accessor macros for
21118 terminal characteristics.
21119 (ScreenVisualBell, internal_terminal_init):
21120 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21121
21122 * termopts.h (no_redraw_on_reenter): Declare.
21123
21124 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21125 (mark_terminals, mark_ttys): Declare.
21126 (Fgarbage_collect): Call them.
21127 (mark_object): Mark buried_buffer_list.
21128
21129 * prefix-args.c: Include stdlib.h for exit.
21130
21131 * syssignal.h: Add comment.
21132
21133 * indent.c: Include stdio.h.
21134
21135 * window.h (Vinitial_window_system): Declare.
21136 (Vwindow_system): Delete declaration.
21137
21138 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21139
21140 * image.c (lookup_image): Don't initialize `c' until the xasserts
21141 have been run.
21142
21143 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21144 FRAME_FOREGROUND_PIXEL.
21145
21146 * print.c (print_preprocess): Don't lose print_depth levels while
21147 iterating.
21148
21149 * widget.c (update_from_various_frame_slots):
21150 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21151
21152 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21153 frames.
21154 (window_internal_height): Remove bogus make_number call.
21155 (init_window_once): Call make_terminal_frame with two zero parameters.
21156
21157 * fileio.c (Fread_file_name): Update comment.
21158
21159 * callint.c (Fcall_interactively):
21160 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21161 Make sure it is correctly unwound.
21162
21163 * xsmfns.c (x_session_close): New function.
21164
21165 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21166 Delete declarations.
21167
21168 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21169 (x_output): Remove background_pixel and foreground_pixel fields.
21170 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21171 (x_delete_device, x_session_close): Declare.
21172
21173 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21174 (read_filtered_event): Call `read_char' with a local
21175 `wrong_kboard_jmpbuf'.
21176
21177 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21178 Don't call single_kboard_state. Use FRAME_RIF.
21179
21180 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21181 systems.
21182
21183 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21184 (Fframe_with_environment, Fset_input_meta_mode)
21185 (Fset_quit_char): EXFUN.
21186 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21187 (init_sys_modes, reset_sys_modes): Update prototypes.
21188 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21189
21190 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21191 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21192 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21193 Delete declarations.
21194 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21195 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21196 New declarations.
21197
21198 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21199 already does that during init_display(). Call syms_of_keymap
21200 before syms_of_keyboard. Call `syms_of_terminal'.
21201 Call set_initial_environment, not set_process_environment.
21202 (shut_down_emacs): Call reset_all_sys_modes() instead of
21203 reset_sys_modes().
21204
21205 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21206 (internal_resolve_face_name, resolve_face_name_error): New functions.
21207 (resolve_face_name): Protect against loops and errors thrown by Fget.
21208 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21209 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21210
21211 * scroll.c: Replace CURTTY() with local variables throughout the
21212 file (where applicable).
21213 (calculate_scrolling, calculate_direct_scrolling)
21214 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21215 characteristics.
21216
21217 * keymap.c (Vfunction_key_map): Remove.
21218 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21219 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21220 (Vkey_translation_map): Remove.
21221 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21222 (Fdescribe_buffer_bindings)
21223 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21224 Update for terminal-local key-translation-map.
21225
21226 * Makefile.in (callproc.o): Update dependencies.
21227 (lisp, shortlisp): Add termdev.elc.
21228 (obj): Add terminal.o.
21229 (terminal.o): Add dependencies.
21230 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21231 (data.o, fns.o): Add termhooks.h dependency.
21232 (SOME_MACHINE_LISP): Add dnd.elc.
21233 (minibuf.o): Fix typo.
21234 Update dependencies.
21235
21236 * data.c (do_symval_forwarding, store_symval_forwarding)
21237 (find_symbol_value): Use the selected frame's keyboard, not
21238 current_kboard.
21239
21240 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21241 Vwindow_system.
21242
21243 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21244 Fmenu_bar_open.
21245 (syms_of_xmenu): Update defsubr.
21246 (mouse_position_for_popup, Fx_popup_menu)
21247 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21248 (set_frame_menubar, free_frame_menubar)
b97439ce 21249 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21250 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21251 an X frame.
21252
21253 * xselect.c (x_own_selection): Abort if not an X frame.
21254 (some_frame_on_display): Check if it is an X frame.
21255 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21256
21257 * coding.c: Include frame.h and termhooks.h.
21258 (terminal_coding, keyboard_coding): Delete.
21259 (Fset_terminal_coding_system_internal)
21260 (Fset_keyboard_coding_system_internal)
21261 (Fkeyboard_coding_system)
21262 (Fterminal_coding_system): Add a terminal parameter.
21263 Get terminal_coding from the terminal.
21264 (init_coding_once): Don't call setup_coding_system here.
21265
21266 * dispextern.h (set_scroll_region, turn_off_insert)
21267 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21268 (tty_clear_end_of_line, tty_setup_colors)
21269 (delete_tty, updating_frame)
21270 (produce_special_glyphs, produce_glyphs, write_glyphs)
21271 (insert_glyphs): Remove.
21272 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21273 (tty_turn_off_highlight, get_tty_size): Add declaration.
21274 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21275
21276 * frame.h (enum output_method): Add output_initial.
21277 (struct x_output): Delete.
21278 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21279 Access foreground_pixel and background_pixel directly from the frame.
21280 (tty_display): Delete.
21281 (struct frame): Add buried_buffer_list, foreground_pixel,
21282 background_pixel and terminal. Delete kboard.
21283 (union output_data): Add tty.
21284 (FRAME_KBOARD): Get the kboard from the terminal.
21285 (FRAME_INITIAL_P): New macro.
21286 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21287 (Qterm_environment_variable, Qdisplay_environment_variable)
21288 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21289 New declarations.
21290
21291 * termchar.h (tty_output, tty_display_info): New structures.
21292 (tty_list): Declare.
21293 (FRAME_TTY, CURTTY): New macros.
21294 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21295 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21296 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21297 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21298
21299 * callproc.c: Include frame.h and termhooks.h, for terminal
21300 parameters.
21301 (add_env): New function.
21302 (child_setup): Use it.
21303 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21304 (getenv_internal): Fix get_terminal_param call.
21305 (Fgetenv_internal, egetenv): Update doc.
21306 (syms_of_callproc): Initialize Vprocess_environment to nil.
21307 Register and initialize them. Remove obsolete defvars. Update doc
21308 strings.
21309 (child_setup): Handle Vlocal_environment_variables.
21310 (getenv_internal): Add terminal parameter.
21311 Handle Vlocal_environment_variables.
21312 (Fgetenv_internal): Add terminal parameter.
21313 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21314 environment in a frame (not terminal) parameter. Update doc strings.
21315 (set_initial_environment): Rename from set_global_environment.
21316 Store Emacs environment in initial frame parameter.
21317
21318 * xdisp.c (redisplay_internal): Update references to
21319 `previous_terminal_frame'.
21320 (display_mode_line, Fformat_mode_line): Replace calls to
21321 `push_frame_kboard' with `push_kboard'.
21322 (get_glyph_string_clip_rects): Add extra parentheses and
21323 braces to prevent compiler warnings.
21324 (calc_pixel_width_or_height): Add xassert to check that the
21325 frame is alive. Don't call `lookup_image' on a termcap frame.
21326 (message2_nolog, message3_nolog, redisplay_internal)
21327 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21328 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21329 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21330 (Fx_display_pixel_width, Fx_display_pixel_height)
21331 (Fx_display_planes, Fx_display_color_cells)
21332 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21333 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21334 (Fx_display_backing_store, Fx_display_visual_class)
21335 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21336 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21337
21338 * xfns.c (x_set_foreground_color x_set_background_color)
21339 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21340 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21341 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21342 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21343 terminal that is being deleted.
21344 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21345 frame parameter, and make sure it overrides any user-supplied setting.
21346 (Fx_close_connection, Fx_synchronize): Unify argument names with
21347 the rest of the DEFUNs.
21348
21349 * dispnew.c (Fsend_string_to_terminal): Update call to
21350 `get_tty_terminal'.
21351 (Fredraw_frame, Fsend_string_to_terminal)
21352 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21353 FRAME_TERMCAP_P and FRAME_TTY.
21354 (window_change_signal): Don't believe width/height values that are
21355 impossibly small.
21356 (Vinitial_window_system): Rename from Vwindow_system.
21357 (termscript, Wcm, rif): Delete.
21358
21359 * termhooks.h (struct terminal): New struct containing the
21360 previously global text display hooks and new members NAME,
21361 DELETED and PARAM_ALIST.
21362 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21363 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21364 (FRAME_RIF): New macros.
21365 (get_terminal_param, get_device): New declarations.
21366 (termscript): Delete declaration.
21367
21368 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21369 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21370 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21371 FRAME_FOREGROUND_PIXEL.
21372 (x_fully_uncatch_errors): Disable definition.
21373 (x_scroll_bar_expose): Fix reference to foreground pixel.
21374 (XTread_socket): Disable loop on all X displays.
21375 (x_delete_terminal): Don't set terminal->deleted and let
21376 delete_terminal delete the frames on the terminal.
21377 (x_delete_display): Doc update to reflect changes in
21378 delete_terminal.
21379 (x_display_info) <terminal>: Move member earlier in the struct.
21380 (deleting_tty): Remove old variable.
21381 (Fsuspend_tty): Call clear_tty_hooks.
21382 (Fresume_tty, init_tty): Call set_tty_hooks.
21383 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21384 errors on X frames.
21385 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21386 (handle_one_xevent): Initialize `f' to NULL.
21387 (x_delete_terminal, x_create_terminal): New functions.
21388 (XTset_terminal_modes, XTreset_terminal_modes)
21389 (XTread_socket, x_connection_closed, x_term_init)
21390 (x_term_init, x_delete_display): Add terminal parameter.
21391 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21392 X connections.
21393
21394 * frame.c: Include termchar.h.
21395 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21396 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21397 (Qdisplay_environment_variable): New vars.
21398 (Fframep): Deal with output_initial.
21399 (Fframe-live-p): Doc fix.
21400 (Fwindow-system): New function.
21401 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21402 (make_terminal_frame): Don't create frames on a terminal that is
21403 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21404 (store_frame_param): Check for found_for_frame before calling XFRAME.
21405 (Fmake_terminal_frame): Handle NULL tty names correctly.
21406 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21407 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21408 frames to refer to a deleted frame in their 'environment parameter.
21409 (Fframe_with_environment): New function.
21410 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21411 (get_future_frame_param): New function.
21412 (Fmake_terminal_frame): Use it.
21413 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21414
21415 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21416 * sysdep.c (reset_sys_modes): Update for renames.
21417
21418 * keyboard.c (tty_read_avail_input): New function.
21419 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21420 (syms_of_keyboard): Defsubr them.
21421 (Fset_input_meta_mode, Fset_quit_char): New functions.
21422 (Fset_input_mode): Split to above functions.
21423 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21424 parameter. Use it in call to `read_char'.
21425 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21426 Set wrong_kboard_jmpbuf correctly in recursive calls.
21427 Use current_kboard to access Vkeyboard_translate_table.
21428 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21429 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21430 Update longjmp invocations. Remember the original current_kboard,
21431 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21432 changes it. Comment out unnecessary calls to
21433 `record_single_kboard_state' and `any_kboard_state'.
21434 Update recursive calls.
21435 (wrong_kboard_jmpbuf): Remove global variable.
21436 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21437 Handle deleted interrupted_kboards correctly; that is a legal
21438 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21439 and read_char calls. Abort if interrupted_kboard died in read_char.
21440 (any_kboard_state, single_kboard_state)
21441 (push_frame_kboard): Remove function.
21442 (pop_kboard): Switch out of single_kboard mode if the kboard has
21443 been deleted. Remove unused variable. Help debugging by not
21444 changing current_kboard unnecessarily. Set current_kboard to the
21445 kboard of the selected frame when the stored kboard object has
21446 been deleted before pop_kboard.
21447 (temporarily_switch_to_single_kboard): Change first parameter to a
21448 frame pointer. Throw an error when caller wants to change kboards
21449 while in single_kboard mode. Don't push_kboard if we weren't in
21450 single kboard state. Don't pop_kboard if we popped into any
21451 kboard state.
21452 (restore_kboard_configuration): Abort if pop_kboard changed the
21453 kboard in single_kboard mode. Call pop_kboard only after setting
21454 up single_kboard mode.
21455 (Frecursive_edit): Switch to single_kboard mode only in nested
21456 command loops.
21457 (cmd_error, command_loop, command_loop_1, timer_check):
21458 Comment out unnecessary call to `any_kboard_state' and
21459 `record_single_kboard_state'.
21460 (delete_kboard): Exit single_kboard mode if we have just deleted
21461 that kboard. Use FRAME_KBOARD.
21462 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21463 `fatal_error_signal'.
21464 (record_single_kboard_state): Don't push_kboard if we weren't in
21465 single kboard state. Don't pop_kboard if we popped into any
21466 kboard state.
21467 (push_frame_kboard): Rename to push_kboard.
21468 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21469 (read_avail_input): Read input from all terminals.
21470 (mark_kboards): Also mark Vkeyboard_translate_table.
21471 (kbd_buffer_store_event_hold): Simplify condition.
21472 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21473 (Vkeyboard_translate_table): Move to struct kboard.
21474 (init_kboard): Initialize Vkeyboard_translate_table.
21475 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21476 Vkeyboard_translate_table. Update doc strings. Update docs of
21477 local-function-key-map and function-key-map.
21478
21479 * terminal.c: New file.
21480
21481 * term.c: Include errno.h.
21482 (Vring_bell_function, device_list, initial_device)
21483 (next_device_id, ring_bell, update_begin, update_end)
21484 (set_terminal_window, cursor_to, raw_cursor_to)
21485 (clear_to_end, clear_frame, clear_end_of_line)
21486 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21487 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21488 (syms_of_term): Move their initialization to terminal.c.
21489 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21490 (Ftty_display_color_cells)
21491 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21492 (clear_tty_hooks, set_tty_hooks)
21493 (init_tty, maybe_fatal): New functions.
21494 (Ftty_type): Return nil if terminal is not on a tty instead of
21495 throwing an error. Doc update.
21496 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21497 Doc update. Initialize new subrs and variables.
21498 (delete_tty): Use terminal->deleted.
21499 (tty_set_terminal_modes): Rename from set_terminal_modes.
21500 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21501 (set_scroll_region): Rename to `tty_set_scroll_region'.
21502 (turn_on_insert): Rename to `tty_turn_on_insert'.
21503 (turn_off_insert): Rename to `tty_turn_off_insert'.
21504 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21505 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21506 (toggle_highligh): Rename to `tty_toggle_highlight'.
21507 (background_highlight): Rename to `tty_background_highlight'.
21508 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21509 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21510 (tty_set_scroll_region, tty_background_highlight)
21511 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21512 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21513 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21514 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21515 Add static modifier.
21516 (tty_reset_terminal_modes, tty_set_terminal_window)
21517 (tty_set_scroll_region, tty_background_highlight)
21518 (tty_highlight_if_desired, tty_cursor_to)
21519 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21520 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21521 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21522 renames.
21523
215242007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21525
21526 * keyboard.c: Qrtl is new.
21527 (parse_tool_bar_item): Handle :rtl keyword.
21528 (syms_of_keyboard): Intern :rtl keyword.
21529
21530 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21531
21532 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21533 so no Lisp code is executed.
21534 (file_for_image, find_rtl_image): New functions.
21535 (xg_get_image_for_pixmap): Use file_for_image.
21536 (update_frame_tool_bar): If direction is RTL, use RTL image if
21537 defined. Use Gtk stock images if defined.
21538
215392007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21540
21541 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21542 for nonexistent or zero-width glyph in composition glyph.
21543
215442007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21545
21546 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21547
21548 * xdisp.c (Finvisible_p): New function.
21549 (syms_of_xdisp): defsubr it.
21550
215512007-08-24 Juanma Barranquero <lekktu@gmail.com>
21552
21553 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21554 Doc fixes.
21555
215562007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21557
21558 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21559
215602007-08-24 Martin Rudalics <rudalics@gmx.at>
21561
21562 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21563 whether decoding has modified buffer contents.
21564
215652007-08-24 Jason Rumney <jasonr@gnu.org>
21566
21567 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21568 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21569 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21570 (init_svg_functions) [HAVE_NTGUI]: New function.
21571 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21572 (svg_load_image): Use them.
21573 (svg_load_image) [HAVE_NTGUI]: Implement background.
21574
215752007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21576
21577 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21578 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21579 (LIBX): Remove @RSVG_LIBS@.
21580 (LIBES): Add $(RSVG_LIBS).
21581
21582 * image.c (svg_load_image): Blend with specified background if exists.
21583 Use IMAGE_BACKGROUND. Add Mac OS Support.
21584
21585 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21586 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21587 Remove macros.
21588 [MAC_OSX] (socket_callback): Do nothing.
21589 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21590 ReceiveNextEvent.
21591 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21592 socket_callback.
21593 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21594
215952007-08-22 Glenn Morris <rgm@gnu.org>
21596
21597 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21598
215992007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21600
21601 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21602
21603 * image.c: Add support for SVG images. Some additional comments
21604 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21605 (svg_image_p): New function to test for SVG image.
21606 (svg_load): New function to load SVG image.
21607 (svg_load_image): New function, helper for svg_load.
21608 (Qsvg): New Lisp_object.
21609 (svg_keyword_index): New enum.
21610 (svg_format): New static `image_keyword' struct.
21611 (svg_type): New static `image_type' struct.
21612 (librsvg/rsvg.h): Include it.
21613
216142007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21615
21616 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21617
216182007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21619
21620 * lread.c (Qold_style_backquotes): New var.
21621 (syms_of_lread): Init and staticpro it.
21622 (load_warn_old_style_backquotes): New fun.
21623 (Fload): Use them to warn about old style backquotes.
21624 (end_of_file_error, Fload): Remove unused vars.
21625
21626 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21627
21628 * lread.c (Vold_style_backquotes): New var.
21629 (syms_of_lread): Init and export it to Elisp.
21630 (read1): Set it when we find an old-style (back)quote.
21631
216322007-08-22 Jason Rumney <jasonr@gnu.org>
21633
21634 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21635
216362007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21637
21638 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21639
216402007-08-19 Richard Stallman <rms@gnu.org>
21641
21642 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21643
216442007-08-19 Andreas Schwab <schwab@suse.de>
21645
21646 * alloc.c (pure): Round PURESIZE up.
21647
216482007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21649
21650 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21651 active frame.
21652
216532007-08-16 Richard Stallman <rms@gnu.org>
21654
21655 * eval.c (Fcommandp): Add parens to clarify.
21656
21657 * minibuf.c (Fall_completions): Use enum for type of table.
21658
21659 * emacs.c (USAGE2): Improve text.
21660
216612007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21662
21663 * term.c (tty_default_color_capabilities): Declare static
21664 variables in file scope, to avoid HPUX compiler problem.
21665
216662007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21667
21668 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21669 to gtk_toolbar_insert.
21670
216712007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21672
21673 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21674
21675 * insdel.c (reset_var_on_error): New fun.
21676 (signal_before_change, signal_after_change):
21677 Use it to reset (after|before)-change-functions to nil in case of error.
21678 Bind inhibit-modification-hooks to t.
21679 Don't bind (after|before)-change-functions to nil while they run.
21680
216812007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21682
21683 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21684 filling pixmap with stippled background.
21685
216862007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21687
21688 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21689 Don't use invisible frame as parent window for repositioning.
21690
216912007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21692
21693 * print.c (new_backquote_output): Rename from old_backquote_output.
21694 (print): Inverse its logic (according to its name) so as to match the
21695 behavior of new_backquote_flag in lread.c.
21696
216972007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21698
21699 * gmalloc.c (posix_memalign): New function.
21700
21701 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21702 ActivateControl/DeactivateControl here.
21703 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21704 frame-notice-user-settings is non-nil.
21705 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21706 for kEventParamFMFontStyle.
21707 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21708 mac_pass_command_to_system and mac_pass_control_to_system here.
21709 (XTread_socket): Call ActivateControl/DeactivateControl here.
21710 (XTread_socket) [TARGET_API_MAC_CARBON]:
21711 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21712 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21713 for window repositioning.
21714
217152007-08-08 Glenn Morris <rgm@gnu.org>
21716
21717 * Replace `iff' in doc-strings and comments.
21718
217192007-08-07 Chong Yidong <cyd@stupidchicken.com>
21720
21721 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21722
217232007-08-07 Martin Rudalics <rudalics@gmx.at>
21724
21725 * fileio.c (Finsert_file_contents): Run format-decode and
21726 after_insert_file_functions on entire buffer when REPLACE is
21727 non-nil and inhibit modification_hooks and point_motion_hooks.
21728 For consistency, run after_insert_file_functions iff something
21729 got inserted. Move signal_after_change and update_compositions
21730 after code running after_insert_file_functions. Make sure that
21731 undo_list doesn't record intermediate steps of the decoding process.
21732
217332007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21734
21735 * emacs.c (main)
21736 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21737 Call malloc_enable_thread on interactive startup.
21738
21739 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21740 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21741 [USE_PTHREAD]: Conditionalize with it.
21742 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21743 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21744 New functions.
21745
217462007-08-06 Chong Yidong <cyd@stupidchicken.com>
21747
21748 * xdisp.c (redisplay_window): When restoring original buffer
21749 position, make sure it is still valid.
21750
21751 * image.c (png_load): Ignore png-supplied background color.
21752
217532007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21754
21755 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21756 Use kCFAbsoluteTimeIntervalSince1970.
21757
21758 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21759 New variable.
21760 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21761 event loop should be quit.
21762 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21763 Quit dialog event loop if quit_dialog_event_loop is set.
21764
21765 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21766 (Selection): New typedef. Use instead of ScrapRef.
21767 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21768 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21769 (mac_clear_selection): Rename from clear_scrap.
21770 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21771 scrap_has_target_type. All uses changed.
21772 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21773 (mac_selection_has_target_p): New functions.
21774 (mac_put_selection_value): Rename from put_scrap_string.
21775 (mac_get_selection_value): Rename from get_scrap_string.
21776 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21777 (put_scrap_private_timestamp, scrap_has_target_type)
21778 (get_scrap_private_timestamp): Remove functions.
21779 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21780 (x_own_selection, x_get_local_selection):
21781 Use mac_valid_selection_value_p.
21782 (x_own_selection): Don't use put_scrap_private_timestamp.
21783 Record OWNERSHIP-INFO into Vselection_alist instead.
21784 (x_get_local_selection): Don't check type if request is local.
21785 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21786 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21787
217882007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21789
21790 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21791 add comment explaining why.
21792
217932007-08-03 Richard Stallman <rms@gnu.org>
21794
21795 * fileio.c (Fvisited_file_modtime): Use make_time.
21796
217972007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21798
21799 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21800 build.
21801
218022007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21803
21804 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21805
218062007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21807
21808 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21809
218102007-07-30 Richard Stallman <rms@gnu.org>
21811
21812 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21813
218142007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21815
21816 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21817
218182007-07-28 Nick Roberts <nickrob@snap.net.nz>
21819
21820 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21821 remote default-directory.
21822
21823 * buffer.c (mode-line-format): Update doc string.
21824
218252007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21826
21827 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21828 scroll bar gap.
21829 (x_scroll_bar_create): Set bar->fringe_extended_p.
21830 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21831 on frame edge. Check fringe background extension. Don't clear
21832 extended fringe background area.
21833
21834 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21835 (w32_fill_area): Enclose multiple statements with do ... while (0).
21836
21837 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21838 Extend fringe background to scroll bar gap.
21839 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21840 Set bar->fringe_extended_p.
21841 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21842 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21843 background extension. Don't clear extended fringe background area.
21844
21845 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21846 New member fringe_extended_p.
21847
218482007-07-25 Glenn Morris <rgm@gnu.org>
21849
21850 * Relicense all FSF files to GPLv3 or later.
21851
21852 * COPYING: Switch to GPLv3.
21853
218542007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21855
21856 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21857
21858 * data.c (Finteractive_form): Check for the presence of an
21859 `interactive-form' symbol property more thoroughly.
21860
21861 * data.c (Finteractive_form): Use an `interactive-form' property if
21862 present, analogous to the function-documentation property.
21863
218642007-07-24 Jason Rumney <jasonr@gnu.org>
21865
21866 * w32fns.c (x_real_positions): Get real position from OS instead of
21867 calculating it.
21868
218692007-07-23 Jason Rumney <jasonr@gnu.org>
21870
21871 * filelock.c (current_lock_owner): Allow for @ sign in username.
21872
218732007-07-22 Nick Roberts <nickrob@snap.net.nz>
21874
21875 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21876 remote default-directory.
21877
21878 * buffer.c (mode-line-format): Describe above case in doc string.
21879
218802007-07-20 Eli Zaretskii <eliz@gnu.org>
21881
21882 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21883 Define if not defined.
21884
218852007-07-18 Jason Rumney <jasonr@gnu.org>
21886
21887 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21888
218892007-07-18 Richard Stallman <rms@gnu.org>
21890
21891 * data.c (Fsetq_default): Doc fix.
21892
21893 * eval.c (Fsetq): Doc fix.
21894
218952007-07-18 Juanma Barranquero <lekktu@gmail.com>
21896
21897 * coding.c (Ffind_operation_coding_system):
21898 * eval.c (For, Fand): Doc fixes.
21899 Reported by Johan Bockgård.
21900
219012007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21902
21903 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21904
21905 * xterm.h: Declare x_ewmh_activate_frame.
21906
21907 * xterm.c (x_ewmh_activate_frame): New function.
21908 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21909
219102007-07-17 Martin Rudalics <rudalics@gmx.at>
21911
21912 * window.c (Fdisplay_buffer): If largest or LRU window is the
21913 only window, split it even if it is not eligible for splitting.
21914 This restores the original behavior broken by the 2007-07-15
21915 change.
21916
219172007-07-17 Glenn Morris <rgm@gnu.org>
21918
21919 * abbrev.c (abbrev_check_chars): New function.
21920 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21921 Call abbrev_check_chars to check abbrev characters are word
21922 constituents. Doc fix.
21923
219242007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21925
21926 * process.c (Fstart_process, Fmake_network_process)
21927 (read_process_output): Fix up last changes.
21928
219292007-07-16 Eli Zaretskii <eliz@gnu.org>
21930
21931 * makefile.w32-in (clean): Don't delete *~.
21932
219332007-07-16 Andreas Schwab <schwab@suse.de>
21934
21935 * window.c (Fdisplay_buffer): Use NILP.
21936 (Fset_window_scroll_bars): Likewise.
21937
219382007-07-15 Martin Rudalics <rudalics@gmx.at>
21939
21940 * window.c (window_min_size_2): New function.
21941 (window_min_size_1, size_window, Fdisplay_buffer)
21942 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21943 windows without mode- or header-lines when window-min-height is
21944 too small.
21945 (size_window): Reset nodelete_p after testing it, following an
21946 earlier note by Kim F. Storm.
21947 (display_buffer): Do not set split_height_threshold to twice the
21948 value of window_min_height to avoid changing the value of a
21949 customizable variable. Rather explicitly check whether the
21950 height of the window that shall be splitted is at least as large
21951 as split_height_threshold.
21952 (Fwindow_full_width_p): New defun.
21953 (syms_of_window): Defsubr it.
21954
21955 * window.h: Add EXFUN for Fwindow_full_width_p.
21956
219572007-07-14 Jason Rumney <jasonr@gnu.org>
21958
21959 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21960
219612007-07-14 Richard Stallman <rms@gnu.org>
21962
21963 * eval.c (maybe_call_debugger): New function.
21964 (find_handler_clause): Use maybe_call_debugger.
21965 Call it when the handler says `debug'.
21966 Eliminate DEBUGGER_VALUE_PTR.
21967 (Fsignal): Eliminate debugger_value.
21968 (Qdebug): New variable.
21969 (syms_of_eval): Initialize it.
21970
219712007-07-14 Juanma Barranquero <lekktu@gmail.com>
21972
21973 * eval.c (Fprogn):
21974 * keyboard.c (Ftrack_mouse):
21975 * print.c (Fwith_output_to_temp_buffer):
21976 * window.c (Fsave_window_excursion): Doc fix.
21977
219782007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21979
21980 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21981
219822007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21983
21984 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21985 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21986 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21987 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21988 Remove unused encoding_carryover.
21989 * process.c: Adjust all functions accordingly.
21990
219912007-07-12 Richard Stallman <rms@gnu.org>
21992
21993 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21994
219952007-07-11 Jason Rumney <jasonr@gnu.org>
21996
21997 * makefile.w32-in (LIBS): Include OLE32.
21998
21999 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22000 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22001
220022007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22003
22004 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22005 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22006 from a Lisp_Object into a bare pointer.
22007 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22008 Adjust the code correspondingly.
22009
22010 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22011
22012 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22013 (term_show_mouse_face): Remove unused var `j'.
22014 (handle_one_term_event): Remove unused vars `i' and `j'.
22015 Don't cast return value of ttyname since it's not necessary.
22016
220172007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22018
22019 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22020 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22021
22022 * fns.c (map_char_table): Use an array of int for `indices' rather than
22023 an array of Lisp_Objects (which are only ever integers anyway).
22024 (Fmap_char_table): Update caller.
22025 * lisp.h: Update prototype.
22026 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22027 * fontset.c (Ffontset_info):
22028 * casetab.c (set_case_table): Update callers.
22029
22030 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22031
22032 * keymap.c (struct accessible_keymaps_data)
22033 (struct where_is_internal_data): New structures.
22034 (accessible_keymaps_1, where_is_internal_1): Use them to change
22035 interface to adhere to the one used by map_keymap.
22036 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22037 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22038
22039 * keymap.h (map_keymap_function_t): More informative prototype.
22040
220412007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22042
22043 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22044 (looking_at_1): Don't change search_regs and last_thing_searched
22045 if `inhibit-changing-match-data' is non-nil.
22046 (string_match_1, search_buffer, set_search_regs): Likewise.
22047 (syms_of_search): Add Lisp level definition for
22048 `inhibit-changing-match-data' and set it to nil.
22049 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22050 start and end of the match, instead of using values in search_regs.
22051
220522007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22053
22054 * minibuf.c (Fcompleting_read): New value `confirm-only'
22055 for `require-match'.
22056
220572007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22058
22059 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22060 part of the 2007-06-27 change to syms_of_fileio.
22061
220622007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22063
22064 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22065 Check WINDOWP before using XWINDOW. Consolidate return statements.
22066
220672007-06-27 Richard Stallman <rms@gnu.org>
22068
22069 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22070
220712007-06-27 Juanma Barranquero <lekktu@gmail.com>
22072
22073 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22074
220752007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22076
22077 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22078 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22079 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22080 (_free_internal, memalign): Use them.
22081 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22082 Initialize to PTHREAD_MUTEX_INITIALIZER.
22083 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22084 (morecore_nolock): Rename from morecore. All uses changed.
22085 Use only nolock versions of internal allocation functions.
22086 (_malloc_internal_nolock, _realloc_internal_nolock)
22087 (_free_internal_nolock): New functions created from
22088 _malloc_internal, _realloc_internal, and _free_internal.
22089 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22090 Copy hook value to automatic variable before its use.
22091 (memalign): Copy hook value to automatic variable before its use.
22092
220932007-06-26 Kenichi Handa <handa@m17n.org>
22094
22095 * coding.c (Ffind_operation_coding_system): Docstring improved.
22096 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22097
220982007-06-25 David Kastrup <dak@gnu.org>
22099
22100 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22101 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22102 cater for additional parameter.
22103
22104 * keymap.h: Adjust number of parameters to `current-active-maps'.
22105
22106 * doc.c (Fsubstitute_command_keys): Adjust call of
22107 `current-active-maps'.
22108
221092007-06-25 David Kastrup <dak@gnu.org>
22110
22111 * callint.c (Fcall_interactively): Make the parsing of interactive
22112 specs somewhat more readable.
22113
221142007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22115
22116 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22117 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22118 if extended background has already been filled.
22119
221202007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22121
22122 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22123 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22124
22125 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22126 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22127 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22128 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22129 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22130 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22131 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22132 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22133 Run timers during dialog popup.
22134 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22135
221362007-06-21 Jason Rumney <jasonr@gnu.org>
22137
22138 * image.c (convert_mono_to_color_image): Swap fore and background.
22139
221402007-06-20 Jason Rumney <jasonr@gnu.org>
22141
22142 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22143 (w32_free_bdf_font): Unmap memory not handle.
22144
221452007-06-20 Sam Steingold <sds@gnu.org>
22146
22147 * gmalloc.c (__morecore): Fix the declaration to comply with the
22148 definition.
22149
221502007-06-20 Juanma Barranquero <lekktu@gmail.com>
22151
22152 * w32term.c (w32_delete_display): Remove leftover declaration.
22153 (w32_define_cursor, w32_initialize): Make static.
22154
22155 * w32.c (_wsa_errlist): Fix typo in error message.
22156 (init_environment): Ignore any environment variable from the
22157 registry having a null value.
22158
221592007-06-20 Glenn Morris <rgm@gnu.org>
22160
22161 * Makefile.in (LIBGIF): Default to -lgif.
22162
221632007-06-17 Jason Rumney <jasonr@gnu.org>
22164
22165 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22166 unicode strings.
22167
221682007-06-16 Juanma Barranquero <lekktu@gmail.com>
22169
22170 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22171 Fix typo in docstring.
22172
221732007-06-16 Eli Zaretskii <eliz@gnu.org>
22174
22175 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22176 and their keybindings.
22177
221782007-06-15 Chong Yidong <cyd@stupidchicken.com>
22179
22180 * composite.c (update_compositions): Fix last fix.
22181
221822007-06-14 Jason Rumney <jasonr@gnu.org>
22183
22184 * w32.c (get_process_times_fn): New function pointer.
22185 (globals_of_w32): Intialize it if present in kernel32.dll.
22186 (w32_get_internal_run_time): New function.
22187
22188 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22189
221902007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22191
22192 * composite.c (update_compositions): Check the validness of
22193 compositions.
22194
221952007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22196
22197 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22198 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22199
22200 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22201 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22202
22203 * macgui.h (USE_MAC_TOOLBAR): New define.
22204
22205 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22206 Return immediately unless popup is activated.
22207
22208 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22209 background to scroll bar gap.
22210 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22211 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22212 scroll bars on frame edge. Check fringe background extension.
22213 Don't clear extended fringe background area.
22214 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22215 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22216 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22217 [USE_MAC_TOOLBAR]: New macros.
22218 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22219 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22220 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22221 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22222 [USE_MAC_TOOLBAR]: New functions.
22223 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22224 manually if previous repositioning has failed.
22225 (mac_handle_keyboard_event): Use precomputed event kind.
22226 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22227 as tool bar item click. Handle mouse movement over tool bar items.
22228
22229 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22230 toolbar_win_gravity.
22231 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22232 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22233 Add externs.
22234
22235 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22236 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22237
222382007-06-14 Chong Yidong <cyd@stupidchicken.com>
22239
22240 * image.c (search_image_cache): Remove unused variable.
22241
222422007-06-13 Chong Yidong <cyd@stupidchicken.com>
22243
22244 * xfns.c, xmenu.c: Link to xaw3d if available.
22245
222462007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22247
22248 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22249 frame_foreground and frame_background.
22250
22251 * image.c (lookup_image): Save frame foreground and background colors.
22252 (search_image_cache): Check if saved and current frame colors match.
22253
222542007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22255
22256 * regex.c (regex_compile): Remove the `regnum' counter.
22257 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22258
222592007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22260
22261 * term.c: Include intervals.h to declare Fget_text_property.
22262
222632007-06-10 Jason Rumney <jasonr@gnu.org>
22264
22265 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22266
222672007-06-08 Juanma Barranquero <lekktu@gmail.com>
22268
22269 * callint.c (Fcall_interactively):
22270 * editfns.c (Fdelete_and_extract_region):
22271 * fileio.c (Fread_file_name):
22272 * fns.c (Fmapconcat):
22273 * keyboard.c (cmd_error_internal):
22274 * keymap.c (Fkey_description):
22275 * lread.c (openp):
22276 * minibuf.c (read_minibuf):
22277 * search.c (wordify):
22278 * sunfns.c (sel_read):
22279 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22280 * xfns.c (x_default_scroll_bar_color_parameter):
22281 * xmenu.c (menu_help_callback):
22282 * xselect.c (Fx_get_atom_name):
22283 * xterm.c (x_term_init): Use empty_unibyte_string.
22284
222852007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22286
22287 * alloc.c (init_strings): Initialize canonical empty strings.
22288 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22289 canonical empty string when the requested size is 0.
22290
22291 * emacs.c (empty_unibyte_string): Rename from empty_string.
22292 (empty_multibyte_string): New canonical empty string.
22293 (syms_of_emacs): Don't initialize empty_string.
22294
22295 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22296 string, if appropriate.
22297 (empty_unibyte_string, empty_multibyte_string): New externs.
22298 (empty_string): Remove extern.
22299
22300 * lread.c (syms_of_lread): Use empty_unibyte_string.
22301
223022007-06-07 Jason Rumney <jasonr@gnu.org>
22303
22304 * s/ms-w32.h: Don't define HAVE_TZNAME.
22305
22306 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22307
223082007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22309
22310 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22311
22312 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22313 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22314
22315 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22316 Don't call next handler.
22317 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22318 Remove argument. Install handler to application.
22319 (set_frame_menubar): Don't change deep_p.
22320 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22321 FRAME_OUTER_TO_INNER_DIFF_Y.
22322 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22323 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22324 [HAVE_DIALOGS]: New macros.
22325 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22326 Use them.
22327 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22328
22329 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22330 init_service_handler. All callers changed. Return OSStatus value.
22331
22332 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22333 All callers changed so as not to call SetPortWindowPort.
22334 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22335 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22336 mac_draw_string_common.
22337 (mac_draw_image_string_qd): Likewise.
22338 (mac_draw_string_common): Use them. Add INLINE.
22339 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22340 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22341 GetGlobalMouse.
22342 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22343 and FRAME_OUTER_TO_INNER_DIFF_Y.
22344 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22345 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22346 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22347 repositioning window to mac_handle_window_event.
22348 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22349 saving window location to mac_handle_window_event
22350 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22351 (install_menu_target_item_handler): Remove argument in extern.
22352 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22353 Also accept command events.
22354 (do_keystroke): New function created from XTread_socket.
22355 (init_command_handler): Remove functions.
22356 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22357 and save window location by kEventWindowShowing and kEventWindowHiding
22358 handlers here. Don't call next handler for window state change and
22359 focus events.
22360 (mac_handle_application_event, mac_handle_keyboard_event)
22361 [TARGET_API_MAC_CARBON]: New functions.
22362 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22363 kEventWindowShowing and kEventWindowHiding events. Move installation
22364 of mouse, font, text input and menu target item handlers to
22365 install_application_handler.
22366 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22367 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22368 New function.
22369 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22370 Register it.
22371 (XTread_socket) [TARGET_API_MAC_CARBON]:
22372 Consolidate SendEventToEventTarget calls.
22373 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22374 Move application activation handler to mac_handle_application_event.
22375 Move keyboard handler to mac_handle_keyboard_event.
22376 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22377 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22378 init_command_handler. Call install_application_handler.
22379
22380 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22381 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22382
223832007-06-07 Glenn Morris <rgm@gnu.org>
22384
22385 * emacs.c (main): Use `emacs-copyright' in --version output.
22386
223872007-06-06 Chong Yidong <cyd@stupidchicken.com>
22388
22389 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22390
223912007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22392
22393 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22394
22395 * macgui.h: Replace WindowPtr with WindowRef.
22396
22397 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22398 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22399 Replace ControlHandle with ControlRef.
22400 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22401
22402 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22403 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22404 Replace ControlHandle with ControlRef.
22405 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22406 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22407
22408 * macterm.h (struct scroll_bar): Rename member control_handle_low
22409 and control_handle_high to control_ref_low and control_ref_high.
22410 All uses changed.
22411 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22412 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22413 respectively. All uses changed.
22414 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22415 (install_window_handler, remove_window_handler): Replace WindowPtr
22416 with WindowRef in externs.
22417
224182007-06-05 Juanma Barranquero <lekktu@gmail.com>
22419
22420 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22421
224222007-06-03 Nick Roberts <nickrob@snap.net.nz>
22423
22424 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22425
22426 * frame.c (Fmouse_position, Fmouse_pixel_position):
22427 Condition on HAVE_GPM too.
22428
22429 * term.c (term_mouse_highlight): Remove unused variables.
22430 (Fterm_open_connection): Set gpm_zerobased to 1.
22431 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22432 Use zero based co-ordinates.
22433 (handle_one_term_event): Report a drag as mouse movement too.
22434
22435 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22436
224372007-06-03 Chong Yidong <cyd@stupidchicken.com>
22438
22439 * image.c (search_image_cache): New function. Require background
22440 color match if background color is unspecified in the image spec.
22441 (uncache_image, lookup_image): Use it.
22442
224432007-06-01 Juanma Barranquero <lekktu@gmail.com>
22444
22445 * window.c (Fshrink_window): Reflow docstring.
22446
224472007-06-02 Chong Yidong <cyd@stupidchicken.com>
22448
22449 * Version 22.1 released.
22450
224512007-06-01 Richard Stallman <rms@gnu.org>
22452
22453 * xfns.c (x_encode_text): Add GCPRO.
22454
224552007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22456
22457 * xfns.c (x_set_name_internal): Save encoded name before
22458 x_encode_text in case string data is relocated.
22459
224602007-05-31 Richard Stallman <rms@gnu.org>
22461
22462 * buffer.c (syms_of_buffer): Doc fix.
22463
224642007-05-30 Nick Roberts <nickrob@snap.net.nz>
22465
22466 * sysdep.c (init_sys_modes): Add rather than replace with
22467 O_NONBLOCK.
22468
22469 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22470 term_mouse_moveto.
22471
22472 * termhooks.h (term_mouse_moveto): New extern.
22473
22474 * term.c (mouse_face_window): Rename...
22475 (Qmouse_face_window): ...to this.
22476 (term_show_mouse_face, term_clear_mouse_face)
22477 (term_mouse_highlight): Use Qmouse_face_window.
22478 (term_mouse_moveto): New function.
22479 (term_mouse_position): Make it work.
22480 (syms_of_term): Uncomment assignment to mouse_position_hook.
22481 Staticpro Qmouse_face_window.
22482
224832007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22484
22485 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22486 around current_column call.
22487
224882007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22489
22490 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22491 * xdisp.c (next_element_from_buffer):
22492 * window.c (delete_window):
22493 * term.c (term_mouse_highlight):
22494 * msdos.c (getdefdir):
22495 * macterm.c (mac_create_bitmap_from_bitmap_data)
22496 (init_font_name_table):
22497 * fns.c (Fsxhash):
22498 * data.c (Fmake_local_variable):
22499 * ccl.c (ccl_driver): Likewise.
22500
225012007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22502
22503 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22504 Call mac_wakeup_from_rne on window size change.
22505
225062007-05-25 Chong Yidong <cyd@stupidchicken.com>
22507
22508 * image.c (uncache_image): Fix typo.
22509
225102007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22511
22512 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22513
225142007-05-22 Richard Stallman <rms@gnu.org>
22515
22516 * xterm.c (x_connection_closed): Remove NO_RETURN.
22517
225182007-05-22 Martin Rudalics <rudalics@gmx.at>
22519
22520 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22521
225222007-05-21 Chong Yidong <cyd@stupidchicken.com>
22523
22524 * image.c (uncache_image): New function.
22525 (Fimage_refresh): New function.
22526
225272007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22528
22529 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22530
225312007-05-20 Nick Roberts <nickrob@snap.net.nz>
22532
22533 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22534 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22535
225362007-05-20 Nick Roberts <nickrob@snap.net.nz>
22537
22538 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22539 conditional on [HAVE_GPM_H].
22540
225412007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22542
22543 * syntax.c (skip_chars): Update syntax-table only after we checked that
22544 the new location is valid.
22545
225462007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22547
22548 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22549 mac_get_window_bounds.
22550
225512007-05-20 Nick Roberts <nickrob@snap.net.nz>
22552
22553 * Makefile.in (LIBGPM): Allow it to be set from configure.
22554 If set then link Emacs with it.
22555
22556 * config.in: Regenerate.
22557
22558 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22559 New externs.
22560
22561 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22562 Include gpm.h.
22563 (handle_one_term_event, term_gpm): New externs.
22564
22565 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22566 and allow it to be interrupted by SIGIO.
22567
22568 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22569 (wait_reading_process_output): Wait on gpm_fd too.
22570 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22571 (add_gpm_wait_descriptor_called_flag): New variable.
22572 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22573
22574 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22575 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22576 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22577 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22578 (make_lispy_event): Add case GPM_CLICK_EVENT.
22579 (read_avail_input): Handle mouse input.
22580
22581 * term.c (write_glyphs_with_face): New function.
22582 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22583 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22584 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22585 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22586 (last_mouse_x, last_mouse_y): New variables.
22587 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22588 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22589 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22590 (Fterm_close_connection): New functions.
22591 (term_init): Initialise mouse_face_window.
22592
225932007-05-19 Chong Yidong <cyd@stupidchicken.com>
22594
22595 * xdisp.c (redisplay_window): If first window line is a
22596 continuation line, recompute the new window start instead of
22597 recentering.
22598
225992007-05-18 Glenn Morris <rgm@gnu.org>
22600
22601 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22602 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22603
226042007-05-17 Glenn Morris <rgm@gnu.org>
22605
22606 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22607
226082007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22609
22610 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22611 dead key repeat and up events.
22612
226132007-05-14 Chong Yidong <cyd@stupidchicken.com>
22614
22615 * image.c (pbm_load): Check image size for monochrome pbm.
22616
226172007-05-13 Chong Yidong <cyd@stupidchicken.com>
22618
22619 * xterm.c (XTread_socket): Revert last change.
22620
226212007-05-12 Chong Yidong <cyd@stupidchicken.com>
22622
22623 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22624
22625 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22626
226272007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22628
22629 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22630 mixup (YAILOM).
22631
226322007-05-07 Andreas Schwab <schwab@suse.de>
22633
22634 * keymap.c (Flookup_key): Fix typo in last change.
22635
226362007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22637
22638 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22639 mapping for unibyte strings.
22640
226412007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22642
22643 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22644 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22645
226462007-04-29 Richard Stallman <rms@gnu.org>
22647
22648 * insdel.c (replace_range): For undo, record insertion first.
22649
226502007-04-29 Andreas Schwab <schwab@suse.de>
22651
22652 * lisp.h (VECSIZE): Use OFFSETOF.
22653
226542007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22655
22656 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22657 disabled lines.
22658
226592007-04-28 Richard Stallman <rms@gnu.org>
22660
22661 * lread.c (read_escape): In a string, \s is always space.
22662
226632007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22664
22665 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22666
22667 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22668 submenu for menu bar items.
22669
22670See ChangeLog.10 for earlier changes.
22671
22672;; Local Variables:
22673;; coding: utf-8
22674;; add-log-time-zone-rule: t
aac0c6e3
MR
22675;; End:
22676
5df4f04c 22677 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22678
22679 This file is part of GNU Emacs.
22680
22681 GNU Emacs is free software: you can redistribute it and/or modify
22682 it under the terms of the GNU General Public License as published by
22683 the Free Software Foundation, either version 3 of the License, or
22684 (at your option) any later version.
22685
22686 GNU Emacs is distributed in the hope that it will be useful,
22687 but WITHOUT ANY WARRANTY; without even the implied warranty of
22688 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22689 GNU General Public License for more details.
22690
22691 You should have received a copy of the GNU General Public License
22692 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22693
22694;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40