]> code.delx.au - gnu-emacs/blob - src/ChangeLog
f9c158115473b47f2637b1f6499cffb62a1a379f
[gnu-emacs] / src / ChangeLog
1 2011-02-22 Kenichi Handa <handa@m17n.org>
2
3 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
4 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
5 integer.
6
7 2011-02-19 Chong Yidong <cyd@stupidchicken.com>
8
9 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
10
11 2011-02-13 Eli Zaretskii <eliz@gnu.org>
12
13 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
14 window is changed inside calls to do_pending_window_change.
15 (Bug#8020)
16
17 2011-02-12 Eli Zaretskii <eliz@gnu.org>
18
19 * terminal.c (create_terminal): Use default-keyboard-coding-system
20 and default-terminal-coding-system to initialize coding systems of
21 the new terminal. (Bug#7840)
22
23 2011-02-09 Martin Rudalics <rudalics@gmx.at>
24
25 * window.c (select_window): Check inhibit_point_swap argument when
26 deciding whether to return immediately.
27
28 2011-02-08 Jan Djärv <jan.h.d@swipnet.se>
29
30 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
31 zero (Bug#7348).
32
33 2011-02-03 Glenn Morris <rgm@gnu.org>
34
35 * xfaces.c (Finternal_set_lisp_face_attribute):
36 Try to clarify some error messages. (Bug#2659)
37
38 2011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
39
40 * editfns.c (save_restriction_restore): Don't forget to invalidate the
41 current_column cache (bug#7946).
42
43 2011-02-02 Kenichi Handa <handa@m17n.org>
44
45 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
46
47 * xftfont.c (xftfont_open): Likewise.
48
49 2011-02-01 Andreas Schwab <schwab@linux-m68k.org>
50
51 * window.c (Fselect_window): Add missing return value.
52
53 2011-01-29 Andreas Schwab <schwab@linux-m68k.org>
54
55 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
56 of int. All uses adjusted.
57 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
58 (svg_load_image): Remove casts.
59
60 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
61
62 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
63 function definitions for compiling with libpng-1.5.
64 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
65 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
66 (Bug#7908).
67
68 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
69
70 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
71
72 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
73
74 * font.c (font_parse_fcname): Require GTK-style font sizes to
75 occur at the end of the font string (Bug#7853).
76
77 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
78
79 * font.c (font_parse_fcname): Fix typo in string length.
80
81 2011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
84 the buffer's point-max (bug#7876).
85
86 2011-01-23 Chong Yidong <cyd@stupidchicken.com>
87
88 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
89 Remove unused HAVE_SHM branch (Bug#6811).
90
91 2011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
92
93 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
94
95 2011-01-22 Martin Rudalics <rudalics@gmx.at>
96
97 * window.c (select_window): New function.
98 (Fselect_window): Call it.
99 (inhibit_point_swap): Variable deleted.
100 (Fset_window_configuration): Call select_window directly.
101
102 2011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
103
104 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
105
106 2011-01-16 Eli Zaretskii <eliz@gnu.org>
107
108 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
109
110 2011-01-15 Martin Rudalics <rudalics@gmx.at>
111
112 * window.c (inhibit_point_swap): New variable.
113 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
114 point this time.
115 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
116 of setting selected_window to nil (Bug#7728).
117
118 2011-01-12 Chong Yidong <cyd@stupidchicken.com>
119
120 * config.in (TERMINFO): New definition.
121
122 * s/netbsd.h: Use it to choose between terminfo and termcap
123 (Bug#7642).
124
125 2011-01-03 Jan Djärv <jan.h.d@swipnet.se>
126
127 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
128
129 * nsfns.m (ns_set_name_iconic): Remove.
130 (ns_get_screen): Don't assign integer to f.
131 (ns_set_name_internal): New function (Bug#7517).
132 (Vicon_title_format): Extern declare.
133 (ns_set_name): Call ns_set_name_internal.
134 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
135 (x_implicitly_set_name): Ditto.
136 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
137 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
138 Always use buffer name for title and buffer filename only for
139 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
140
141 2011-01-03 Eli Zaretskii <eliz@gnu.org>
142
143 * image.c (png_jmpbuf): Remove definition.
144 (my_png_error, png_load): Don't use png_jmpbuf.
145
146 2010-12-31 Eli Zaretskii <eliz@gnu.org>
147
148 * image.c <Qlibpng_version>: New variable.
149 (syms_of_image): Intern and staticpro it. Set its value to the
150 version of PNG library we were compiled with.
151 (my_png_error, png_load): Avoid GCC warnings about direct access
152 to png_ptr->jmpbuf. (Bug#7716)
153 (png_jmpbuf): New macro.
154 (my_png_error, png_load): Use it instead of #ifdef'ing according
155 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
156
157 2010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
158
159 * .gdbinit (xgetptr): Fix the union+lsb case.
160 (xbacktrace): Fix the union case.
161
162 2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
163
164 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
165 different from selected-window's.
166
167 2010-12-25 Eli Zaretskii <eliz@gnu.org>
168
169 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
170 equivalent of a menu item when the key sequence is given by the
171 `:keys' attribute. (Bug#7662)
172
173 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
174 the basic faces are supported.
175
176 2010-12-24 Jan Djärv <jan.h.d@swipnet.se>
177
178 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
179
180 2010-12-17 Eli Zaretskii <eliz@gnu.org>
181
182 * xdisp.c (Fformat_mode_line): Fix last change.
183
184 2010-12-16 Chong Yidong <cyd@stupidchicken.com>
185
186 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
187 faces (Bug#7587).
188
189 2010-12-13 Eli Zaretskii <eliz@gnu.org>
190
191 * fileio.c (Fexpand_file_name): One more doc fix.
192
193 2010-12-12 Eli Zaretskii <eliz@gnu.org>
194
195 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
196
197 2010-12-11 Eli Zaretskii <eliz@gnu.org>
198
199 * w32fns.c (Fx_show_tip): Call try_window with last argument
200 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
201 solved. Round up the tip height to an integral multiple of the
202 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
203 (Bug#7398)
204
205 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
206 (face_before_or_after_it_pos, next_element_from_string)
207 (next_element_from_c_string, produce_stretch_glyph): Remove unused
208 calculations of maximum string length before calling
209 string_char_and_length and STRING_CHAR_AND_LENGTH.
210 (string_char_and_length): Update commentary: MAXLEN is no longer
211 needed.
212
213 2010-12-10 Jan Djärv <jan.h.d@swipnet.se>
214
215 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
216 as (Qsave_session arg).
217
218 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
219 (smc_die_CB): Make an event with arg Qt.
220 (Fhandle_save_session): If event has Qt as argument,
221 call Fkill_emacs (Bug#7552).
222
223 2010-12-07 Jan Djärv <jan.h.d@swipnet.se>
224
225 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
226
227 2010-12-06 Chong Yidong <cyd@stupidchicken.com>
228
229 * dispextern.h (struct it): New member overlay_strings_charpos.
230
231 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
232 charpos where we computed n_overlay_strings.
233 (next_overlay_string): Load overlay strings at recorded position,
234 which may not be the same as the iterator's charpos (Bug#7016).
235
236 2010-12-05 Jan Djärv <jan.h.d@swipnet.se>
237
238 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
239 with cursor color and draw a rectangle around the image (Bug#7412).
240
241 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
242
243 * xdisp.c (try_scrolling): Avoid infloop if the first line is
244 obscured due to a vscroll (Bug#7537).
245
246 2010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
247
248 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
249
250 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
251 Use FRAME_TOOLBAR_HEIGHT.
252 (x_set_offset): Handle XNegative and YNegative in
253 f->size_hint_flags (Bug#7510).
254
255 2010-11-25 Kenichi Handa <handa@m17n.org>
256
257 * charset.c (emacs_mule_charset): Make it an array of charset ID;
258 i.e. integer.
259 (Fdefine_charset_internal): Adjusted for the above change.
260 (init_charset_once): Likewise.
261
262 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
263 duplicated extern.
264
265 * coding.c (emacs_mule_char): Adjust for the change of
266 emacs_mule_charset.
267
268 * lread.c (read_emacs_mule_char): Adjust for the change of
269 emacs_mule_charset.
270
271 2010-11-22 Eli Zaretskii <eliz@gnu.org>
272
273 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
274 of w32api >= 3.15. (Bug#6989) (Bug#7452)
275
276 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
277
278 * alloc.c (mark_terminals): Ensure that the image cache is marked
279 even if the terminal object was marked earlier (Bug#6301).
280
281 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
282
283 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
284
285 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
286
287 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
288 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
289 Use 23 as menubar height if 0. (Bug#7425).
290
291 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
292
293 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
294
295 * config.in (HAVE_G_TYPE_INIT): New symbol.
296
297 2010-11-12 Eli Zaretskii <eliz@gnu.org>
298
299 * lread.c (Fload): Mention `load-in-progress' and
300 `load-file-name'. (Bug#7346)
301
302 2010-11-09 Eli Zaretskii <eliz@gnu.org>
303
304 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
305 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
306 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
307 subprocesses. Use buffer_free only ifdef subprocesses.
308
309 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
310 the subprocesses version, not in the non-subprocesses one.
311
312 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
313
314 * xfns.c (x_real_positions): Fix declaration-after-statement
315 problem.
316
317 2010-11-05 Chong Yidong <cyd@stupidchicken.com>
318
319 * image.c (free_image): Don't garbage the frame here, since this
320 function can be called while redisplaying (Bug#7210).
321 (uncache_image): Garbage the frame here (Bug#6426).
322
323 2010-11-04 Chong Yidong <cyd@stupidchicken.com>
324
325 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
326 Windows.
327
328 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
329
330 * process.c (Fmake_network_process): Don't call turn_on_atimers around
331 `connect' (Bug#5723).
332
333 2010-11-04 Helmut Eller <eller.helmut@gmail.com>
334
335 * process.c (Fmake_network_process): Call `select' for interrupted
336 `connect' rather than creating new socket (Bug#5173).
337
338 2010-11-04 Kenichi Handa <handa@m17n.org>
339
340 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
341 Don't sheck SPEC if it is nil.
342 (font_list_entities): Call font_delete_unmatched if
343 Vface_ignored_fonts is non-nil.
344
345 2010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
346
347 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
348 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
349
350 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
351 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
352 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
353 TRY_WINDOW_CHECK_MARGINS.
354
355 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
356 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
357
358 2010-11-04 Jan Djärv <jan.h.d@swipnet.se>
359
360 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
361 parent is the root window. Check this after traversing window tree.
362
363 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
364
365 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
366
367 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
368 before traversing window tree (Bug#5721).
369
370 2010-11-03 Glenn Morris <rgm@gnu.org>
371
372 * Makefile.in (CRT_DIR): New variable, set by configure.
373 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
374 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
375
376 2010-11-01 Jan Djärv <jan.h.d@swipnet.se>
377
378 * process.c (kbd_is_on_hold): New variable.
379 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
380 New functions.
381 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
382 select on empty input mask.
383 (init_process): Initialize kbd_is_on_hold to 0.
384
385 * process.h (hold_keyboard_input, unhold_keyboard_input)
386 (kbd_on_hold_p): Declare.
387
388 * keyboard.c (input_available_signal): Declare.
389 (kbd_buffer_nr_stored): New function.
390 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
391 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
392 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
393 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
394 (tty_read_avail_input): If input is on hold, return.
395 Don't read more that free slots in kbd_buffer (Bug#6571).
396
397 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
398
399 * xterm.c (x_connection_closed): Print informative error message
400 when aborting on GTK. This requires using shut_down_emacs
401 directly instead of Fkill_emacs.
402
403 2010-10-25 Michael Albinus <michael.albinus@gmx.de>
404
405 * dbusbind.c (Fdbus_call_method_asynchronously)
406 (Fdbus_register_signal, Fdbus_register_method): Check, whether
407 `dbus-registered-objects-table' is initialized.
408
409 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
410
411 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
412
413 2010-10-22 Eli Zaretskii <eliz@gnu.org>
414
415 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
416
417 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
418 Deprecate use as a boolean flag.
419
420 2010-10-18 Ken Brown <kbrown@cornell.edu>
421
422 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
423
424 2010-10-15 Kenichi Handa <handa@m17n.org>
425
426 Fix incorrect font metrics when the same font is opened with
427 different pixelsizes.
428
429 * xftfont.c: Include composite.h.
430 (xftfont_shape): New function.
431 (syms_of_xftfont): Set xftfont_driver.shape.
432
433 2010-10-13 Damyan Pepper <damyanp@gmail.com>
434
435 Fix handling of font properties on Windows (bug#6303).
436 * font.c (font_filter_properties): New function, refactored from
437 ftfont_filter_properties.
438 * font.h (font_filter_properties): Declare.
439 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
440 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
441 (w32font_filter_properties): New function.
442 (w32font_driver): Add w32font_filter_properties.
443
444 2010-10-12 Juanma Barranquero <lekktu@gmail.com>
445
446 * font.c (Ffont_variation_glyphs):
447 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
448
449 2010-10-10 Jan Djärv <jan.h.d@swipnet.se>
450
451 * nsterm.m (Qleft): Declare.
452 (ns_right_alternate_modifier): New variable
453 (NSRightAlternateKeyMask): New define.
454 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
455 ns_right_alternate_modifier isn't Qleft.
456 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
457 as emacs modifier for NSRightAlternateKeyMask.
458 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
459
460 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
461
462 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
463 (xd_pending_messages): Catch xd_get_dispatch_status calls.
464
465 2010-10-08 Kenichi Handa <handa@m17n.org>
466
467 * coding.c (complement_process_encoding_system): Fix previous change.
468
469 2010-10-03 Michael Albinus <michael.albinus@gmx.de>
470
471 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
472 (Fdbus_init_bus): ... here. (Bug#7113)
473
474 2010-10-03 Glenn Morris <rgm@gnu.org>
475
476 * buffer.c (before-change-functions, after-change-functions):
477 Three-year overdue doc fix following 2007-08-13 change.
478
479 2010-10-02 Kenichi Handa <handa@m17n.org>
480
481 * coding.c (coding_inherit_eol_type): If parent doesn't specify
482 eol-format, inherit from the system's default.
483 (complement_process_encoding_system): Make a new coding system
484 inherit the original eol-format.
485
486 2010-09-30 Kenichi Handa <handa@m17n.org>
487
488 * coding.c (complement_process_encoding_system): New function.
489
490 * coding.h (complement_process_encoding_system): Extern it.
491
492 * callproc.c (Fcall_process): Complement the coding system for
493 encoding arguments.
494 (Fcall_process_region): Complement the coding system for encoding
495 the input to the process.
496
497 * process.c (Fstart_process): Complement the coding system for
498 encoding arguments.
499 (send_process): Complement the coding system for encoding what
500 sent to the process.
501
502 2010-09-29 Kenichi Handa <handa@m17n.org>
503
504 * xfont.c (xfont_open): Fix setting of font->average_width from
505 :avgwidth property (Bug#7123).
506
507 2010-09-28 Michael Albinus <michael.albinus@gmx.de>
508
509 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
510 is more portable.
511
512 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
513 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
514 has not defined SIGIO.
515
516 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
517
518 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
519 (Bug#7113)
520
521 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
522
523 * xgselect.c (xg_select): Clear file descriptors not set from
524 rfds and wfds.
525
526 2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
527
528 * syntax.c (back_comment): Detect the case where a 1-char comment
529 starter is also the 2nd char of a 2-char comment ender.
530
531 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
532
533 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
534
535 2010-09-12 Jan Djärv <jan.h.d@swipnet.se>
536
537 * xterm.c (get_current_vm_state): New function.
538 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
539 want_fullscreen so set_wm_state calls are few (Bug#7013).
540 (x_handle_net_wm_state): Move code to get_current_vm_state and
541 call that function.
542
543 2010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
544
545 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
546
547 2010-09-08 Kenichi Handa <handa@m17n.org>
548
549 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
550 we may use designation or locking-shift.
551
552 2010-09-07 Kenichi Handa <handa@m17n.org>
553
554 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
555 sequence when the source is multibyte.
556
557 2010-08-31 Kenichi Handa <handa@m17n.org>
558
559 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
560 characters.
561
562 * term.c (encode_terminal_code): Fix the previous change.
563 (produce_glyphs): Don't set it->char_to_display here.
564 Don't handle unibyte-display-via-language-environment here.
565 (produce_special_glyphs): Set temp_it.char_to_display before
566 calling produce_glyphs.
567
568 * xdisp.c (get_next_display_element): Set it->char_to_display
569 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
570 characters.
571 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
572 calling PRODUCE_GLYPHS.
573 (append_space_for_newline): Save and store it->char_to_display.
574 Set it->char_to_display before calling PRODUCE_GLYPHS.
575 (extend_face_to_end_of_line): Set it->char_to_display before
576 calling PRODUCE_GLYPHS.
577 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
578 character to its byte value.
579 (get_char_glyph_code): New function.
580 (produce_stretch_glyph): Set it2.char_to_display too before
581 calling x_produce_glyphs.
582 (x_produce_glyphs): Simplify by using the same code for ASCII and
583 non-ASCII characters. Don't set it->char_to_display here.
584 Don't handle unibyte-display-via-language-environment here. For a
585 character of no glyph, use font->space_width instead of FONT_WIDTH.
586
587 2010-08-29 Kenichi Handa <handa@m17n.org>
588
589 * term.c (encode_terminal_code): Encode byte chars to the
590 correspnding bytes.
591
592 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
593
594 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
595 instead of SAFE_ALLOCA.
596
597 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
598
599 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
600 (Bug#6214).
601
602 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
603
604 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
605
606 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
607
608 * doc.c (Fsnarf_documentation): Initialize skip_file before
609 build-files test.
610
611 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
612
613 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
614 New definitions.
615 (HAVE_TERMIO): Remove.
616
617 2010-08-06 Kenichi Handa <handa@m17n.org>
618
619 * charset.c: Include <stdlib.h>
620 (struct charset_sort_data): New struct.
621 (charset_compare): New function.
622 (Fsort_charsets): New function.
623 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
624
625 * coding.c (decode_coding_iso_2022): Fix checking of dimension
626 number in CTEXT extended segment.
627
628 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
629
630 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
631 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
632
633 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
634
635 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
636 (Fhash_table_size): Fix typos in docstrings.
637 (Fmake_hash_table): Doc fix.
638
639 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
640
641 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
642 Doc fix (bug#5625).
643
644 2010-07-27 Ken Brown <kbrown@cornell.edu>
645
646 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
647 the MSDOS definition.
648
649 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
650
651 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
652
653 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
654
655 * window.c (Fwindow_height): Doc fix (bug#6518).
656
657 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
658
659 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
660
661 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
662
663 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
664 is related to the menu bar (Bug#6499).
665
666 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
667
668 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
669
670 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
671
672 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
673 i.e. don't put back ButtonRelease (Bug#6608).
674
675 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
676 instead of Window. Call xg_event_is_for_menubar when
677 USE_GTK (Bug#6499).
678
679 * gtkutil.h (xg_event_is_for_menubar): Declare.
680
681 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
682
683 2010-07-14 Eli Zaretskii <eliz@gnu.org>
684
685 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
686 when it's the same as the old foreground. (Bug#6609)
687
688 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
689
690 * xfaces.c (realize_face): Garbage the frame if a face is removed
691 (Bug#6593).
692
693 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
694
695 * keyboard.c: Remove duplicate <setjmp.h>.
696 (read_key_sequence): Remove volatile qualifiers.
697
698 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
699
700 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
701 (struct glyph_row): New members left_fringe_offset and
702 right_fringe_offset.
703
704 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
705 specially.
706 * w32term.c (w32_draw_fringe_bitmap): Likewise.
707 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
708
709 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
710 Take account of bitmap offset.
711 (draw_window_fringes): Take account of window vscroll.
712 (update_window_fringes): Likewise. Extend top-aligned top indicator
713 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
714 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
715 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
716
717 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
718
719 * w32fns.c (Qtooltip): Declare.
720 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
721
722 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
723
724 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
725 grab on just Press (Bug#6499).
726
727 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
728
729 * frame.c (Qtooltip): New var.
730 (delete_frame): Use it. Fix faulty if statement. Don't update
731 mode line for tooltip frames. Suggested by Martin Rudalics.
732
733 * xfns.c (x_create_tip_frame):
734 * w32fns.c (x_create_tip_frame): Use it.
735
736 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
737
738 * xftfont.c (xftfont_open): Check font width one by one also when
739 spacing is dual.
740
741 * ftfont.c (ftfont_open): Ditto.
742
743 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
744
745 * alloc.c (Fmake_byte_code): Don't access undefined argument
746 (Bug#6517).
747
748 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
749
750 * xdisp.c (next_element_from_image): Ensure that after-strings are
751 read the next time we hit handle_stop (Bug#1336).
752
753 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
754
755 * lread.c (read1): Signal error if #s is not followed by paren.
756
757 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
758
759 * image.c (free_image): Mark frame as garbaged (Bug#6426).
760
761 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
762
763 2010-06-15 Glenn Morris <rgm@gnu.org>
764
765 * editfns.c (Fbyte_to_string): Pacify compiler.
766
767 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
768
769 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
770 Check `object's type before accessing its guts.
771
772 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
773
774 * minibuf.c (Fall_completions): Add more checks.
775
776 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
777
778 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
779
780 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
781
782 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
783 address. (Bug#6346)
784
785 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
786
787 * ccl.c (Fccl_program_p): Fix typo in docstring.
788
789 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
790
791 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
792 of bug#6305).
793
794 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
795
796 * xdisp.c (redisplay_window): After redisplay, check if point is
797 still valid before setting it (Bug#6177).
798
799 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
800
801 * s/netbsd.h: If terminfo is found, use it in preference to
802 termcap. (Bug#6190) [Backport from trunk]
803
804 2010-05-20 Kevin Ryde <user42@zip.com.au>
805
806 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
807 (Voverriding_terminal_local_map, Vsystem_key_alist)
808 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
809
810 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
811
812 * editfns.c (Fbyte_to_string): New function.
813
814 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
815
816 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
817 prevent stack overflow if number of arguments is too large
818 (Bug#6214).
819
820 2010-05-11 Eli Zaretskii <eliz@gnu.org>
821
822 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
823
824 * w32fns.c: Include w32.h.
825 (Fw32_shell_execute): Decode the error message before passing it
826 to `error'. (Bug#6126)
827
828 2010-05-11 Karel Klic <kklic@redhat.com>
829
830 * ftfont.c: Fix incorrect parentheses of #if condition for
831 definining M17N_FLT_USE_NEW_FEATURE.
832
833 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
834
835 * Version 23.2 released.
836
837 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
838
839 * composite.c (autocmp_chars): Save point as marker before calling
840 auto-composition-function (Bug#5984).
841
842 * lisp.h (restore_point_unwind): Add prototype.
843
844 * fileio.c (restore_point_unwind): Remove static attribute.
845
846 2010-04-23 Kenichi Handa <handa@m17n.org>
847
848 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
849 new feature of libotf and m17n-flt.
850 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
851 Call OTF_check_features even if no specific feature is given.
852 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
853 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
854 that OUT is NULL. Use OTF_drive_gsub_with_log and
855 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
856 OTF_drive_gpos.
857 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
858 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
859 Setup mflt_enable_new_feature and mflt_try_otf.
860
861 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
862
863 * dired.c (Ffile_attributes): Fix typo in docstring.
864
865 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
866
867 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
868 NSInteger (Bug#5811).
869
870 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
871
872 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
873 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
874
875 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
876
877 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
878
879 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
880
881 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
882 FRAME_LINE_TO_PIXEL_Y.
883
884 * xterm.c (x_set_window_size_1): Don't add border_width/height to
885 pixelwidth/height.
886
887 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
888
889 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
890 terminal frames (Bug#5837).
891
892 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
893
894 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
895 * nsterm.h: Fix prototype.
896
897 2010-03-31 Eli Zaretskii <eliz@gnu.org>
898
899 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
900 in this function. (Bug#5703)
901
902 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
903
904 * nsterm.h: Fix last change.
905
906 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
907
908 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
909
910 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
911
912 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
913 invisible (Bug#5766).
914
915 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
916
917 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
918 HAVE_NS conditionals.
919 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
920
921 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
922 filename for the title.
923 (ns_set_doc_edited): Do nothing if the selected window is a
924 minibuffer window.
925
926 * nsterm.h: Add prototypes for ns_set_name_as_filename and
927 ns_set_doc_edited.
928
929 * nsterm.m: Remove unneeded prototype.
930
931 2010-03-28 Glenn Morris <rgm@gnu.org>
932
933 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
934 in the DOC file. (Bug#5336)
935
936 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
937
938 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
939
940 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
941
942 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
943
944 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
945
946 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
947
948 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
949
950 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
951 XLoadQueryFont.
952
953 2010-03-16 Kenichi Handa <handa@m17n.org>
954
955 * coding.c (decode_coding_ccl): Fix previous change for the
956 multibyte case.
957 (encode_coding_ccl): Don't setup ccl program here. Fix for the
958 case that the output buffer is fullfilled.
959 (encode_coding): Setup ccl program here.
960
961 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
962
963 * editfns.c (Fformat): Account for string precision when computing
964 field width (Bug#5710).
965
966 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
967
968 Make it possible to C-g in a tight bytecode loop again (bug#5680).
969 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
970 (QUIT): Use it to consolidate code and remove redundancy.
971 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
972
973 * regex.c (regex_compile): Setup gl_state as well.
974
975 * syntax.c (skip_chars): Setup gl_state (bug#3823).
976 (in_classes): Use CONSP before XCAR/XCDR.
977
978 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
979
980 * keymap.c (Fwhere_is_internal): Use Fequal to compare
981 definitions, so that keyboard macros are correctly handled
982 (Bug#5481).
983
984 2010-03-02 Eli Zaretskii <eliz@gnu.org>
985
986 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
987 text that could be relocated inside the call to emacs_mule_char.
988 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
989 (CODING_DECODE_CHAR): Add a comment describing its purpose.
990
991 2010-03-02 Kenichi Handa <handa@m17n.org>
992
993 * character.c (parse_str_as_multibyte): Fix handling of the
994 multibyte form of raw-bytes.
995 (str_as_multibyte): Likewise.
996
997 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
998 form of raw-bytes.
999
1000 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
1001
1002 * charset.c (load_charset_map_from_file)
1003 (load_charset_map_from_vector): Zero out allocated
1004 charset_map_entries before using them.
1005
1006 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1007
1008 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1009
1010 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
1011
1012 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1013 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
1014
1015 2010-02-26 Kenichi Handa <handa@m17n.org>
1016
1017 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1018
1019 * xdisp.c (reseat_to_string): Fix previous change.
1020
1021 2010-02-26 David Reitter <david.reitter@gmail.com>
1022
1023 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1024 Lisp_Object (Bug#4736).
1025
1026 2010-02-25 Kenichi Handa <handa@m17n.org>
1027
1028 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1029
1030 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1031
1032 * xterm.c (XTflash): Move declarations before statements.
1033
1034 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1035 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1036 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1037 (xg_create_tool_bar): Remove unused variables.
1038 (x_wm_set_size_hint): Move declarations before statements.
1039 (xg_create_frame_widgets): Remove variable grav.
1040
1041 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
1042
1043 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1044
1045 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1046
1047 * term.c (fatal): Add a final \n if needed (bug#5596).
1048
1049 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
1050
1051 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1052
1053 2010-02-18 Glenn Morris <rgm@gnu.org>
1054
1055 * callint.c (Finteractive): Doc fix.
1056
1057 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1058
1059 * coding.c (record_conversion_result):
1060 Handle CODING_RESULT_INSUFFICIENT_DST.
1061 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1062 memory allocation error.
1063
1064 2010-02-17 Kenichi Handa <handa@m17n.org>
1065
1066 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1067 Fix for the case that the output buffer is fullfilled.
1068 (decode_coding): Setup ccl program here. Keep looping when the
1069 decoder stopped because the output buffer is
1070 fullfilled (bug#5534).
1071
1072 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1073
1074 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1075
1076 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
1077 bug #5571.
1078 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
1079 overdrawn.
1080
1081 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1082
1083 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1084 doing_interact here.
1085 (ice_connection_closed): New function.
1086 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1087 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1088 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1089 returns I/O error.
1090 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1091 bug #5512.
1092
1093 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
1094
1095 * nsfont.m (nsfont_open): The system's value for the font descent
1096 is negative, so round it down to avoid clipping.
1097
1098 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
1099
1100 * charset.c (load_charset_map_from_file)
1101 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
1102 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
1103
1104 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
1105
1106 * charset.c (load_charset_map_from_file): Allocate large
1107 charset_map_entries structure on the heap rather than the stack.
1108 (Bug#5526).
1109
1110 2010-01-31 Kenichi Handa <handa@m17n.org>
1111
1112 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
1113 size in NAME is invalid, return -1 (Bug#5396).
1114
1115 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
1116
1117 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1118 <deactivated@gmail.com> (Bug#3605).
1119
1120 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
1121
1122 * fileio.c (Frename_file): Correctly rename symlinks to
1123 directories (Bug#5496).
1124
1125 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1126
1127 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1128
1129 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1130
1131 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1132
1133 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
1134
1135 * frame.c (DEFAULT_ROWS): Change default to 35.
1136
1137 * xfns.c (x_default_font_parameter): Change default XFT font to
1138 monospace-10 (Bug#3643).
1139
1140 2010-01-29 Eli Zaretskii <eliz@gnu.org>
1141
1142 * w32inevt.c (key_event): Remove unnecessary comparison of
1143 event->uChar.AsciiChar with 128.
1144
1145 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
1146
1147 * fileio.c (Frename_file): Fix last change (Bug#5487).
1148
1149 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1150
1151 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1152
1153 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1154
1155 * xfns.c (Fx_create_frame): Remove window size matching code from
1156 2010-01-15.
1157 (x_get_current_desktop, x_get_desktop_workarea): Remove.
1158
1159 2010-01-27 Jason Rumney <jasonr@gnu.org>
1160
1161 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
1162 (key_event): Use unicode for characters 128 and higher (Bug#4567).
1163
1164 2010-01-27 Kenichi Handa <handa@m17n.org>
1165
1166 * regex.c (analyse_first): Fix setting of fastmap for unibyte
1167 pattern string (Bug#4209).
1168
1169 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
1170
1171 * fileio.c (Frename_file): Call copy-directory and
1172 delete-directory for directories, in order to handle cross-device
1173 renaming (Bug#3353).
1174
1175 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1176
1177 * xfns.c (Fx_create_frame): If frame height is too big, try
1178 sizes 24 and 10. Bug #3643.
1179
1180 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1181
1182 Try and fix bug#788, hopefully for real this time.
1183 * keymap.c (shadow_lookup): Add `remap' arg.
1184 (describe_map, describe_vector): Update calls to shadow_lookup.
1185 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1186 `remapped' so this flag is applicable to `sequence'. Be careful to
1187 perform remapping during shadow_lookup check of remapped_sequences.
1188
1189 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1190
1191 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1192 png_check_sig, which has been removed in libpng 1.4.
1193
1194 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1195
1196 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1197 lacks this header file).
1198
1199 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1200
1201 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1202 as in Emacs 22.
1203
1204 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1205
1206 * lisp.h (make_pure_string): String pointer arg now points to const.
1207
1208 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1209 args now point to const.
1210
1211 2010-01-22 Eli Zaretskii <eliz@gnu.org>
1212
1213 * lread.c (Fload): Don't treat files without .elc extension as
1214 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1215 them. (bug#5303)
1216
1217 2010-01-20 Kenichi Handa <handa@m17n.org>
1218
1219 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1220 treat the source as actual byte sequence.
1221
1222 2010-01-19 Alan Mackenzie <acm@muc.de>
1223
1224 Fix spurious before-change-functions invocation from (insert ?\n).
1225 * textprop.c (set_text_properties): Rename parameter
1226 `signal_after_change_p' to `coherent_change_p', and make the
1227 invocation of `modify_region' conditional on it.
1228
1229 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1230
1231 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1232 for debug purpose.
1233 (syms_of_xsettings): Declare xft-settings.
1234
1235 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
1236
1237 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1238
1239 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1242
1243 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
1244
1245 * emacs.c (standard_args): Adjust arg priorities to reflect how
1246 they are processed in startup.el.
1247
1248 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1249
1250 * Makefile.in (lisp, shortlisp): Update.
1251
1252 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1253
1254 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1255 code, link the new kboard into all_kboard before running Lisp code,
1256 and protect the new terminal with GCPRO (Bug#5365).
1257 (x_term_init): Remove unused var `atom'.
1258 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1259
1260 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1261
1262 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1263 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1264 to find out usable size of the desktop. Don't make frames larger than
1265 this. Bug #3643.
1266
1267 2010-01-15 Kenichi Handa <handa@m17n.org>
1268
1269 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1270
1271 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
1272
1273 * nsterm.m (Qnone): Define.
1274
1275 * nsfns.m (Qnone): Move definition to nsterm.m.
1276
1277 2010-01-14 Kenichi Handa <handa@m17n.org>
1278
1279 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1280 systems.
1281
1282 2010-01-14 Kenichi Handa <handa@m17n.org>
1283
1284 Make auto-composition work on all buffers even if they are
1285 fundamental mode.
1286
1287 * composite.c (Vauto_composition_mode): New variable.
1288 (composition_compute_stop_pos): Check Vauto_composition_mode
1289 instead of Vauto_composition_function.
1290 (composition_adjust_point, Ffind_composition_internal): Likewise.
1291 (syms_of_composite): Declare Lisp variable
1292 "auto-composition-mode" here.
1293
1294 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
1295
1296 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1297 during call to vendor-specific-keysyms (Bug#5365).
1298
1299 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1300
1301 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1302 Call SIGNAL_THREAD_CHECK (Bug#5333).
1303
1304 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1305 Call SIGNAL_THREAD_CHECK.
1306
1307 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 Try to fix bug#5314. This is probably not the final word, tho.
1310 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1311 recent-auto-save-p as a side-effect.
1312 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1313 * buffer.c (Fkill_buffer, reset_buffer):
1314 * editfns.c (Fsubst_char_in_region):
1315 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1316 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1317
1318 2010-01-13 Kenichi Handa <handa@m17n.org>
1319
1320 Display buffer name, etc. in mode line by composing correctly.
1321
1322 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1323 STRING is not nil.
1324 (display_mode_element): Adjust for the change of
1325 decode_mode_spec and display_line.
1326 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1327 (display_string): Handle the case that STRING is non-null and
1328 LISP_STRING is not nil.
1329
1330 * xterm.c (x_draw_composite_glyph_string_foreground):
1331 Pay attention to s->face->overstrike.
1332
1333 * composite.c (composition_reseat_it): Don't check PT if STRING is
1334 non nil.
1335
1336 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1337
1338 * keyboard.c (read_char): Don't apply previous change when current
1339 buffer is unchanged by command execution.
1340
1341 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1342
1343 * keyboard.c (read_char): Return after executing from special map.
1344
1345 2010-01-12 Glenn Morris <rgm@gnu.org>
1346
1347 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1348 bug-gnu-emacs rather than emacs-pretest-bug.
1349
1350 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
1351
1352 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1353 initializing the Lisp variables that depend on them.
1354
1355 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1356
1357 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1358 Clear areas that will not be updated after change of menu bar lines.
1359 Clear the menu bar window's current matrix when the window gets empty.
1360
1361 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
1362
1363 * intervals.h, textprop.c (extend_property_ranges): Return value
1364 and args changed. Discard properties that begin at or after the
1365 new end (Bug#5306).
1366
1367 * editfns.c (Fformat): Caller changed.
1368
1369 * nsterm.m (ns_set_default_prefs): Delete function.
1370 (syms_of_nsterm): Initialize ns_command_modifier,
1371 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1372 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1373
1374 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1375 position (Bug#4040).
1376
1377 2010-01-09 Eli Zaretskii <eliz@gnu.org>
1378
1379 * editfns.c (Ffloat_time): Doc fix.
1380
1381 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1382
1383 * xfns.c (Fx_create_frame): Don't create frame larger than display
1384 by default bug#3643.
1385
1386 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1387
1388 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1389 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1390 windows above internal border.
1391
1392 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1393 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1394 windows above internal border.
1395
1396 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1397 tool bar windows specially.
1398
1399 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1400
1401 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1402 specially.
1403 (XTflash): Take account of menu bar height.
1404
1405 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1406 specially.
1407
1408 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1409
1410 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1411 also be true before we can return early (bug #5339).
1412
1413 2010-01-06 David Reitter <david.reitter@gmail.com>
1414
1415 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1416 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1417 (Bug#3233).
1418
1419 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1420
1421 * font.c (font_open_entity): Enable chache and call cached_font_ok
1422 for the driver if defined.
1423 (QCuser_spec): New symbol.
1424 (font_spec_from_name): Save name as user-spec.
1425 (font_load_for_lface): Keep user-spec instead of name.
1426 (font_open_by_name): Save name as user-spec.
1427 (syms_of_font): Initialize QCuser_spec.
1428 (font_clear_prop): Clear name if it exists in font (bug#5157).
1429
1430 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1431 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1432 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1433
1434 * font.h (struct font_driver): Add cached_font_ok.
1435
1436 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1437
1438 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1439
1440 * xterm.c (x_new_font): Move code for setting rows/cols before
1441 resizing ...
1442 (x_set_window_size): ... to here. Bug #2568.
1443
1444 * gtkutil.c (xg_clear_under_internal_border): New function.
1445 (xg_frame_resized, xg_frame_set_char_size):
1446 Call xg_clear_under_internal_border.
1447 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1448
1449 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1450
1451 * keyboard.c (read_key_sequence): Catch keyboard switch after
1452 making a new tty frame (Bug#5095).
1453
1454 2010-01-05 Kenichi Handa <handa@m17n.org>
1455
1456 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1457
1458 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1459
1460 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1461 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1462 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1463
1464 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1465
1466 * dbusbind.c (xd_add_watch): Improve debug message.
1467 (xd_remove_watch): Improve debug message. If DATA is the session
1468 bus, unset D-Bus session environment.
1469 (Fdbus_init_bus): Pass the bus as argument to
1470 dbus_connection_set_watch_functions. (Bug#5283)
1471
1472 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1473
1474 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1475
1476 * lread.c (syms_of_lread): Make it clearer that these are the
1477 names of loaded files (Bug#5068).
1478
1479 * eval.c (run_hook_with_args): Handle the case where the global
1480 value has the obsolete single-function form (Bug#5026).
1481
1482 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1483
1484 * minibuf.c (Fall_completions): Minor optimization.
1485
1486 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1487
1488 * .gdbinit (pgx): Fix display of composite glyphs.
1489 Display cmp.from and cmp.to as well.
1490 (pitx): Fix last change.
1491
1492 2009-12-25 Kenichi Handa <handa@m17n.org>
1493
1494 * composite.h (composition_adjust_point): Update prototype.
1495
1496 * composite.c (composition_reseat_it): Don't make a composition
1497 spanning over point.
1498 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1499 composable characters.
1500 (composition_adjust_point): New arg NEW_PT. Callers changed.
1501
1502 * keyboard.c (command_loop_1): Force redisplay if the last point
1503 was within a composition.
1504 (adjust_point_for_property): Don't adjust point for automatic
1505 composition when called after buffer modification.
1506
1507 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1508
1509 * .gdbinit (pitx): Don't use enum names, use their values.
1510 Remove reference to non-existing value GET_FROM_COMPOSITION.
1511 (pgx): Don't use enum names, use their values.
1512 (pitmethod): New helper command.
1513 (pitx): Use it to display iteration method.
1514 (pgrowit): New command.
1515
1516 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1517
1518 Update dependencies in Makefile.in.
1519
1520 * Makefile.in (alloc.o): Depend on termhooks.h.
1521 (atimer.o): Depend on blockinput.h.
1522 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1523 and frame.h.
1524 (callint.o): Depend on systime.h, coding.h, and composite.h.
1525 (callproc.o): Depend on buffer.h.
1526 (casefiddle.o): Don't depend on charset.h.
1527 (casetab.o): Depend on character.h.
1528 (ccl.o): Depend on composite.h.
1529 (chartab.o): Depend on ccl.h.
1530 (cm.o): Depend on dispextern.h.
1531 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1532 (coding.o): Don't depend on $(INTERVALS_H).
1533 (composite.o): Don't depend on dispextern.h explicitly (it's in
1534 $(INTERVALS_H)). Depend on ccl.h.
1535 (data.o): Depend on systime.h, coding.h, composite.h,
1536 dispextern.h, font.h, and ccl.h.
1537 (dired.o): Depend on composite.h.
1538 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1539 composite.h (it's in $(INTERVALS_H)).
1540 (doc.o): Depend on systime.h, coding.h, and composite.h.
1541 (editfns.o): Don't depend explicitly on dispextern.h.
1542 (emacs.o): Depend on frame.h and coding.h.
1543 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1544 (fileio.o): Depend on frame.h and commands.h. Don't depend
1545 explicitly on dispextern.h.
1546 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1547 composite.h.
1548 (fns.o): Don't depend on termhooks.h.
1549 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1550 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1551 coding.h, $(INTERVALS_H), window.h, xterm.h.
1552 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1553 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1554 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1555 fontset.h, ccl.h, and ftfont.h.
1556 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1557 (gtkutil.o): Depend on dispextern.h and composite.h.
1558 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1559 termhooks.h, and ccl.h.
1560 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1561 (intervals.o): Depend on systime.h and coding.h.
1562 (keyboard.o): Depend on composite.h and coding.h.
1563 (keymap.o): Depend on coding.h and frame.h.
1564 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1565 (macros.o): Depend on systime.h, coding.h, and composite.h.
1566 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1567 and atimer.h.
1568 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1569 dispextern.h explicitly.
1570 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1571 Don't depend explicitly on dispextern.h and composite.h.
1572 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1573 (regex.o): Don't depend on charset.h.
1574 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1575 (search.o): Don't depend explicitly on composite.h.
1576 (sound.o): Depend on atimer.h and systime.h.
1577 (syntax.o): Don't depend explicitly on composite.h.
1578 (sysdep.o): Depend on coding.h and composite.h.
1579 (term.o): Depend on xterm.h and buffer.h.
1580 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1581 (textprop.o): Don't depend on dispextern.h explicitly.
1582 (undo.o): Depend on dispextern.h.
1583 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1584 dispextern.h and composite.h explicitly.
1585 (xdisp.o): Depend on ccl.h.
1586 (xfaces.o): Depend on coding.h and ccl.h.
1587 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1588 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1589 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1590 ftfont.h.
1591 (xgselect.o): New dependency.
1592 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1593 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1594 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1595 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1596 (xsmfns.o): Depend on frame.h and dispextern.h.
1597 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1598 sysselect.h.
1599
1600 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1601
1602 * font.c (Fclear_font_cache): Pass correct cache argument to
1603 font_clear_cache.
1604
1605 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1606
1607 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1608 twice.
1609
1610 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1611
1612 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1613 calling file-remote-p. Reported by Jim Meyering.
1614
1615 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1616
1617 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1618 avoid compiler warnings. (Bug #5217)
1619
1620 2009-12-14 Kenichi Handa <handa@m17n.org>
1621
1622 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1623 in 8-bit encoding.
1624
1625 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1626
1627 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1628 tooltip windows.
1629
1630 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1631
1632 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1633 Xatom_net_window_type.
1634
1635 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1636 Xatom_net_window_type.
1637
1638 * xterm.c (my_log_handler): New function.
1639 (x_term_init): Set my_log_handler as log handler during gtk_init
1640 so we can filter out buggy messages. (Bug #5120).
1641
1642 * xterm.c (xg_scroll_callback): Parameter list changed,
1643 use parameter GtkScrollType to determine scroll/line/page.
1644 Only allow dragging if a button < 4 is grabbed (bug #5177).
1645 (xg_end_scroll_callback): New function.
1646 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1647 xg_create_scroll_bar.
1648
1649 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1650 (scroll_end_callback): Remove.
1651 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1652 button-release-event. Replace value-changed event with change-value,
1653 bug #5177,
1654 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1655 bug #5177.
1656
1657 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1658 (xg_create_scroll_bar): Add GCallback end_callback.
1659
1660 * xftfont.c (QClcdfilter): New variable.
1661 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1662 (syms_of_xftfont): Initialize QClcdfilter.
1663
1664 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1665
1666 * xsettings.c (struct xsettings): Add member seen.
1667 (parse_xft_settings): Update member seen with what we have read.
1668 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1669 (apply_xft_settings): Only update Xft settings with what member seen
1670 indicates as new.
1671
1672 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1673
1674 * dispextern.h (struct text_pos): Use EMACS_INT;
1675 (struct glyph): Use EMACS_INT for charpos.
1676 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1677 region_beg_charpos, region_end_charpos,
1678 redisplay_end_trigger_charpos, and also for
1679 iterator_stack_entry.end_charpos and
1680 iterator_stack_entry.stop_charpos.
1681
1682 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1683
1684 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1685 (xg_create_scroll_bar): Call scroll_end_callback on button release
1686 event (bug #5177).
1687 (xg_event_is_for_scrollbar): != replaced with ==.
1688
1689 2009-12-12 Kenichi Handa <handa@m17n.org>
1690
1691 * ftfont.c (struct ftfont_info): New member matrix.
1692 (ftfont_open): Setup xftfont_info->matrix.
1693 (MFLTFontFT): New member matrix.
1694 (FLOOR, CEIL, ROUND): New macros.
1695 (ftfont_get_metrics): Handle matrix transformation.
1696 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1697
1698 * xftfont.c (struct xftfont_info): New member matrix.
1699 (xftfont_open): Setup xftfont_info->matrix.
1700
1701 2009-12-10 Kenichi Handa <handa@m17n.org>
1702
1703 * xdisp.c (append_space_for_newline): Consider face-remapping.
1704
1705 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1706
1707 * xsettings.c: Include "keyboard.h".
1708
1709 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1710
1711 Fix implicit function declarations.
1712 * cmds.c: Include "frame.h".
1713 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1714 * frame.h: Move declaration of delete_frame outside of
1715 HAVE_WINDOW_SYSTEM.
1716
1717 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1718
1719 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1720
1721 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1722 GTK builds.
1723
1724 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1725
1726 * unexelf.c (unexec): Don't search for .data twice.
1727
1728 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1729
1730 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1731 if push failed.
1732 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1733 of push_display_prop (Bug#5000).
1734
1735 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1736 value of font_list_entities (Bug#5085).
1737
1738 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1739
1740 Fix `string-to-number' to deal consistently with integers and floats.
1741 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1742 trailing characters, not just whitespace.
1743 (read1): Pass new arg 0 to keep old behavior.
1744 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1745 trailing chars, as it is already done for integers. Doc fixes.
1746 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1747
1748 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1749
1750 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1751 Delete unused enumeration value.
1752
1753 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1754
1755 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1756
1757 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1758
1759 * process.c (Fmake_network_process): Fix up the tests for
1760 "connectionless socket", so they DTRT for seqpacket sockets as well.
1761
1762 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1763
1764 * process.c (Qseqpacket): New symbol.
1765 (HAVE_SEQPACKET): New macro.
1766 (Fmake_network_process): Accept new :type `seqpacket'.
1767 (init_process): Add `seqpacket' feature when applicable.
1768 (syms_of_process): Initialize Qseqpacket.
1769
1770 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1771
1772 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1773 if entity is Qnil.
1774
1775 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1776
1777 * print.c (print_preprocess): Preprocess the key_and_value table of
1778 hashtables, even tho they're "hidden" (bug#5082).
1779
1780 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1781
1782 * frame.c (frame_make_pointer_invisible)
1783 (frame_make_pointer_visible): Declare f before statements.
1784
1785 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1786
1787 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1788 omitted dependencies on lisp.h.
1789
1790 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1791
1792 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1793 is NULL.
1794
1795 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1796
1797 * frame.c (frame_make_pointer_invisible)
1798 (frame_make_pointer_visible): Just return if there isn't any selected
1799 frame.
1800
1801 * search.c (simple_search): Remove warning by making *p const.
1802
1803 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1804
1805 * xdisp.c (power_letter): Remove duplicate const.
1806
1807 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1808
1809 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1810
1811 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1812 defaults (bug #5025).
1813
1814 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1815
1816 * insdel.c (adjust_markers_for_delete): Move it in the
1817 right direction! (bug#4803)
1818
1819 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1820
1821 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1822
1823 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1824
1825 2009-11-24 Glenn Morris <rgm@gnu.org>
1826
1827 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1828
1829 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1830
1831 * Makefile.in: Must create deps for ecrt0.o in its rule.
1832
1833 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1834 because that is what Gtk+ font dialog understands.
1835
1836 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1837 of Fcopy_sequence.
1838 (font_open_by_name): Put name given into QCname for font-object returned.
1839
1840 * frame.c (x_set_font): Save original font name as frame parameter
1841 font-parameter.
1842
1843 * xsettings.c (set_default_xft_settings): New function.
1844 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1845 is found.
1846
1847 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1848
1849 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1850 searching backwards through multibyte buffer.
1851
1852 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1853
1854 * xterm.c: #include xgselect.h.
1855 (x_initialize): Call xgselect_initialize.
1856
1857 * xsettings.c (something_changedCB): C++ comments => C comments.
1858 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1859 does that now.
1860
1861 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1862 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1863 (scroll_bar_button_cb): Remove.
1864 (create_menus): C++ comments => C comments. Don't bind grab-notify
1865 event.
1866 (xg_create_scroll_bar): Don't bind button-press-event and
1867 button-release-event.
1868
1869 * process.c: Include xgselect.h if defined (USE_GTK) ||
1870 defined (HAVE_GCONF).
1871 (wait_reading_process_output): Call xg_select for the same condition.
1872
1873 * xgselect.c (xg_select): New function to better integrate with
1874 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1875
1876 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1877
1878 * Makefile.in (XOBJ): Add xgselect.o.
1879
1880 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1881
1882 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1883 Remove ignored second argument. All callers changed.
1884 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1885 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1886 * xdisp.c (string_char_and_length): Likewise.
1887
1888 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1889
1890 * xterm.c (x_new_font):
1891 * print.c (print_object):
1892 * cmds.c (Fself_insert_command): Move declarations before statements.
1893
1894 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1895
1896 * s/cygwin.h: Remove unneeded linker flags.
1897
1898 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1899
1900 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1901
1902 * xsettings.h: Declare xsettings_get_system_font.
1903
1904 * xsettings.c (xsettings_get_system_font): New function.
1905 (init_gconf): No use initiating gconf unless we have Xft also.
1906 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1907 HAVE_GCONF.
1908
1909 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1910 add a blank entry so it doesn't collapse into nothing.
1911
1912 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1913
1914 * lread.c (Funintern): Comment out last change.
1915
1916 2009-11-19 Richard Stallman <rms@gnu.org>
1917
1918 * lread.c (Funintern): Error if symbol is t or nil.
1919
1920 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1921
1922 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1923 representation of Lisp integers.
1924 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1925
1926 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1927
1928 * lisp.h: Remove declaration of Ffont_get_system_font.
1929 * xfns.c: Move include of "xsettings.h".
1930 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1931
1932 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1933
1934 * xsettings.c (something_changedCB, Ffont_get_system_font):
1935 Check use_system_font.
1936 (syms_of_xsettings): DEFVAR font-use-system-font.
1937
1938 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1939
1940 * xfns.c (x_default_font_parameter): Remove dead assignment.
1941
1942 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1943
1944 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1945
1946 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1947 not have FC_LCD_*. #define them if not there.
1948
1949 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1950
1951 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1952
1953 * xterm.c (handle_one_xevent): Call xft_settings_event for
1954 ClientMessage, PropertyNotify and DestroyNotify.
1955 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1956 Call xsettings_initialize.
1957
1958 * xftfont.c (xftfont_fix_match): New function.
1959 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1960 Call xftfont_fix_match after XftFontMatch.
1961
1962 * xfont.c (xfont_driver): Initialize all members.
1963
1964 * xfns.c (x_default_font_parameter):
1965 Try font from Ffont_get_system_font.
1966 Do not get font from x_default_parameter if we got one from
1967 Ffont_get_system_font.
1968 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1969
1970 * w32font.c (w32font_driver): Initialize all members.
1971
1972 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1973
1974 * lisp.h: Declare syms_of_xsettings.
1975
1976 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1977 Handle CONFIG_CHANGED_EVENT.
1978
1979 * ftfont.c (ftfont_filter_properties): New function.
1980
1981 * frame.c (x_set_font): Remove unused variable lval.
1982
1983 * font.h (struct font_driver): Add filter_properties.
1984
1985 * font.c (font_put_extra): Don't return if val is nil, it means
1986 boolean option is off.
1987 (font_parse_fcname): Collect all extra properties in extra_props
1988 and call filter_properties for all drivers with extra_props and
1989 font as parameter.
1990 (font_open_entity): Do not use cache, it does not pick up new
1991 fontconfig settings like hinting.
1992 (font_load_for_lface): If spec had a name in it, store it in entity.
1993
1994 * emacs.c (main): Call syms_of_xsettings.
1995
1996 * config.in: HAVE_GCONF is new.
1997
1998 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1999 xsettings.o is new.
2000
2001 2009-11-17 Kenichi Handa <handa@m17n.org>
2002
2003 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2004 back to the default font in case that no suitable font is found.
2005
2006 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2007
2008 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2009 Suggested by Chad Brown <yandros@mit.edu>.
2010 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2011
2012 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2013
2014 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2015
2016 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2017
2018 * Makefile.in: Ignore errors from mkdir when creating deps directory.
2019
2020 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2021
2022 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2023 has a parent.
2024
2025 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
2026 dependency files in deps/. Include those files into Makefile.
2027
2028 * config.in: Generated (AUTO_DEPEND).
2029
2030 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
2031
2032 * dbusbind.c (Vdbus_registered_objects_table): Rename from
2033 Vdbus_registered_functions_table, because it contains also
2034 properties. Fix docstring.
2035 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
2036
2037 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2038
2039 * alloc.c (mark_object): Don't reprocess marked strings.
2040 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2041 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2042
2043 2009-11-13 Kenichi Handa <handa@m17n.org>
2044
2045 * category.c (word_boundary_p): Adjust for the change of the
2046 semantics of Vword_combining_categories.
2047 (Vword_combining_categories): Describe the slight change of the
2048 semantics.
2049
2050 2009-11-13 Eli Zaretskii <eliz@gnu.org>
2051
2052 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2053
2054 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2055
2056 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2057
2058 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2059
2060 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
2061
2062 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2063
2064 2009-11-11 David Reitter <david.reitter@gmail.com>
2065
2066 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2067 variables to fix 2009-11-09 change.
2068
2069 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2070
2071 * process.c (ifflag_def): Make flag_sym constant.
2072 (Fnetwork_interface_info): Use a constant pointer.
2073 (ifflag_table):
2074 * xfns.c (cursor_bits):
2075 * xdisp.c (power_letter):
2076 * termcap.c (speeds, esctab):
2077 * sysdep.c (baud_convert):
2078 * keyboard.c (lispy_accent_codes, modifier_names):
2079 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2080 (jpeg_format, tiff_format, gif_format, svg_format)
2081 (interlace_start, interlace_increment, gs_format):
2082 * gtkutil.c (separator_names):
2083 * fringe.c (swap_nibble):
2084 * fns.c (base64_value_to_char, base64_char_to_value):
2085 * fileio.c (make_temp_name_tbl):
2086 * coding.c (suffixes): Make constant.
2087
2088 * frame.c (make_initial_frame):
2089 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2090 build_string.
2091 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2092
2093 * s/freebsd.h:
2094 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2095
2096 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2097 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2098
2099 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2100 * xterm.c (syms_of_xterm):
2101 * xfaces.c (syms_of_xfaces):
2102 * xdisp.c (syms_of_xdisp):
2103 * lread.c (syms_of_lread):
2104 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2105 build_string.
2106
2107 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2108
2109 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2110
2111 * fns.c (Fplist_get): Merge the active and the commented out code.
2112
2113 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2114
2115 * keyboard.h: Declare timer_check.
2116
2117 * keyboard.c (timer_check_2): New function that does what the old
2118 timer_check did.
2119 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2120 returned, i.e. don't return -1 with timers pending.
2121
2122 * process.c: Remove extern declaration of timer_check.
2123
2124 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2125 even if timer_check returned -1.
2126
2127 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2128 xg_dialog_data.
2129 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2130 the event loop.
2131 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2132 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2133 Destroy the dialog after xg_dialog_run.
2134
2135 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2136
2137 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2138
2139 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2140
2141 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2142
2143 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
2144
2145 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2146
2147 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2148
2149 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2150 w32menu.c, and nsmenu.m.
2151 Simplify the obsolete case where position is nil.
2152 (cleanup_popup_menu): New function, moved from nsmenu.m.
2153 (struct skp): Remove slot `notreal'.
2154 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2155 adjust callers.
2156 (single_menu_item): Adjust call to parse_menu_item.
2157 (syms_of_menu): Defsubr x-popup-menu.
2158 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2159 (keymap_panes): Don't export any more.
2160 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2161 (xmenu_show): Declare.
2162 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2163 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2164 * keyboard.h (parse_menu_item): Update declaration.
2165 * xmenu.c (Fx_popup_menu): Remove.
2166 (syms_of_xmenu): Don't defsubr x-popup-menu.
2167 * w32menu.c (Fx_popup_menu): Remove.
2168 (syms_of_w32menu): Don't defsubr x-popup-menu.
2169 * nsmenu.m (cleanup_popup_menu): Remove.
2170 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2171 moved to menu.c's Fx_popup_menu.
2172 (Fx_popup_menu): Remove.
2173 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2174 menu_items (it's done in menu.c already).
2175
2176 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2177
2178 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2179 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2180
2181 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
2182
2183 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
2184 xmenu_show. Hide any tooltip before opening a menu.
2185 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2186 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2187
2188 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2189
2190 Let integers use up 2 tags to give them one extra bit and thus double
2191 their range.
2192 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2193 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2194 New macros.
2195 (enum Lisp_Type): Use them. Give explicit values.
2196 (Lisp_Type_Limit): Remove.
2197 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2198 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2199 Pay attention to USE_2_TAGS_FOR_INTS.
2200 (INTEGERP): Use LISP_INT_TAG_P.
2201 * fns.c (internal_equal): Simplify the default case.
2202 (sxhash): Use case_Lisp_Int.
2203 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2204 any more.
2205 (Ftype_of): Use case_Lisp_Int.
2206 (store_symval_forwarding): Take into account the fact that Ints can
2207 now have more than one tag.
2208 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2209 buffer_slot_type_mismatch):
2210 * xfaces.c (face_attr_equal_p):
2211 * print.c (print_object):
2212 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2213 Use case_Lisp_Int.
2214
2215 2009-11-06 Eli Zaretskii <eliz@gnu.org>
2216
2217 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2218
2219 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2220 warning.
2221
2222 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2223
2224 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2225
2226 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2227
2228 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2229 ButtonPressRelease and MotionNotify (bug#4870).
2230
2231 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2232
2233 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2234
2235 * xterm.c (syms_of_xterm):
2236 * xselect.c (syms_of_xselect):
2237 * xmenu.c (syms_of_xmenu):
2238 * xfns.c (syms_of_xfns):
2239 * xfaces.c (syms_of_xfaces):
2240 * xdisp.c (syms_of_xdisp):
2241 * window.c (syms_of_window):
2242 * w32fns.c (syms_of_w32fns):
2243 * undo.c (syms_of_undo):
2244 * textprop.c (syms_of_textprop):
2245 * terminal.c (syms_of_terminal):
2246 * syntax.c (syms_of_syntax):
2247 * sound.c (syms_of_sound):
2248 * search.c (syms_of_search):
2249 * print.c (syms_of_print):
2250 * minibuf.c (syms_of_minibuf):
2251 * macros.c (syms_of_macros):
2252 * keymap.c (syms_of_keymap, initial_define_key)
2253 (initial_define_lispy_key):
2254 * keyboard.c (syms_of_keyboard):
2255 * insdel.c (syms_of_insdel):
2256 * image.c (syms_of_image):
2257 * fringe.c (syms_of_fringe):
2258 * frame.c (syms_of_frame):
2259 * fontset.c (syms_of_fontset):
2260 * fns.c (syms_of_fns):
2261 * fns.c (syms_of_fns):
2262 * fileio.c (syms_of_fileio):
2263 * fileio.c (syms_of_fileio):
2264 * eval.c (syms_of_eval):
2265 * doc.c (syms_of_doc):
2266 * dispnew.c (syms_of_display):
2267 * dired.c (syms_of_dired):
2268 * dbusbind.c (syms_of_dbusbind):
2269 * data.c (syms_of_data):
2270 * composite.c (syms_of_composite):
2271 * coding.c (syms_of_coding):
2272 * cmds.c (syms_of_cmds):
2273 * charset.c (define_charset_internal, syms_of_character):
2274 * ccl.c (syms_of_ccl):
2275 * category.c (syms_of_category, init_category_once):
2276 * casetab.c (syms_of_casetab):
2277 * casefiddle.c (syms_of_casefiddle):
2278 * callint.c (syms_of_callint):
2279 * bytecode.c (syms_of_bytecode):
2280 * buffer.c (keys_of_buffer, syms_of_buffer):
2281 * alloc.c (syms_of_alloc):
2282 * process.c (syms_of_process, init_process):
2283 * lread.c (syms_of_lread, init_obarray):
2284 * font.c (build_style_table):
2285 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2286 intern_c_string, calls to make_pure_string with
2287 make_pure_c_string. Use pure_cons instead of Fcons.
2288
2289 * process.c (socket_options): Make it const.
2290 (set_socket_option, init_process): Use a const pointer.
2291
2292 * lread.c (intern_c_string): New function.
2293 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2294 (defvar_int): Uset it. Make the name const char*.
2295
2296 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2297 (defvar_int): Update prototypes.
2298 (DEFUN, EXFUN): Support for prototypes is now required.
2299 (intern_c_string): New prototype.
2300 (struct Lisp_Subr): Make symbol_name constant.
2301
2302 * font.c (struct table_entry): Remove unused member. Make NAMES
2303 constant.
2304 (weight_table, slant_table, width_table): Make constant.
2305
2306 * emacs.c (struct standard_args): Make name and longname constant.
2307
2308 * character.h (DEFSYM): Use intern_c_string.
2309
2310 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2311
2312 * alloc.c (make_pure_c_string): New function.
2313
2314 * eval.c (Fautoload): Purecopy all arguments.
2315
2316 2009-11-05 Kenichi Handa <handa@m17n.org>
2317
2318 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2319 the buffer in case of replace.
2320
2321 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2322
2323 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2324
2325 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2326
2327 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2328 when applicable (bug#4851).
2329
2330 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2331 (P_): Support for prototypes is now required.
2332
2333 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2336 (Bug#4827).
2337
2338 2009-10-30 Eli Zaretskii <eliz@gnu.org>
2339
2340 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2341
2342 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2343
2344 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2345
2346 * lread.c (Fload): Purecopy the file name when building
2347 Vpreloaded_file_list.
2348
2349 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2350
2351 * w32fns.c (syms_of_w32fns): Change default value of
2352 w32-scroll-lock-modifier to nil. (Bug#2827)
2353
2354 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2355
2356 * minibuf.c (Fall_completions): Fix typos in docstring.
2357
2358 2009-10-26 Andreas Schwab <schwab@redhat.com>
2359
2360 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2361
2362 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
2363
2364 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2365 For delta < 0, skip check that only makes sense when the mini-window
2366 is going to be enlarged. (Bug#4534)
2367
2368 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
2369
2370 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2371 string in menu maps (Bug#4471).
2372
2373 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2376 FRAME_NS_VIEW on terminal frames (Bug#4765).
2377
2378 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2379
2380 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2381 DBUS_TYPE_UINTnn separately to get proper sign extension.
2382
2383 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2384 can properly handle unsigned types.
2385 (make_uid, make_gid): Remove.
2386
2387 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2388 types again.
2389
2390 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2391 (system_process_attributes): Likewise.
2392
2393 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2394
2395 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2396
2397 * eval.c (Fautoload): Purecopy the filename. Simplify.
2398
2399 * category.c (Fdefine_category): Purecopy docstring.
2400
2401 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2402
2403 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2404
2405 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2406
2407 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
2408
2409 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2410 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2411 (Bug#4775).
2412
2413 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2414
2415 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2416 (init_fileio_once):
2417 * lisp.h (init_fileio_once): Remove.
2418 * emacs.c (main): Don't call init_fileio_once.
2419
2420 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2421
2422 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2423
2424 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2425
2426 * doprnt.c (doprnt): Fix overflow check.
2427
2428 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2429
2430 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2431
2432 * xterm.h (x_wait_for_event): Declare it.
2433
2434 * xterm.c (pending_event_wait): New variable.
2435 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2436 see pending_event_wait.eventtype.
2437 (handle_one_xevent): Don't change gravity when parent changes.
2438 (x_new_font): Call change_frame_size with new rows/columns before we
2439 try to resize the frame.
2440 (x_wait_for_event): New function.
2441 (x_set_window_size_1): Don't change gravity unless change_gravity
2442 is set.
2443 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2444 don't change frame size, instead wait for the ConfigureNotify.
2445 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2446 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2447 (x_initialize): Initialize pending_event_wait.
2448
2449 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2450 size.
2451
2452 * widget.c (EmacsFrameSetValues): Add comment.
2453 (EmacsFrameSetCharSize): Just call x_set_window_size.
2454
2455 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2456 x_wait_for_event.
2457 (flush_and_sync): Remove again.
2458 (xg_get_font_name): Suggest monospace if no previous font is known.
2459
2460 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2461
2462 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2463 8th bit, since that only made sense in the ASCII world (bug#4751).
2464
2465 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2466
2467 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2468 processing pending events when event is filtered for input method.
2469 (Bug#3681)
2470
2471 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2472
2473 * fns.c: Add #endif accidentally removed in previous change.
2474
2475 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2476
2477 * fns.c: Remove code for unsupported system: MAC_OS.
2478 * image.c: Likewise. Include setjmp.h.
2479
2480 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2481
2482 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2483 pixel -1 (bug #4742).
2484
2485 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2486
2487 * process.c (create_pty): Remove conditionals for no longer
2488 supported systems: UNIPLUS and RTU.
2489
2490 * xterm.c:
2491 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2492
2493 * alloc.c: Do not define struct catchtag.
2494 * eval.c: Move struct catchtag definition ...
2495 * lisp.h: ... here.
2496
2497 * image.c: Move png.h #include earlier to avoid warnings.
2498
2499 * xterm.c:
2500 * xsmfns.c:
2501 * xselect.c:
2502 * xrdb.c:
2503 * xmenu.c:
2504 * xftfont.c:
2505 * xfont.c:
2506 * xfns.c:
2507 * xfaces.c:
2508 * xdisp.c:
2509 * window.c:
2510 * widget.c:
2511 * w32xfns.c:
2512 * w32uniscribe.c:
2513 * w32term.c:
2514 * w32select.c:
2515 * w32reg.c:
2516 * w32proc.c:
2517 * w32menu.c:
2518 * w32inevt.c:
2519 * w32heap.c:
2520 * w32font.c:
2521 * w32fns.c:
2522 * w32console.c:
2523 * w32.c:
2524 * w16select.c:
2525 * vm-limit.c:
2526 * unexsol.c:
2527 * unexec.c:
2528 * unexcw.c:
2529 * unexaix.c:
2530 * undo.c:
2531 * tparam.c:
2532 * textprop.c:
2533 * terminfo.c:
2534 * terminal.c:
2535 * termcap.c:
2536 * term.c:
2537 * syntax.c:
2538 * sound.c:
2539 * sheap.c:
2540 * search.c:
2541 * scroll.c:
2542 * region-cache.c:
2543 * regex.c:
2544 * ralloc.c:
2545 * process.c:
2546 * print.c:
2547 * nsterm.m:
2548 * nsselect.m:
2549 * nsmenu.m:
2550 * nsimage.m:
2551 * nsfont.m:
2552 * nsfns.m:
2553 * msdos.c:
2554 * minibuf.c:
2555 * menu.c:
2556 * marker.c:
2557 * macros.c:
2558 * keymap.c:
2559 * keyboard.c:
2560 * intervals.c:
2561 * insdel.c:
2562 * indent.c:
2563 * gtkutil.c:
2564 * ftxfont.c:
2565 * ftfont.c:
2566 * fringe.c:
2567 * frame.c:
2568 * fontset.c:
2569 * font.c:
2570 * fns.c:
2571 * floatfns.c:
2572 * filelock.c:
2573 * fileio.c:
2574 * emacs.c:
2575 * editfns.c:
2576 * dosfns.c:
2577 * doprnt.c:
2578 * doc.c:
2579 * dispnew.c:
2580 * dired.c:
2581 * dbusbind.c:
2582 * data.c:
2583 * composite.c:
2584 * coding.c:
2585 * cmds.c:
2586 * cm.c:
2587 * chartab.c:
2588 * charset.c:
2589 * character.c:
2590 * ccl.c:
2591 * category.c:
2592 * casetab.c:
2593 * casefiddle.c:
2594 * callproc.c:
2595 * callint.c:
2596 * bytecode.c:
2597 * buffer.c:
2598 * atimer.c: Include setjmp.h. (Bug#4643)
2599
2600 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2601
2602 Remove leftover table unibyte_to_multibyte_table.
2603 * character.c (unibyte_to_multibyte_table): Remove.
2604 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2605 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2606 * character.h (UNIBYTE_TO_CHAR): New macro.
2607 (MAKE_CHAR_MULTIBYTE): Use it.
2608 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2609 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2610 (message_dolog, set_message_1):
2611 * search.c (Freplace_match):
2612 * editfns.c (Fcompare_buffer_substrings):
2613 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2614 (concat):
2615 * insdel.c (copy_text, count_size_as_multibyte):
2616 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2617 * term.c (produce_glyphs):
2618 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2619 * regex.c (RE_CHAR_TO_MULTIBYTE):
2620 * cmds.c (internal_self_insert):
2621 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2622
2623 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2624
2625 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2626
2627 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2628
2629 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2630
2631 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2632
2633 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2634
2635 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2636 still needed under Tiger.
2637
2638 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2639
2640 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2641 __Apple__.
2642
2643 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2644
2645 2009-10-15 Kenichi Handa <handa@m17n.org>
2646
2647 * print.c (print_object): Escape a symbol like "2E10" too.
2648
2649 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2650
2651 Cleanups and changes for 64-bit compile under Snow Leopard.
2652 Based on suggestions by Erik Charlebois.
2653
2654 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2655
2656 * nsfont.m (ns_char_width): Replace deprecated call.
2657 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2658 cast argument.
2659 (nsfont_open): Use ns_char_width() everywhere.
2660 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2661
2662 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2663
2664 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2665 where appropriate.
2666
2667 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2668 where appropriate.
2669 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2670 Use stringWithUTF8String.
2671 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2672
2673 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2674 Add formal protocol mention to inheritance.
2675 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2676
2677 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2678 Fix printf format.
2679 (ns_query_color): Use CGFloat where appropriate.
2680 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2681 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2682 argument.
2683
2684 * config.in (NS_HAVE_NSINTEGER): Drop.
2685
2686 * dbusbind.c (dbus-method-return-internal)
2687 (dbus-method-error-internal): Use long format in printf, and cast
2688 argument.
2689
2690 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2691 in printf, and cast argument.
2692
2693 * process.c (list_processes_1): Use long format in printf, and
2694 cast argument.
2695
2696 2009-10-11 Glenn Morris <rgm@gnu.org>
2697
2698 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2699
2700 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2701
2702 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2703 menu bar with a small width so it doesn't enlarge the frame.
2704
2705 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2706
2707 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2708
2709 2009-10-06 Glenn Morris <rgm@gnu.org>
2710
2711 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2712 SOME_MACHINE_LISP (this enters indirectly via DOC).
2713
2714 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2715
2716 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2717
2718 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2719
2720 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2721 Doc fix.
2722
2723 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2724
2725 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2726
2727 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2728
2729 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2730 used anymore outside fileio.c.
2731
2732 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2733
2734 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2735
2736 * lisp.h (Qdelete_directory_internal):
2737 Declare, instead of Qdelete_directory.
2738
2739 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2740
2741 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2742
2743 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2744
2745 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2746
2747 * fileio.c (Fdelete_directory_internal): Rename from
2748 Fdelete_directory. It is not a command anymore. It has no file
2749 name handler.
2750
2751 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2752
2753 * xdisp.c (get_next_display_element): Use an enum in last change.
2754
2755 2009-09-28 Kenichi Handa <handa@m17n.org>
2756
2757 * xdisp.c (get_next_display_element): Pay attention to
2758 unibyte_display_via_language_environment in handling
2759 Vnobreak_char_display.
2760
2761 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2762
2763 * nsterm.h (ns_app_name): New extern variable.
2764
2765 * nsterm.m (ns_app_name): New variable.
2766 (ns_term_init): Set and use it.
2767 (ns_term_shutdown): Use it.
2768
2769 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2770 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2771
2772 * nsfns.m (ns_set_name_iconic, ns_set_name)
2773 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2774 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2775
2776 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2777 Remove double-casting in client_data comparison.
2778
2779 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2780
2781 * keyboard.c (make_lispy_event): Remember last wheel direction.
2782 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2783
2784 2009-09-26 Glenn Morris <rgm@gnu.org>
2785
2786 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2787 internal.elc. Add term/pc-win.elc.
2788 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2789 term/x-win.elc.
2790 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2791 term/w32-win.elc.
2792 (NS_SUPPORT): New.
2793 (lisp): Add NS_SUPPORT.
2794 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2795
2796 2009-09-25 David Reitter <david.reitter@gmail.com>
2797
2798 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2799 on Mac OS X 10.6+ (bug#4513).
2800
2801 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2802
2803 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2804 some parts of Emacs code (like font selection) don't grok them.
2805 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2806
2807 2009-09-24 Andreas Schwab <schwab@redhat.com>
2808
2809 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2810
2811 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2812
2813 * dired.c (Fdirectory_files): Fix typo in docstring.
2814
2815 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2816
2817 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2818 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2819 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2820 under GNUstep.
2821 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2822
2823 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2824 glyph advancement.
2825
2826 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2827
2828 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2829 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2830
2831 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2832 deleted (bug #4492).
2833
2834 * nsfont.m (Vns_reg_to_script): New lisp variable.
2835 (syms_of_nsfont): Declare it.
2836 (ns_registry_to_script): New function.
2837 (ns_get_req_script): Call it.
2838 (ns_findfonts): Don't give up on non-unicode registry.
2839
2840 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2841
2842 2009-09-20 Tom Tromey <tromey@redhat.com>
2843
2844 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2845 batch mode (bug#4228).
2846
2847 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2848
2849 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2850 carefully. (Bug #4339)
2851
2852 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2853
2854 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2855
2856 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2857
2858 * emacs.c (inhibit_x_resources): Update doc string for NS.
2859 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2860 legacy code for -NXHost. Fix error printf in daemon case.
2861
2862 * nsterm.h (ns_no_defaults): Remove.
2863
2864 * nsterm.m (ns_no_defaults): Remove.
2865 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2866 (ns_use_qd_smoothing): Remove legacy variable.
2867 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2868 don't update the NSWindow itself.
2869 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2870 state detection and store user rect ourselves. (Bug #3581)
2871
2872 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2873 ns_use_qd_smoothing.
2874
2875 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2876 platform versions. Drop support for emacs-20-style face specs.
2877 (x-close-connection): Drop PSFlush() under OS X.
2878 (x-focus-frame): Activate the app first. (Bug #4180)
2879
2880 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2881
2882 * emacs.c (inhibit_x_resources): New variable.
2883 (main) [HAVE_NS]: Don't process --quick command line option.
2884 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2885
2886 * lisp.h (inhibit_x_resources): Declare it extern.
2887
2888 * w32reg.c (x_get_string_resource):
2889 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2890
2891 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2892
2893 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2894 Add lisp/term/internal.elc.
2895
2896 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2897
2898 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2899 (bug#4461).
2900
2901 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2902
2903 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2904
2905 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2906 (OBJECTS_MACHINE): Remove, unused.
2907
2908 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2909
2910 * frame.c (x_get_resource_string): Remove unused.
2911
2912 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2913
2914 * xterm.c (x_new_font): Call change_frame_size before calling
2915 x_set_window_size, in case frame size won't change.
2916
2917 * frame.c (x_set_font): Remove dead code.
2918
2919 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2920
2921 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2922
2923 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2924
2925 * lread.c (Fload): Don't output a message after loading an obsolete
2926 package any more (done in Lisp now).
2927
2928 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2929
2930 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2931
2932 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2933
2934 * keymap.c (Fwhere_is_internal): Use nconc2.
2935
2936 2009-09-11 Alan Mackenzie <acm@muc.de>
2937
2938 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2939 batch mode.
2940
2941 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2942
2943 * xdisp.c (display_mode_element): Detect cycles.
2944
2945 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2946
2947 * keymap.c (where_is_internal): Don't erroneously return nil right after
2948 filling the cache.
2949 (where_is_internal_1): Fix up typo.
2950
2951 2009-09-11 Glenn Morris <rgm@gnu.org>
2952
2953 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2954 share a common doc-string.
2955
2956 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2957
2958 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2959 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2960
2961 * keymap.c (QCadvertised_binding): New constant.
2962 (syms_of_keymap): Initialize it.
2963 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2964 if applicable.
2965
2966 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2967
2968 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2969 (parse_menu_item): Streamline since bindings are recomputed all the
2970 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2971 more and don't support lmenu's menu-alias any more either.
2972
2973 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2974 (where_is_internal): Strip it down to only traverse the keymaps.
2975 Move the cache handling from Fwhere_is_internal to here.
2976 (Fwhere_is_internal): Move the handling of remapping and the choice of
2977 the best binding from where_is_internal to here.
2978 Unify the cached/noncached paths, so remapping is also handled
2979 correctly when the cache is used, and so the cache can be used to
2980 speed up remap-handling when applicable.
2981 Give preference to non-remapped bindings.
2982 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2983 non-remapped bindings.
2984 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2985 command remapping.
2986
2987 * xdisp.c (display_mode_element): Move list length limit from 50 to
2988 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2989
2990 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2991
2992 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2993
2994 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2997 (Bug#4334)
2998
2999 * keymap.c (where_is_internal): Filter out shadowed remappings.
3000 Assume that where_is_internal returns unshadowed bindings to simplify
3001 the code and get rid of the gotos. Use ASIZE.
3002
3003 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3004
3005 * xterm.c (x_focus_changed): If we get a focusout and pointer
3006 is invisible, make it visible.
3007
3008 * xterm.h: Remove condition for declaration of
3009 x_*_window_to_frame.
3010
3011 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3012
3013 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3014 initial terminal as well.
3015
3016 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3017
3018 * xterm.h: Rename x_non_menubar_window_to_frame to
3019 x_menubar_window_to_frame.
3020
3021 * xterm.c: Remove declarations also in xterm.h
3022 (XTmouse_position): Do not return valid positions
3023 for clicks in the menubar and the toolbar for Gtk+.
3024
3025 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3026 if the widget for the event has the same top level as a frame,
3027 return the frame.
3028 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3029 internal windows, bug #4122.
3030 (x_non_menubar_window_to_frame): Remove.
3031
3032 2009-09-02 Glenn Morris <rgm@gnu.org>
3033
3034 * buffer.c (default-major-mode): Move most of the doc from here...
3035 (major-mode): ... to here.
3036
3037 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
3038
3039 * process.c (wait_reading_process_output): Keep the descriptor
3040 when pty is used by a non-child process, e.g., in I/O buffer of
3041 GDB this allows inferior to be restarted.
3042
3043 2009-08-29 Eli Zaretskii <eliz@gnu.org>
3044
3045 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3046 both branches into one.
3047
3048 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3049
3050 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3051 (main): Use enable-multibyte-characters rather than
3052 default-enable-multibyte-characters. Output a warning message when
3053 running a unibyte session.
3054
3055 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3056
3057 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3058 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3059 (copy_data_segment): Also copy __program_vars section.
3060 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3061 (dump_it) [LC_DYLD_INFO]: Use it.
3062
3063 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3064
3065 2009-08-28 Eli Zaretskii <eliz@gnu.org>
3066
3067 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3068 $(SRC)/buildobj.h.
3069 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3070 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3071 $(SRC)/buildobj.h.
3072 (clean): Add buildobj.h.
3073
3074 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3075
3076 * print.c (print_object): Set escapeflag to 1 when printing
3077 hashtable keys and values.
3078
3079 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3080
3081 * lread.c (read_integer): Use doubles (and potentially return a float
3082 number) as we do in string-to-number.
3083 (read1): Use strtol to read integers, signal errors on strtol's
3084 overflow and use floats if strtol's output is too large for
3085 Elisp integers.
3086
3087 2009-08-27 Eli Zaretskii <eliz@gnu.org>
3088
3089 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3090 (make-buildobj-SH): Fix last change.
3091 (SRC): Move to before where it's first used.
3092
3093 2009-08-27 Kenichi Handa <handa@m17n.org>
3094
3095 * process.c (send_process): Use encode_coding_object instead of
3096 encode_coding_string to perform eol-conversion even if the string
3097 is unibyte.
3098
3099 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3100 character.
3101
3102 * cmds.c (Fself_insert_command): Avoid unnecessay
3103 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
3104
3105 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3106
3107 * callproc.c (Fcall_process): Remove always true #if.
3108
3109 * lisp.h: Replace #if 0 code for checking with text pointing to
3110 the --enable-checking configure flag.
3111
3112 * emacs.c (main): Mention the --enable-profiling configure flag
3113 instead of using CFLAGS.
3114
3115 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
3116
3117 * Makefile.in (buildobj.h): New target.
3118 (doc.o): Depend on it.
3119 (temacs${EXEEXT}): Don't generate buildobj.lst.
3120 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3121 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3122 ($(BLD)/doc.$(O)): Depend on it.
3123 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3124 provided by Eli Zaretskii.)
3125 ($(TEMACS)): Don't generate buildobj.lst.
3126 * doc.c: Include buildobj.h.
3127 (buildobj): New static variable.
3128 (Fsnarf_documentation): Use it, instead of opening and reading
3129 buildobj.lst.
3130
3131 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
3132
3133 * dbusbind.c (Fdbus_call_method)
3134 (Fdbus_call_method_asynchronously): Use English numeric format for
3135 timeout values in doc string.
3136
3137 2009-08-25 Kenichi Handa <handa@m17n.org>
3138
3139 * alloc.c (mark_char_table): New function.
3140 (mark_object): Use mark_char_table for a char-table.
3141
3142 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3143 (CHAR_TABLE_REF): Use it.
3144
3145 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
3146
3147 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3148 before invoking the newly build emacs to check for load-path
3149 shadowing.
3150
3151 2009-08-22 Glenn Morris <rgm@gnu.org>
3152
3153 * Makefile.in (bootstrap_exe): New variable.
3154 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3155 Use ${bootstrap_exe}.
3156
3157 2009-08-22 Eli Zaretskii <eliz@gnu.org>
3158
3159 * coding.h (encode_coding_string): Don't encode unibyte strings.
3160 (Bug#4047)
3161
3162 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
3163
3164 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3165
3166 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3167 intended as hotfix only.
3168 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3169
3170 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3171
3172 * nsterm.m (ns_get_color): Update documentation properly for last
3173 change, and clean up loose ends in the code left by it. Fix
3174 longstanding bug with 16-bit hex parsing, and add support for
3175 yet another X11 format (rgb:r/g/b) for compatibility.
3176 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3177 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3178
3179 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3180
3181 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3182
3183 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
3184
3185 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3186 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3187 (xd_initialize, xd_pending_messages): Check, whether
3188 $DBUS_SESSION_BUS_ADDRESS is set.
3189
3190 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3191
3192 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3193
3194 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3195
3196 2009-08-20 Glenn Morris <rgm@gnu.org>
3197
3198 * emacs.c (system-type): Doc fix.
3199
3200 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3201
3202 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3203 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3204
3205 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
3206
3207 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3208 New functions.
3209 (xd_initialize): Revert change from 2009-08-16.
3210
3211 2009-08-18 Kenichi Handa <handa@m17n.org>
3212
3213 * fontset.c (Ffontset_font): If a nil element is found in a
3214 font-group vector, return nil.
3215
3216 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
3217
3218 * process.c (status_notify): Don't perform redisplay.
3219 (Fdelete_process, list_processes_1, process_send_signal):
3220 Expliticly perform redisplay.
3221 (wait_reading_process_output): Always check process status, but
3222 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3223
3224 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
3225
3226 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
3227 (XFLOAT_INIT): New macro for storing a float value.
3228 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3229 * fns.c (sxhash): Copy out the value of a float in order to
3230 examine its bytes.
3231 * dbusbind.c (xd_append_arg): Likewise.
3232
3233 * emacs.c (main): Don't call syms_of_data twice.
3234
3235 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
3236
3237 * dbusbind.c (xd_initialize): Add connection file descriptor to
3238 input_wait_mask, in order to let select() detect, whether a new
3239 message has been arrived.
3240 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
3241
3242 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
3243
3244 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3245 New functions.
3246
3247 * lisp.h (xd_pending_messages): Declare.
3248
3249 * keyboard.c (readable_events): Call xd_pending_messages.
3250
3251 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
3252
3253 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
3254
3255 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3256
3257 * buffer.c (set_buffer_internal_1)
3258 (swap_out_buffer_local_variables): Check for unbound local
3259 variables (Bug#4138).
3260
3261 2009-08-14 Eli Zaretskii <eliz@gnu.org>
3262
3263 * process.c (create_pty): Fix last change.
3264
3265 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
3266
3267 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3268 (xbm_load_image): Caller changed.
3269 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
3270
3271 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
3272
3273 * process.c (create_pty): New function.
3274 (Fstart_process): Use it to allow Emacs to just associate a pty
3275 with the buffer. See associated change in gdb-mi.el.
3276 (list_processes_1): Deal with no program name.
3277 (start_process_unwind): Use pid == -2 to mean no process.
3278
3279 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3280
3281 * cmds.c (nonundocount): New global variable.
3282 (keys_of_cmds): Initialize it.
3283 (Fself_insert_command): Use it to combine upto 20 sequential chars
3284 into a single undo entry, just like the Qself_insert_command code in
3285 keyboard.c does.
3286 Call frame_make_pointer_invisible, also like the Qself_insert_command
3287 code in keyboard.c does.
3288 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3289 than its own local replacement for it.
3290
3291 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
3292
3293 * fns.c (concat): Don't re-set string length to its current value.
3294
3295 * coding.h (decode_coding_string, encode_coding_string):
3296 Use SBYTES macro.
3297
3298 * doprnt.c (doprnt_lisp): Delete unused function.
3299 (doprnt): Merge with doprnt1, discarding lispstrings code.
3300 * lisp.h (doprnt_lisp): Don't declare.
3301
3302 2009-08-07 Juri Linkov <juri@jurta.org>
3303
3304 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3305
3306 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3307
3308 * print.c (syms_of_print): Undo previous change.
3309
3310 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3311
3312 * lread.c (read1, syms_of_lread): Read hashtables back from the
3313 readable format.
3314
3315 * print.c (print_preprocess, print_object): Print hashtables fully
3316 and readably.
3317 (syms_of_print): Provide 'hashtable-print-readable.
3318
3319 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3320
3321 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3322 no family set.
3323 (nsfont_open): Handle case when entity has no family.
3324
3325 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3326
3327 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3328 element, not a list, for match case.
3329
3330 2009-07-28 Kenichi Handa <handa@m17n.org>
3331
3332 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3333 rigidly.
3334
3335 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3336 font_parse_xlfd. Check font properties more rigidly.
3337
3338 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3339
3340 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3341 bsd-common.h.
3342
3343 2009-07-27 Kenichi Handa <handa@m17n.org>
3344
3345 * xfaces.c (face_with_height): Call font_clear_prop.
3346
3347 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
3348
3349 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3350
3351 * xterm.c (x_term_init): Use Qx.
3352
3353 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3354
3355 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3356 (ns_get_color): Revert 2009-07-16 change.
3357
3358 2009-07-25 Eli Zaretskii <eliz@gnu.org>
3359
3360 * lread.c (syms_of_lread) <force_load_messages>: New variable.
3361 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3362
3363 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
3364
3365 * coding.h (decode_coding_string, encode_coding_string):
3366 Use SCHARS macro.
3367
3368 * lread.c: Rewrite 2009-07-21 changes.
3369 (load_depth): Delete.
3370 (Qload_in_progress): New variable.
3371 (load_unwind): Don't reference load_depth or load_in_progress.
3372 (Fload): Likewise; specbind Qload_in_progress instead.
3373 (init_lread): Don't initialize load_depth.
3374 (syms_of_lread): Initialize and protect Qload_in_progress.
3375
3376 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3377
3378 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3379
3380 2009-07-23 Yavor Doganov <yavor@gnu.org>
3381
3382 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3383
3384 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3385
3386 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3387 Bugs 3792, 3720, 2402.
3388 (ns_lookup_indexed_color): Check for bad index.
3389 (ns_index_color): Init unused slot to 0.
3390 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3391 Bug 3714, possibly 3082.
3392
3393 2009-07-22 Jason Rumney <jasonr@gnu.org>
3394
3395 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3396 Position IME window at cursor (Bug#2570).
3397 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3398 (globals_of_w32fns): Dynamically load functions required above.
3399
3400 * w32term.c (w32_draw_window_cursor): Send message to reposition
3401 any IME window.
3402
3403 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * fileio.c: Revert 2009-07-16 changes.
3406 (Vauto_save_include_big_deletions): New variable.
3407 (Fdo_auto_save): Disable auto-save only if
3408 auto-save-include-big-deletions is nil.
3409
3410 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3411
3412 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3413 the overflowed pixels into account (Bug#3879).
3414
3415 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
3416
3417 * lread.c (load_depth): New variable.
3418 (Fload, load_unwind, init_lread): Set it to the load recursion
3419 depth; set load_in_progress as a simple boolean based on the
3420 current load_depth. (Bug#3892)
3421
3422 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3423
3424 * nsfont.m (ns_has_attribute): Remove.
3425 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3426
3427 2009-07-18 Juri Linkov <juri@jurta.org>
3428
3429 * process.c (Fset_process_query_on_exit_flag): Mention killing
3430 a buffer in docstring.
3431
3432 2009-07-17 Kenichi Handa <handa@m17n.org>
3433
3434 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3435
3436 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3437
3438 * nsfns.m (Fns_set_alpha): Remove function.
3439 (syms_of_nsfns): Don't defsubr it.
3440
3441 * nsterm.m (ns_get_color): Remove incompatible color formats.
3442 (ns_color_to_lisp): Generate #rrggbb color format string.
3443
3444 2009-07-16 Richard Stallman <rms@gnu.org>
3445
3446 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3447 (Fset_buffer_auto_saved): Handle save_length = -2.
3448
3449 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3450
3451 * xterm.c (Qx_gtk_map_stock): New var.
3452
3453 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3454 of calling intern each time.
3455
3456 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3457
3458 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3459 does tiling.
3460
3461 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3462
3463 2009-07-14 Kenichi Handa <handa@m17n.org>
3464
3465 * font.c (font_vconcat_entity_vectors): New function.
3466 (struct font_sort_data): New member font_driver_preference.
3467 (font_compare): Check font_driver_preference.
3468 (font_sort_entities): The format of the first argument changed.
3469 (font_delete_unmatched): Likewise.
3470 (font_list_entities): The return type changed.
3471 (font_select_entity): The format of the second argument changed.
3472 (font_find_for_lface): Adjuste for the above changes.
3473 Don't suppress the checking of C even if the repertory supports it.
3474 (Flist_fonts): Adjust for the above changes.
3475
3476 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3477 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3478 Reject a font who has adstyle property that is different from a
3479 langname derived from registry property.
3480 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3481
3482 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3483
3484 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3485 local copy of dirfilename.
3486
3487 2009-07-13 Kenichi Handa <handa@m17n.org>
3488
3489 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3490 against max_char.
3491
3492 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3493 calling XSYMBOL (sym).
3494
3495 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3496
3497 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3498 New function.
3499 (directory_files_internal) [WINDOWSNT]:
3500 Bind w32-get-true-file-attributes to either t or nil, depending whether
3501 the filesystem of the directory is fast or slow.
3502
3503 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3504 file name.
3505 (is_slow_fs): New function.
3506 (stat): Use it to determine whether to issue more system calls to
3507 get accurate file attributes, when w32-get-true-file-attributes is
3508 `local'.
3509
3510 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3511
3512 * xfns.c (Fx_select_font): Remember last font selected in
3513 x_last_font_name and use that the next time. Also try the frame
3514 parameter font-parameter as default to the font dialog.
3515
3516 2009-07-10 Kenichi Handa <handa@m17n.org>
3517
3518 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3519
3520 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3521
3522 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3523
3524 * w32.c (stat): Treat UNC file names as residing on remote
3525 drives. (Bug#3542)
3526
3527 2009-07-09 Kenichi Handa <handa@m17n.org>
3528
3529 * fontset.c (fontset_find_font): Fix previous change.
3530
3531 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3532
3533 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3534 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3535 error flag.
3536
3537 2009-07-08 Kenichi Handa <handa@m17n.org>
3538
3539 * fontset.c (fontset_find_font): Fix the logic of handling
3540 charset_matched.
3541 (font_for_char): Delete unused var.
3542 (generate_ascii_font_name): Delete it.
3543
3544 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3545
3546 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3547 (encode_coding_sjis): Fix the code range check.
3548
3549 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3550
3551 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3552 (Fexpand_file_name): Copy string data properly (Bug#3772).
3553
3554 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3555
3556 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3557 first MapNotify.
3558
3559 2009-07-07 Kenichi Handa <handa@m17n.org>
3560
3561 * character.h (unibyte_has_multibyte_table): Delete extern.
3562 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3563
3564 * charset.c (Fset_charset_priority): Update charset_unibyte.
3565 (syms_of_charset): Initialize charset_unibyte.
3566
3567 * character.c (unibyte_has_multibyte_table): Delete it.
3568 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3569 charset_unibyte.
3570 (multibyte_char_to_unibyte_safe): Likewise.
3571 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3572
3573 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3574 (x_produce_glyphs): Likewise.
3575
3576 * .gdbinit (xcharset): Fix the treating $arg0.
3577
3578 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3579
3580 Emulation of `getloadavg' on MS-Windows.
3581 * w32.c: Include float.h
3582 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3583 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3584 (get_native_system_info, get_system_times): New functions.
3585 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3586 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3587 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3588 g_b_init_get_system_times, and num_of_processors.
3589
3590 2009-07-03 Jason Rumney <jasonr@gnu.org>
3591
3592 * w32term.c (w32_initialize): Use standard types.
3593
3594 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3595
3596 * dired.c (Ffile_attributes): Decode user and group names by the
3597 locale's encoding. (Bug#3443)
3598
3599 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3600
3601 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3602 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3603
3604 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3605
3606 * term.c (init_tty): Remove spurious #ifdef.
3607
3608 * m/mips.h: Mention this file is also used for netbsd.
3609 * m/pmax.h: Remove file.
3610
3611 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3612
3613 * xterm.h (struct x_display_info): Add invisible_cursor.
3614 (struct x_output): Add current_cursor.
3615
3616 * xterm.c (XTtoggle_invisible_pointer): New function.
3617 (x_define_frame_cursor): Don't define cursor if invisible or the
3618 same as before. Set current_cursor.
3619 (x_create_terminal): Set toggle_invisible_pointer_hook.
3620
3621 * xfns.c (make_invisible_cursor): New function.
3622 (x_set_mouse_color): Call make_invisible_cursor.
3623 Set current_cursor.
3624 (x_window): Set current_cursor.
3625
3626 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3627
3628 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3629 inserting a character.
3630 (read_avail_input): Call frame_make_pointer_visible.
3631
3632 * frame.c (Vmake_pointer_invisible): New variable.
3633 (frame_make_pointer_invisible, frame_make_pointer_visible):
3634 New functions.
3635 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3636
3637 * frame.h: Declare frame_make_pointer_invisible and
3638 frame_make_pointer_visible.
3639 (struct frame): Add pointer_invisible.
3640
3641 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3642
3643 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3644 frame isn't visible.
3645 (xg_frame_resized): If width/height is -1, get size of window
3646 from X server.
3647
3648 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3649 for MapNotify.
3650
3651 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3652 here or call change_frame_size. Just call flush_and_sync.
3653 (flush_and_sync): Reintroduce.
3654
3655 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3656
3657 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3658
3659 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3660 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3661
3662 * frame.h: Declare Qsticky.
3663
3664 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3665
3666 * nsfns.m (ns_frame_parm_handlers): Ditto.
3667
3668 * frame.c: Declare Qsticky.
3669 (frame_parms): Add sticky.
3670
3671 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3672
3673 * xterm.h: Declare x_set_sticky.
3674
3675 * xterm.c (x_set_sticky): New function.
3676
3677 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3678 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3679 xg_tool_bar_proxy_help_callback.
3680
3681 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3682
3683 * frame.c: Qmaximized is new.
3684 (x_set_frame_parameters): Do not handle fullscreen specially.
3685 Only set width and height if explicitly set.
3686 (x_set_fullscreen): Handle Qmaximized.
3687 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3688 (syms_of_frame): Initialize Qmaximized.
3689
3690 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3691 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3692
3693 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3694 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3695 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3696 set gravity to NorthWestGravity when USE_GTK.
3697 (set_wm_state): New function.
3698 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3699 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3700 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3701 or the case when no window manager is running. That means remove calls
3702 to x_real_positions and x_fullscreen_adjust.
3703
3704 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3705 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3706 flush_and_sync.
3707 (xg_height_changed): New function.
3708 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3709 and gtk_window_set_policy. Set frame gravity after parsing the
3710 geometry string.
3711 (xg_update_frame_menubar, free_frame_menubar)
3712 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3713 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3714 Remove calls to xg_frame_set_char_size.
3715
3716 2009-07-01 Kenichi Handa <handa@m17n.org>
3717
3718 * keyboard.c (decode_keyboard_code): New function.
3719 (tty_read_avail_input): Decode the input bytes if necessary.
3720
3721 * coding.c (setup_coding_system):
3722 Initialize coding->carryover_bytes to 0.
3723 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3724 use Qno_conversion.
3725
3726 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3727
3728 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3729
3730 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3733
3734 2009-06-30 Jason Rumney <jasonr@gnu.org>
3735
3736 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3737 is already loaded.
3738 Set user model ID if supported (bug#1849).
3739
3740 2009-06-29 Jim Meyering <meyering@redhat.com>
3741
3742 Remove useless if-before-xfree test.
3743 * nsfont.m (nsfont_close): Remove useless test.
3744 * term.c (delete_tty): Likewise.
3745 * w32.c (system_process_attributes): Likewise.
3746 * w32font.c (w32font_close): Likewise.
3747 * xfaces.c (x_free_gc): Likewise.
3748 * xselect.c (buffer): Likewise.
3749
3750 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3751
3752 * process.c (send_process): Keep decoded string in a local
3753 variable and protect it from GC. (Bug#3521)
3754
3755 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3756
3757 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3758 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3759
3760 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3761
3762 * xdisp.c (start_display, handle_face_prop)
3763 (move_it_vertically_backward, cursor_row_fully_visible_p)
3764 (redisplay_window, try_window_id, produce_image_glyph):
3765 Delete some #ifdef-ed out code chunks that are now obsolete.
3766
3767 * xterm.c (x_update_window_begin, x_new_focus_frame)
3768 (x_scroll_bar_handle_click, handle_one_xevent)
3769 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3770 (x_make_frame_visible, x_make_frame_invisible)
3771 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3772 code chunks that are now obsolete.
3773
3774 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3775
3776 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3777 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3778 for hours, when optimzation is enabled.
3779 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3780 (xd_read_message): Make them static.
3781
3782 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3783
3784 * term.c (turn_on_face): Allow simultaneously bold and dim
3785 terminal faces (Bug#3530).
3786
3787 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3788
3789 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3790
3791 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3792 truncation glyphs (Bug#3686).
3793
3794 2009-06-27 Glenn Morris <rgm@gnu.org>
3795
3796 * m/pmax.h: Restore file, with only netbsd portions.
3797
3798 2009-06-26 David Reitter <david.reitter@gmail.com>
3799
3800 * nsterm.m (keydown): Avoid infinite loop.
3801
3802 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3803
3804 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3805 the arg FORCE_SYMBOL.
3806
3807 2009-06-25 Kenichi Handa <handa@m17n.org>
3808
3809 * fontset.c (fontset_find_font): When a usable rfont_def is found
3810 in a fallback font-group, make it the first element of the group.
3811
3812 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3813
3814 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3815
3816 2009-06-24 Kenichi Handa <handa@m17n.org>
3817
3818 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3819 set for C.
3820 (fontset_font): Record the availability of a font for C both in
3821 the realized fontsets of the current one and the default one.
3822
3823 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3824
3825 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3826 conditional, it is always defined on AIX.
3827
3828 2009-06-23 Miles Bader <miles@gnu.org>
3829
3830 * window.c (Vrecenter_redisplay): New variable.
3831 (syms_of_window): Initialize it.
3832 (Qtty): New extern declaration.
3833 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3834
3835 2009-06-23 Jim Meyering <meyering@redhat.com>
3836
3837 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3838 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3839 pointer dereferences are guaranteed to be valid.
3840
3841 2009-06-23 Kenichi Handa <handa@m17n.org>
3842
3843 * emacs.c (main): Call init_font ().
3844
3845 * font.h (Vfont_log): Extern it.
3846 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3847
3848 * font.c (font_sort_entities, font_list_entities)
3849 (font_matching_entity, font_open_entity)
3850 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3851 (Vfont_log): Delete static.
3852 (font_log_env_checked): Delete this variable.
3853 (font_add_log): Don't check font_log_env_checked.
3854 (font_deferred_log): Check Vfont_log.
3855 (init_font): New function.
3856
3857 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3858
3859 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3860
3861 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3862
3863 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3864
3865 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3866 (face_for_char): Don't call font_deferred_log here.
3867 (font_for_char): Likewise.
3868
3869 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3870
3871 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3872 rather than its background_width for drawing the overline and
3873 underline (Bug#489).
3874
3875 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3876 rather than its background_width for drawing the overline and
3877 underline (Bug#489).
3878 (xg_default_icon_file): New variable.
3879 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3880 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3881
3882 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3883 (load_overlay_strings): Remove externs.
3884 (fast_find_position): Function deleted.
3885 (mouse_face_from_buffer_pos): New function, based on
3886 fast_find_position. Correctly handle before-strings,
3887 display-strings, and after-strings (Bug#1220).
3888 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3889
3890 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3891
3892 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3893 (move_it_in_display_line_to, move_it_in_display_line_to)
3894 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3895
3896 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3897
3898 * Branch for 23.1.
3899
3900 2009-06-21 Jason Rumney <jasonr@gnu.org>
3901
3902 * w32term.c (keyboard_codepage): New static variable.
3903 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3904 (w32_read_socket) [WM_CHAR]: Use it to decode character
3905 input (bug#3237).
3906 (w32_initialize): Initialize it.
3907 (codepage_for_locale): New function.
3908
3909 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3910
3911 * process.c (status_message): Pass Faset index argument as a lisp
3912 object, so as to work with USE_LISP_UNION_TYPE.
3913
3914 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3915
3916 * coding.c (Ffind_coding_systems_region_internal):
3917 Cache checked characters.
3918
3919 2009-06-18 Kenichi Handa <handa@m17n.org>
3920
3921 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3922
3923 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3924
3925 * xdisp.c (redisplay_internal): Check that the frame is still
3926 live after redisplay of its windows.
3927 (redisplay_windows): Check that the window is still live.
3928
3929 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3930
3931 * coding.c (detect_coding_utf_16): Fix previous change.
3932
3933 2009-06-16 Kenichi Handa <handa@m17n.org>
3934
3935 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3936 UTF-16 by checking the dispersion of Eth and Oth bytes.
3937
3938 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3939
3940 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3941
3942 2009-06-15 Kenichi Handa <handa@m17n.org>
3943
3944 * process.c (status_message): Fix previous change. Be sure to
3945 decode a localized string.
3946
3947 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3948
3949 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3950 add comment explaining why.
3951
3952 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3953
3954 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3955
3956 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3957
3958 * nsfont.m (ns_attribute_value): Remove.
3959 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3960 (ns_has_attribute): Shrink the normal range.
3961 (ns_findfonts): Don't worry about requested spec in determining
3962 need for synthItal.
3963 (ns_get_covering_families): Retain scriptToFamilies.
3964
3965 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3966
3967 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3968
3969 2009-06-11 Kenichi Handa <handa@m17n.org>
3970
3971 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3972 overhang for the static composition case.
3973
3974 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3975
3976 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3977 overhang for the automatic composition case.
3978
3979 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3980 composition case.
3981
3982 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3983
3984 * xdisp.c (get_next_display_element): When handling wrap-prefix
3985 and line-prefix, treat \n as a control character (bug#3502).
3986
3987 2009-06-10 Kenichi Handa <handa@m17n.org>
3988
3989 * font.c (font_parse_family_registry): Fix for one-char foundry.
3990 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3991
3992 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3993
3994 * process.c (status_message): Fix handling of multibyte signal
3995 string (Bug#3499).
3996
3997 2009-06-09 Jim Meyering <meyering@redhat.com>
3998
3999 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4000 color name is missing.
4001
4002 2009-06-09 Kenichi Handa <handa@m17n.org>
4003
4004 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4005 FROM-CODE and TO-CODE are codepoints of CHARSET.
4006
4007 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4008
4009 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4010
4011 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4012
4013 Changes to support :script/:lang/:otf in NS font driver.
4014 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4015 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4016 indicate not part of font driver interface, and change callers.
4017 (ns_get_family): Remove pointless null check.
4018 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4019 ns_spec_to_descriptor, ns_descriptor_to_entity.
4020 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4021 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4022 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4023 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4024 (ns_get_req_script, ns_accumulate_script_ranges)
4025 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4026 New functions.
4027 (nsfont_list, nsfont_match): Use ns_findfonts.
4028 (nsfont_open): Use font descriptor instead of traits.
4029 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4030 (dump_glyphstring): Rename to ns_dump_glyphstring.
4031
4032 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4033
4034 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4035
4036 * fontset.c (fontset_from_font): Remove NS-specific code.
4037
4038 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
4039
4040 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4041 nonactive windows.
4042
4043 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
4044
4045 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
4046
4047 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4048
4049 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4050
4051 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
4052
4053 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4054 account for the overflowing of newlines into the last glyph on the
4055 display line (Bug#3482).
4056
4057 2009-06-05 David Reitter <david.reitter@gmail.com>
4058
4059 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4060 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
4061 Fns_selection_exists_p, Fns_selection_owner_p.
4062
4063 2009-06-03 Jason Rumney <jasonr@gnu.org>
4064
4065 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4066 available. (Bug#3379)
4067
4068 2009-05-29 Kenichi Handa <handa@m17n.org>
4069
4070 * coding.c (get_translation_table):
4071 Check Venable_character_translation.
4072
4073 2009-05-26 David Reitter <david.reitter@gmail.com>
4074
4075 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4076 (x_make_frame_visible): Move frame to front rather than calling
4077 ns_raise_frame().
4078 (keyDown:): Do not swallow events that aren't re-sent if frame
4079 isn't key window.
4080 (drawRect:): Do not set visibility/iconified flags because
4081 drawRect may be called by NSView even if the frame is hidden.
4082
4083 * nsfns.m (Fx_create_frame): Follow other ports in
4084 determining visibility; default to t. Ensure async_visible is set.
4085
4086 2009-05-23 Eli Zaretskii <eliz@gnu.org>
4087
4088 * dired.c (Ffile_attributes): Doc fix.
4089
4090 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4093
4094 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4095
4096 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4097 and xfont_scratch_props.
4098 (syms_of_xfont): Do it here instead.
4099 (xfont_find_ccl_program): Delete, unused.
4100 (xfont_open): Delete unused var `i'.
4101
4102 2009-05-21 Kenichi Handa <handa@m17n.org>
4103
4104 * fontset.c (Qlatin): Don't make it static.
4105
4106 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4107 New functions.
4108 (xfont_scripts_cache, xfont_scratch_props): New variables.
4109 (Qlatin, Vscalable_fonts_allowed): Extern it.
4110 (xfont_list_pattern): Argument changed. Callers changed.
4111 Check Vscalable_fonts_allowed. Check the support of a script.
4112 (xfont_list): Don't reject a font spec with :script property.
4113 (xfont_has_char): Fix setting of encoding.
4114 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4115 xfont_scratch_props.
4116
4117 2009-05-19 Kenichi Handa <handa@m17n.org>
4118
4119 * font.c (font_sort_entities): Rename from font_sort_entites.
4120 Callers changed.
4121
4122 2009-05-18 Kenichi Handa <handa@m17n.org>
4123
4124 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4125
4126 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4127
4128 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4129 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4130
4131 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4132
4133 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4134 (x_delete_terminal): Dissociate resource database from display and
4135 then call XrmDestroyDatabase before closing display.
4136
4137 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4138
4139 * nsterm.m (ns_read_socket): Remove unused variable.
4140 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4141 whether selected frame is viable before raising it (based on patch
4142 by David Reitter), and improve commentary.
4143 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
4144
4145 2009-05-15 Kenichi Handa <handa@m17n.org>
4146
4147 * font.c (Ffont_spec): Check arguments.
4148
4149 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
4150
4151 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4152 weight when testing attributes (Bug#3282).
4153
4154 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4155
4156 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4157 what we expect to get in the next ConfigureNotify event.
4158
4159 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4160 before Xft one (Bug#1696).
4161
4162 2009-05-07 David Reitter <david.reitter@gmail.com>
4163
4164 * nsfns.m (Fx_display_planes): Compute bitplanes using
4165 NSBitsPerPixelFromDepth (Bug#3207).
4166
4167 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
4168
4169 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4170
4171 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
4172
4173 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4174
4175 2009-05-07 David Reitter <david.reitter@gmail.com>
4176
4177 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4178 Respect mouse face background.
4179
4180 2009-05-07 David Reitter <david.reitter@gmail.com>
4181
4182 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4183 Mouse movement/highlight: bracket drawing operations
4184 in ns_update_begin and ns_update_end.
4185
4186 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4187
4188 * nsfns.m (ns_get_screen): Rewrite.
4189 Don't presume selected-frame is of type `ns'.
4190
4191 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4192 all drivers.
4193
4194 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4195
4196 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4197
4198 * keyboard.h (add_user_signal): Fix typo in extern.
4199
4200 * lisp.h (add_user_signal): Remove extern.
4201
4202 * unexelf.c (unexec): Consider a section to precede the .bss section
4203 if its addresses overlap that of .bss.
4204 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4205 instead of dumping process.
4206
4207 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4208
4209 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4210
4211 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4212
4213 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4214
4215 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4216
4217 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4218 any statements.
4219
4220 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4221
4222 * process.c (read_process_output): Make sure the current buffer is
4223 always restored.
4224
4225 * coding.c (record_conversion_result): Don't modify
4226 Vlast_code_conversion_error for successful result.
4227 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4228
4229 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4230
4231 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
4232 (load_charset_map): Remove unnecessary code.
4233
4234 2009-04-30 David Reitter <david.reitter@gmail.com>
4235
4236 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4237 through f24.
4238
4239 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
4240
4241 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4242
4243 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4244 face_at_buffer_position.
4245 (face_before_or_after_it_pos, get_next_display_element)
4246 (note_mouse_highlight): Update face_at_buffer_position call.
4247
4248 * term.c (term_mouse_highlight):
4249 * msdos.c (IT_note_mouse_highlight):
4250 * fontset.c (Finternal_char_font):
4251 * font.c (font_at, font_range): Update face_at_buffer_position call.
4252
4253 * dispextern.h (face_at_buffer_position): Update prototype.
4254
4255 2009-04-30 Kenichi Handa <handa@m17n.org>
4256
4257 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
4258
4259 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4260
4261 * callproc.c (Fcall_process): Fix GC protection. Make sure
4262 current buffer is always restored.
4263
4264 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4265
4266 * atimer.c (init_atimer): Also clear stopped_atimers.
4267
4268 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4269
4270 * process.c (create_process): Clean up merger residues of
4271 2008-07-17 change.
4272
4273 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
4274
4275 * lread.c (Vread_circle): New variable.
4276 (read1): Disable recursive read if Vread_circle is nil.
4277
4278 2009-04-29 Kenichi Handa <handa@m17n.org>
4279
4280 * fontset.h (set_default_ascii_font): Delete extern.
4281
4282 * fontset.c (set_default_ascii_font): Delete this unused function.
4283
4284 * frame.c (x_set_font): When ARG is a font-object, check if the
4285 font-object matches with the ASCII font-spec of the frame's
4286 fontset. If not, create a new fontset for the frame. (Bug #3075)
4287
4288 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4289
4290 * fns.c (Flocale_info): Protect vector from GC during decoding.
4291
4292 * process.c (Fstart_process): Protect argv strings from GC during
4293 encoding.
4294
4295 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4296
4297 * sysdep.c: Include <ctype.h>.
4298
4299 2009-04-27 David Reitter <david.reitter@gmail.com>
4300
4301 * nsfont.m (nsfont_open): Remove unused variable shrink.
4302 Remove commented-out code.
4303
4304 2009-04-26 Johan Bockgård <bojohan@gnu.org>
4305
4306 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4307
4308 2009-04-25 Jason Rumney <jasonr@gnu.org>
4309
4310 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4311
4312 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4313
4314 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4315 Swap bytes in short integer if fringe bitmap width > 8.
4316
4317 2009-04-23 Kenichi Handa <handa@m17n.org>
4318
4319 * xfaces.c (Fx_list_fonts): If a font size is specified in
4320 PATTERN, set it in returned scalable fonts.
4321
4322 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
4323
4324 * keyboard.c (Fset_input_meta_mode): Doc fix.
4325
4326 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4327
4328 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4329
4330 * coding.c (Fterminal_coding_system): Doc fix.
4331
4332 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4333 (Fx_display_pixel_height, Fx_display_planes)
4334 (Fx_display_color_cells, Fx_server_max_request_size)
4335 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4336 (Fx_display_mm_height, Fx_display_mm_width)
4337 (Fx_display_backing_store, Fx_display_visual_class)
4338 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4339 Doc fixes, replacing "terminal id" with "terminal object".
4340 (check_x_display_info): Handle terminal objects instead of
4341 terminal ids.
4342
4343 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4344 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4345 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4346 Doc fixes, replacing "terminal id" with "terminal object".
4347
4348 2009-04-21 Kenichi Handa <handa@m17n.org>
4349
4350 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4351 (font_score): Check AVGWIDTH too.
4352
4353 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4354 worst case.
4355 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4356 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4357
4358 2009-04-19 Jason Rumney <jasonr@gnu.org>
4359
4360 The following changes fix Bug#3005 for wide glyphs on each platform,
4361 without reintroducing Bug#1258 for stretch glyphs.
4362
4363 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4364 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4365 get_phys_cursor_geometry.
4366
4367 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4368 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4369 using get_phys_cursor_geometry.
4370
4371 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4372 correctly calculated.
4373
4374 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4375
4376 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4377 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
4378 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4379 is deprecated.
4380
4381 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4382
4383 * font.c (font_put_frame_data): Use xfree instead of free.
4384
4385 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
4386
4387 * w32font.c (Qja, Qko): Remove declarations.
4388 (syms_of_w32font): Don't DEFSYM them.
4389
4390 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
4391
4392 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4393
4394 * font.h (Qja, Qko): Extern them.
4395
4396 * ftfont.c (Qja, Qko): Remove declarations.
4397
4398 * xfont.c (Qja, Qko): Remove declarations.
4399
4400 2009-04-17 Kenichi Handa <handa@m17n.org>
4401
4402 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4403 string from a vector to handle Latin-1 characters correctly.
4404
4405 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4406 entity even if the cache hits.
4407
4408 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4409
4410 * search.c (boyer_moore): Use zero as marker value for a possible
4411 match instead of depending on overflow behavior. (Bug#2844)
4412
4413 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4414 * lisp.h: Adjust prototypes.
4415
4416 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4419 change (Bug#3003).
4420
4421 2009-04-16 Kenichi Handa <handa@m17n.org>
4422
4423 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4424
4425 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4426 adstyle.
4427
4428 * ftfont.c (Qja, Qko): Don't make them static.
4429 (enum ftfont_cache_for): New enum.
4430 (fc_charset_table): Undo the previous change.
4431 (ftfont_get_latin1_charset): Delete it.
4432 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4433 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
4434 non-scarable font, try to get AVERAGE_WIDTH.
4435 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4436 Change ft_face_cache from a list of a hash-table. Don't check
4437 `ja' and `ko' adstyle here.
4438 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4439 FTFONT_CACHE_FOR_CHARET.
4440 (ftfont_get_charset): Undo the previous change.
4441 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4442 (ftfont_close): Likewise.
4443 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4444
4445 * font.c (font_sort_entites): Change the meaning of the arg
4446 BEST-ONLY. Don't optimize for VEC of lenght 1.
4447 (font_select_entity): Just return the value of font_sort_entites.
4448
4449 * xfaces.c (merge_face_vectors): Reflect font properties in
4450 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4451 font_clear_prop if a face attribute doesn't change.
4452
4453 * charset.h (charset_ksc5601): Extern it.
4454
4455 * charset.c (charset_ksc5601): New variable.
4456 (Fdefine_charset_internal): Set charset_ksc5601.
4457 (init_charset_once): Initialize charset_ksc5601 to -1.
4458
4459 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4460
4461 * fileio.c (history_delete_duplicates): Remove unused declaration.
4462
4463 * callint.c (history_delete_duplicates): New declaration.
4464 (Fcall_interactively): Remove command history duplicates when
4465 history_delete_duplicates is true.
4466
4467 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4468
4469 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4470
4471 2009-04-14 Kenichi Handa <handa@m17n.org>
4472
4473 * font.c (Ffont_info): Fix docstring. Fix the second element of
4474 the returned value (bug#2949).
4475
4476 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4477
4478 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4479
4480 2009-04-14 Kenichi Handa <handa@m17n.org>
4481
4482 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4483 encoding charset is ascii_compatible.
4484
4485 * charset.c (Fdefine_charset_internal): Make charset
4486 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4487 code_offset is 0, and covers all ASCII characters.
4488
4489 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4490
4491 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4492 (ns_string_to_pasteboard_internal):
4493 * nsmenu.m (process_dialog):
4494 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4495 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4496 * lisp.h (Fx_load_color_file): Declare.
4497
4498 2009-04-13 Kenichi Handa <handa@m17n.org>
4499
4500 * font.c (font_delete_unmatched): Preserve the order of list elements.
4501 (font_select_entity): Suppress the code to optimize for the same
4502 kind of fonts.
4503 (font_load_for_lface): Get a font that supports at least ASCII
4504 characters.
4505
4506 * ftfont.c (Qja, Qko): New variables.
4507 (fc_charset_table): Delete uniquifier data for iso8859-1.
4508 (ftfont_get_latin1_charset): New function.
4509 (get_adstyle_property): New function.
4510 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4511 bitmap fonts.
4512 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4513 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4514 `ko' or `ja'.
4515 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4516 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4517 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4518 property.
4519 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4520 (syms_of_ftfont): DEFSYM Qja and Qko.
4521
4522 2009-04-09 Kenichi Handa <handa@m17n.org>
4523
4524 * charset.c (map_charset_chars): For a charset of `superset'
4525 method, fix calculation of code range.
4526
4527 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4528 from the list of extra properties.
4529 (font_clear_prop): Be sure to delete `:name' font property.
4530
4531 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4532
4533 * dispnew.c (redraw_overlapping_rows): Fix detection of
4534 overlapping for topmost and bottommost rows.
4535
4536 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4537
4538 2009-04-06 Jason Rumney <jasonr@gnu.org>
4539
4540 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4541
4542 2009-04-06 Kenichi Handa <handa@m17n.org>
4543
4544 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4545
4546 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4547
4548 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4549
4550 * ftfont.c (ftfont_open): Fix checking of the return value of
4551 FT_Load_Char. Fix setting font->underline_thickness.
4552
4553 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4556 (Fterminal_parameters, Fterminal_parameter)
4557 (Fset_terminal_parameter): In doc string, refer to terminal
4558 objects rather than terminal ids.
4559
4560 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4561
4562 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4563 ret_lim_data. (Bug#2867)
4564
4565 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4566
4567 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4568 so they don't get wider than the window, matching 2006-01-23
4569 change to the partner function in xdisp.c (Bug#2800).
4570
4571 2009-04-03 Kenichi Handa <handa@m17n.org>
4572
4573 * print.c (print_object): Make each lowest sub_char_table start a
4574 new line (Bug#2866).
4575
4576 2009-04-02 Kenichi Handa <handa@m17n.org>
4577
4578 * fontset.c (fontset_font): Record no-font when a fontset
4579 explicitly tells not to try another font-specs.
4580
4581 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4582
4583 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4584
4585 2009-03-30 Kenichi Handa <handa@m17n.org>
4586
4587 * fontset.c (fontset_from_font): Specify only registry in a
4588 font-spec for all characters supported by that registry.
4589
4590 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4591 even if HAVE_M17N_FLT is not defined.
4592
4593 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4594
4595 * ftfont.c: Conditionalize prototyping and use of
4596 ftfont_variation_glyphs.
4597
4598 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4599
4600 * frame.c (delete_frame): Work around compiler bug.
4601
4602 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4603 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4604 Some more EMACS_INT.
4605 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4606
4607 * xdisp.c (dump_glyph): Fix typo.
4608
4609 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4610 (adjust_markers_gap_motion, adjust_markers_for_delete)
4611 (adjust_markers_for_insert, adjust_point)
4612 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4613 (make_gap, copy_text, count_size_as_multibyte, insert)
4614 (insert_and_inherit, insert_before_markers)
4615 (insert_before_markers_and_inherit, insert_1)
4616 (count_combining_before, count_combining_after, insert_1_both)
4617 (insert_from_string, insert_from_string_before_markers)
4618 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4619 (insert_from_buffer_1, adjust_after_replace)
4620 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4621 (replace_range_2, del_range, del_range_1, del_range_byte)
4622 (del_range_both, del_range_2, modify_region)
4623 (prepare_to_modify_buffer, signal_before_change)
4624 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4625 for buffer positions and sizes.
4626 * lisp.h: Adjust prototypes accordingly.
4627
4628 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4629 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4630 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4631
4632 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4633
4634 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4635
4636 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4637 lines and columns so we keep the same pixel height and width.
4638
4639 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4640 the property _NET_WM_STATE has changed.
4641 (x_handle_net_wm_state): New function to update frame parameter
4642 fullscreen.
4643 (x_term_init): Initialize atoms for _NET_WM_STATE.
4644
4645 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4646
4647 2009-03-27 Kevin Ryde <user42@zip.com.au>
4648
4649 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4650 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4651 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4652 (Fgpm_mouse_stop): Pass that new parameter.
4653 * termhooks.h (close_gpm): Adjust prototype.
4654
4655 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4656
4657 * lisp.h (Fx_focus_frame): Declare.
4658
4659 * callint.c (Fcall_interactively): For '^' just delegate the work to
4660 handle-shift-selection.
4661 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4662
4663 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4664
4665 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4666
4667 * data.c (Qinteractive_form): New variable.
4668 (Finteractive_form): Use it.
4669
4670 * eval.c (Fcommandp): Use Qinteractive_form.
4671
4672 2009-03-24 Jason Rumney <jasonr@gnu.org>
4673
4674 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4675 Calculate total size precisely. Decode environment variables
4676 before substituting. (Bug#38)
4677
4678 2009-03-24 Kenichi Handa <handa@m17n.org>
4679
4680 * font.c (find_font_encoding): Return Qnil for unsupported
4681 encoding (Bug#2722).
4682
4683 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4684
4685 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4686 that gdpy is set.
4687
4688 2009-03-22 Alan Mackenzie <acm@muc.de>
4689
4690 * callint.c (Finteractive): Clarify the doc string - even
4691 promptless elements need \n separators.
4692
4693 2009-03-22 Jason Rumney <jasonr@gnu.org>
4694
4695 * w32term.c (syms_of_w32term): Doc fix for
4696 x-use-underline-position-properties.
4697
4698 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4699
4700 * w32.c (getpwuid): Change argument type to unsigned.
4701 (struct w32_id): Change type of `rid' member to unsigned.
4702 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4703 argument ID to unsigned. All callers changed.
4704 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4705
4706 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4707
4708 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4709 negative, produce a float value.
4710
4711 * dired.c (make_uid, make_gid): New functions.
4712 (Ffile_attributes): Use them to avoid negative UID and GID.
4713
4714 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4715
4716 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4717 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4718 Fix typos in docstrings.
4719
4720 2009-03-19 Kenichi Handa <handa@m17n.org>
4721
4722 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4723 changed, use font_load_for_lface to get a new font object.
4724 Call free_realized_fontset after handling ASCII font change.
4725
4726 * frame.c (x_set_font): Handle the case that ARG is a cons.
4727
4728 2009-03-19 Glenn Morris <rgm@gnu.org>
4729
4730 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4731
4732 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4735
4736 2009-03-19 Kenichi Handa <handa@m17n.org>
4737
4738 * charset.c (load_charset_map_from_file): When a mapfile can't be
4739 loaded, signal an error.
4740
4741 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4742
4743 * dired.c (Ffile_attributes): Make sure UID and GID are always
4744 positive, even if the value is too large for a positive EMACS_INT.
4745 Doc fix.
4746
4747 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4748
4749 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4750
4751 * xmenu.c (xdialog_show): Move Fredisplay call ...
4752 (Fx_popup_dialog): ... here.
4753
4754 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4755
4756 * dired.c (file_name_completion): Disable the first optimization just
4757 installed, since it is not implemented correctly.
4758
4759 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4760
4761 * dired.c (file_name_completion): Check completion-ignored-extensions
4762 only if the entry can affect bestmatch.
4763 Stop the search early, as Ftry_completion already does.
4764
4765 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4766
4767 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4768
4769 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4770
4771 * keyboard.c (parse_menu_item): Don't display remappings as menu
4772 equivalent bindings (Bug#788).
4773
4774 2009-03-15 Jason Rumney <jasonr@gnu.org>
4775
4776 * w32term.h (WM_EMACS_PAINT): New message.
4777 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4778 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4779 before passing to lisp thread. (Bug#950)
4780
4781 2009-03-14 David Reitter <david.reitter@gmail.com>
4782
4783 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4784 variable as it was never reset.
4785 (ns_term_init): Remove initialization of Lisp-settable defaults
4786 and ns_expand_space.
4787 (-setPanelFromDefaultValues): Remove ns_expand_space.
4788 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4789 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4790 i.e. no additional spacing, similar to Carbon port.
4791
4792 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4793 * nsfns.m (ns-popup-prefs-panel): Remove.
4794
4795 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4796
4797 * sound.c (alsa_configure): Remove call to deprecated
4798 snd_pcm_sw_params_set_xfer_align.
4799
4800 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4801
4802 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4803 after clicking in a detached tool bar.
4804 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4805
4806 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4807
4808 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4809 int/Lisp_Object mixup).
4810
4811 2009-03-13 Kenichi Handa <handa@m17n.org>
4812
4813 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4814 Handle NAME nil and t correctly. Callers changed.
4815 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4816 (set_fontset_font): Change ARG to a vector. Handle range_list in
4817 ARG correctly.
4818 (Fset_fontset_font): Fix the case that TARGET is both a script
4819 name and charset name. Adjust the arg to set_fontset_font for
4820 the above change.
4821 (fontset_from_font): Fix previous change.
4822 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4823 entry. If FONTSET is the default fontset, don't set the extra
4824 slot of the returning char-table.
4825
4826 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4827
4828 * nsfns.m (Fx_close_connection): Doc fix.
4829 (Fns_do_applescript): Reflow docstring.
4830 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4831 (Fx_display_pixel_width, Fx_display_pixel_height)
4832 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4833 Fix typos in docstrings.
4834 (Fns_set_alpha): Fix typos in error messages.
4835
4836 2009-03-12 David Reitter <david.reitter@gmail.com>
4837
4838 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4839 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4840 were used for such events.
4841
4842 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4843 (toggleToolbar, performDragOperation, runHelp): Use it.
4844
4845 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4846 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4847
4848 2009-03-11 Kenichi Handa <handa@m17n.org>
4849
4850 * font.h (font_open_by_spec): Extern it.
4851
4852 * font.c (font_open_by_spec): New function.
4853 (font_open_by_name): Use font_open_by_spec.
4854
4855 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4856 fontset of the frame.
4857
4858 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4859 modify the default font of frames that use this fontset.
4860 (num_auto_fontsets): New variable.
4861 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4862 name. Be sure to set FONTSET_ASCII to the correct font name.
4863 (update_auto_fontset_alist): New function.
4864
4865 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4866
4867 * makefile.w32-in: Update dependencies.
4868
4869 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4870
4871 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4872
4873 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4874
4875 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4876
4877 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4878
4879 * lread.c (Feval_buffer): Doc fix.
4880
4881 2009-03-09 Kenichi Handa <handa@m17n.org>
4882
4883 * charset.c (Qfile_name_handler_alist): Extern it.
4884 (load_charset_map_from_file): Temporarily bind
4885 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4886
4887 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4888
4889 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4890 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4891
4892 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4893
4894 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4895 (x_set_window_size): Change back to calculated method of setting
4896 toolbar height under Cocoa. (Bug#2546)
4897 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4898 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4899
4900 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4901
4902 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4903 accelerator in parens under GNUstep.
4904
4905 2009-03-06 Kenichi Handa <handa@m17n.org>
4906
4907 These changes are to detect incorrect composition sequence without
4908 looking ahead the source. (Bug#2370)
4909
4910 * coding.h: Include "composite.h".
4911 (enum compisition_state): New enum.
4912 (struct compisition_status): New struct.
4913 (struct iso_2022_spec): New member cmp_status.
4914 (struct emacs_mule_spec): New struct.
4915 (struct coding_system): New members ctext_extended_segment_len and
4916 embedded_utf_8. Change the union member
4917 spec.emacs_mule_full_support to spec.emacs_mule.
4918
4919 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4920 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4921 (MAX_ANNOTATION_LENGTH): Define to 5.
4922 (ADD_COMPOSITION_DATA): New arg nbytes.
4923 (emacs_mule_char): New arg cmp_status.
4924 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4925 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4926 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4927 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4928 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4929 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4930 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4931 (EMACS_MULE_COMPOSITION_END): New macro.
4932 (emacs_mule_finish_composition): New function.
4933 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4934 (decode_coding_emacs_mule): Avoid long looking ahead while
4935 handling composition.
4936 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4937 (ENCODE_COMPOSITION_RULE): New macro.
4938 (finish_composition): New function.
4939 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4940 (DECODE_COMPOSITION_START): New implementation.
4941 (DECODE_COMPOSITION_END): Likewise.
4942 (STORE_COMPOSITION_RULE): New macro.
4943 (decode_coding_iso_2022): Avoid long looking ahead while handling
4944 composition, CTEXT extended segment, and embedded UTF-8.
4945 (setup_coding_system): For a coding of type iso-2022, reset
4946 CODING_ISO_EXTSEGMENT_LEN (coding) and
4947 CODING_ISO_EMBEDDED_UTF_8 (coding).
4948 (get_translation): Delete arguments last_block, from_nchars,
4949 to_nchars. Callers changed.
4950 (produce_chars): Don't modify charbuf. Adjusted for the change of
4951 get_translation.
4952 (produce_composition): Adjust for the new annotation sequence.
4953 (handle_composition_annotation): Likewise.
4954 (consume_chars): Adjust for the change of get_translation.
4955
4956 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4957
4958 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4959
4960 2009-03-05 Kenichi Handa <handa@m17n.org>
4961
4962 * font.c (font_select_entity): New function.
4963 (font_find_for_lface): Use font_select_entity to select a font.
4964
4965 * fontset.c (fontset_find_font): If a font found without
4966 restricting to the characters C doesn't support C, try to find a
4967 font with C restriction.
4968
4969 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4970
4971 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4972
4973 2009-03-04 Jason Rumney <jasonr@gnu.org>
4974
4975 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4976 characters that have already been read. (Bug#2569)
4977
4978 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4979 Log an error message if check_image_size failed.
4980 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4981 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4982
4983 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4984
4985 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4986 when decoding process output.
4987
4988 2009-03-01 Richard M Stallman <rms@gnu.org>
4989
4990 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4991
4992 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4993
4994 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4995
4996 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4997 (decode_coding_emacs_mule, decode_coding_iso_2022)
4998 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4999 (decode_coding_raw_text, decode_coding_charset)
5000 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5001 Honor inhibit-eol-conversion. (Bug #2186)
5002
5003 2009-02-28 Jason Rumney <jasonr@gnu.org>
5004
5005 * coding.c (detect_coding_charset): If not checking latin extra,
5006 fail on characters between 0x80 and 0xA0. (Bug#2354)
5007
5008 2009-02-28 Eli Zaretskii <eliz@gnu.org>
5009
5010 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
5011 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
5012
5013 2009-02-27 Glenn Morris <rgm@gnu.org>
5014
5015 * callint.c (Finteractive): Doc fix.
5016
5017 2009-02-27 Kenichi Handa <handa@m17n.org>
5018
5019 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5020
5021 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
5022
5023 * font.c (font_style_to_value): Set value for unknown symbols to
5024 100 instead of 255.
5025 (weight_table, slant_table, width_table): Treat "unspecified" as
5026 the default value.
5027
5028 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
5029
5030 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5031
5032 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
5033
5034 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5035 error as soon as a recursive load is detected.
5036
5037 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5038
5039 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5040 before caching.
5041
5042 2009-02-24 Kenichi Handa <handa@m17n.org>
5043
5044 * fontset.c (fontset_find_font): Fix the condition for checking
5045 unavailable font.
5046
5047 2009-02-24 Glenn Morris <rgm@gnu.org>
5048
5049 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5050 whitespace that confuses documentation.
5051
5052 2009-02-23 Miles Bader <miles@gnu.org>
5053
5054 * process.c (Flist_system_processes, Fprocess_attributes)
5055 (syms_of_process): Rename `system-process-attributes' to
5056 `process-attributes'.
5057
5058 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5059
5060 * coding.h (struct coding_system): Make safe_charsets a pointer to
5061 unsigned char.
5062 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5063 being 255.
5064 (SAFE_CHARSET_P): Likewise.
5065 (setup_iso_safe_charsets): Properly setup safe_charsets.
5066 (Fdefine_coding_system_internal): Likewise.
5067 (setup_coding_system): Likewise. Remove unneeded casts.
5068 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5069 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5070 unneeded casts.
5071
5072 * insdel.c (del_range_2): Don't modify gap contents when called
5073 from decode_coding_object. (Bug#1809)
5074
5075 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
5076
5077 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5078 Qfont_object.
5079 (Ftype_of): Recognize font objects.
5080
5081 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5082
5083 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5084 moved to data.c.
5085
5086 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5087
5088 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5089 async_iconified. Based on a patch by Christian Lynbech
5090 <christian.lynbech@tieto.com>.
5091 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5092
5093 2009-02-20 Glenn Morris <rgm@gnu.org>
5094
5095 * syntax.c (Fskip_chars_forward): Fix doc typo.
5096
5097 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
5098
5099 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5100
5101 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
5102
5103 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5104
5105 2009-02-19 Kenichi Handa <handa@m17n.org>
5106
5107 * coding.c (detect_coding): Preserve coding->mode.
5108 Don't overflow coding->carryover. (Bug#2370)
5109
5110 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5111
5112 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5113
5114 2009-02-18 Kenichi Handa <handa@m17n.org>
5115
5116 * font.c (font_check_otf_features): Fix handling of `nil' element.
5117 (Ffont_spec): Describe :lang and :otf in the docstring.
5118
5119 2009-02-16 Andreas Schwab <schwab@suse.de>
5120
5121 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5122 string.
5123
5124 2009-02-16 Kenichi Handa <handa@m17n.org>
5125
5126 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
5127 (Bug#1723)
5128
5129 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
5130
5131 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
5132
5133 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5134 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5135
5136 2009-02-14 Eli Zaretskii <eliz@gnu.org>
5137
5138 * msdos.c (MAX_SCREEN_BUF): New macro.
5139 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5140 Encode the entire run of glyphs sharing the same face, instead of
5141 doing that one glyph at a time (fixes a bug with displaying
5142 double-size characters).
5143
5144 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5145
5146 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5147
5148 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5149 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
5150 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
5151
5152 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
5153 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
5154
5155 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5156
5157 * keyboard.c (adjust_point_for_property): Allow stopping between two
5158 invisible areas.
5159
5160 2009-02-12 Jason Rumney <jasonr@gnu.org>
5161
5162 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5163 (add_font_entity_to_list): Call check_face_name even when family
5164 is unspecified.
5165
5166 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5167 Release DC when finished. Use NULL window to refer to desktop.
5168 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
5169
5170 * w32font.c (add_font_entity_to_list): Fix check for substituted
5171 raster fonts. (Bug#2219)
5172
5173 2009-02-12 Kenichi Handa <handa@m17n.org>
5174
5175 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5176 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5177 (autocmp_chars): Use fast_looking_at. Don't compose more
5178 characters than MAX_COMPOSITION_COMPONENTS.
5179 (find_automatic_composition): While looking forward and backward,
5180 check static composition. Fix where to stop looking forward.
5181 (composition_adjust_point): Fix checking of static composition.
5182 (Fcomposition_get_gstring): Pay attention to
5183 MAX_COMPOSITION_COMPONENTS.
5184
5185 * lisp.h (fast_looking_at): Extern it.
5186
5187 * search.c (fast_looking_at): New function.
5188
5189 * term.c (encode_terminal_code): Adjust for the change of
5190 <struct glyph>.u.cmp.to.
5191 (append_composite_glyph): Likewise.
5192
5193 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
5194 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5195 composition.
5196 (append_composite_glyph): Adjust for the change of
5197 <strcut glyph>.u.cmp.to.
5198
5199 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
5200
5201 * casetab.c (init_casetab_once):
5202 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5203 * font.c (font_update_lface):
5204 * fontset.c (Fnew_fontset):
5205 * ftfont.c (ftfont_drive_otf):
5206 * xfont.c (xfont_open):
5207 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5208
5209 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5210
5211 * fileio.c (Fwrite_region): !NILP -> CONSP.
5212
5213 2009-02-10 Andreas Schwab <schwab@suse.de>
5214
5215 * process.c (send_process): Properly relocate pointer into data
5216 when using encoded data. (Bug#2272)
5217
5218 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5219
5220 * coding.c (detect_coding_charset): Fix previous change.
5221
5222 2009-02-08 Jason Rumney <jasonr@gnu.org>
5223
5224 * w32fns.c (w32_hide_hourglass): Handle case where frame
5225 disappeared while hourglass was displayed. (Bug #2193)
5226
5227 2009-02-07 Andreas Schwab <schwab@suse.de>
5228
5229 * unexelf.c (unexec): Fix error message.
5230
5231 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5232
5233 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
5234 when modal window is active. (Bug #2152)
5235 (applicationShouldTerminate:): Remove now-unneeded while loop
5236 around NSRunAlertPanel.
5237
5238 * nsmenu.m (popupSession): New file-global variable.
5239 (pop_down_menu): End the popupSession before closing dialog.
5240 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5241 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5242 don't query NSApp for events (just sleep instead).
5243
5244 2009-02-07 Eli Zaretskii <eliz@gnu.org>
5245
5246 * coding.c (syms_of_coding) <translation-table-for-input>:
5247 Modify doc string to discourage use for character code unification.
5248
5249 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5250
5251 * atimer.c (run_timers): Update pending_atimers.
5252
5253 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
5254
5255 * image.c (svg_load_image): Fix last change.
5256
5257 * xfns.c (Fx_create_frame): Signal an error if no font is
5258 found (Bug#2147).
5259
5260 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
5261
5262 * character.c (syms_of_character) <script-representative-chars>:
5263 Fix typo in docstring.
5264
5265 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5266
5267 * nsmenu.m (pop_down_menu): New function.
5268 (ns_popup_dialog): Call it on unwind.
5269 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5270 call timer_check() (Bug#2154).
5271 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5272 handling_signal is set.
5273 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5274
5275 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
5276
5277 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5278
5279 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5280
5281 * keyboard.c (poll_for_input_1, handle_async_input):
5282 Set handling_signal under HAVE_NS.
5283
5284 2009-02-04 Glenn Morris <rgm@gnu.org>
5285
5286 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5287
5288 2009-02-04 Kenichi Handa <handa@m17n.org>
5289
5290 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5291
5292 * charset.c (Fchar_charset): New optional arg restriction.
5293
5294 * coding.h (coding_system_charset_list): Extern it.
5295
5296 * coding.c (coding_system_charset_list): New function.
5297
5298 * composite.c: Include coding.h and termhooks.h.
5299 (composition_gstring_p): Fix for the terminal case.
5300 (composition_gstring_width): Likewise.
5301 (fill_gstring_body): Likewise.
5302 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5303 the frame.
5304 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5305 is within a composition.
5306 (Fcomposition_get_gstring): Fix the terminal case.
5307
5308 * term.c (encode_terminal_code): Fix handling of composition.
5309 (produce_composite_glyph): For static composition, get pixel_width
5310 from struct composition.
5311
5312 2009-02-02 Andreas Schwab <schwab@suse.de>
5313
5314 * unexelf.c (unexec): Handle unaligned bss offset.
5315
5316 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5317
5318 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5319 XT,w32read_socket changes to ns_read_socket.
5320
5321 * keyboard.c (handle_interrupt): Don't call
5322 quit_throw_to_read_char() under NS.
5323
5324 * blockinput.h: Remove NS-specific code.
5325
5326 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5327
5328 * dispnew.c (window_change_signal): Don't try to get the size of a
5329 suspended tty frame.
5330 * term.c (Fresume_tty): Resize if the size has changed while the
5331 tty was suspended.
5332
5333 * alloc.c (mark_stack): Properly conditionalize previous change.
5334
5335 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5336
5337 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5338 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5339 Remove; this code is not used on Windows.
5340
5341 2009-01-30 Eli Zaretskii <eliz@gnu.org>
5342
5343 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5344 EOLs that also has stray ^M characters.
5345
5346 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
5347
5348 * atimer.c (run_timers, alarm_signal_handler):
5349 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5350 * w32inevt.c (w32_console_read_socket):
5351 * w32term.c (w32_read_socket):
5352 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5353
5354 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
5355
5356 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5357 Initialize it as a relative filename pattern.
5358 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5359 (Fcall_process_region): Simplify temp file creation using
5360 temporary-file-directory.
5361
5362 2009-01-29 Eli Zaretskii <eliz@gnu.org>
5363
5364 * msdos.c: Rename pending_signals to msdos_pending_signals.
5365 (sig_suspender, sigprocmask): Adjust.
5366
5367 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
5368
5369 * keyboard.c (pending_signals): New var.
5370 (poll_for_input, input_available_signal, init_keyboard): Set it.
5371 (process_pending_signals): New function.
5372
5373 * lisp.h (QUIT): Check pending_signals instead of
5374 interrupt_input_pending. Use process_pending_signals.
5375
5376 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
5377
5378 * process.c (wait_reading_process_output): Use process_pending_signals.
5379
5380 * sysdep.c (emacs_write): Use process_pending_signals.
5381
5382 * xterm.c (XTread_socket): Update pending_signals.
5383
5384 * w32term.c (w32_read_socket): Update pending_signals.
5385
5386 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5387
5388 2009-01-29 Kenichi Handa <handa@m17n.org>
5389
5390 * xftfont.c (xftfont_has_char): New function.
5391 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5392
5393 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5394
5395 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5396 under GNUstep.
5397 (ns_query_color): New declaration.
5398
5399 * nsterm.m (ns_confirm_quit): New variable.
5400 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5401 (EmacsApp-applicationShouldTerminate:): Use it.
5402 (EmacsPrefsController): Let user set it.
5403 (ns_query_color): New function.
5404 (ns_defined_color): Use it.
5405 (ns_initialize): Drop.
5406 (ns_term_init): Add two lines from ns_initialize(), and set
5407 input_interrupt_mode to nil.
5408
5409 * image.c (svg_load_image): Don't right-shift background RGB when
5410 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
5411
5412 2009-01-28 Kenichi Handa <handa@m17n.org>
5413
5414 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5415 (fontset_get_font_group): Remember that no font-group is specified
5416 for C.
5417
5418 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
5419
5420 * fns.c (concat): Check for string overflow (bug#1787).
5421
5422 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5423 Quadruple undo limits (bug#1501).
5424
5425 2009-01-27 Kenichi Handa <handa@m17n.org>
5426
5427 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5428 directly use GT_Get_Char_index.
5429
5430 * xftfont.c (struct xftfont_info): New member `index'.
5431
5432 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5433 (Ffontset_font): Adjust for the change of fontset entry.
5434
5435 2009-01-26 Kenichi Handa <handa@m17n.org>
5436
5437 * fontset.c (fontset_find_font): Fix handling of non-cons return
5438 value of fontset_get_font_group.
5439 (fontset_font): Revert last change.
5440
5441 2009-01-26 Jason Rumney <jasonr@gnu.org>
5442
5443 * w32font.c (w32font_list_internal): Return quickly if registry is
5444 unknown. Simplify final return.
5445 (add_font_entity_to_list): Break complex logic down into more
5446 manageable chunks. Move unknown registry check to
5447 w32font_list_internal.
5448
5449 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5450
5451 Changes to remove Feval calls from GUI under NS.
5452
5453 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5454 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5455 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5456
5457 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5458 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5459 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5460 instead of NON_ASCII_KEYSTROKE_EVENT.
5461 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5462 (EmacsApp-applicationShouldTerminate:): Query user.
5463 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5464 instead of Feval.
5465
5466 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5467
5468 * keyboard.c (kbd_buffer_get_event): Check for it.
5469 (keys_of_keyboard): Define lispy keys for
5470 ns-put/unput-working-text.
5471
5472 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5473 versions.
5474 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5475
5476 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5477
5478 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5479 setting current_buffer directly. (Bug#2044)
5480
5481 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5482
5483 * fontset.c (fontset_font): If we know there is no font, don't do
5484 any work. (Bug#1952, bug#1990).
5485
5486 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5487
5488 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5489
5490 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5491 (ns_no_defaults): New declaration.
5492 (main): Use it.
5493
5494 * nsterm.h (ns_no_defaults): New declaration.
5495
5496 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5497
5498 * nsterm.m (ns_no_defaults): New variable.
5499 (ns_initialize): Don't read defaults when ns_no_defaults.
5500 (EmacsView-readSelectionFromPasteboard:)
5501 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5502 NSServicesRequests protocol. (Bug#1435)
5503 (ns_dumpglyphs_stretch): New function.
5504 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5505 of 2008-11-15 to other terms. (Bug#615)
5506
5507 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5508
5509 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5510
5511 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5512 call for Sparc64.
5513
5514 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5515
5516 * nsfns.m:
5517 * nsgui.h:
5518 * nsmenu.m:
5519 * nsselect.m:
5520 * nsterm.h:
5521 * nsterm.m: Remove '23' comments that indicated code added during
5522 update from emacs-20 -> emacs-23.
5523
5524 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5525
5526 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5527 ns_alternate_modifier. (Bug#1217)
5528
5529 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5530 Display all shortcuts, including those w/o super modifier.
5531
5532 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5533
5534 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5535
5536 * fileio.c (Vwrite_region_post_annotation_function)
5537 (Vwrite_region_annotation_buffers): New vars.
5538 (build_annotations_unwind): Just reset
5539 Vwrite_region_annotation_buffers.
5540 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5541 Call write-region-post-annotation-function.
5542 (build_annotations): Add to Vwrite_region_annotation_buffers if
5543 buffer changes.
5544
5545 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5546
5547 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5548 Tiger.
5549 * nsfns.m (ns_do_applescript):
5550 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5551
5552 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5553
5554 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5555
5556 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5557
5558 * nsmenu.m (NSMENUPROFILE): Change #if style.
5559
5560 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5561
5562 * nsterm.m (x_set_frame_alpha): Add prototype.
5563 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5564 handle Ctrl-tab. (Bug#1841)
5565 (ns_get_color): Use unsigned long long for scanned hex string value.
5566 (ns_term_shutdown): Abort on non SIGTERM signals.
5567 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5568 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5569 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5570 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5571 (ns_defined_color): Fix settings of the XColor variable fields:
5572 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5573
5574 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5575 DPI. (Bug#1316)
5576 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5577 values in onTiger section.
5578
5579 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5580
5581 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5582 Check return value of font_spec_from_name.
5583 (Fx_list_fonts): Doc fix. (Bug#1951)
5584
5585 * font.c (font_spec_from_name): Return Qnil if font name could not
5586 be parsed.
5587 (font_parse_name): Treat a `?' character as part of an XLFD.
5588
5589 * fns.c (Fsubstring): Doc fix.
5590
5591 2009-01-19 Kenichi Handa <handa@m17n.org>
5592
5593 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5594 (ftfont_list): Likewise.
5595
5596 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5597
5598 * dbusbind.c (Fdbus_register_signal):
5599 * process.c (conv_sockaddr_to_lisp):
5600 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5601
5602 * callproc.c (Fgetenv_internal): Doc fix.
5603
5604 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5607 it is not even used.
5608
5609 2009-01-16 Glenn Morris <rgm@gnu.org>
5610
5611 * font.c (Ffont_variation_glyphs): Silence compiler.
5612
5613 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5614
5615 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5616 Reported by David Robinow <drobinow@gmail.com>.
5617
5618 2009-01-15 Kenichi Handa <handa@m17n.org>
5619
5620 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5621
5622 2009-01-14 Jason Rumney <jasonr@gnu.org>
5623
5624 * frame.c (x_set_font): Always store a font to the font parameter,
5625 never a fontset. (Bug#1562)
5626
5627 2009-01-14 Kenichi Handa <handa@m17n.org>
5628
5629 * coding.c (TWO_MORE_BYTES): New macro.
5630 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5631
5632 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5633
5634 * font.c (font_clear_prop): If clearing the family, clear the font
5635 width index too.
5636
5637 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5638
5639 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5640
5641 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5642 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5643 functions, use sizeof.
5644
5645 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5646
5647 * keyboard.c (read_char): Fix case where last_nonmenu_event
5648 returned a bad value with submenus. (Bug#447)
5649
5650 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5651
5652 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5653 family, clear the font width index too.
5654
5655 2009-01-11 Jason Rumney <jasonr@gnu.org>
5656
5657 * keyboard.c (cmd_error_internal): Exit when errors occur before
5658 frame creation and not in daemon mode. (Bug#1836)
5659
5660 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5661
5662 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5663 of a display vector, backtrack.
5664 (try_window_reusing_current_matrix): Check glyph type before
5665 referencing charpos member.
5666
5667 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5668
5669 Fix Bug #876:
5670
5671 * coding.c (inhibit_null_byte_detection): New variable.
5672 (detect_coding, detect_coding_system): Don't pay attention to null
5673 bytes if inhibit_null_byte_detection is non-zero.
5674 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5675 <inhibit-iso-escape-detection>: Doc fix.
5676
5677 2009-01-09 Jason Rumney <jasonr@gnu.org>
5678
5679 * w32font.c (add_font_entity_to_list): Don't report unknown
5680 Windows charset as any unrecognized registry. (Bug#1548)
5681 Only report Unicode Plane 2 fonts as unicode-sip.
5682
5683 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5684
5685 * xfaces.c (Fx_font_family_list): Delete function.
5686 Move compatibility version to faces.el.
5687
5688 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5689
5690 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5691
5692 * frame.c (x_set_frame_parameters): Remember requested value for
5693 fullscreen before it's reset by the parameter handler.
5694
5695 2009-01-09 Glenn Morris <rgm@gnu.org>
5696
5697 * keyboard.c (last_command_char): For clarity, rename to...
5698 (last_command_event): ... and update all users.
5699 (last_input_char): For clarity, rename to...
5700 (last_input_event): ... and update all users.
5701 (last-command-char, last-input-char): Move to subr.el as aliases.
5702 * cmds.c, commands.h: Update for last_command_char rename.
5703
5704 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5705
5706 * font.c (font_open_for_lface): Handle unspecified height attribute.
5707
5708 2009-01-08 Jason Rumney <jasonr@gnu.org>
5709
5710 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5711 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5712 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5713 Don't declare.
5714 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5715 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5716
5717 2009-01-07 Kenichi Handa <handa@m17n.org>
5718
5719 * fileio.c (Finsert_file_contents): In the case of replace,
5720 remember the coding system used for decoding in
5721 coding_system (Bug#1039).
5722
5723 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5724 breaking the loop. (Bug#870)
5725 (decode_coding_utf_16, decode_coding_emacs_mule)
5726 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5727 (decode_coding_charset): Likewise.
5728
5729 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5730
5731 * frame.c (x_set_frame_parameters): Make sure height (width) get
5732 applied when fullwidth (fullheight) is set. (Bug#1522)
5733
5734 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5735
5736 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5737 (utc_base): Declare as ULONGLONG, not long double.
5738 (convert_time_raw): Delete.
5739 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5740 (initialize_utc_base): New function.
5741 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5742 (convert_from_time_t): Use initialize_utc_base; compute result with
5743 64-bit arithmetic.
5744 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5745
5746 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5747
5748 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5749 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5750 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5751 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5752 [!subprocesses]: Define.
5753 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5754 (Flist_system_processes, Fsystem_process_attributes)
5755 [!subprocesses]: Call list_system_processes and
5756 system_process_attributes instead of returning Qnil.
5757
5758 * dosfns.c (system_process_attributes, list_system_processes):
5759 New functions.
5760
5761 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5762
5763 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5764 Don't use the default (no-op) implementation.
5765
5766 2009-01-03 Jason Rumney <jasonr@gnu.org>
5767
5768 * keyboard.c (parse_modifiers_uncached): Wheel events are
5769 clicks (bug#687).
5770
5771 * w32term.c (x_query_colors, x_query_color): New functions.
5772
5773 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5774 (svg_load_image): Cast returned pointers from dynamically loaded
5775 functions. Eliminate W32 specific code.
5776
5777 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5778
5779 * nsfns.m (x_set_foreground_color, x_set_background_color)
5780 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5781 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5782 x_ prefix instead of ns_. Update references.
5783 (syms_of_nsfns): Add a FIXME comment.
5784
5785 * nsterm.m (x_set_cursor_type): New prototype.
5786 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5787
5788 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5789 for Solaris instead of incorrectly providing Qutime and Qcutime.
5790
5791 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5792
5793 * w32.c (process_times): Compute sum of utime and stime.
5794 (system_process_attributes): Add Qtime to the alist.
5795
5796 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5797 and add them to the alist.
5798
5799 * process.c (top level) <Qtime, Qctime>: New variables.
5800 (syms_of_process): staticpro them.
5801 (Fsystem_process_attributes): Add their documentation to the doc
5802 string.
5803
5804 * process.h: Declare Qtime and Qctime.
5805
5806 2009-01-02 Jason Rumney <jasonr@gnu.org>
5807
5808 * image.c (Qgobject): New symbol.
5809 (syms_of_image): Initialize it.
5810 (init_svg_functions): Load some functions from gobject library.
5811
5812 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5813
5814 * frame.c (make_terminal_frame): Remove redundant code and useless
5815 block.
5816
5817 2009-01-01 Andreas Schwab <schwab@suse.de>
5818
5819 * process.c (conv_sockaddr_to_lisp): Add workaround for
5820 getsockname bug on BSD.
5821
5822 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5823
5824 * xfns.c (x_create_tip_frame): Set border width of the X window.
5825
5826 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5827
5828 2009-01-01 Jason Rumney <jasonr@gnu.org>
5829
5830 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5831 Don't block input, as per earlier xterm.c changes.
5832
5833 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5834
5835 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5836 (ns_appkit_version_int): New function.
5837 (x-server-version): Use ns_appkit_version_int and follow 21+
5838 convention of returning 3 integers.
5839
5840 2008-12-30 Kenichi Handa <handa@m17n.org>
5841
5842 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5843 (CHAR_SURROGATE_PAIR_P): New macro.
5844
5845 * font.h (struct font_driver): New member get_variation_glyphs.
5846
5847 * font.c (font_range): Don't require a font for a variation selector.
5848 (Ffont_variation_glyphs): New function.
5849 (syms_of_font): Defsubr it.
5850
5851 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5852 ftfont_variation_glyphs.
5853 (setup_otf_gstring): New function.
5854 (ftfont_drive_otf): Use it.
5855 (ftfont_shape_by_flt): Handle variation selector.
5856 (ftfont_variation_glyphs): New function.
5857
5858 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5859
5860 * frame.c (Vemacs_iconified): Remove.
5861
5862 2008-12-30 Jason Rumney <jasonr@gnu.org>
5863
5864 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5865 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5866
5867 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5868
5869 * indent.c (Fvertical_motion): Don't advance iterator if we have
5870 reseated to the desired position.
5871
5872 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5873 checking for pos match.
5874
5875 2008-12-30 Kenichi Handa <handa@m17n.org>
5876
5877 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5878 just get the low 8-bit of the code.
5879
5880 * font.c (font_intern_prop): Validate str as multibyte.
5881
5882 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5883
5884 * dispextern.h (struct face): Move lface and hash from the middle
5885 of bitfields.
5886
5887 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5888
5889 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5890
5891 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5892 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5893 instead of intervals.h.
5894
5895 2008-12-26 Andreas Schwab <schwab@suse.de>
5896
5897 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5898 cons.
5899
5900 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5901
5902 * textprop.c (Qminibuffer_prompt): New variable.
5903 (syms_of_textprop): Initialize it.
5904 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5905 in minibuffer-prompt face. (Bug#1662)
5906
5907 2008-12-25 Jason Rumney <jasonr@gnu.org>
5908
5909 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5910
5911 2008-12-24 Jason Rumney <jasonr@gnu.org>
5912
5913 * ralloc.c (r_alloc_reset_variable): New function.
5914
5915 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5916 record of what points where. (Bug#716)
5917
5918 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5919
5920 * minibuf.c (read_minibuf): Follow the non-interactive case when
5921 running as a daemon, before detaching.
5922
5923 2008-12-22 Andreas Schwab <schwab@suse.de>
5924
5925 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5926 * gtkutil.c (free_widget_value): Use xfree instead of free.
5927
5928 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5929
5930 * frame.c (delete_frame): New function derived from
5931 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5932 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5933 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5934 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5935 * frame.h: Extern delete_frame.
5936 * window.c (window_loop):
5937 * terminal.c (delete_terminal):
5938 * xterm.c (x_connection_closed):
5939 * xfns.c (Fx_hide_tip):
5940 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5941
5942 2008-12-21 Jason Rumney <jasonr@gnu.org>
5943
5944 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5945 when character maps to .notdef character.
5946
5947 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5948
5949 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5950
5951 2008-12-20 Jason Rumney <jasonr@gnu.org>
5952
5953 * frame.c (Fmake_terminal_frame): Raise an error when called from
5954 a graphical frame on Windows. (Bug#1325)
5955
5956 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5957
5958 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5959
5960 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5961
5962 * minibuf.c (Fread_buffer): Doc fix.
5963
5964 2008-12-20 Jason Rumney <jasonr@gnu.org>
5965
5966 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5967 server name in UNC paths. (Bug#719)
5968
5969 * coding.c (decode_coding): Clear chars_at_source flag when using
5970 charbuf. (Bug#1035)
5971
5972 2008-12-19 Daniel Engeler <engeler@gmail.com>
5973
5974 * sysdep.c (serial_configure): Fix typo.
5975
5976 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5977
5978 * sysdep.c: Include alloca.h.
5979 (system_process_attributes): Add implementation for Solaris.
5980
5981 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5982
5983 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5984
5985 Reorganize implementation of Flist_system_processes and
5986 Fsystem_process_attributes. No functional changes.
5987 * process.c: Don't #include pwd.h, grp.h and limits.h.
5988 (Flist_system_processes): Just call list_system_processes.
5989 (Fsystem_process_attributes): Just call system_process_attributes.
5990 (procfs_list_system_processes, time_from_jiffies)
5991 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5992 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5993
5994 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5995 (list_system_processes): Rename from
5996 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5997 Provide a do nothing implementation.
5998 (system_process_attributes): Rename from
5999 procfs_list_system_processes.
6000 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6001 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
6002
6003 * w32.c (list_system_processes): Rename from
6004 w32_list_system_processes.
6005 (system_process_attributes): Rename from
6006 w32_system_process_attributes.
6007
6008 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6009
6010 * process.h (w32_list_system_processes)
6011 (w32_system_process_attributes): Remove.
6012 (list_system_processes, system_process_attributes):
6013 New prototypes.
6014
6015 2008-12-19 Kenichi Handa <handa@m17n.org>
6016
6017 * xfont.c (xfont_decode_coding_xlfd): New function.
6018 (xfont_encode_coding_xlfd): New function.
6019 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6020 (xfont_list): Decode and encode XLFD by iso-8859-1.
6021 (xfont_match): Likewise.
6022 (xfont_list_family): Likewise.
6023 (xfont_open): Likewise.
6024
6025 * ftfont.c (ftfont_open): Generate a multibyte string if given
6026 names are utf-8.
6027
6028 * xftfont.c (xftfont_open): Generate a multibyte string if given
6029 names are utf-8.
6030
6031 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6032
6033 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6034 changed.
6035 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6036 clicked on a detached tool bar button.
6037
6038 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6039
6040 * emacs.c (main): Print and error and exit when no data is read
6041 from the pipe.
6042
6043 2008-12-17 Jason Rumney <jasonr@gnu.org>
6044
6045 * w32font.c (w32font_has_char): Always return -1.
6046
6047 2008-12-16 Kenichi Handa <handa@m17n.org>
6048
6049 * font.c (font_open_entity): Fix previous change.
6050
6051 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6052
6053 * process.c: Include <limits.h>.
6054
6055 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
6056
6057 * font.c (font_update_drivers): Fix mistake in reconstructing the
6058 driver list.
6059
6060 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
6061
6062 * font.c (font_clear_cache): Fix format of font cache data.
6063
6064 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
6065
6066 * xftfont.c (xftfont_open): Free Xft font pattern if
6067 XftFontOpenPattern fails.
6068
6069 * xterm.c (x_free_frame_resources): Remove extraneous call to
6070 free_frame_faces.
6071
6072 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6073
6074 * xterm.c (x_delete_display): Move xim_close_dpy call to
6075 x_delete_terminal.
6076 (x_delete_terminal): Call xim_close_dpy.
6077
6078 2008-12-13 Jason Rumney <jasonr@gnu.org>
6079
6080 * w32font.c (intern_font_name): New function.
6081 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6082 (w32font_open_internal, Fx_select_font): Decode font name.
6083 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6084
6085 * w32font.h (intern_font_name): Declare new function.
6086
6087 * w32uniscribe.c (add_opentype_font_name_to_list):
6088 Use intern_font_name.
6089
6090 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6091
6092 * frame.c (Fdelete_frame): Call free_font_driver_list.
6093
6094 * font.c (free_font_driver_list): Implement missing function.
6095
6096 * w32term.c (w32_term_init): Don't initialize the image cache
6097 here; it will be done in init_frame_faces.
6098
6099 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6100 (struct x_display_info): Remove unused member null_pixel. New
6101 member xim_callback_data.
6102
6103 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6104 (xim_initialize): Save pointer to callback function data.
6105 (xim_close_dpy): Free callback function data. Call XCloseIM,
6106 reverting 2008-11-04 change by David Smith.
6107 (x_term_init): Don't initialize the image cache here; it will be
6108 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6109 (x_delete_display): Free x_dnd_atoms member.
6110
6111 2008-12-13 Kenichi Handa <handa@m17n.org>
6112
6113 * font.c (font_rescale_ratio): Moved from xfaces.c.
6114 Argument type changed. Handle a font-spec too.
6115 (font_score): Check Vface_font_rescale_alist.
6116 (font_open_entity): Likewise. (Bug#1547)
6117
6118 * xfaces.c (font_rescale_ratio): Moved to font.c.
6119
6120 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
6121
6122 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6123
6124 2008-12-12 Jason Rumney <jasonr@gnu.org>
6125
6126 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6127 Vwindow_system_version to the real w32 major version.
6128
6129 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6130
6131 * term.c (init_tty): Move setting the terminal name before the
6132 potential user: maybe_fatal.
6133
6134 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6137 all callers changed. Call free_frame_faces to free the face cache.
6138
6139 2008-12-11 Jason Rumney <jasonr@gnu.org>
6140
6141 * w32font.c (fill_in_logfont): Don't assume symbol script means
6142 SYMBOL_CHARSET. (Bug#547)
6143
6144 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
6145 size for surrogates. (Bug#1096, bug#872)
6146
6147 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6148
6149 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6150
6151 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6152
6153 * process.c (Fsystem_process_attributes, syms_of_process):
6154 Fix typo in name of Ssystem_process_attributes.
6155 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6156
6157 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
6158
6159 * syntax.c (Fmodify_syntax_entry): Doc fix.
6160
6161 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6162
6163 * font.c (Ffont_spec): Move usage to end of docstring.
6164
6165 2008-12-10 Jason Rumney <jasonr@gnu.org>
6166
6167 * w32font.c (Qcham): New symbol.
6168 (font_supported_scripts): Add cham, and comments for other new
6169 scripts in bitfield from OpenType spec.
6170 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6171 contain characters beyond the bmp.
6172
6173 2008-12-10 Kenichi Handa <handa@m17n.org>
6174
6175 * ftfont.c (fc_charset_table): Add "unicode-sip".
6176 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
6177 Qunicode_sip.
6178
6179 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
6180
6181 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6182 (Fcoding_system_put): Use QCdefault_char.
6183 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6184
6185 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
6186
6187 * xftfont.c (syms_of_xftfont): Fix typo.
6188
6189 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
6190
6191 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6192
6193 * emacs.c (main): Close daemon_pipe on exec.
6194
6195 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
6196
6197 * termchar.h (struct tty): New members termcap_term_buffer and
6198 termcap_strings_buffer.
6199
6200 * term.c (encode_terminal_code): Free any previous memory blocks
6201 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
6202 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6203 All callers changed.
6204 (init_tty): Store termcap data and string buffers in new struct
6205 tty members termcap_term_buffer and termcap_strings_buffer.
6206 (delete_tty): Free them.
6207 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
6208
6209 2008-12-07 Seiji Zenitani <zenitani@mac.com>
6210
6211 * nsfns.m (ns_set_background_color): Remove code duplication.
6212 It was a substitute for face-transparency on OS X 10.3.
6213
6214 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
6215
6216 * coding.c (make_conversion_work_buffer): Disable buffer
6217 modification hooks in the work buffer.
6218
6219 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6220
6221 * process.c (procfs_system_process_attributes): If `nread' has a
6222 negative value, assign zero to it.
6223
6224 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
6225
6226 * eval.c (Vdebug_on_error): Doc fix.
6227
6228 2008-12-05 Kenichi Handa <handa@m17n.org>
6229
6230 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6231 second character is a combining character.
6232
6233 2008-12-05 Eli Zaretskii <eliz@gnu.org>
6234
6235 * process.c (procfs_system_process_attributes): Don't use cmd,
6236 cmdsize, and q without initializing them first.
6237
6238 2008-12-04 Jason Rumney <jasonr@gnu.org>
6239
6240 * w32font.c (w32font_draw): Initialize orig_clip before getting
6241 it, and delete it when finished.
6242
6243 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6244
6245 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6246 case when running as a daemon before detaching.
6247
6248 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
6249
6250 * w32.c (init_environment): Don't unload library shell32.dll.
6251
6252 2008-12-03 Kenichi Handa <handa@m17n.org>
6253
6254 * font.c (font_at): Set `multibyte' at first.
6255
6256 * coding.c (decode_coding_charset): Check type of an element of
6257 vector VALIDS.
6258 (encode_coding_emacs_mule): Be sure to set `code'.
6259
6260 * fontset.c (face_for_char): Handle invalid charset property correctly.
6261 (font_for_char): Likewise.
6262
6263 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
6264
6265 * font.c (Fopen_font): Compute pixel size correctly.
6266 (font_update_lface): Handle fonts with corrupted size specs,
6267 i.e. non-int and non-float.
6268
6269 * ftfont.c (ftfont_match): Initialize entity variable.
6270 (ftfont_resolve_generic_family): Avoid using uninitialized var.
6271 (ftfont_list_family): Initialize list var earlier.
6272
6273 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6274
6275 * xterm.c (x_draw_glyph_string): Fall back on
6276 underline_minimum_offset for underline position.
6277
6278 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6279
6280 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6281
6282 * character.c (c_string_width): Specify the type for LEN.
6283
6284 2008-12-03 Kenichi Handa <handa@m17n.org>
6285
6286 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
6287 (decode_coding_utf_8): Likewise.
6288 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
6289 (produce_chars): Initialize consumed_chars to 0.
6290
6291 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6292
6293 * keyboard.c (make_lispy_position): Only use PT if the selected
6294 window is current.
6295
6296 2008-12-02 Andreas Schwab <schwab@suse.de>
6297
6298 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6299
6300 * doprnt.c (doprnt1): Fix size of charbuf.
6301
6302 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
6303
6304 * keyboard.c (timer_check): Revert last change.
6305
6306 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
6307
6308 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6309
6310 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
6311
6312 * makefile.w32-in: Update dependencies.
6313 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6314
6315 2008-12-01 Andreas Schwab <schwab@suse.de>
6316
6317 * font.c (register_font_driver): Use xmalloc.
6318 (font_put_frame_data): Likewise.
6319
6320 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
6321
6322 * xfaces.c (realize_x_face): Make abort condition clearer.
6323
6324 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6325
6326 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
6327
6328 * keyboard.c (timer_check): After a timer runs, ensure that the
6329 selected window's buffer is current.
6330
6331 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
6332
6333 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6334 It was accidentally restored by the Unicode merge.
6335
6336 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6337
6338 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
6339
6340 * w32proc.c: Include "coding.h".
6341 (Fw32_short_file_name): Encode filename passed to Windows API.
6342 (Fw32_long_file_name): Encode filename passed to Windows API and
6343 decode back the result. (Bug#1433)
6344
6345 2008-11-29 Kenichi Handa <handa@m17n.org>
6346
6347 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6348 not before accessing it.
6349
6350 * charset.c (Fdefine_charset_internal): After calculating
6351 min_char, max_char, and fastmap, copy the charset structure again.
6352 (encode_char): Fix the previous change.
6353
6354 2008-11-28 Seiji Zenitani <zenitani@mac.com>
6355
6356 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6357
6358 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6359
6360 * nsterm.m (x_set_frame_alpha): New function.
6361
6362 2008-11-27 Eli Zaretskii <eliz@gnu.org>
6363
6364 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6365
6366 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
6367
6368 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6369 pointer to check_face_name.
6370
6371 2008-11-27 Kenichi Handa <handa@m17n.org>
6372
6373 * category.h (SET_CATEGORY_SET): Call set_category_set.
6374 (set_category_set): Extern it.
6375
6376 * category.c (hash_get_category_set): New function.
6377 (Fmodify_category_entry): Adjusted for the change of
6378 char_table_ref_and_range. Call hash_get_category_set to get a
6379 category set to store in the table.
6380
6381 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6382 Funify_charset.
6383
6384 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6385 (DECODE_CHAR): Check if the decoder vector is ready.
6386 (ENCODE_CHAR): Check if the encoder char-table is ready.
6387 (maybe_unify_char): Extern it.
6388
6389 * charset.c (Vchar_unified_charset_table): Delete it.
6390 (inhibit_load_charset_map): New variable.
6391 (temp_charset_work): New variable.
6392 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6393 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6394 New macros.
6395 (load_charset_map): Meaning of control_flag changed. If
6396 inhibit_load_charset_map is nonzero, setup a table in
6397 temp_charset_work.
6398 (load_charset): New argument control_flag.
6399 (map_charset_for_dump): New function.
6400 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6401 map_charset_for_dump.
6402 (Fdefine_charset_internal): If the charset method is MAP, load
6403 mapping tables by calling load_charset.
6404 (Funify_charset): Don't load a mapping table but directly set
6405 Vchar_unify_table.
6406 (maybe_unify_char): New function.
6407 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6408 Handle the case of inhibit_load_charset_map being nonzero.
6409 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6410 Handle the case of inhibit_load_charset_map being nonzero.
6411 (Fclear_charset_maps): Just free temp_charset_work.
6412 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6413 variable.
6414
6415 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6416 change of char_table_ref_and_range.
6417 (char_table_ref_and_range): Change the meaning of argument FROM
6418 and TO. Now the caller must provide initial values for *FROM
6419 and *TO.
6420
6421 * fontset.c (fontset_add): Adjusted for the change of
6422 char_table_ref_and_range.
6423 (fontset_get_font_group): Likewise.
6424 (Ffontset_info): Likewise.
6425
6426 * keymap.c (describe_vector): Adjusted for the change of
6427 char_table_ref_and_range. For char-table, put boundary between
6428 non-ASCII and 8-bit characters.
6429
6430 * print.c (print_object): For bool-vector, delete unnecessary
6431 check of ASCII_BYTE_P.
6432
6433 2008-11-26 Jason Rumney <jasonr@gnu.org>
6434
6435 * w32font.c (w32font_open_internal): Don't include external
6436 leading in font height. (Bug#879)
6437
6438 2008-11-26 Glenn Morris <rgm@gnu.org>
6439
6440 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6441 redefinition with ifdef. (Bug#1383)
6442
6443 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6444
6445 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6446
6447 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6448
6449 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6450 New EmacsView methods.
6451 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6452 Fixes bug #1048,1357,1414.
6453
6454 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6455
6456 Fix bug #1362.
6457 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6458 is not an indexed color.
6459 * nsterm.m (free_indexed_color): Add argument checking.
6460 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6461
6462 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6463
6464 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6465 Document confirm-after-completion value for
6466 minibuffer-completion-confirm.
6467
6468 2008-11-24 Jason Rumney <jasonr@gnu.org>
6469
6470 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6471 warning.
6472
6473 2008-11-23 Jason Rumney <jasonr@gnu.org>
6474
6475 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6476 restored before returning.
6477
6478 * w32font.c (check_face_name): New function.
6479 (add_font_entity_to_list): Use it to filter out common substituted
6480 fonts. (Bug#642)
6481
6482 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6483
6484 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6485 confirm-nonexistent-file-or-buffer in doc-string.
6486
6487 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6488
6489 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6490 Fix copy/paste typo. Add checks.
6491
6492 2008-11-21 Kenichi Handa <handa@m17n.org>
6493
6494 * coding.c (detect_coding_iso_2022): Reject invalid composition
6495 sequence.
6496 (DECODE_COMPOSITION_START): If the current source is the last
6497 block, and the current composition doesn't end, regard this
6498 sequence as invalid.
6499 (decode_coding_iso_2022): Handle invalid composition sequence.
6500
6501 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6502
6503 * window.c (coordinates_in_window): Don't return
6504 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6505 line when the window is not the rightmost one. (Bug#1372)
6506
6507 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6508
6509 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6510
6511 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6512
6513 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6514 and bright_bg if noninteractive is non-zero.
6515
6516 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6517
6518 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6519 x_draw_glyph_string_background.
6520
6521 * w32term.c (x_draw_glyph_string): Likewise.
6522
6523 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6526 the next glyph string once past the overhang width.
6527
6528 * nsterm.m (ns_draw_glyph_string): Likewise.
6529
6530 * w32term.c (x_draw_glyph_string): Likewise.
6531
6532 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6533
6534 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6535 double file close.
6536
6537 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6538
6539 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6540 dedicated status of window before attempting to display another
6541 buffer in it.
6542
6543 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6544
6545 * msdos.c (Fmsdos_long_file_names):
6546 (syms_of_msdos) <dos-unsupported-char-glyph>:
6547 * dosfns.c (Fint86): Fix typos in docstrings.
6548
6549 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6550
6551 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6552
6553 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6554
6555 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6556
6557 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6558
6559 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6560
6561 * frame.h: Negative alpha means "don't touch".
6562
6563 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6564
6565 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6566
6567 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6568
6569 * hftctl.c:
6570 * chpdef.h:
6571 * acldef.h: Remove files used only for systems no longer supported.
6572
6573 * Makefile.in: Fix .o alphabetical ordering.
6574 (hftctl.o): Remove dependency, file removed.
6575 (keymap.o, print.o): Depend on charset.h.
6576
6577 2008-11-10 Kenichi Handa <handa@m17n.org>
6578
6579 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6580
6581 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6582
6583 * dired.c (file_name_completion): If completion_ignore_case is
6584 enabled, ignore case when checking completion-regexp-list.
6585
6586 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6587
6588 * vm-limit.c (get_lim_data): Fix last change.
6589
6590 2008-11-08 Kenichi Handa <handa@m17n.org>
6591
6592 * character.c (Fget_byte): New function.
6593 (syms_of_character): Defsubr Fget_byte.
6594
6595 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6596
6597 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6598 cursor position is valid after scrolling.
6599
6600 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6601
6602 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6603
6604 2008-11-06 Glenn Morris <rgm@gnu.org>
6605
6606 * xterm.c (handle_one_xevent): Don't let popup menus cause
6607 mouse-autoselect-window related window switching. (Bug#1261)
6608
6609 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6610
6611 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6612
6613 2008-11-04 Andreas Schwab <schwab@suse.de>
6614
6615 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6616
6617 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6618
6619 * xfns.c (Fx_wm_set_size_hint): New function.
6620
6621 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6622
6623 * textprop.c (Fprevious_single_char_property_change): Return 0
6624 when there's no change in a string. (Bug#1301)
6625
6626 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6627
6628 * frame.c (do_switch_frame): New argument NORECORD passed to
6629 Fselect_window.
6630 (Fselect_frame): New argument NORECORD passed to
6631 do_switch_frame.
6632 (Fset_frame_selected_window): New argument NORECORD passed to
6633 Fselect_frame.
6634 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6635 in call of do_switch_frame.
6636 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6637 Handle NORECORD argument in call of Fselect_frame.
6638 * lisp.h (do_switch_frame, Fselect_frame)
6639 (Fset_frame_selected_window): Adjust declarations.
6640 * window.c (select_frame_norecord): New function.
6641 (run_window_configuration_change_hook): Use it and call
6642 Fselect_frame with NORECORD set.
6643 (Fselect_window): Pass NORECORD to Fselect_frame.
6644 (Fset_window_configuration): Handle NORECORD argument in call of
6645 do_switch_frame.
6646 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6647 Fset_frame_selected_window.
6648 * keyboard.c (command_loop_1): Handle NORECORD in call of
6649 Fselect_frame (currently ifdefd).
6650
6651 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6652
6653 * emacs.c (USAGE2): Untabify.
6654
6655 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6656
6657 * composite.c (fill_gstring_header): Fix copy/paste typo.
6658
6659 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6660
6661 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6662 (Fother_window): Rename argument and rewrite doc-string.
6663 (select_window_norecord): Fix return value. (Bug#1276)
6664
6665 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6666
6667 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6668 new frames overriding foreground for tooltips. Based on similar patch
6669 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6670
6671 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6672
6673 * emacs.c (Fdaemon_initialized): Initialize nfd.
6674
6675 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6676
6677 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6678 (Fwindow_text_height): Clarify doc-strings.
6679 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6680 doc-string of window-scroll-functions.
6681
6682 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6683
6684 * category.c (syms_of_category): Fix typo in docstring.
6685
6686 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6687
6688 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6689 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6690 Fix typos in docstrings.
6691
6692 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6693
6694 * emacs.c (daemon_pipe): Make non-static.
6695 (IS_DAEMON): Move definition ...
6696 * lisp.h (IS_DAEMON): ... here.
6697 (daemon_pipe): Declare.
6698 (is_daemon): Remove.
6699 * dispnew.c (init_display): Use IS_DAEMON.
6700
6701 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6702
6703 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6704 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6705
6706 * emacs.c (is_daemon): Remove.
6707 (main): Don't set is_daemon.
6708 (IS_DAEMON): New macro.
6709 (Fdaemonp, Fdaemon_initialized): Use it.
6710 (Fdaemon_initialized): Write a char into the pipe to make sure the
6711 parent exits.
6712 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6713
6714 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6715
6716 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6717 over-sized glyph, draw it with the default glyph width.
6718
6719 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6720 glyph, draw it with the default glyph width.
6721
6722 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6723 glyph, draw it with the default glyph width.
6724
6725 * xdisp.c (try_scrolling): When computing the distance from the
6726 scroll margin to PT, try moving some distance past the window
6727 bottom before giving up.
6728
6729 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6730
6731 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6732 (Fset_window_buffer): Explain in doc-string that a window can be
6733 "strongly" dedicated to its buffer.
6734
6735 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6736
6737 * emacs.c (daemon_name): New variable.
6738 (main): Deal with --daemon=SERVER_NAME.
6739 (Fdaemonp): Return a name if one was passed to --daemon.
6740
6741 2008-10-26 Romain Francoise <romain@orebokech.com>
6742
6743 * emacs.c (daemon_pipe): New variable.
6744 (main): Create a pipe before forking, make the parent exit only after
6745 the child has closed its end of the pipe. Move closing the
6746 descriptors ...
6747 (Fdaemon_initialized): ... here. New function.
6748
6749 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6750
6751 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6752 the previous unoptimized table.
6753
6754 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6755 the distinction between non-nil and non-t value of `dedicated'.
6756
6757 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6758
6759 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6760 read_char_minibuf_menu_text is large enough to hold the menu string.
6761
6762 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6763
6764 * window.c (Fget_buffer_window, Fdelete_windows_on)
6765 (Freplace_buffer_in_windows): Make buffer argument optional and
6766 rename to buffer_or_name.
6767
6768 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * xdisp.c (handle_single_display_spec, handle_display_prop):
6771 Undo 2005-05-16 change.
6772 (handle_stop): Pop iterator if it's loaded with an empty string.
6773 (get_overlay_strings_1): Don't save iterator if it's loaded with
6774 an empty string (bug#1201).
6775
6776 2008-10-24 Kenichi Handa <handa@m17n.org>
6777
6778 * ftfont.c (ftfont_otf_features): Fix previous change.
6779 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6780 calling ftfont_otf_features.
6781
6782 2008-10-24 Kenichi Handa <handa@m17n.org>
6783
6784 * font.c (font_match_p): Fix for the case that a vector of
6785 characters is in script-representative-chars.
6786
6787 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6788
6789 * dbusbind.c (xd_in_read_queued_messages): New variable.
6790 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6791 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6792 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6793 macro. (Bug#1186)
6794
6795 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6796
6797 * s/sol2-10.h: New file.
6798
6799 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6800
6801 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6802 poor beast has survived 9+ years and the jump from xterm.c!).
6803
6804 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6805
6806 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6807 Reword doc-string.
6808 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6809
6810 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6811
6812 * character.c (syms_of_character) <script-representative-chars>:
6813 <unicode-category-table>: Doc fixes.
6814
6815 2008-10-23 Noah Friedman <friedman@splode.com>
6816
6817 * coding.c (make_conversion_work_buffer): Check that
6818 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6819 Fget_buffer_create.
6820
6821 2008-10-23 Kenichi Handa <handa@m17n.org>
6822
6823 * font.c (font_add_log): Check the values of extra properties.
6824
6825 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6826
6827 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6828 Reword doc-string.
6829 (Fset_window_parameter): Use NILP.
6830 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6831 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6832
6833 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6834
6835 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6836
6837 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6838
6839 * nsfns.m (ns_appkit_version): New function.
6840 (x-server-version): Use it.
6841 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6842 (x-server-vendor): Don't check_ns().
6843
6844 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6845
6846 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6847
6848 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6849 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6850
6851 2008-10-22 Kenichi Handa <handa@m17n.org>
6852
6853 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6854 scripts.
6855
6856 * category.c (word_boundary_p): Check scripts instead of charset.
6857 Handle nil value in word-separating-categories and
6858 word-combining-categories.
6859 (syms_of_category): Fix docstrings of word-separating-categories
6860 and word-combining-categories.
6861
6862 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6863
6864 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6865 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6866
6867 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6868
6869 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6870 Rename arg "buffer" to "buffer_or_name".
6871 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6872 it optional.
6873 (no_switch_window): Remove since the return value is not used.
6874 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6875 Consider window as dedicated when Fwindow_dedicated_p returns a
6876 non-nil value.
6877 * lisp.h: Remove prototype for no_switch_window.
6878
6879 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6880
6881 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6882 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6883
6884 2008-10-21 Kenichi Handa <handa@m17n.org>
6885
6886 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6887 check Vlatin_extra_code_table.
6888
6889 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6890
6891 * fileio.c (Fset_file_modes): Doc fix.
6892
6893 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6894
6895 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6896 in arrays.
6897
6898 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6899
6900 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6901 Mention kill-buffer in doc-string.
6902 (Fset_window_buffer): Reinsert tem check removed in last commit.
6903 (Fenlarge_window, Fshrink_window): Have argument names and
6904 doc-string follow Elisp manual more closely.
6905
6906 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6907
6908 * fileio.c (Fset_file_modes): Doc fix.
6909
6910 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6911
6912 * window.c (Fwindow_width, Fset_window_start)
6913 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6914 (Fdelete_windows_on, Freplace_buffer_in_windows):
6915 Make doc-strings follow code and Elisp manual more closely.
6916 (Fwindow_dedicated_p): Make window argument optional.
6917 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6918 (Fset_window_buffer): Respect any non-nil dedicated value for
6919 window. Rename "buffer" argument to "buffer_or_name".
6920
6921 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6922
6923 * m/sh3.h: New file, machine description for SuperH.
6924
6925 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6926
6927 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6928
6929 2008-10-17 Kenichi Handa <handa@m17n.org>
6930
6931 * ftfont.c (ftfont_otf_features): Fix indexing
6932 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6933
6934 2008-10-16 Magnus Henoch <mange@freemail.hu>
6935
6936 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6937 (Fdbus_call_method_asynchronously): Ditto.
6938 This change makes C-h f display the argument list.
6939
6940 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6941
6942 * fileio.c (Fexpand_file_name): Doc fix.
6943
6944 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6945 of :foreground and :background equivalent to unspecified (20.x
6946 compatibility).
6947
6948 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6949
6950 * buffer.c (syms_of_buffer): Doc fix.
6951
6952 2008-10-14 Kenichi Handa <handa@m17n.org>
6953
6954 * font.c (font_clear_prop): When clearing font width, clear the
6955 average width field too.
6956
6957 2008-10-12 Andreas Schwab <schwab@suse.de>
6958
6959 * ftfont.c (ftfont_shape_by_flt): Make static.
6960 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6961
6962 * font.c: Don't include <m17n-flt.h>.
6963
6964 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6965
6966 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6967
6968 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6969
6970 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6971 away code.
6972
6973 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6974
6975 * dispnew.c (update_text_area): Avoid looping due to large glyph
6976 overhangs (bug#1070).
6977
6978 2008-10-09 Kenichi Handa <handa@m17n.org>
6979
6980 * fontset.c (face_for_char): If face->fontset is negative, just
6981 return ascii_face.
6982
6983 * font.c (font_delete_unmatched): Fix previous change.
6984 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6985
6986 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6987
6988 * frame.c (Fraise_frame): On text-only terminals select frame in
6989 order to make it visible. (Bug#1061)
6990
6991 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6992
6993 * fontset.c (fontset_find_font): Check frame validity.
6994
6995 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6996
6997 * gtkutil.c (xg_display_open): Reset default display if none exists.
6998 (xg_display_close): Allow Emacs to close all displays (bug#985).
6999
7000 2008-10-06 Andreas Schwab <schwab@suse.de>
7001
7002 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
7003
7004 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
7005
7006 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
7007
7008 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
7009
7010 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7011 during initialization.
7012
7013 2008-10-04 Eli Zaretskii <eliz@gnu.org>
7014
7015 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7016 whole thing on MSDOS frames as well as on a TTY.
7017
7018 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7019 well as for TTY.
7020 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7021 well as on a TTY.
7022
7023 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7024 as well as for TTY.
7025
7026 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7027
7028 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7029 MSDOS frames as well.
7030
7031 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7032
7033 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7034 correct arguments.
7035 * menu.c (find_and_return_menu_selection): Add cast.
7036
7037 2008-10-03 Glenn Morris <rgm@gnu.org>
7038
7039 * emacs.c (USAGE1): Add --daemon.
7040
7041 2008-10-02 Eli Zaretskii <eliz@gnu.org>
7042
7043 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7044 100, so it's in percents as advertised.
7045
7046 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7047
7048 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7049 (ns_output.current_cursor, ns_output.desired_cursor)
7050 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7051 (FRAME_NEW_CURSOR_COLOR): Remove.
7052
7053 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
7054 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
7055 enumeration (HOLLOW_BOX_CURSOR, etc.).
7056
7057 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7058 (draw_window_cursor): Simplify code.
7059 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7060 Don't change cursor type. In latter, call rehighlight instead of doing
7061 updates manually.
7062 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7063 Use core Emacs cursor types.
7064
7065 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
7066
7067 2008-10-02 Martin Rudalics <rudalics@gmx.at>
7068
7069 * process.c (Faccept_process_output): Fix doc-string.
7070
7071 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7072
7073 * gmalloc.c (__sbrk): Also define for uClibc.
7074
7075 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7076 for uClibc.
7077
7078 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7079
7080 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7081 styles.
7082 (nsfont_open): Reenable the cache.
7083
7084 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7085
7086 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7087 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7088
7089 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7090
7091 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7092 a suspended terminal.
7093
7094 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
7095
7096 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7097
7098 2008-09-30 Eli Zaretskii <eliz@gnu.org>
7099
7100 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7101
7102 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
7103
7104 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7105 in a continued line coincides with a line beginning.
7106
7107 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7108
7109 * nsfont.m (nsfont_trait_distance): Fix bug.
7110 (nsfont_list): Return a list rather than a vector (syncs with Handa
7111 changes of 2008-05-14).
7112 (nsfont_open): Improve logging.
7113
7114 2008-09-29 Andreas Schwab <schwab@suse.de>
7115
7116 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7117
7118 2008-09-28 Martin Rudalics <rudalics@gmx.at>
7119
7120 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7121 name as char-resolve-modifiers.
7122 Reported by: Markus Triska <markus.triska@gmx.at>
7123
7124 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7125
7126 * dispnew.c (init_display): Return earlier when running as a daemon.
7127
7128 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7129
7130 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7131
7132 2008-09-27 Eli Zaretskii <eliz@gnu.org>
7133
7134 * composite.c (Fcomposition_get_gstring)
7135 (Fcompose_region_internal, Fcompose_string_internal)
7136 (Ffind_composition_internal): Doc fix.
7137 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7138 (syms_of_composite) <auto-composition-function>: Doc fix.
7139 (syms_of_composite) <composition-function-table>: Doc fix.
7140
7141 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
7142
7143 * search.c (wordify): New argument for lax word-ends.
7144 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7145
7146 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7147
7148 * lisp.h (is_daemon): Declare.
7149 * dispnew.c (init_display): Do not try to initialize the terminal
7150 when running as a daemon.
7151
7152 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
7153
7154 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7155 x_display_pixel_height.
7156
7157 2008-09-22 Martin Rudalics <rudalics@gmx.at>
7158
7159 * undo.c (record_point): Don't call Fundo_boundary for first
7160 change. (Bug#731)
7161
7162 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
7163
7164 * emacs.c (Fdaemonp): Doc fix.
7165
7166 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7167
7168 * emacs.c (main): Place #ifdef in the proper place.
7169
7170 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7171
7172 * emacs.c (standard_args): Add --daemon.
7173 (main): Disconnect from the terminal when --daemon is passed.
7174 (is_daemon): New variable.
7175 (Fdaemonp): New function.
7176 (syms_of_emacs): Defsubr it.
7177
7178 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
7179
7180 * xdisp.c (get_next_display_element): Handle string display
7181 correctly when checking for the end of a box run.
7182
7183 2008-09-20 Glenn Morris <rgm@gnu.org>
7184
7185 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7186 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7187 (Frename_file): Avoid copying to trash if a rename involves
7188 a delete. (Bug#964).
7189
7190 2008-09-20 Eli Zaretskii <eliz@gnu.org>
7191
7192 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7193 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7194 frames as well as termcap frames.
7195 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7196 get_named_tty.
7197
7198 2008-09-19 Eli Zaretskii <eliz@gnu.org>
7199
7200 * process.c (procfs_system_process_attributes): Fix cmdline in
7201 case /proc/PID/cmdline is empty.
7202
7203 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7204 x_display_pixel_height.
7205
7206 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
7207
7208 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7209
7210 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7211 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7212
7213 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7214
7215 * dispextern.h (struct it): Move line_wrap away from the middle of
7216 bitfields. Move voffset in struct iterator_stack_entry after the
7217 bitfields. Move tab_width near after another short.
7218
7219 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7220
7221 * frame.h (struct frame): Move alpha from the middle of bitfields.
7222
7223 * window.h (struct window): Move frozen_window_start_p after the
7224 rest of the bitfields to reduce padding.
7225
7226 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
7227
7228 * xterm.h (x_display_info): Remove `height' and `width' members.
7229
7230 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7231
7232 * w32term.h (w32_display_info): Remove `height', `width',
7233 `height_in', and `width_in' members.
7234
7235 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7236 New functions.
7237 (x_calc_absolute_position): Use them.
7238 (x_term_init): Omit removed `height' and `width' members.
7239
7240 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7241 New functions.
7242 (w32_read_socket, x_calc_absolute_position): Use them.
7243 (w32_initialize_display_info, w32_term_init): Omit removed members
7244 of w32_display_info.
7245
7246 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7247 New functions.
7248 (ns_initialize_display_info): Omit removed members of ns_display_info.
7249
7250 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7251 New functions.
7252 (x_calc_absolute_position): Use them.
7253 (x_term_init): Omit removed `height' and `width' members.
7254
7255 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7256 (compute_tip_xy):
7257 * frame.c (x_fullscreen_adjust):
7258 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7259 x_display_pixel_width.
7260
7261 2008-09-18 Kenichi Handa <handa@m17n.org>
7262
7263 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7264 (composition_compute_stop_pos): Fix handling of static composition.
7265 (Fcomposition_get_gstring): Check FROM and TO at first.
7266
7267 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7268
7269 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
7270 mixup (YAILOM).
7271
7272 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * indent.c (Fvertical_motion): Use position reported by iterator
7275 instead of PT for determining screen motion (bug#943).
7276
7277 2008-09-17 Romain Francoise <romain@orebokech.com>
7278
7279 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7280
7281 2008-09-17 Kenichi Handa <handa@m17n.org>
7282
7283 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7284
7285 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7286 if necessary.
7287
7288 2008-09-16 Kenichi Handa <handa@m17n.org>
7289
7290 * coding.c (make_conversion_work_buffer): Avoid calling
7291 Fget_buffer_create if it is not necessary.
7292
7293 2008-09-15 Martin Rudalics <rudalics@gmx.at>
7294
7295 * window.c (Fselect_window): Don't update window_select_count and
7296 use_time when norecord is not nil.
7297
7298 2008-09-14 Kenichi Handa <handa@m17n.org>
7299
7300 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7301 specpdl_ptr.
7302
7303 2008-09-12 Kenichi Handa <handa@m17n.org>
7304
7305 * indent.c (scan_for_column): Don't handle automatic composition
7306 if the current buffer is not associated with a window.
7307
7308 * composite.c (composition_reseat_it): If the current buffer is
7309 not associated with a window, ignore the automatic composition.
7310 (find_automatic_composition): Likewise.
7311
7312 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7313
7314 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7315 (Fgpm_mouse_stop): Use it.
7316 * termhooks.h (close_gpm): Declare.
7317 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7318 connection if Gpm_GetEvent fails.
7319
7320 * window.c (set_window_buffer): Always preserve current-buffer.
7321
7322 2008-09-12 Glenn Morris <rgm@gnu.org>
7323
7324 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7325
7326 2008-09-11 Glenn Morris <rgm@gnu.org>
7327
7328 * charset.c (charset-map-path): Doc fix.
7329
7330 2008-09-10 Kenichi Handa <handa@m17n.org>
7331
7332 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7333
7334 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7335 compose a grapheme cluster with the preceding base glyph.
7336
7337 * composite.c (composition_compute_stop_pos): Fix previous change.
7338 Reset cmp_it->id to -1 at first.
7339
7340 2008-09-10 Glenn Morris <rgm@gnu.org>
7341
7342 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7343
7344 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
7345
7346 * keyboard.c (read_key_sequence): Reapply translation maps when
7347 switching keyboards.
7348
7349 2008-09-09 Kenichi Handa <handa@m17n.org>
7350
7351 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7352 characters.
7353
7354 * composite.c (FORWARD_CHAR): Fix calculation
7355 of (POSITION).pos_byte.
7356 (composition_compute_stop_pos): Limit the search of composition to
7357 at most 500 characters ahead. If we reach the limit or find a
7358 newline, set cmp_it->ch to -2 and return 0.
7359 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7360
7361 2008-09-08 Kenichi Handa <handa@m17n.org>
7362
7363 * indent.c (Fvertical_motion): Be sure to set
7364 it_overshoot_expected if it.cmp_it.id is non-negative.
7365
7366 2008-09-07 Andreas Schwab <schwab@suse.de>
7367
7368 * callproc.c (Fcall_process): Don't hold references to string data
7369 across garbage collection. Move initialisation of new_argv down
7370 to avoid compiler bug.
7371
7372 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7373
7374 * process.c (Fsystem_process_attributes): Doc fix.
7375
7376 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
7377
7378 * callproc.c (Fcall_process): Canonicalize current directory name.
7379
7380 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7381 iterator advances to the next line if the current line ends in a
7382 continued tab.
7383
7384 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7385
7386 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7387 member to point to cmp_from.
7388
7389 * xdisp.c: Doc fix for references to gidx data member.
7390
7391 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7392
7393 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7394
7395 2008-09-07 Kenichi Handa <handa@m17n.org>
7396
7397 * composite.c (FORWARD_CHAR): Check STOP after
7398 incrementing (POSITION).pos.
7399
7400 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7401
7402 * process.c (Fsystem_process_attributes): Doc fix.
7403
7404 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
7405
7406 * keyboard.c (Ftop_level): Doc fix.
7407
7408 2008-09-06 Eli Zaretskii <eliz@gnu.org>
7409
7410 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7411 minibuffer, don't let lower part of menu invade the echo area.
7412
7413 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7414 "char *q" to access menu text and advance through it. Revert the
7415 change that displayed ">" instead of ASCII character 0x10.
7416
7417 2008-09-05 Eli Zaretskii <eliz@gnu.org>
7418
7419 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7420 toggle boxes and radio buttons on MS-DOS as well.
7421
7422 2008-09-05 Kenichi Handa <handa@m17n.org>
7423
7424 * composite.c (autocmp_chars): Check lookback count.
7425 (composition_compute_stop_pos): Set cmp_it->lookback.
7426 (composition_reseat_it): Check lookback count.
7427 (struct position_record): New struct.
7428 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7429 (find_automatic_composition): New function.
7430 (composition_adjust_point): Use find_automatic_composition.
7431
7432 * dispextern.h (struct composition_it): New member lookback.
7433
7434 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
7435
7436 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7437 if moving by a single line.
7438
7439 2008-09-02 Andreas Schwab <schwab@suse.de>
7440
7441 * xterm.c (x_delete_display): Fix merge error.
7442
7443 * fileio.c (Fexpand_file_name): Remove unused variables.
7444
7445 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7446
7447 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7448 storage on all platforms, not just on DOS_NT.
7449
7450 2008-09-02 Jason Rumney <jasonr@gnu.org>
7451
7452 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7453 Ensure mouse is not grabbed after menu is finished.
7454
7455 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7456
7457 * xfaces.c (Finternal_set_alternative_font_family_alist)
7458 (Finternal_set_alternative_font_registry_alist): Properly copy
7459 entire alist structure.
7460
7461 2008-09-01 Kenichi Handa <handa@m17n.org>
7462
7463 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7464 representative chars of the script is a vector.
7465 (ftfont_list): Handle the case where the representative chars of
7466 the script is a vector.
7467
7468 * character.c (syms_of_character): Docstring of
7469 script-representative-chars fixed.
7470
7471 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7472
7473 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7474 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7475 the menu. Allocate larger buffer for `text', to account for
7476 possible ^C characters.
7477
7478 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7479
7480 * xdisp.c (prepare_menu_bars): Don't call
7481 Vwindow_size_change_functions with arg Qt.
7482
7483 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * font.h (font_range):
7486 * fileio.c (report_file_error):
7487 * composite.c (composition_update_it): Yet another int/Lisp_Object
7488 mixup (YAILOM).
7489
7490 2008-08-30 Glenn Morris <rgm@gnu.org>
7491
7492 * data.c (Fmake_variable_frame_local): Doc fix.
7493
7494 * frame.c (Fmodify_frame_parameters): Doc fix.
7495
7496 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7497
7498 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7499 needed by GetTokenInformation.
7500 (w32_system_process_attributes): Check return values of all system
7501 APIs.
7502
7503 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7504 only when the state changes.
7505 (IT_update_begin, IT_update_end): Add termscript trace.
7506
7507 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7508 clipboard is unavailable. Set dst to NULL if it doesn't point to
7509 malloc'ed data.
7510 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7511 passing random values to xfree.
7512
7513 * dispnew.c (init_display): Set `tty's association in frame's
7514 parameters alist to the name of the terminal device, if that is known.
7515
7516 2008-08-29 Jason Rumney <jasonr@gnu.org>
7517
7518 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7519
7520 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7521
7522 * composite.c (fill_gstring_body): Avoid compiler warnings.
7523
7524 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7525 LGLYPH_SET_CODE to avoid compiler warnings.
7526
7527 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7528
7529 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7530
7531 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7532 LGLYPH_SET_CODE.
7533
7534 2008-08-29 Kenichi Handa <handa@m17n.org>
7535
7536 * fileio.c (report_file_error): Don't downcase the first character
7537 of errstring if it is still unibyte.
7538
7539 2008-08-29 Kenichi Handa <handa@m17n.org>
7540
7541 These changes are to re-implement the automatic composition so
7542 that it doesn't use text properties.
7543
7544 * Makefile.in (ftfont.o): Depend on composite.h.
7545 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7546
7547 * character.h (Vunicode_category_table): Extern it.
7548
7549 * character.c (Vunicode_category_table): New variable.
7550 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7551
7552 * chartab.c (optimize_sub_char_table): Perform more greedy
7553 optimization.
7554
7555 * composite.h (enum composition_method):
7556 Delete COMPOSITION_WITH_GLYPH_STRING.
7557 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7558 (Vcomposition_function_table): Extern it.
7559 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7560 (composition_gstring_put_cache, composition_gstring_from_id)
7561 (composition_gstring_p, composition_gstring_width)
7562 (composition_compute_stop_pos, composition_reseat_it)
7563 (composition_update_it, composition_adjust_point): Extern them.
7564 (Fcomposition_get_gstring): EXFUN it.
7565
7566 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7567 (Vcomposition_function_table)
7568 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7569 (gstring_hash_table, gstring_work, gstring_work_headers):
7570 New variables.
7571 (gstring_lookup_cache, composition_gstring_put_cache)
7572 (composition_gstring_from_id, composition_gstring_p)
7573 (composition_gstring_width, fill_gstring_header)
7574 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7575 (composition_reseat_it, composition_update_it)
7576 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7577 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7578 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7579 Defsubr composition_get_gstring.
7580
7581 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7582 cmp_id.
7583 (struct glyph_string): Delete the member gidx. New members
7584 cmp_id, cmp_from, and cmp_to.
7585 (enum it_method): Delete GET_FROM_COMPOSITION.
7586 (struct composition_it): New struct.
7587 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7588 Delete c, len, cmp_id, cmp_len in u.comp.
7589
7590 * font.h (enum lgstring_indices): Delete it.
7591 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7592 (enum lglyph_indices): Likewise.
7593 (font_range): Adjust extern.
7594 (font_fill_lglyph_metrics): Extern it.
7595
7596 * font.c (QCf): New variable.
7597 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7598 (font_prepare_composition): Delete this function.
7599 (font_range): Type and arguments changed.
7600 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7601 (font_fill_lglyph_metrics): New function.
7602 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7603 (syms_of_font): DEFSYM QCf. Delete defsubr for
7604 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7605 Defsubr Sfont_shape_gstring.
7606
7607 * fontset.h (font_for_char): Extern it.
7608
7609 * fontset.c (font_for_char): New function.
7610
7611 * ftfont.c: Include composite.h.
7612 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7613 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7614
7615 * indent.c: Include composite.h and dispextern.h.
7616 (check_composition): Delete this function.
7617 (scan_for_column): Handle composition by
7618 composition_compute_stop_pos, composition_reseat_it, and
7619 composition_update_it.
7620 (compute_motion): Likewise.
7621 (Fvertical_motion): Fix checking of composition.
7622
7623 * keyboard.c (adjust_point_for_property): Check composition by
7624 composition_adjust_point.
7625
7626 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7627 struct glyph_string.
7628
7629 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7630 (append_composite_glyph): Adjust for the change of struct it and
7631 struct glyph.
7632 (produce_composite_glyph): Likewise.
7633
7634 * w32term.c (x_draw_composite_glyph_string_foreground):
7635 Adjust for the change of struct glyph_string.
7636 (x_draw_glyph_string): Likewise.
7637
7638 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7639 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7640
7641 * xdisp.c: Include font.h.
7642 (it_props): Delete the entry for Qauto_composed.
7643 (init_iterator): Initialize it->cmp_it.id to -1.
7644 (compute_stop_pos): Call composition_compute_stop_pos.
7645 (face_before_or_after_it_pos): Adjust for the change of struct it.
7646 (handle_auto_composed_prop): Delete it.
7647 (handle_composition_prop): Handle only static composition.
7648 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7649 from xassert. Initialize it->cmp_it.stop_pos.
7650 (push_it): Adjust for the change of struct it.
7651 (pop_it): Likewise.
7652 (get_next_element): Delete next_element_from_composition.
7653 (CHAR_COMPOSED_P): New macro.
7654 (get_next_display_element): For automatic composition, get a face
7655 from the font in the glyph-string.
7656 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7657 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7658 (next_element_from_string): Check if the character at the current
7659 position is composed by CHAR_COMPOSED_P.
7660 (next_element_from_buffer): Likewise.
7661 (next_element_from_composition): Adjust for the change of struct it.
7662 Update it->cmp_it.
7663 (dump_glyph): Adjust for the change of struct glyph.
7664 (fill_composite_glyph_string): Adjust for the change of struct
7665 it and struct glyph. Don't handle automatic composition here.
7666 (fill_gstring_glyph_string): New function.
7667 (x_get_glyph_overhangs): Handle automatic composition.
7668 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7669 (BUILD_GSTRING_GLYPH_STRING): New macro.
7670 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7671 automatic composition.
7672 (append_composite_glyph): Adjust for the change of struct it and
7673 struct glyph.
7674 (x_produce_glyphs): Adjust for the change of struct it.
7675
7676 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7677 the change of struct glyph_string.
7678 (x_draw_glyph_string): Likewise.
7679
7680 2008-08-29 Glenn Morris <rgm@gnu.org>
7681
7682 * buffer.c (word-wrap): Doc fix.
7683 * xdisp.c (truncate-partial-width-windows): Doc fix.
7684 Increase default to 50.
7685
7686 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7687
7688 * xdisp.c (update_tool_bar_unwind): New function.
7689 (update_tool_bar): Temporarily set selected frame before building
7690 tool-bar items.
7691
7692 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7693
7694 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7695 snprintf, respectively.
7696 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7697
7698 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7699
7700 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7701 LDFLAGS to GNUstep CC invocation.
7702
7703 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * indent.c (Fvertical_motion): Revert last change. Handle the
7706 general case where we are moving forward, and PT spans multiple
7707 screen lines.
7708
7709 * eval.c (find_handler_clause): Temporarily increase
7710 max-lisp-eval-depth while printing the backtrace buffer, to
7711 guarantee that help-mode code can run.
7712
7713 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7714
7715 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7716 colors under -rv.
7717 (IT_set_frame_parameters): Don't swap foreground and background
7718 colors if `(reverse . t)' is present in the frame properties.
7719 (internal_terminal_init): Call init_frame_faces only for the
7720 initial frame.
7721
7722 2008-08-27 Andreas Schwab <schwab@suse.de>
7723
7724 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7725
7726 2008-08-27 Andreas Schwab <schwab@suse.de>
7727
7728 * search.c (search_buffer): Set char_base to zero only at the end.
7729
7730 2008-08-27 Kenichi Handa <handa@m17n.org>
7731
7732 * fileio.c (report_file_error): Fix handling of multibyte error string.
7733
7734 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7735
7736 * xterm.c (x_term_init): Temporarily hide the partially
7737 initialized terminal while calling vendor-specific-keysyms.
7738
7739 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7740
7741 * msdos.c (internal_terminal_init): Most initializations done only
7742 once, especially initial_screen_colors[] and termscript open.
7743
7744 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7745
7746 * eval.c (Fcondition_case): Doc fix.
7747
7748 * widgetprv.h (EmacsFramePart): Change font member to the new font
7749 struct.
7750
7751 * widget.c: Include character.h and font.h for XSETFONT.
7752 (setup_frame_gcs): Compute X font id from font struct, just once.
7753
7754 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7755
7756 * term.c (get_named_tty): Fix last change.
7757
7758 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7759
7760 * indent.c (Fvertical_motion): If moving forward starting from a
7761 multi-line string, move the iterator to the last line of that string.
7762
7763 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7764
7765 * frame.c (do_switch_frame): Mark previously displayed frame as
7766 obscured for FRAME_MSDOS_P frames as well.
7767
7768 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7769
7770 * frame.c (make_terminal_frame): Initialize f->terminal,
7771 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7772 Set the top frame to newly created frame.
7773 (Fmake_terminal_frame): Reuse the_only_display_info.
7774
7775 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7776 estimating available memory.
7777
7778 2008-08-23 David Reitter <david.reitter@gmail.com>
7779
7780 * nsterm.m (ns_draw_window_cursor): Don't call
7781 NSDisableScreenUpdates and NSEnableScreenUpdates on
7782 non-NS_IMPL_COCOA systems.
7783
7784 2008-08-23 Andreas Schwab <schwab@suse.de>
7785
7786 * process.c (procfs_system_process_attributes): Fix use of
7787 uninitialized variables.
7788
7789 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7790
7791 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7792
7793 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7794 calling tty-set-up-initial-frame-faces.
7795
7796 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7797 Allow MSDOS frames along with X frames.
7798
7799 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7800 addition to output_termcap.
7801
7802 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7803
7804 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7805 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7806 highlight.
7807
7808 * process.c [!subprocesses]: Define QCname.
7809 (syms_of_process): Intern and staticpro it.
7810
7811 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7812 Adjust for changes in encoding/decoding routines.
7813 Use encode_coding_object and decode_coding_object instead of
7814 encode_coding and decode_coding.
7815
7816 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7817
7818 * dosfns.c: Include frame.h before termhooks.h.
7819 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7820 variable termscript.
7821
7822 * s/msdos.h (USER_FULL_NAME): Define.
7823 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7824
7825 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7826 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7827 pw->pw_gecos.
7828
7829 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7830 SELECTED_FRAME as additional (1st) argument.
7831 (tty_read_avail_input): Handle output_msdos_raw in
7832 addition to output_termcap.
7833
7834 * msdos.c: Include frame.h before termhooks.h.
7835 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7836 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7837 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7838 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7839 (IT_set_terminal_modes, IT_reset_terminal_modes)
7840 (IT_set_frame_parameters): Use tty->termscript instead of a global
7841 variable termscript.
7842 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7843 global variable terminal_coding. Don't refer to
7844 Vnonascii_translation_table.
7845 (internal_terminal_init): Set Vwindow_system in current_kboard.
7846 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7847 Announce date and time of session start, if termscript is open.
7848 Don't zero out the_only_display_info (it is done in
7849 term.c:init_tty). Open termscript only of not already open.
7850 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7851 here instead of dos_ttraw. Don't initialize display if this is an
7852 initial tty. Don't set FRAME_FONT.
7853 (Vwindow_system_version): Bump to 23.
7854 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7855 is available, set up mouse_position_hook.
7856 (dos_ttraw, IT_set_terminal_modes): If called with initial
7857 terminal, do nothing.
7858 (IT_set_frame_parameters): Handle the Qtty_type frame
7859 parameter by calling internal_terminal_init.
7860 (dos_set_window_size, show_mouse_face)
7861 (clear_mouse_face, IT_note_mode_line_highlight)
7862 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7863 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7864 (initialize_msdos_display): New function.
7865 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7866 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7867 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7868 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7869 Accept additional argument: a pointer to a frame. Update all callers.
7870 (request_sigio, unrequest_sigio): Don't define, now defined on
7871 sysdep.c.
7872 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7873
7874 * term.c [MSDOS]: Include msdos.h.
7875 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7876 conditional to DOS_NT. Allow only one call to this function in a
7877 session. Don't allocate a new struct tty_display_info; instead,
7878 reuse the_only_display_info. Call get_tty_size to get screen
7879 dimensions. Call init_baud_rate to set bad_rate.
7880 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7881 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7882 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7883 (get_tty_terminal, get_named_tty, Ftty_type)
7884 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7885 output_termcap.
7886 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7887 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7888 only when subprocesses are supported.
7889
7890 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7891 f->output_data.x.
7892 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7893 terminal devices.
7894
7895 * msdos.h: Remove definition of struct x_display_info and struct
7896 x_output.
7897 (FRAME_FONT): Use output_data.tty.
7898 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7899 (struct x_display_info): Rename from display_info. Update all users in
7900 msdos.c.
7901 (struct x_output): Remove background_pixel and foreground_pixel.
7902 (the_only_display_info): Rename from the_only_x_display.
7903 (dos_ttraw): Update prototype.
7904
7905 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7906 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7907
7908 2008-08-23 Jason Rumney <jasonr@gnu.org>
7909
7910 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7911 (fn_TIFFSetDirectory): New library function used.
7912 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7913 (tiff_load): Use :index to select among multiple images. Set count
7914 property when multiple images exist.
7915 (gif_format): Use :index, not :image.
7916
7917 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7918
7919 * xdisp.c (try_scrolling): Check INT_MAX instead of
7920 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7921 to obtain INT_MAX.
7922
7923 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7924
7925 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7926
7927 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7928
7929 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7930 GNUstep library location.
7931
7932 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7933
7934 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7935 before using it.
7936
7937 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7938
7939 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7940
7941 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7942 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7943 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7944 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7945 (EmacsApp-cursor_blink_handler): Remove declaration.
7946 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7947 match 01 Feb 2008 changes in xterm.c.
7948 (ns_read_socket): Add cast to avoid warning.
7949 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7950 GNUstep.
7951
7952 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7953
7954 * xselect.c (x_get_foreign_selection): Return nil if desired
7955 selection could not be obtained, instead of signalling an error.
7956
7957 2008-08-20 David Reitter <david.reitter@gmail.com>
7958
7959 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7960 * nsterm.m: Remove ns-specific code for cursor blinking.
7961 (ns_draw_window_cursor): Clear cursor properly rather than
7962 redrawing the area. Respect width of bar cursors.
7963 These changes enable the use of generic blink-cursor-mode and
7964 generic cursor types in NS and support smooth cursor movements (do
7965 not blink off after command).
7966 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7967 Nextstep, too.
7968
7969 2008-08-19 Kenichi Handa <handa@m17n.org>
7970
7971 * font.c (Vfont_log_deferred): New variable.
7972 (font_add_log): Check Vfont_log_deferred.
7973 (font_deferred_log): New function.
7974
7975 * font.h (font_deferred_log): Extern it.
7976
7977 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7978 for sorting.
7979 (face_for_char): Use deferred log.
7980
7981 2008-08-18 Kenichi Handa <handa@m17n.org>
7982
7983 * fontset.c (face_for_char): Add font log.
7984
7985 * font.c (font_add_log): Add the font properties :script, :lang,
7986 and :otf in the log.
7987
7988 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7989
7990 * xdisp.c: Remove dead code.
7991 (handle_invisible_prop, next_overlay_string): Defer call to
7992 setup_for_ellipsis.
7993 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7994
7995 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * xfaces.c (lookup_derived_face): Properly handle possible zero
7998 return value of get_lface_attributes.
7999 (merge_faces): Don't tell lookup_derived_face to signal an error
8000 if face is not found.
8001
8002 * dired.c (Fdirectory_files): Doc fix.
8003
8004 * process.c (make_process): Initialize kill_without_query struct
8005 member.
8006
8007 2008-08-15 Eli Zaretskii <eliz@gnu.org>
8008
8009 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8010 Alternative calculation of totphys for Visual Studio 6.
8011
8012 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8013
8014 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8015 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8016 All users changed.
8017 (stat): Only root directory passed to GetDriveType. Allow RAM
8018 disk as well as local fixed disk when w32-get-true-file-attributes
8019 is set to `local'.
8020 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8021 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8022 (w32_cached_id, w32_add_to_cache): New functions.
8023 (get_name_and_id): Look account names in the cache before calling
8024 lookup_account_sid.
8025 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8026 New initialization flags.
8027 (globals_of_w32): Initialize them to zero.
8028 (w32_system_process_attributes): Use w32_cached_id and
8029 w32_add_to_cache.
8030
8031 2008-08-14 Lawrence Mitchell <wence@gmx.li>
8032
8033 * lread.c (Fread_char, Fread_char_exclusive): If no character
8034 event is read before timeout is reached, return nil, rather than
8035 converting to a number.
8036
8037 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
8038
8039 * fns.c (use_dialog_box): Doc fix.
8040
8041 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8042 on OS X.
8043
8044 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
8045
8046 * frame.c (Qns_parse_geometry): New var.
8047 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8048
8049 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
8050
8051 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8052 space character in calculating tabs.
8053
8054 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8055
8056 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8057
8058 2008-08-10 Glenn Morris <rgm@gnu.org>
8059
8060 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8061 silence gcc "limited range of data type" warnings in some
8062 make_fixnum_or_float calls.
8063
8064 2008-08-09 Eli Zaretskii <eliz@gnu.org>
8065
8066 * w32.c (w32_system_process_attributes): If the process does not
8067 exist, return nil.
8068
8069 * w32.c: Include thelp32.h, psapi.h and coding.h.
8070 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8071 declarations.
8072 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8073 (Process32Next_Proc): New typedefs.
8074 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8075 (g_b_init_process32_next, g_b_init_open_thread_token)
8076 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8077 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8078 (g_b_init_get_process_working_set_size)
8079 (g_b_init_global_memory_status_ex): New static variables.
8080 (globals_of_w32): Initialize them.
8081 (create_toolhelp32_snapshot, process32_first, process32_next)
8082 (open_thread_token, impersonate_self, revert_to_self)
8083 (get_process_memory_info, get_process_working_set_size)
8084 (global_memory_status, global_memory_status_ex): New wrapper
8085 functions.
8086 (w32_list_system_processes, w32_system_process_attributes)
8087 (enable_privilege, restore_privilege, ltime, process_times):
8088 New functions.
8089 (convert_time_raw): New function.
8090 (convert_time): Remove conversion of FILETIME into time in 100
8091 nsec units, call convert_time_raw instead.
8092
8093 * process.h (w32_list_system_processes, w32_system_process_attributes):
8094 Add prototypes.
8095 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8096 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8097 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8098 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8099
8100 * process.c (Fsystem_process_attributes): Doc fix.
8101
8102 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
8103
8104 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8105 a continued multi-char glyph; if so, advance to the actual glyph.
8106
8107 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8108
8109 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8110
8111 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8112 (.m.o): Use it.
8113 * config.in: Regenerate.
8114
8115 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * xdisp.c (redisplay_window): Revert last change.
8118 (try_window): Check bottom scroll margin too.
8119
8120 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8121
8122 * config.in: Regenerate.
8123
8124 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8125 -list-load-path-shadows'.
8126 (nsgui.h): Reduce number of things depending on it.
8127
8128 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
8129
8130 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8131 instead of window-end which does the wrong thing at eob.
8132 (try_cursor_movement): Minor optimization.
8133 (redisplay_window): If scroll margin is defined, don't assume
8134 window doesn't need scrolling.
8135
8136 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8137
8138 * config.in: Regenerate.
8139
8140 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8141 (mostlyclean): Don't delete *.d under NS.
8142
8143 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8144
8145 2008-08-06 Kenichi Handa <handa@m17n.org>
8146
8147 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8148
8149 2008-08-06 Andreas Schwab <schwab@suse.de>
8150
8151 * config.in: Regenerate.
8152
8153 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
8154
8155 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8156 forcing a window start.
8157
8158 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8159 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8160
8161 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8162
8163 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8164 argument.
8165
8166 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
8167
8168 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8169 <scroll-down-aggressively, before-change-functions>:
8170 <after-change-functions>: Reflow docstrings.
8171
8172 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8173 Ken Raeburn <raeburn@gnu.org>
8174
8175 Dock menu customization, based on a patch by Ken Raeburn, plus some
8176 other fixes.
8177 * nsmenu.m (dockMenu): New variable.
8178 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8179
8180 * nsterm.h (dockMenu): Declare.
8181
8182 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8183 (ns_term_init): Initialize dockMenu.
8184 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8185 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8186 left.
8187
8188 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8189
8190 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8191
8192 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8193
8194 * config.in: Regenerate.
8195
8196 2008-08-04 Seiji Zenitani <zenitani@mac.com>
8197
8198 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8199
8200 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8203
8204 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8205
8206 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8207
8208 * keyboard.h: Comment an #endif.
8209
8210 * lisp.h (have_menus_p): Adjust comment.
8211
8212 * menu.c (find_and_return_menu_selection): Fix comparison with
8213 client_data.
8214
8215 * nsmenu.m (popup_activated_flag): New variable.
8216 (popup_activated): New function.
8217 (menu-or-popup-active-p): New exported lisp definition.
8218 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8219 when popup done.
8220 (ns_popup_dialog): Set popup_activated_flag.
8221
8222 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8223 version for GNUstep (handled by conditional typedef in nsterm.m).
8224 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8225 in rgb.txt).
8226
8227 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8228
8229 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8230
8231 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8232
8233 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8234 shortcircuit if popup_activated like GTK and X toolkit.
8235
8236 * m/inter386.h: Change DARWIN to DARWIN_OS.
8237
8238 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8239 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8240 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8241 comment on NO_SOCK_SIGIO.
8242
8243 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
8244
8245 * nsterm.m (windowDidResize): Remove stopModal call.
8246
8247 2008-08-03 Andreas Schwab <schwab@suse.de>
8248
8249 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8250 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8251
8252 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8255 Don't use uninitialized pointer variable when using getrlimit.
8256
8257 2008-08-02 Jason Rumney <jasonr@gnu.org>
8258
8259 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8260
8261 2008-08-02 Eli Zaretskii <eliz@gnu.org>
8262
8263 * alloc.c (NSTATICS): Bump to 0x640.
8264
8265 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8266
8267 * lisp.h: Add prototype for directory_files_internal.
8268
8269 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8270 New functions.
8271 (syms_of_process): Defsubr them. Add initializations for various
8272 Q* symbols used in procfs_system_process_attributes.
8273 (procfs_list_system_processes, procfs_system_process_attributes)
8274 [HAVE_PROCFS]: New functions.
8275 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8276 (procfs_get_total_memory): New functions.
8277
8278 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8279
8280 * xfaces.c (Fx_load_color_file): Fix previous change;
8281 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8282
8283 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
8284
8285 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8286
8287 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8288
8289 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8290
8291 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
8292
8293 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8294
8295 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8296 define NSApplicationDelegateReplySuccess.
8297 (EmacsView -converstationIdentifier): Use long instead of
8298 NSInteger for GNUstep, since it doesn't have NSInteger.
8299
8300 * xmenu.c: Revert last change.
8301
8302 * keyboard.h: Fix last change.
8303
8304 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
8305
8306 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8307 on Windows.
8308
8309 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8310
8311 Warning clearing and clean-up in NS port.
8312 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8313 Add prototypes.
8314 * nsgui.h (FACE_DEFAULT): Remove, unused.
8315 (XGCValues): Change colors to unsigned long.
8316 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8317 nsterm.m.
8318 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8319 (ns_list_fonts): Remove, unused.
8320 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8321 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8322 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8323 (nsfont_draw): Compare face colors to 0, not nil.
8324 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8325 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8326 (-addSubmenuWithTitle:): Use NSMenuItem class.
8327 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8328 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8329 (ns_clip_to_row): Make gc arg a BOOL.
8330 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8331 ns_clip_to_row() call.
8332 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8333 used). Cast FRAME_FONT assignments.
8334 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8335 (ns_string_to_lispmod): Change arg to const char.
8336 (ns_term_init): Use NSMenuItem class.
8337 (EmacsApp -openFile:): Move to different section of file.
8338 (EmacsApp -application:openFiles:): Don't return a value, call
8339 -replyToOpenOrPrint:.
8340 (EmacsView -keyDown:): Fix up cast.
8341 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8342 (EmacsView -menuDown:): Cast tag in call to
8343 find_and_call_menu_selection().
8344 (ns_list_fonts): Remove, unused.
8345 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8346 (ns_fontname_to_xlfd): Make static.
8347 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8348 Remove prototypes (now in keyboard.h).
8349 (next_menubar_widget_id): Remove, unused.
8350 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8351 Remove prototypes (now in keyboard.h).
8352 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8353
8354 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8355
8356 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8357 (floatfns.o): Depend on syssignal.h.
8358 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8359
8360 * systty.h: Fix previous change that removed BSD_TERMIOS.
8361 Add comments to #ifdefs.
8362
8363 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8364
8365 * w32fns.c (w32-load-color-file): Remove.
8366 (x-open-connection): Use renamed Fx_load_color_file.
8367 * xfaces.c (x-load-color-file): Add.
8368 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8369 Emacs.clr.
8370 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8371
8372 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
8373
8374 * dbusbind.c (Fdbus_call_method_asynchronously)
8375 (Fdbus_method_error_internal): New defuns.
8376 (xd_read_message): Handle also reply messages.
8377 (Vdbus_registered_functions_table): Extend docstring.
8378
8379 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
8380
8381 * keyboard.c (gobble_input): Fix previous change.
8382
8383 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8384
8385 * bitmaps/README:
8386 * xfns.c:
8387 * termcap.c:
8388 * term.c:
8389 * syswait.h:
8390 * systty.h:
8391 * systime.h:
8392 * syssignal.h:
8393 * sysdep.c:
8394 * process.h:
8395 * process.c:
8396 * print.c:
8397 * ndir.h:
8398 * lread.c:
8399 * keyboard.c:
8400 * getpagesize.h:
8401 * floatfns.c:
8402 * fileio.c:
8403 * emacs.c:
8404 * doc.c:
8405 * dispnew.c:
8406 * dired.c:
8407 * data.c:
8408 * callproc.c:
8409 * buffer.c:
8410 * README:
8411 * Makefile.in:
8412 * s/template.h:
8413 * s/msdos.h:
8414 * m/vax.h: Remove VMS support.
8415 * s/vms.h:
8416 * vlimit.h:
8417 * uaf.h:
8418 * temacs.opt:
8419 * param.h:
8420 * ioctl.h: Remove file.
8421
8422 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8423
8424 * s/ms-w32.h (MULTI_KBOARD): Remove.
8425 * xterm.c:
8426 * xselect.c:
8427 * xfns.c:
8428 * window.c:
8429 * w32term.c:
8430 * w32fns.c:
8431 * terminal.c:
8432 * termhooks.h:
8433 * term.c:
8434 * sysdep.c:
8435 * keyboard.h:
8436 * keyboard.c:
8437 * frame.h:
8438 * frame.c:
8439 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8440 * config.in: Regenerate.
8441
8442 2008-07-30 Jason Rumney <jasonr@gnu.org>
8443
8444 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8445
8446 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8447 (w32font_open_internal): Get unicode version of textmetrics.
8448 Don't enable or disable glyph indices here.
8449 (w32font_open): Disable use of glyph indices.
8450
8451 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8452
8453 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * minibuf.c (Vread_buffer_function): Doc fix.
8456
8457 2008-07-30 John Paul Wallington <jpw@pobox.com>
8458
8459 * minibuf.c (read_buffer_completion_ignore_case): New var.
8460 (Fread_buffer): Use it.
8461
8462 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8463
8464 * systty.h (sensemode): Remove empty #if. Remove reference to
8465 BSD_TERMIOS, unused.
8466
8467 * sysdep.c: Remove reference to DGUX.
8468 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8469
8470 * config.in: Regenerate.
8471
8472 2008-07-30 Jason Rumney <jasonr@gnu.org>
8473
8474 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8475
8476 2008-07-29 Jason Rumney <jasonr@gnu.org>
8477
8478 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8479 is populated.
8480 (uniscribe_encode_char): Always use uniscribe.
8481 Avoid using context if cache is populated.
8482
8483 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8484
8485 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8486 open menu.
8487
8488 * gtkutil.c (menu_nav_ended): Remove.
8489 (create_menus): Remove signal connect for menu_nav_ended.
8490
8491 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8492
8493 * xdisp.c (redisplay_window): Check return value of
8494 compute_window_start_on_continuation_line before forcing a window
8495 start.
8496
8497 2008-07-28 Jason Rumney <jasonr@gnu.org>
8498
8499 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8500
8501 * w32term.c (w32_enable_unicode_output, cleartype_active):
8502 Remove obsolete display options.
8503 (x_draw_glyph_string_background): Don't use old cleartype_active
8504 workaround.
8505 (w32_initialize): Remove cleartype_active initialization.
8506 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8507
8508 2008-07-28 Andreas Schwab <schwab@suse.de>
8509
8510 * lisp.h (init_weak_hash_tables, syms_of_font)
8511 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8512 (remove_hash_entry): Don't declare.
8513 * eval.c (maybe_call_debugger): Make static and move before use.
8514 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8515 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8516 * xterm.h (x_set_frame_alpha): Declare.
8517
8518 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8519
8520 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8521 (create_menus): Connect selection-done to menu_nav_ended.
8522
8523 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8524
8525 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8526 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8527 parameter with read of 'alpha' one.
8528 (Qns_frame_parameter): Remove.
8529 * nsselect.m (selection-coding-system)
8530 (next-selection-coding-system, Vselection_coding_system)
8531 (Vnext_selection_coding_system): Drop.
8532
8533 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * nsfns.m (do-applescript, do_applescript): Rename to
8536 ns-do-applescript, ns_do_applescript, and move within file.
8537
8538 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8539
8540 Remove support for Mac Carbon.
8541 * mactoolbox.c:
8542 * macterm.h:
8543 * macterm.c:
8544 * macselect.c:
8545 * macmenu.c:
8546 * macgui.h:
8547 * macfns.c:
8548 * mac.c: Remove file.
8549 * s/darwin.h:
8550 * m/intel386.h:
8551 * xfaces.c:
8552 * xdisp.c:
8553 * window.c:
8554 * tparam.c:
8555 * termhooks.h:
8556 * termcap.c:
8557 * term.c:
8558 * syssignal.h:
8559 * sysselect.h:
8560 * sysdep.c:
8561 * process.c:
8562 * lread.c:
8563 * lisp.h:
8564 * keyboard.c:
8565 * image.c:
8566 * fringe.c:
8567 * frame.h:
8568 * frame.c:
8569 * fontset.c:
8570 * font.h:
8571 * font.c:
8572 * fns.c:
8573 * fileio.c:
8574 * emacs.c:
8575 * dispnew.c:
8576 * dispextern.h:
8577 * config.in:
8578 * atimer.c:
8579 * Makefile.in: Remove code for Carbon.
8580
8581 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8582
8583 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8584
8585 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8586
8587 * macterm.h (kCGBitmapByteOrder32Host): New define for
8588 non-universal SDKs.
8589
8590 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8591 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8592
8593 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8594 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8595
8596 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8597
8598 * w32inevt.c: Include dispextern.h.
8599
8600 2008-07-26 Andreas Schwab <schwab@suse.de>
8601
8602 * print.c (print_object): Fix off-by-one in last change.
8603
8604 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8605
8606 * term.c (syms_of_term): Don't initialize default_orig_pair,
8607 default_set_foreground and default_set_background on Windows.
8608
8609 2008-07-25 Jason Rumney <jasonr@gnu.org>
8610
8611 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8612 ScriptItemize. Clean up return value checking. Remove unused
8613 variables.
8614 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8615 shaping engine.
8616
8617 * w32font.c (w32font_has_char): Handle the case where we can't
8618 determine the script for a character.
8619
8620 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8621
8622 * term.c (syms_of_term): Initialize default_orig_pair,
8623 default_set_foreground, and default_set_background.
8624
8625 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8626 clash (bug#86).
8627 (getloadavg): Callers changed.
8628
8629 * image.c (svg_load_image): Fix last change.
8630 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8631 image size is valid. Use g_object_unref instead of deprecated
8632 rsvg_handle_free to free rsvg handle.
8633 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8634
8635 2008-07-25 Jason Rumney <jasonr@gnu.org>
8636
8637 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8638 surrogates before looking up glyph index.
8639 (w32font_text_extents): Encode as surrogates if falling back to
8640 functions that need UTF-16 wide chars.
8641
8642 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8643 BMP as surrogates before looking up glyph index.
8644
8645 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8646
8647 * image.c (svg_load_image): Check for failure in return value of
8648 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8649
8650 2008-07-25 Jason Rumney <jasonr@gnu.org>
8651
8652 * w32font.c (Fx_select_font): Reverse sense of second arg.
8653
8654 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8655
8656 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8657 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8658
8659 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8660 (PURESIZE): Use it.
8661
8662 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8663
8664 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8665 * m/alpha.h (TEXT_END):
8666 * m/ibmrs6000.h (TEXT_END):
8667 * m/macppc.h (TEXT_END):
8668 * s/darwin.h (TEXT_END):
8669 * s/msdos.h (TEXT_END): Remove, unused.
8670 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8671 * s/cygwin.h: Remove comment.
8672
8673 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8674 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8675 * m/intel386.h (DOT_GLOBAL_START):
8676 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8677 (USG): Remove, file not used on USG platforms.
8678
8679 * Makefile.in (HAVE_X11): Remove empty #else.
8680
8681 2008-07-24 Andreas Schwab <schwab@suse.de>
8682
8683 * fileio.c (Finsert_file_contents): Properly adjust undo list
8684 after format conversion.
8685
8686 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8687
8688 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8689 (menu_nav_ended): Remove.
8690 (create_menus): Remove signal connect for menu_nav_ended.
8691 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8692 create_menus.
8693 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8694
8695 2008-07-23 Jason Rumney <jasonr@gnu.org>
8696
8697 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8698 with opened font.
8699 (w32font_open): Set font type to gdi.
8700
8701 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8702
8703 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8704
8705 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8706 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8707 defines it.
8708 * unexec.c (ADDR_CORRECT): Define unconditionally.
8709
8710 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8711
8712 * unexec.c: Remove code depending on !COFF and USG, the file is
8713 not used for such systems.
8714
8715 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8716 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8717 (LD_SWITCH_SYSTEM_1): Remove, update users.
8718
8719 * s/darwin.h (DATA_END):
8720 * m/intel386.h (DATA_END):
8721 * m/ibmrs6000.h (DATA_END):
8722 * m/alpha.h (DATA_END): Remove, unused.
8723
8724 * config.in: Regenerate.
8725 * s/ms-w32.h (subprocesses): Define unconditionally.
8726 * s/template.h (subprocesses): Update comment.
8727 * s/vms.h (subprocesses):
8728 * s/usg5-4.h (subprocesses):
8729 * s/hpux10-20.h (subprocesses):
8730 * s/gnu-linux.h (subprocesses):
8731 * s/cygwin.h (subprocesses):
8732 * s/bsd-common.h (subprocesses):
8733 * s/aix4-2.h (subprocesses):
8734 * s/darwin.h (subprocesses): Do not define, defined by default now.
8735
8736 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8737 Remove all references.
8738 (temacs): Add GNUstep specific ld flags.
8739
8740 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8741 similarly to what X does.
8742
8743 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8744
8745 * nsfns.m (x-list-fonts): Remove.
8746 (syms_of_nsfns): Drop the x-list-fonts declaration.
8747 * nsterm.m: Get rid of remaining "//" comments.
8748
8749 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8750
8751 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8752
8753 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8754 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8755 (Fns_own_selection_internal, Fx_disown_selection_internal)
8756 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8757
8758 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8759 ... */' style of docstrings. Doc fixes.
8760
8761 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8762
8763 * terminfo.c (UP, BC, PC): Undo previous change.
8764
8765 * nsfns.m: Rename ns prefixed functions/variables to the
8766 corresponding x versions. Update references.
8767
8768 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8769
8770 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8771
8772 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8773
8774 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8775 Remove forwarding functions.
8776 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8777 non-static.
8778 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8779 non-static.
8780 (ns_frame_parm_handlers): Use the new names.
8781 (syms_of_nsfns): Move to the end of file.
8782
8783 * nsterm.m (syms_of_nsterm): Move to the end of file.
8784
8785 * dispnew.c (init_display): Remove code for X10.
8786
8787 2008-07-22 Jason Rumney <jasonr@gnu.org>
8788
8789 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8790 bare drive.
8791
8792 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8793
8794 * nsterm.m (syms_of_nsterm): Remove debugging println.
8795
8796 2008-07-22 David Reitter <david.reitter@gmail.com>
8797
8798 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8799 Carbon implementation of the same functionality: execute arbitrary
8800 AppleScript code.
8801
8802 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8803
8804 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8805 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8806 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8807 (Fx_display_mm_height, Fx_display_mm_width)
8808 (Fx_display_backing_store, Fx_display_visual_class)
8809 (Fx_display_save_under, Fx_open_connection)
8810 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8811 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8812 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8813 (Fx_display_pixel_width, Fx_display_pixel_height)
8814 (Fx_display_usable_bounds, Fx_display_planes)
8815 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8816 ... */' style of docstrings.
8817
8818 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8819
8820 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8821 on this platform.
8822 (mips):
8823 * m/iris4d.h (mips): Do not define.
8824 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8825
8826 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8827
8828 * image.c:
8829 * nsfns.m:
8830 * nsselect.m:
8831 * nsterm.h:
8832 * nsterm.m: Rename ns prefixed functions/variables to the
8833 corresponding x versions. Update references.
8834
8835 * m/ibms390x.h (NO_REMAP): Do not undefine.
8836
8837 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8838
8839 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8840
8841 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8842 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8843 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8844 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8845 (Fns_display_mm_height, Fns_display_mm_width)
8846 (Fns_display_backing_store, Fns_display_visual_class)
8847 (Fns_display_save_under, Fns_open_connection)
8848 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8849 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8850 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8851 (Fns_display_pixel_width, Fns_display_pixel_height)
8852 (Fns_display_usable_bounds, Fx_display_planes)
8853 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8854
8855 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8856
8857 * print.c (print_object): Check print_depth before searching for
8858 circularities.
8859
8860 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8861
8862 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8863 only sprintf.
8864
8865 2008-07-21 Kenichi Handa <handa@m17n.org>
8866
8867 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8868
8869 2008-07-20 Andreas Schwab <schwab@suse.de>
8870
8871 * syntax.c (find_start_pos, find_start_value)
8872 (find_start_value_byte, find_start_begv, find_defun_start)
8873 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8874
8875 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8876
8877 * s/sol2-3.h: Insert contents of s/sol2.h.
8878 (LD_SWITCH_SYSTEM): Remove redundant definition.
8879 * s/sol2.h: Remove, unused.
8880
8881 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8882
8883 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8884
8885 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8886
8887 * Makefile.in (ns_appdir): Fix typo in find command.
8888
8889 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8890
8891 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8892
8893 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8894 added not supported anymore.
8895
8896 * s/usg5-4-2.h (LIBS_SYSTEM):
8897 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8898
8899 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8900 * s/lynxos.h (GETPGRP_NO_ARG):
8901 * s/hpux10-20.h (NO_SIOCTL_H):
8902 * s/gnu.h (GETPGRP_NO_ARG):
8903 * s/gnu-linux.h (NO_SIOCTL_H):
8904 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8905 * s/cygwin.h (GETPGRP_NO_ARG):
8906 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8907 (C_DEBUG_SWITCH): Remove duplicate definition.
8908
8909 * m/ibms390.h: Remove boilerplate comments.
8910
8911 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8912
8913 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8914 (wait_reading_process_output): Remove code for SunOS, platform not
8915 supported anymore. Use SOLARIS2 instead of sun.
8916
8917 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8918
8919 * font.c (font_open_by_name): Under NS, default lface height to zero.
8920 (font_open_for_lface): Under NS, set size based on frame fontsize.
8921 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8922 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8923
8924 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8925
8926 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8927 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8928 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8929 YES/NO.
8930 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8931 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8932 * Makefile.in (clean): Clear out build destination dir.
8933
8934 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8935
8936 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8937 xterm, xselect.
8938 * lisp.h: Remove declaration of hash_remove.
8939 * nsgui.h: Remove redefinitions of hash_remove.
8940 * fns.c (hash_remove): Rename to hash_remove_from_table.
8941
8942 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8943
8944 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8945 strdup() the family UTF8String before modifying it.
8946
8947 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8948
8949 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8950 NS_FACE_BACKGROUND with 0 instead of nil.
8951 * nsfont.m (nsfont_draw): Same.
8952
8953 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * nsfns.m (ns_set_background_color): Fix crash.
8956
8957 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8960
8961 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8962
8963 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8964
8965 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8966
8967 * gtkutil.c: Include <config.h> instead of "config.h".
8968
8969 * lisp.h (Foverlay_buffer): Add EXFUN.
8970
8971 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8972 child process to complete child_setup. Undo 2005-09-21 change.
8973
8974 * s/darwin.h: Mention setsid after vfork.
8975
8976 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8977
8978 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8979 Depend on macgui.h.
8980
8981 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8982 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8983
8984 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8985 and f19.
8986 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8987
8988 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8989 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8990 Remove enumerators.
8991
8992 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8993 Check if FACE_FROM_ID returns NULL.
8994
8995 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8996
8997 * w32inevt.c (change_frame_size): Remove extern declaration.
8998 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8999 change_frame_size.
9000
9001 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9002
9003 * getloadavg.c: Revert last change (2008-07-15).
9004
9005 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9006
9007 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
9008 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
9009 from configure.
9010
9011 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9012
9013 * s/sol2.h:
9014 * s/sol2-4.h: Reorganize conditionals.
9015
9016 * ecrt0.c: Remove code depending on m68000, not used anymore.
9017
9018 * fns.c (hash_remove): Make static.
9019 * lisp.h (hash_remove): Don't prototype.
9020
9021 * m/ibmrs6000.h:
9022 * m/ibms390x.h:
9023 * m/macppc.h: Remove boilerplate comments.
9024
9025 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9026 Solaris, which does not need them.
9027
9028 * m/vax.h: Remove comments about unsupported systems.
9029
9030 * s/darwin.h: Reorganize ifdefs.
9031
9032 2008-07-17 Andreas Schwab <schwab@suse.de>
9033
9034 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9035
9036 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9037
9038 Use SDATA. Follow coding convention of placing operators at
9039 beginning of next line rather than end of previous line, and placing
9040 spaces around infix operators.
9041
9042 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9043 in case it was defined already.
9044 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9045 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9046 ns_default.
9047 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9048 Lisp_Objects.
9049 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9050 (ns_defined_color, ns_color_to_lisp): Declare.
9051 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9052 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9053 it's accepted even with USE_LISP_UNION_TYPE.
9054 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9055 (update_frame_tool_bar): Remove apparently obsolete tests for
9056 non-integerness of f->tool_bar_lines.
9057 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9058 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9059 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9060 (nsfont_open): Don't confuse NULL for Qnil.
9061 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9062 * menu.h (find_and_call_menu_selection):
9063 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9064 (find_and_return_menu_selection): Always return something.
9065 * frame.h: Include dispextern.h for Display_Info.
9066 (display_x_get_resource): Declare.
9067
9068 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9069
9070 * syntax.c: Remove stdio.h include accidentally introduced in
9071 Emacs.app commit.
9072 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9073 NS_IMPL_COCOA.
9074 * keyboard.c (handle_async_input, input_available_signal): Remove
9075 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9076
9077 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9078
9079 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9080 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9081 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9082 Use SDATA.
9083
9084 * keymap.c: Remove all NS-specific code.
9085 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9086 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9087 where_is_preferred_modifier, return a different value depending on how
9088 preferred is the binding.
9089 (where_is_internal): Adjust accordingly.
9090 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9091 Adjust to new preferred_sequence_p.
9092 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9093 * keyboard.c (parse_solitary_modifier): Not static any more.
9094 * keyboard.h (parse_solitary_modifier): Declare.
9095
9096 2008-07-16 Andreas Schwab <schwab@suse.de>
9097
9098 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9099 of easymenu.
9100
9101 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
9102
9103 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9104 that we don't move off the line.
9105
9106 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 * keyboard.c (Qsuper): Remove.
9109 (parse_menu_item): Don't call where_is_internal specially for NS.
9110
9111 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9112
9113 * s/gnu-linux.h: Remove boilerplate comments.
9114
9115 * m/alpha.h (__ELF__): Consolidate conditions.
9116
9117 * m/m68k.h (linux): Use GNU_LINUX instead.
9118 Remove boilerplate comments.
9119
9120 * m/intel386.h: Undo refactoring from previous change.
9121 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9122 too, remove dead code.
9123 (linux): Use GNU_LINUX instead.
9124
9125 2008-07-16 Jason Rumney <jasonr@gnu.org>
9126
9127 * w32gui.h: Repeat 26 June changes lost by last change.
9128
9129 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9130
9131 * systty.h: Remove code for Aix on 386, unsupported platform.
9132
9133 * s/ms-w32.h: Remove boilerplate comments.
9134 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9135
9136 * s/gnu-linux.h (TERM): Remove support.
9137 (HAVE_SYSVIPC): Remove, unused.
9138 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9139 for this system.
9140
9141 * process.c: Remove support for IRIS, unused.
9142 Remove support for TERM, not relevant anymore.
9143
9144 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9145 used with the definition.
9146
9147 * s/aix4-2.h (static): Do not undef.
9148
9149 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9150 only used on Aix.
9151 (HAVE_SYSVIPC): Remove, unused.
9152
9153 * m/hp800.h (CANNOT_DUMP): Do not undef.
9154
9155 * m/alpha.h: Fix comment.
9156
9157 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9158 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9159 used by this configuration.
9160 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9161 * unexec.c: Remove code depending on HPUX and
9162 USG_SHARED_LIBRARIES, not used with this file. Remove code
9163 depending on IRIS, unused. Remove if 0-ed code.
9164
9165 * s/template.h: Remove comments about static.
9166
9167 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9168 Remove if 0-ed code.
9169 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9170 were the same as the default.
9171 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9172 Remove boilerplate comments.
9173 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9174 (HAVE_SYSVIPC): Remove, unused.
9175 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9176
9177 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9178 Remove boilerplate comments.
9179 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9180 Remove boilerplate comments.
9181 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9182 Remove boilerplate comments.
9183 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9184
9185 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9186 USG systems which do not use DATA_SEG_BITS.
9187 Refactor code. Remove boilerplate comments.
9188
9189 * m/ibms390.h:
9190 * m/m68k.h:
9191 * s/bsd-common.h:
9192 * s/cygwin.h:
9193 * s/darwin.h:
9194 * s/freebsd.h:
9195 * s/gnu.h:
9196 * s/msdos.h: Remove boilerplate comments.
9197
9198 * m/iris4d.h: Remove boilerplate comments and code for systems that
9199 do not use this file.
9200 (IRIS_4D): Remove, unused.
9201
9202 * m/mips.h: Remove boilerplate comments and code for systems that
9203 do not use this file.
9204 (SIGN_EXTEND_CHAR):
9205 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9206 * unexmips.c: Remove file, unused.
9207
9208 * editfns.c (Fuser_full_name): Replace the only use of
9209 USER_FULL_NAME with its value.
9210 * config.in: Regenerate.
9211
9212 2008-07-16 David Reitter <david.reitter@gmail.com>
9213
9214 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9215 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9216
9217 2008-07-16 Glenn Morris <rgm@gnu.org>
9218
9219 * emacs.c (system-type): Doc fix.
9220
9221 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9222
9223 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9224 If the cache doesn't work, let's fix it, rather than work around it.
9225
9226 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9227
9228 * Makefile.in: Correct additions for nsfont.o in last commit.
9229 * nsfont.m: New file (forgot last commit).
9230
9231 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9232
9233 * callproc.c (set_initial_environment): Initialize
9234 Vprocess_environment under CANNOT_DUMP (fixes crash when
9235 batch-compiling for bootstrap).
9236
9237 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9238 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9239
9240 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9241 fix crash due to different init order.
9242
9243 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9244
9245 Changes and additions for NeXTstep windowing system (Cocoa and
9246 GNUstep) support.
9247
9248 * Makefile.in:
9249 * config.in: Support defines and build commands for NS port.
9250 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9251 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9252 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9253 windowing.
9254 (struct face): Add synth_ital field.
9255 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9256 (init_display): Initialize Vinitial_window_system to "ns" when so
9257 compiled.
9258 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9259 (display_arg): Use under NS.
9260 (main): Under NS, allocate autorelease pool and handle command line
9261 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9262 (standard_args): Add NS-specific args.
9263 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9264 * font.c (DEFAULT_ENCODING): New variable.
9265 (font_find_for_lface): Use it.
9266 (syms_of_font): Load syms_of_nsfont under NS.
9267 * font.h: Declare nsfont_driver when compiled under NS.
9268 * fontset.c: When compiling under NS, include nsterm.h.
9269 (fontset_from_font): Autoconstruct fontset under NS.
9270 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9271 symbol, document and use it.
9272 (do_switch_frame): When for_deletion under Cocoa, add
9273 Fraise_frame(Qnil).
9274 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9275 (x_get_arg): Allow "yes" and "no" as boolean values.
9276 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9277 Qright under Cocoa.
9278 (focus-follows-mouse): Default to 0 under NS.
9279 * frame.h (enum output_method): Add output_ns.
9280 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9281 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9282 (FRAME_WINDOW_P): NS-specific definition.
9283 * fringe.c (max_used_fringe_bitmap): Make public.
9284 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9285 (getloadavg): Use NeXT code under descendant OS's.
9286 * image.c (includes and header section, x_create_bitmap_from_data)
9287 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9288 (image_background_transparent, x_clear_image_1)
9289 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9290 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9291 (x_to_xcolors, x_from_xcolors, x_disable_image)
9292 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9293 other GUIs, including XPM support using code originally written for
9294 Carbon GUI.
9295 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9296 using NS API.
9297 (image_ascent): Use font metrics macros instead of direct struct field
9298 access.
9299 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9300 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9301 Also, handle NS as GTK for menu bar purposes.
9302 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9303 toolkit where they differ.
9304 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9305 use cachelist, still needed under NS.
9306 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9307 (struct widget_value): Define it here for menu.c.
9308 * keymap.c (includes): Include modifier internals.
9309 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9310 NS.
9311 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9312 support for preferring sequences using certain modifiers, specified by
9313 the FIRSTONLY argument.
9314 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9315 under NS GNUstep implementation.
9316 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9317 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9318 * menu.c: Include nsterm.h under NS.
9319 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9320 (free_menubar_widget_tree_value, update_submenu_strings)
9321 (find_and_call_menu_selection): Treat NS as X and NT.
9322 (find_and_return_menu_selection): New function, used for popup menus.
9323 * nsgui.h:
9324 * nsterm.h:
9325 * nsfns.m:
9326 * nsimage.m:
9327 * nsmenu.m:
9328 * nsselect.m:
9329 * nsterm.m: New files.
9330 * process.c (wait_reading_process_output): Under NS, call ns_select()
9331 instead of plain select().
9332 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9333 beginning of buffer.
9334 * sysselect.h (init_process): Rename when compiling under Cocoa to
9335 avoid name conflict.
9336 * termhooks.h (display_info): Add ns_display_info to union.
9337 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9338 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9339 COCOA environment.
9340 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9341 unexec() signature. (Note, this will dump, but the resulting file
9342 crashes; unexosx is used instead; keeping around for reference and
9343 possible aid in getting dump working under GNUstep.)
9344 * w32gui.h (button_type, widget_value): Remove definitions (now in
9345 keyboard.h).
9346 * window.c: Include nsterm.h when compiling under NS.
9347 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9348 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9349 other GUI windowing systems.
9350 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9351 GTK.
9352 (x_consider_frame_title): Under NS, set icon type and frame
9353 modified-state indicator; use ns_set_name_as_filename() when using
9354 formatted title.
9355 (update_window_cursor): Make public when compiling under NS.
9356 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9357 (hourglass_atimer, Vhourglass_delay
9358 * xfaces.c (header section, init_frame_faces, clear_font_table)
9359 (defined_color, unload_color, x_face_list_fonts)
9360 (prepare_face_for_display): Add NS support parallel to other GUIs.
9361 Emulate GCs like other non-X GUIs.
9362 (split_font_name): Don't lowercase font name under NS.
9363 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9364 under NS.
9365 * s/darwin.h: Add support for compilation under NS.
9366
9367 2008-07-15 Jason Rumney <jasonr@gnu.org>
9368
9369 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9370 (w32_show_hourglass): Rename from show_hourglass.
9371 (w32_hide_hourglass): Rename from hide_hourglass.
9372 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9373 (Vhourglass_delay): Declare extern.
9374 (hourglass_started): Remove.
9375
9376 * xdisp.c (Vhourglass_delay): Remove static.
9377 (hourglass_started, start_hourglass, cancel_hourglass):
9378 Don't include these versions on WINDOWSNT.
9379
9380 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9381
9382 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9383 variables (formerly in xfns.c).
9384 (show_hourglass, hide_hourglass): New prototypes (same).
9385 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9386 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9387 in xfns.c).
9388 (syms_of_xdisp): Declare/initialize display-hourglass,
9389 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9390 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9391 formerly in xfns.c.
9392 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9393 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9394 (start_hourglass, cancel_hourglass): Remove.
9395 (show_hourglass, hide_hourglass): Remove prototypes and static
9396 modifiers.
9397 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9398 hourglass_atimer, hourglass_shown_p declaration/initialization.
9399 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9400 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9401 (start_hourglass, cancel_hourglass): Remove.
9402 (show_hourglass, hide_hourglass): Remove prototypes and static
9403 modifiers.
9404 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9405 hourglass_atimer, hourglass_shown_p declaration/initialization.
9406 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9407 (DEFAULT_HOURGLASS_DELAY): Remove.
9408 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9409 hourglass_shown_p declaration/initialization.
9410
9411 2008-07-14 Jason Rumney <jasonr@gnu.org>
9412
9413 * w32fns.c (w32_get_arg): Remove wrapper function.
9414 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9415 directly.
9416 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9417
9418 2008-07-14 Kenichi Handa <handa@m17n.org>
9419
9420 * xfont.c (xfont_open): Add workaround for X's bug.
9421
9422 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9423
9424 * fontset.c: Include <stdio.h> unconditionally.
9425
9426 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
9427
9428 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9429 for filtering.
9430
9431 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9434
9435 * m/macppc.h:
9436 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9437
9438 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9439 (SPECIAL_EMACS_INT):
9440 * m/ia64.h (SPECIAL_EMACS_INT):
9441 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9442 * s/gnu.h (NLIST_STRUCT):
9443 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9444 * s/gnu-linux.h (LINUX):
9445 * s/msdos.h (HAVE_FACES):
9446 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9447
9448 * systty.h:
9449 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9450 anymore.
9451
9452 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9453
9454 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9455 always defined as int.
9456
9457 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9458 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9459 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9460 * s/freebsd.h (HAVE_WAIT_HEADER):
9461 * s/bsd-common.h (HAVE_UNION_WAIT):
9462 * s/aix4-2.h (HAVE_WAIT_HEADER):
9463 * m/mips.h (HAVE_UNION_WAIT):
9464 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9465 (COFF, static): Do not define, they are undefined later in the file.
9466
9467 * process.c (update_status): Don't use a union.
9468 (status_convert):
9469 (sigchld_handler): Use int instead of WAITTYPE.
9470
9471 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9472
9473 * indent.c (Fvertical_motion): Restore hscroll before moving to
9474 goal column.
9475
9476 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9477
9478 * lisp.h: Remove left over code.
9479
9480 2008-07-11 Andreas Schwab <schwab@suse.de>
9481
9482 * lisp.h: Fix logic in last change.
9483
9484 * menu.h: New file.
9485 * menu.c: Include it.
9486 * xmenu.c: Likewise.
9487 * Makefile.in: Update dependencies.
9488
9489 2008-07-11 Kenichi Handa <handa@m17n.org>
9490
9491 * fontset.c (fontset_from_font): Cancel the previous change.
9492
9493 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9494
9495 * lisp.h:
9496 * w32heap.c:
9497 * emacs.c:
9498 * alloc.c: Replace all references of NO_UNION_TYPE with
9499 USE_LISP_UNION_TYPE.
9500
9501 * m/xtensa.h (NO_UNION_TYPE):
9502 * m/vax.h (NO_UNION_TYPE):
9503 * m/template.h (NO_UNION_TYPE):
9504 * m/sparc.h (NO_UNION_TYPE):
9505 * m/mips.h (NO_UNION_TYPE):
9506 * m/macppc.h (NO_UNION_TYPE):
9507 * m/m68k.h (NO_UNION_TYPE):
9508 * m/iris4d.h (NO_UNION_TYPE):
9509 * m/intel386.h (NO_UNION_TYPE):
9510 * m/ibms390x.h (NO_UNION_TYPE):
9511 * m/ibms390.h (NO_UNION_TYPE):
9512 * m/ibmrs6000.h (NO_UNION_TYPE):
9513 * m/ia64.h (NO_UNION_TYPE):
9514 * m/hp800.h (NO_UNION_TYPE):
9515 * m/arm.h (NO_UNION_TYPE):
9516 * m/amdx86-64.h (NO_UNION_TYPE):
9517 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9518 defining it the same.
9519
9520 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9521
9522 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9523
9524 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9525
9526 * fileio.c:
9527 * sysdep.c
9528 * systty.h:
9529 * m/ibmrs6000.h:
9530 * m/iris4d.h:
9531 * s/aix4-2.h:
9532 * s/freebsd.h:
9533 * s/gnu-linux.h:
9534 * s/hpux10-20.h:
9535 * s/hpux11.h:
9536 * s/netbsd.h:
9537 * s/sol2-3.h:
9538 * s/sol2-4.h:
9539 * s/sol2.h:
9540 * s/usg5-4.h:
9541 * s/vms.h: Remove references to unused variables.
9542
9543 2008-07-10 Andreas Schwab <schwab@suse.de>
9544
9545 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9546 pattern before matching the generic family.
9547
9548 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9549
9550 * unexec.c:
9551 * s/vms.h:
9552 * s/usg5-4-2.h:
9553 * s/sol2-5.h:
9554 * s/freebsd.h:
9555 * s/darwin.h: Remove dead code.
9556
9557 * m/template.h:
9558 * m/sparc.h:
9559 * m/mips.h:
9560 * m/m68k.h:
9561 * m/iris4d.h:
9562 * m/intel386.h:
9563 * m/ibms390x.h:
9564 * m/ibms390.h:
9565 * m/ia64.h:
9566 * m/hp800.h:
9567 * m/arm.h:
9568 * m/amdx86-64.h: Remove dead code and references to unused
9569 and compiler defined symbols.
9570
9571 * unexmips.c:
9572 * unexelf.c: Remove references to desupported systems.
9573
9574 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9575
9576 * m/powermac.h: Remove boilerplate comments.
9577 (NO_REMAP): Remove unused definition.
9578
9579 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9580 define them.
9581
9582 2008-07-10 Kenichi Handa <handa@m17n.org>
9583
9584 * xfont.c (xfont_open): Log the reason of failure.
9585
9586 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9587
9588 * fontset.c (fontset_get_font_group):
9589 * font.c (font_check_otf): Specify argument types.
9590
9591 2008-07-09 Kenichi Handa <handa@m17n.org>
9592
9593 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9594 non-ASCII char is found.
9595
9596 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9597 (reorder_font_vector): Change the arg preferred_family to font.
9598 Prefer the spec matching with font.
9599 (fontset_get_font_group): New function.
9600 (fontset_find_font): Change the format of an element of a realized
9601 fontset. Use fontset_get_font_group.
9602 (fontset_font): Try the current fontset, the default fontset, the
9603 fallbacks of the current fontset, and the fallbacks of the default
9604 fontset in this order.
9605 (face_for_char): Delete the shortcut to use the current font.
9606 (fontset_from_font): Don't set fonts for Latin in the fontset.
9607
9608 * font.h (font_make_object, font_match_p): Adjust prototypes.
9609
9610 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9611
9612 * font.c (font_make_object): New arg entity and pixelsize.
9613 (font_check_otf_features, font_check_otf): New functions.
9614 (font_match_p): Check :lang, :script, and :otf properties.
9615
9616 * xfont.c (xfont_open): Adjust it for the change of
9617 font_make_object.
9618 (xfont_text_extents): Fix initial setting of metrics.
9619
9620 * ftfont.c (struct ftfont_info): New member index, delete member
9621 fc_charset_idx. Make the member order compatible with struct
9622 xftfont_info.
9623 (fc_charset_table): Change charset names to registry names.
9624 (ftfont_pattern_entity): Delete the args registry and
9625 fc_charset_idx. Change the value of :font-entity property
9626 to (FONTNAME . INDEX). Always set :registry property to
9627 `iso10646-1'.
9628 (struct ftfont_cache_data): New struct.
9629 (ftfont_lookup_cache): New arg for_face.
9630 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9631 (ftfont_driver): Set the member otf_capability.
9632 (ftfont_get_charset): Adjust it for the change of
9633 fc_charset_table.
9634 (OTF_TAG_SYM): New macro.
9635 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9636 for the change of fc_charset_table.
9637 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9638 ftfont_pattern_entity. Add FC_INDEX to objset.
9639 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9640 and ftfont_pattern_entity.
9641 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9642 font_make_object, struct ftfont_info.
9643 (ftfont_has_char): Use ftfont_get_fc_charset.
9644 (ftfont_otf_features, ftfont_otf_capability): New functions.
9645 (ftfont_shape): Use ftfont_get_otf.
9646 (ftfont_text_extents): Fix initial setting of metrics.
9647
9648 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9649 member order compatible with struct ftfont_info.
9650 (xftfont_open): Add FC_CHARSET to the pattern. Set
9651 xftfont_info->ft_size. Don't unlock the face. Check BDF
9652 properties if appropriate.
9653 (xftfont_close): Unlock the face.
9654 (xftfont_anchor_point, xftfont_shape): Deleted.
9655 (syms_of_xftfont): Don't set members anchor_point and shape of
9656 xftfont_driver.
9657
9658 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9659 font_make_object.
9660
9661 * w32font.c (w32font_open): Adjust it for the change of
9662 font_make_object.
9663 (w32font_open_internal): Don't set properties of font_object here.
9664
9665 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9666
9667 * macfns.c (x_create_tip_frame):
9668 * w32fns.c (x_create_tip_frame):
9669 * xfns.c (x_create_tip_frame): Pass parameter argument to
9670 face-set-after-frame-default.
9671
9672 * xfaces.c (Finternal_merge_in_global_face): Save merged
9673 attributes for the default face back into the face vector.
9674
9675 2008-07-08 Andreas Schwab <schwab@suse.de>
9676
9677 * fontset.h: Declare fontset_from_font. Don't declare
9678 new_fontset_from_font and fontset_from_font_name.
9679 * xterm.c: Include "fontset.h".
9680 * Makefile.in (xterm.o): Update dependencies.
9681
9682 2008-07-08 Glenn Morris <rgm@gnu.org>
9683
9684 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9685 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9686
9687 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9688
9689 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9690 (x_set_frame_parameters): Don't bind it.
9691
9692 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9693
9694 * w32fns.c (map_w32_filename): Declare extern.
9695
9696 2008-07-07 Jason Rumney <jasonr@gnu.org>
9697
9698 * w32term.c (WS_EX_LAYERED): Define if not already.
9699
9700 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9701
9702 * xfaces.c (set_font_frame_param): Don't try to set the font
9703 parameter if it is still unspecified in the lface.
9704
9705 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9706
9707 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9708 face if it didn't already exist.
9709
9710 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9711
9712 2008-07-05 Andreas Schwab <schwab@suse.de>
9713
9714 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9715
9716 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9717
9718 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9719 word-wrapping.
9720 (IT_DISPLAYING_WHITESPACE): New macro.
9721 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9722 when word-wrapping. Simplify word-wrapping logic. Use correct
9723 pixel positions when saving copies of the iterator.
9724 (display_line): Use proper wrap point if the last character on a
9725 line was preceded by whitespace.
9726
9727 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9728
9729 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9730
9731 2008-07-04 Kenichi Handa <handa@m17n.org>
9732
9733 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9734
9735 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9736
9737 2008-07-02 Jason Rumney <jasonr@gnu.org>
9738
9739 * xfns.c (syms_of_xfns): Only define x-select-font when both
9740 HAVE_FREETYPE and USE_GTK.
9741
9742 * xdisp.c (next_element_from_display_vector): Move assignment out
9743 of if statement.
9744
9745 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9746
9747 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9748
9749 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9750 (syms_of_fileio): Initialize and export them.
9751 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9752
9753 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9754 (Fsystem_move_file_to_trash): New function.
9755 (syms_of_w32fns): Export it to lisp.
9756
9757 2008-07-01 Jason Rumney <jasonr@gnu.org>
9758
9759 * w32font.c (w32font_text_extents): Don't count overhang as part
9760 of width.
9761
9762 2008-06-30 Miles Bader <miles@gnu.org>
9763
9764 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9765 Add `avoid_cursor_p' field.
9766
9767 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9768 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9769 (append_glyph, append_composite_glyph, produce_image_glyph)
9770 (append_stretch_glyph): Initialize avoid_cursor_p.
9771 (get_it_property): Rename from `get_line_height_property'.
9772 (x_produce_glyphs): Use get_it_property.
9773 (handle_line_prefix, push_display_prop): New functions.
9774 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9775 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9776 New variables.
9777 (syms_of_xdisp): Initialize them.
9778
9779 2008-06-30 Kenichi Handa <handa@m17n.org>
9780
9781 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9782 XftDefaultSubstitute (they are called in XftFontMatch).
9783 (xftfont_open): Fix args to ftfont_font_format.
9784
9785 * ftfont.c (fc_charset_table): New member lang.
9786 (ftfont_resolve_generic_family): New arg pattern.
9787 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9788 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9789 (ftfont_open): Fix args to ftfont_font_format.
9790 (ftfont_font_format): New arg filename.
9791
9792 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9793
9794 * xfaces.c (Finternal_merge_in_global_face): If default face was
9795 modified, realize it again. Update the font face attribute.
9796
9797 2008-06-29 Jason Rumney <jasonr@gnu.org>
9798
9799 * w32term.c (x_set_frame_alpha): Fix logic.
9800
9801 2008-06-29 Kenichi Handa <handa@m17n.org>
9802
9803 * fontset.c (Finternal_char_font): Return font-object instead of
9804 font-name.
9805
9806 * composite.c (get_composition_id): Fix the width calculation for TAB.
9807
9808 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9809
9810 * indent.c (Fvertical_motion): Properly handle float column arg.
9811
9812 2008-06-28 Jason Rumney <jasonr@gnu.org>
9813
9814 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9815 (pfnSetLayeredWindowAttributes): New function pointer.
9816 (w32_initialize): Initialize it when supported.
9817 (x_set_frame_alpha): New function.
9818
9819 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9820 (w32_frame_parm_handlers): Set alpha handler.
9821
9822 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9823
9824 2008-06-27 Jason Rumney <jasonr@gnu.org>
9825
9826 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9827 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9828 (w32_to_x_charset, x_to_w32_charset)
9829 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9830 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9831 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9832 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9833 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9834 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9835 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9836 (Qw32_charset_unicode): Remove.
9837 (syms_of_w32fns): Update for above changes.
9838
9839 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9840 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9841 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9842 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9843 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9844 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9845 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9846 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9847 (syms_of_w32font): Update for above changes.
9848
9849 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9850
9851 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9852 removed #if.
9853 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9854
9855 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9856 Eli Zaretskii <eliz@gnu.org>
9857
9858 * makefile.w32-in (LOCAL_FLAGS):
9859 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9860
9861 * sysdep.c (_spawnlp, _getpid):
9862 Declare with explicit _cdecl instead of _CRTAPI1.
9863
9864 * editfns.c (Fget_internal_run_time):
9865 Check for WINDOWSNT with #ifdef, not #if.
9866
9867 2008-06-26 Jason Rumney <jasonr@gnu.org>
9868
9869 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9870
9871 * w32term.c (x_draw_glyph_string_foreground)
9872 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9873 Use FONT_HANDLE macro.
9874 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9875
9876 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9877 (uniscribe_encode_char): Use FONT_HANDLE macro.
9878
9879 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9880 (w32font_text_extents): Use precast w32_font.
9881 (w32font_close): Free cached metrics.
9882 (w32font_open_internal): Allocate space for name on stack.
9883
9884 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9885
9886 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9887
9888 2008-06-26 Jason Rumney <jasonr@gnu.org>
9889
9890 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9891 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9892
9893 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9894
9895 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9896
9897 2008-06-26 Jason Rumney <jasonr@gnu.org>
9898
9899 * w32bdf.c, w32bdf.h: Remove obsolete files.
9900
9901 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9902
9903 * w32gui.h: Don't include w32bdf.h.
9904 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9905 Remove obsolete font support.
9906
9907 * w32font.h (struct w32font_info): Remove compat_w32_font.
9908 Add hfont member.
9909 (FONT_COMPAT): Remove obsolete macro.
9910
9911 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9912 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9913 (w32font_open_internal): Remove compat code. Set new hfont member.
9914 (Fx_select_font): Use new hfont member.
9915
9916 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9917 (uniscribe_encode_char): Use new hfont member.
9918
9919 * w32term.c (x_draw_glyph_string_foreground)
9920 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9921 (x_draw_glyph_string): Use metrics in w32font_info.
9922
9923 2008-06-26 Kenichi Handa <handa@m17n.org>
9924
9925 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9926
9927 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9928
9929 * unexnext.c:
9930 * m/ews4800.h:
9931 * m/hp9000s300.h:
9932 * m/ibm370aix.h:
9933 * m/mips-siemens.h:
9934 * m/ncr386.h:
9935 * m/next.h:
9936 * m/pmax.h:
9937 * m/powerpcle.h:
9938 * m/tandem-s2.h:
9939 * s/386bsd.h:
9940 * s/bsd386.h:
9941 * s/bsd4-1.h:
9942 * s/bsd4-2.h:
9943 * s/bsdos2-1.h:
9944 * s/bsdos2.h:
9945 * s/bsdos3.h:
9946 * s/bsdos4.h:
9947 * s/nextstep.h:
9948 * s/ultrix4-3.h:
9949 * s/usg5-0.h:
9950 * s/usg5-2-2.h:
9951 * s/usg5-2.h:
9952 * s/usg5-4-3.h:
9953 * s/ux4800.h:
9954 * s/uxpds.h:
9955 * s/uxpv.h: Remove support for obsolete systems.
9956 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9957 Remove, insert contents in s/hpux10-20.h.
9958 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9959 Remove, insert contents in s/aix4-2.h.
9960 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9961 * s/bsd4-3.h: Rename to ...
9962 * s/bsd-common.h: ... this.
9963 * data.c:
9964 * doc.c:
9965 * ecrt0.c:
9966 * emacs.c:
9967 * fileio.c:
9968 * floatfns.c:
9969 * keyboard.c:
9970 * mem-limits.h:
9971 * print.c:
9972 * process.c:
9973 * sysdep.c:
9974 * syssignal.h:
9975 * systty.h:
9976 * syswait.h:
9977 * term.c:
9978 * unexec.c:
9979 * unexelf.c:
9980 * unexhp9k800.c:
9981 * m/hp800.h:
9982 * m/ibmrs6000.h:
9983 * m/mips.h:
9984 * m/vax.h:
9985 * s/darwin.h:
9986 * s/freebsd.h:
9987 * s/gnu.h:
9988 * s/ms-w32.h:
9989 * s/msdos.h:
9990 * s/netbsd.h:
9991 * s/template.h: Remove references to obsolete variables.
9992
9993 * Makefile.in: Add dependencies for all unexec files.
9994 (admindir): Remove unused variable.
9995 (UNEXEC_SRC): Remove references.
9996
9997 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9998
9999 * xfns.c (x_default_font_parameter): If Xft is available, first
10000 try Monospace-12 for the default font.
10001
10002 2008-06-25 Jason Rumney <jasonr@gnu.org>
10003
10004 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10005
10006 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10007
10008 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10009
10010 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10011
10012 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
10013
10014 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10015 <scroll-conservatively>: Fix typo in docstring.
10016
10017 * xselect.c (Fx_send_client_event): Doc fix.
10018
10019 2008-06-25 Kenichi Handa <handa@m17n.org>
10020
10021 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10022
10023 * font.c (font_parse_fcname): Remove unused variables.
10024 (font_sort_entites): Delete the arg SPEC. Caller changed.
10025 Fix for the case of ! best_only.
10026 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10027
10028 * lisp.h (Fstring_to_unibyte): EXFUN it.
10029
10030 * character.h (str_to_unibyte): Extern it.
10031
10032 * character.c (str_to_unibyte): New function.
10033
10034 * fns.c (Fstring_to_unibyte): New function.
10035 (syms_of_fns): Defsubr it.
10036
10037 2008-06-24 Kenichi Handa <handa@m17n.org>
10038
10039 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10040 DPI too.
10041 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10042
10043 2008-06-24 Andreas Schwab <schwab@suse.de>
10044
10045 * Makefile.in (${lispsource}loaddefs.el): Rename from
10046 ../lisp/loaddefs.el.
10047 (bootstrap-clean): Do what distclean does but don't remove
10048 Makefile.
10049 (distclean): Depend on bootstrap-clean and remove Makefile.
10050
10051 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
10052
10053 * buffer.h (struct buffer): New member word_wrap.
10054
10055 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10056 word-wrap.
10057 (init_buffer_once): Initialize them.
10058
10059 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10060 line_wrap enum possessing three possible values.
10061
10062 * termopts.h: Replace truncate_partial_width_windows with
10063 Vtruncate_partial_width_windows.
10064
10065 * dispnew.c (direct_output_for_insert): Avoid direct output when
10066 inserting a space with word wrap on.
10067
10068 * indent.c (compute_motion): Obey integer values of
10069 truncate-partial-width-windows.
10070
10071 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10072 replacing truncate_partial_width_windows.
10073 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10074 truncate only if the window width is below that integer.
10075 (start_display, resize_mini_window, produce_stretch_glyph)
10076 (display_string, move_it_in_display_line_to): Use line_wrap.
10077 (back_to_previous_visible_line_start, reseat_1): Reset
10078 string_from_display_prop_p.
10079 (display_line): Extend default face to end of line when wrapping.
10080
10081 2008-06-24 Kim F. Storm <storm@cua.dk>
10082
10083 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10084 to wrap continued lines at word boundaries.
10085
10086 2008-06-24 Jason Rumney <jasonr@gnu.org>
10087
10088 * font.c (Ffont_face_attributes): Multiply pixel size before point
10089 conversion to avoid multiplying rounding error.
10090
10091 2008-06-23 Jason Rumney <jasonr@gnu.org>
10092
10093 * w32term.c (x_draw_glyph_string_background)
10094 (x_draw_glyph_string): Remove old bdf font code.
10095
10096 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10097
10098 2008-06-22 Kenichi Handa <handa@m17n.org>
10099
10100 * font.c (font_find_for_lface): Try the adstyle specified in
10101 the property of LFACE_FONT of LFACE (if any).
10102
10103 2008-06-21 Seiji Zenitani <zenitani@mac.com>
10104 Ryo Yoshitake <ryo@shiftmode.net>
10105
10106 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10107
10108 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10109
10110 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10111 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10112 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10113 (witness-emacs): Remove.
10114 (lisp, shortlisp): Move loaddefs.el earlier.
10115 (mostlyclean): Forget about witness-emacs.
10116
10117 2008-06-22 Glenn Morris <rgm@gnu.org>
10118
10119 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10120 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10121
10122 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10123
10124 * Makefile.in (PRECOMP): Remove.
10125 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10126 (witness-emacs): Run `compile-first'.
10127 (.el.elc): Use the new compile-onefile target.
10128
10129 2008-06-21 Kenichi Handa <handa@m17n.org>
10130
10131 * xftfont.c (xftfont_open): Handle QCembolden only when
10132 FC_EMBOLDEN is defined.
10133
10134 2008-06-21 Andreas Schwab <schwab@suse.de>
10135
10136 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10137 (.el.elc): Likewise.
10138
10139 2008-06-21 Miles Bader <miles@gnu.org>
10140
10141 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10142 build dir, not the lisp source dir.
10143
10144 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10145
10146 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10147 (bootstrapclean): Remove.
10148 (.el.elc): New rule.
10149 (PRECOMP): New var.
10150 (../lisp/subdirs.el): Remove.
10151 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10152 (witness-emacs): New target.
10153 (mostlyclean): Remove witness-emacs as well.
10154 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10155 Add witness-emacs dependency.
10156
10157 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
10158
10159 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10160 defined by the font.
10161
10162 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10163
10164 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10165 (bootstrap-clean): New target that keeps TAGS around.
10166 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10167 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10168
10169 2008-06-20 Jason Rumney <jasonr@gnu.org>
10170
10171 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10172 Remove obsolete font code.
10173
10174 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10175 to determine language support.
10176
10177 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10178
10179 * sysdep.c (cfsetspeed): New fun extracted from the code.
10180 (cfmakeraw): Move before first use.
10181
10182 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10183
10184 * sysdep.c (cfmakeraw): Provide fallback implementation.
10185 (serial_configure): Provide fallback implementation of cfsetspeed.
10186
10187 2008-06-20 Kenichi Handa <handa@m17n.org>
10188
10189 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10190 the pattern.
10191
10192 * fontset.c (fontset_from_font): Copy font_spec before changing
10193 the elements.
10194
10195 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10196
10197 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10198
10199 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10200 for explicit `font' parameters.
10201
10202 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10203
10204 2008-06-19 Kenichi Handa <handa@m17n.org>
10205
10206 * frame.c: Include <ctype.h>.
10207 (x_set_font_backend): Allow spacing characters in the X resource
10208 for FontBackend.
10209
10210 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10211
10212 * w32fns.c, xfns.c (Qfont_param): New var.
10213 (syms_of_w32fns): Initialize it.
10214 (x_default_font_parameter): Record explicit `font' into
10215 `font-parameter'.
10216
10217 2008-06-18 Kenichi Handa <handa@m17n.org>
10218
10219 * font.c (font_parse_xlfd): Fix previous change.
10220 (font_parse_fcname): Don't use :fc-unknown-spec.
10221 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10222 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10223 (font_add_log): Prepend the driver name to the resulting fonts.
10224
10225 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10226 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10227 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10228
10229 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10230 (QCembolden): New variables.
10231 (syms_of_xftfont): DEFSYM them.
10232 (xftfont_open): Call XftFontMatch. Don't trust the result of
10233 XftTextExtents8 if the pixel_size is less than 5.
10234
10235 2008-06-18 Andreas Schwab <schwab@suse.de>
10236
10237 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10238 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10239
10240 2008-06-18 Jason Rumney <jasonr@gnu.org>
10241
10242 * w32font.c (w32font_list, w32font_match): Add logging.
10243
10244 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10245
10246 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
10247
10248 * font.c (font_parse_fcname): Store divider characters for
10249 unknown-spec list. For known key symbols, intern using correct
10250 symbol name.
10251
10252 2008-06-17 Kenichi Handa <handa@m17n.org>
10253
10254 * xfaces.c (realize_default_face): If the frame is not on window
10255 system, set the fontset of face to nil.
10256
10257 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10258
10259 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10260
10261 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10262
10263 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10264 (build_font_name_from_vector): Delete externs.
10265
10266 * xfaces.c (struct font_name): Don't declare.
10267
10268 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10269
10270 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10271
10272 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10273
10274 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10275
10276 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
10277
10278 * font.c (Ffont_spec): Fix usage in docstring.
10279 (Ffont_face_attributes): Doc fix.
10280
10281 2008-06-16 Andreas Schwab <schwab@suse.de>
10282
10283 * font.c (Ffont_face_attributes): Fix definition.
10284
10285 2008-06-16 Jason Rumney <jasonr@gnu.org>
10286
10287 * font.h (font_style_symbolic_from_value): Remove.
10288
10289 * font.c (font_style_symbolic_from_value): Remove.
10290 (font_style_symbolic): Revert to pre 2008-06-13 version.
10291
10292 * w32font.c (w32_to_fc_weight): New function.
10293 (w32font_full_name, logfont_to_fcname): Use it.
10294
10295 2008-06-16 Kenichi Handa <handa@m17n.org>
10296
10297 * font.c (font_check_object): Delete it.
10298 (font_clear_cache): Check if a font-object is alive.
10299 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10300 font-object to nil.
10301 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10302 (font_at): Don't call font_check_object.
10303 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10304
10305 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10306
10307 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10308
10309 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
10310
10311 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10312
10313 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
10314
10315 * font.c (font_parse_fcname): Only one decimal point.
10316 (font_unparse_fcname): Handle data in family and foundry indices
10317 as symbols, not strings.
10318 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10319
10320 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10321
10322 * font.h (font_unparse_gtkname): Add prototype.
10323
10324 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10325
10326 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10327
10328 2008-06-15 Andreas Schwab <schwab@suse.de>
10329
10330 * font.c (font_update_drivers): Fix crash when no drivers match.
10331
10332 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10333
10334 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10335 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10336
10337 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10338
10339 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10340
10341 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10342
10343 * process.c (Fserial_process_configure, Fprocess_send_eof):
10344 Use EQ to compare Lisp_Objects.
10345
10346 2008-06-13 Jason Rumney <jasonr@gnu.org>
10347
10348 * w32fns.c (Fw32_select_font): Remove old font API function.
10349
10350 * w32font.c (logfont_to_fcname): New function.
10351 (Fx_select_font): New font dialog function compatible with
10352 GTK/fontconfig version.
10353
10354 * font.c (font_style_symbolic_from_value): New function.
10355 (font_style_symbolic): Use it.
10356
10357 * font.h (font_style_symbolic_from_value): Declare new function.
10358
10359 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
10360
10361 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10362 <font-width-table>: Fix typos in docstrings.
10363
10364 2008-06-13 Daniel Engeler <engeler@gmail.com>
10365
10366 These changes add serial port access.
10367 * process.c: Add HAVE_SERIAL.
10368 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10369 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10370 (list_processes_1, select_wrapper, Fstop_process)
10371 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10372 (status_notify): Modify to handle serial processes.
10373 [HAVE_SERIAL] (Fserial_process_configure)
10374 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10375 New functions.
10376 * process.h (struct Lisp_Process): Add `type'.
10377 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10378 New functions.
10379 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10380 serial ports.
10381 (serial_open, serial_configure): New functions.
10382 * w32.h: Add FILE_SERIAL.
10383 (struct _child_process): Add ovl_read, ovl_write.
10384
10385 2008-06-13 Kenichi Handa <handa@m17n.org>
10386
10387 * dispextern.h (enum lface_attribute_index): New member
10388 LFACE_FOUNDRY_INDEX.
10389
10390 * font.c (font_score): Delete arg alternate_families. Check only
10391 weight, slant, width, and size. Ignore the difference of alias
10392 style symbols.
10393 (font_sort_entites): Adjust for the above change. Reflect the
10394 order of font-driver to scores.
10395 (font_list_entities): Don't check alternate_familes here.
10396 (font_clear_prop): Handle foundry.
10397 (font_update_lface): Don't parse "foundry-family" form here.
10398 Handle FONT_FOUNDRY_INDEX.
10399 (font_find_for_lface): Likewise. Handle alternate families here.
10400 If registry is nil, try iso8859-1 and ascii-0.
10401 (font_open_for_lface): Pay attention to size in ENTITY.
10402 (font_open_by_name): Simplify by calling font_load_for_lface.
10403 (free_font_driver_list): Delete it.
10404 (font_update_drivers): Preserve the order of backends.
10405 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10406 of font_score and font_sort_entites.
10407 (font_update_sort_order): Likewise.
10408
10409 * xfaces.c (LFACE_FOUNDRY): New macro.
10410 (check_lface_attrs): Check foundry.
10411 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10412 (merge_face_vectors): Check foundry.
10413 (merge_face_ref): Likewise.
10414 (Finternal_set_lisp_face_attribute): Likewise.
10415 (x_update_menu_appearance): Likewise.
10416 (Finternal_get_lisp_face_attribute): Likewise.
10417 (lface_hash): Likewise.
10418 (lface_same_font_attributes_p): Likewise.
10419 (x_supports_face_attributes_p): Likewise.
10420 (tty_supports_face_attributes_p): Likewise.
10421 (Finternal_set_alternative_font_family_alist): Intern strings.
10422 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10423 (realize_default_face): Set LFACE_FOUNDRY (lface).
10424
10425 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10426 font-driver at first.
10427
10428 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10429
10430 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10431
10432 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10433
10434 2008-06-12 Jim Meyering <meyering@redhat.com>
10435
10436 Make unexec_free handle NULL the same way free does.
10437 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10438
10439 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10442 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10443 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10444 (WEAK_ALIAS): Simplify.
10445 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10446 when searching a unibyte buffer.
10447
10448 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10449
10450 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10451
10452 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10453
10454 * w32font.c: Include ctype.h.
10455
10456 2008-06-11 Jason Rumney <jasonr@gnu.org>
10457
10458 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10459 misreported as space.
10460 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10461 as aliases for registry iso10646-1.
10462
10463 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10464
10465 * buffer.c (clone_per_buffer_values): Skip `name'.
10466
10467 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10468
10469 * font.c (font_parse_fcname): Fix last change; accept decimal
10470 points in font size.
10471
10472 2008-06-10 Jason Rumney <jasonr@gnu.org>
10473
10474 * w32uniscribe.c (add_opentype_font_name_to_list):
10475 Skip non unicode fonts.
10476
10477 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10478
10479 * xfns.c (Fx_font_dialog): New function.
10480
10481 * gtkutil.c (xg_dialog_response_cb): Rename from
10482 xg_file_response_callback.
10483 (pop_down_dialog): Rename from pop_down_file_dialog.
10484 (xg_get_file_name): Callers changed.
10485 (xg_get_font_name): New function.
10486
10487 * gtkutil.h (xg_get_font_name): Insert prototype.
10488
10489 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10490
10491 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10492 x_underline_minimum_display_offset.
10493 (syms_of_xdisp): Declare it here rather than in xterm.c.
10494 * dispextern.h (underline_minimum_offset): Declare it.
10495 * w32term.c (x_draw_glyph_string): Use it.
10496 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10497 (syms_of_xterm): Don't declare it any more.
10498 (x_draw_glyph_string): Adjust to the new name.
10499
10500 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10501
10502 * xterm.c (x_underline_minimum_display_offset): New var.
10503 (x_draw_glyph_string): Use it.
10504 (syms_of_xterm): Declare it.
10505
10506 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10507
10508 * font.c (font_parse_fcname): Accept GTK-style font names too.
10509
10510 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10511
10512 * dired.c (file_name_completion): Don't return t if the match is exact
10513 but with different capitalization.
10514 * minibuf.c (Ftry_completion): Simplify.
10515
10516 * window.c (Vwindow_point_insertion_type): New var.
10517 (set_window_buffer): Use it.
10518 (syms_of_window): Init and export it to Lisp.
10519
10520 2008-06-10 Kenichi Handa <handa@m17n.org>
10521
10522 * font.h (font_intern_prop): Prototype adjusted.
10523
10524 * font.c (font_intern_prop): New arg force_symbol.
10525 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10526 Adjust for the change of font_intern_prop.
10527
10528 * ftfont.c (ftfont_pattern_entity):
10529 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10530 (w32_registry):
10531 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10532 the change of font_intern_prop.
10533
10534 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10535
10536 * w32menu.c (digest_single_submenu): Declare extern.
10537
10538 2008-06-09 Jason Rumney <jasonr@gnu.org>
10539
10540 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10541
10542 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10543 (parse_single_submenu): Remove.
10544 (digest_single_submenu): Remove.
10545 (syms_of_w32menu): Don't initialise variables that have moved
10546 to menu.c.
10547 (set_frame_menubar): Sync with version in xmenu.c.
10548 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10549
10550 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10551 Make static again.
10552
10553 2008-06-09 Jason Rumney <jasonr@gnu.org>
10554
10555 Changes to w32 files related to the move of common menu code
10556 to menu.c on 2008-06-08 by Chong Yidong.
10557
10558 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10559 defs to w32gui.h.
10560 (single_keymap_panes, push_menu_item, push_menu_pane):
10561 Make globally visible.
10562
10563 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10564 (local_free, malloc_widget_value, free_widget_value)
10565 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10566 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10567 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10568 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10569 (menu_items, menu_items_allocated, menu_items_used)
10570 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10571 (init_menu_items, finish_menu_items, discard_menu_items)
10572 (grow_menu_items, push_submenu_start, push_submenu_end)
10573 (push_left_right_boundary, push_menu_pane, push_menu_item)
10574 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10575 (free_menubar_widget_tree_value, parse_single_submenu)
10576 (update_submenu_strings): Remove functions.
10577 (xmalloc_widget_value): Remove and declare extern.
10578
10579 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10580 (OBJ1): Build it.
10581
10582 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10583 (local_heap, local_alloc, local_free, malloc_widget_value)
10584 (free_widget_value): Define here.
10585
10586 2008-06-09 Kenichi Handa <handa@m17n.org>
10587
10588 * font.h (Qascii_0): Extern it.
10589
10590 * font.c (Qascii_0): New variable.
10591 (syms_of_font): DEFSYM it.
10592 (font_open_by_name): If the registry "iso8859-1" fails, try also
10593 "ascii-0".
10594
10595 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10596
10597 2008-06-08 Kenichi Handa <handa@m17n.org>
10598
10599 * .gdbinit (xfont): New command.
10600
10601 2008-06-08 Andreas Schwab <schwab@suse.de>
10602
10603 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10604 * Makefile.in (menu.o): Update dependencies.
10605
10606 * Makefile.in (obj): Always add menu.o.
10607 * emacs.c (main): Always call syms_of_menu.
10608 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10609
10610 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10611
10612 * Makefile.in: Compile menu.c.
10613
10614 * lisp.h: Declare syms_of_menu.
10615
10616 * emacs.c (main): Call syms_of_menu.
10617
10618 * keyboard.h: Relocate platform-independent menu definitions from
10619 xmenu.c.
10620
10621 * menu.c: New file. Relocate platform-independent menu
10622 definitions from xmenu.c. Suggested by Adrian Robert.
10623
10624 * xmenu.c: Remove platform-independent menu definitions.
10625 (menu_items menu_items_inuse, menu_items_allocated)
10626 (menu_items_used, menu_items_n_panes)
10627 (menu_items_submenu_depth): Move to keyboard.h.
10628 (init_menu_items, finish_menu_items, unuse_menu_items)
10629 (discard_menu_items, restore_menu_items, save_menu_items)
10630 (grow_menu_items, push_submenu_start, push_submenu_end)
10631 (push_left_right_boundary, push_menu_pane, push_menu_item)
10632 (keymap_panes, single_keymap_panes, single_menu_item)
10633 (list_of_panes, list_of_items, find_and_call_menu_selection)
10634 (xmalloc_widget_value, free_menubar_widget_value_tree)
10635 (parse_single_submenu, digest_single_submenu)
10636 (update_submenu_strings): Move to menu.c.
10637
10638 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10639
10640 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10641
10642 2008-06-06 Miles Bader <miles@gnu.org>
10643
10644 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10645 face, not frame default.
10646
10647 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10648
10649 * window.c (pop_up_windows, pop_up_frames)
10650 (display_buffer_reuse_frames, Vpop_up_frame_function)
10651 (Vdisplay_buffer_function, Veven_window_heights)
10652 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10653 (Vspecial_display_function, Vsame_window_buffer_names)
10654 (Vsame_window_regexps, split_height_threshold)
10655 (Vsplit_window_preferred_function): Move those vars to window.el.
10656 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10657 (Fdisplay_buffer): Move those functions to window.el.
10658 (syms_of_window): Remove corresponding declarations.
10659 (display_buffer): New function.
10660 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10661 * dispnew.c (Flast_nonminibuf_frame): New function.
10662 * buffer.c (Fpop_to_buffer): Move to window.el.
10663
10664 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10665
10666 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10667
10668 2008-06-05 Kenichi Handa <handa@m17n.org>
10669
10670 * coding.c (detect_coding): Fix previous change.
10671 (detect_coding_system): Likewise.
10672
10673 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10674
10675 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10676
10677 * keymap.c (Vminibuffer_local_filename_must_match_map):
10678 Rename from Vminibuffer_local_must_match_filename_map.
10679 (syms_of_keymap):
10680 * minibuf.c (Fcompleting_read): Adjust accordingly.
10681 * commands.h: Rename declaration as well.
10682
10683 2008-06-05 Kenichi Handa <handa@m17n.org>
10684
10685 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10686 family name.
10687 (Ffont_put): Likewise.
10688
10689 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10690 current font-spec.
10691
10692 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10693 is unspecified.
10694
10695 * xfaces.c (realize_x_face): If the font-related face attributes
10696 are the same as those of default face, realize a new fontset from
10697 default->fontset.
10698 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10699
10700 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10701
10702 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10703 (move_it_in_display_line): New wrapper.
10704
10705 * window.c (window_scroll_pixel_based_preserve_x)
10706 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10707 (window_scroll_pixel_based, window_scroll_line_based):
10708 Use them to preserve column positions.
10709 (syms_of_window): Initialize them.
10710
10711 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10712 (HPOS . VPOS) pair.
10713
10714 * dispextern.h (move_it_in_display_line): Declare.
10715
10716 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10717
10718 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10719 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10720 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10721
10722 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10723
10724 * window.c (Fset_window_parameter): Doc fix.
10725 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10726
10727 2008-06-04 Joakim Verona <joakim@verona.se>
10728
10729 * window.h (struct window): Add new member window_parameters.
10730
10731 * window.c (Fwindow_parameters, Fwindow_parameter)
10732 (Fset_window_parameter): New defuns.
10733 (syms_of_window): Defsubr the new defuns.
10734 (make_window): Initialize window_parameters to nil.
10735
10736 2008-06-04 John Paul Wallington <jpw@pobox.com>
10737
10738 * eval.c (Fdefmacro): Doc fix.
10739
10740 2008-06-04 Kenichi Handa <handa@m17n.org>
10741
10742 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10743 Be sure to call setup_coding_system when we find a proper coding system.
10744 (detect_coding_system): Fix handling of coding->head_ascii.
10745
10746 2008-06-03 Andreas Schwab <schwab@suse.de>
10747
10748 * font.c (font_prop_validate_spacing): Fix last change.
10749
10750 2008-06-03 Kenichi Handa <handa@m17n.org>
10751
10752 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10753 (font_parse_fcname): Fix handling of unknown key.
10754
10755 * xfont.c (xfont_list): Try an alias.
10756
10757 * charset.c (char_charset): Return NULL if the arg charset_list is
10758 specified and C doesn't belong to any of them.
10759
10760 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10761
10762 * font.c (font_pixel_size): Don't take cdr of an integer.
10763
10764 2008-06-02 Jim Meyering <meyering@redhat.com>
10765
10766 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10767 * alloc.c (xfree): Return right away for a NULL arg.
10768 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10769 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10770 * mac.c (create_apple_event_from_event_ref): Likewise.
10771 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10772 Likewise.
10773 * doprnt.c (doprnt1): Likewise.
10774 * frame.c (frame): Likewise.
10775 * keyboard.c (wipe_kboard): Likewise.
10776 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10777 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10778 * term.c (tty_default_color_capabilities, maybe_fatal)
10779 (delete_tty): Likewise.
10780 * w16select.c (string): Likewise.
10781 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10782 * w32bdf.c (w32_free_bdf_font): Likewise.
10783 * w32fns.c (w32_unload_font): Likewise.
10784 * w32font.c (w32font_close): Likewise.
10785 * window.c (size_window): Likewise.
10786 * xselect.c (receive_incremental_selection): Likewise.
10787 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10788 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10789 * w32.c (stat): Likewise.
10790
10791 Remove useless if-before-free tests.
10792 * editfns.c (Fset_time_zone_rule): Likewise.
10793 * lread.c (nosuffix): Likewise.
10794 * ralloc.c (get_bloc): Likewise.
10795 * regex.c (reg_free): Likewise.
10796 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10797 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10798 * xsmfns.c (smc_save_yourself_CB): Likewise.
10799
10800 2008-06-02 Kenichi Handa <handa@m17n.org>
10801
10802 * font.c (font_find_for_lface): Handle float font size.
10803 (font_open_for_lface): Likewise.
10804
10805 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10806 comparing the properties.
10807
10808 2008-06-01 Jason Rumney <jasonr@gnu.org>
10809
10810 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10811 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10812 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10813 Don't add empty script list.
10814 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10815
10816 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10817
10818 * Makefile.in (dot, dotdot): Remove, update users.
10819 ".." has been used elsewhere in the file for a long time.
10820 (LIBXT_STATIC): Remove conditional based on unused variable.
10821
10822 2008-06-01 Miles Bader <miles@gnu.org>
10823
10824 * xfaces.c (Vface_remapping_alist): New variable.
10825 (syms_of_xfaces): Initialize it.
10826 (enum named_merge_point_kind): New type.
10827 (struct named_merge_point): Add `named_merge_point_kind' field.
10828 (push_named_merge_point): Make cycle detection respect different
10829 named-merge-point kinds.
10830 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10831 Remove face-name alias resolution.
10832 (lface_from_face_name): New definition using
10833 `lface_from_face_name_no_resolve'.
10834 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10835 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10836 (get_lface_attributes): New definition that layers face-remapping on
10837 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10838 (lookup_basic_face): New function.
10839 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10840 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10841 `get_lface_attributes'.
10842 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10843 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10844 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10845
10846 * xdisp.c (init_iterator): Pass base_face_id through
10847 `lookup_basic_face' when we actually use it as a face-id.
10848 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10849 DEFAULT_FACE_ID.
10850
10851 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10852 lookup the initial face-id.
10853
10854 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10855
10856 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10857
10858 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10859 (Fremove_text_properties): Fix typos in docstrings.
10860
10861 2008-05-31 Kenichi Handa <handa@m17n.org>
10862
10863 * font.c (font_list_entities): Fix the car part of data to be
10864 stored in the cache.
10865
10866 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10867
10868 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10869
10870 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10871 Add a `test' argument so another predicate than `equal' can be used.
10872 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10873 (map_char_table): Remove unused vars `c' and `i'.
10874 * lisp.h (Foptimize_char_table): Adjust declaration.
10875 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10876
10877 2008-05-30 Kenichi Handa <handa@m17n.org>
10878
10879 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10880 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10881 defined.
10882
10883 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10884
10885 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10886 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10887 frame-local settings for the same variable.
10888
10889 2008-05-30 Kenichi Handa <handa@m17n.org>
10890
10891 * fontset.c (Ffont_info): Move to font.c.
10892 (syms_of_fontset): Delete defsubr of Sfont_info.
10893
10894 * font.c (font_style_to_value, font_score): Delete casting of the
10895 args to xstcasecmp.
10896 (register_font_driver): Increment num_font_drivers only when
10897 registering the driver globally.
10898 (Ffont_info): Move from fontset.c. Handle a font object too.
10899 (syms_of_font): Defsubr Sfont_info.
10900
10901 2008-05-29 Kenichi Handa <handa@m17n.org>
10902
10903 * coding.h (enum define_coding_utf8_arg_index): New enum.
10904 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10905 coding_attr_utf_bom.
10906 (enum utf_bom_type): Rename from utf_16_bom_type.
10907 (struct utf_16_spec): Adjust for the above change.
10908 (struct coding_system): Add utf_8_bom in `spec' union.
10909
10910 * coding.c (CODING_UTF_8_BOM): New macro.
10911 (enum coding_category): Delete coding_category_utf_8, add
10912 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10913 coding_category_utf_8_sig.
10914 (CATEGORY_MASK_UTF_8): Delete it.
10915 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10916 (CATEGORY_MASK_UTF_8_SIG): New macros.
10917 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10918 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10919 CATEGORY_MASK_UTF_8_SIG.
10920 (CATEGORY_MASK_UTF_8): New macro.
10921 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10922 (detect_coding_utf_8): Check BOM.
10923 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10924 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10925 (encode_coding_utf_16): Likewise.
10926 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10927 (detect_coding, detect_coding_system): Handle utf-8-auto.
10928 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10929 (syms_of_coding): Fix setting up of Vcoding_category_table.
10930
10931 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10932
10933 * process.c (Faccept_process_output): If `millisec' is non-nil,
10934 `seconds' default to 0.
10935 (wait_reading_process_output): Also return non-nil if we read output
10936 from a non-running process.
10937
10938 2008-05-29 Jason Rumney <jasonr@gnu.org>
10939
10940 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10941 `raster' specified.
10942 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10943 in the uniscribe backend, but disallow any font that has no
10944 unicode subrange support.
10945
10946 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10947
10948 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10949 Fix typos in docstrings.
10950
10951 2008-05-29 Kenichi Handa <handa@m17n.org>
10952
10953 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10954 (Fx_family_fonts): Set frame correctly.
10955
10956 2008-05-28 Jason Rumney <jasonr@gnu.org>
10957
10958 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10959
10960 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10961
10962 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10963 calling build_annotations.
10964
10965 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10966
10967 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10968 (Fencode_coding_string):
10969 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10970 <latin-extra-code-table>: Fix typos in docstrings.
10971 (syms_of_coding) <coding-system-alist>: Doc fix.
10972 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10973
10974 2008-05-28 Kenichi Handa <handa@m17n.org>
10975
10976 * fontset.c (Ffont_info): Don't call font_close_object.
10977
10978 * font.c (font_parse_family_registry): Use Ffont_put to validate
10979 foundry and family.
10980 (font_delete_unmatched): Don't check spacing.
10981 (font_list_entities): Add spacing to the spec to list fonts.
10982
10983 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10984 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10985
10986 * coding.c (encode_coding_raw_text): Fix previous change.
10987 (encode_coding_object): When the dst_object is a buffer and is
10988 different from src_object, move gap to PT.
10989
10990 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10991
10992 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10993
10994 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10995
10996 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10997 all branches. Compute it differently.
10998
10999 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11000
11001 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
11002
11003 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11004 into "else if () ... else ...".
11005
11006 2008-05-27 Jason Rumney <jasonr@gnu.org>
11007
11008 * w32font.c (w32font_open_internal): Determine if glyph indices
11009 are likely to work here.
11010
11011 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
11012
11013 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11014 draw overlap glyphs with appropriate highlighting.
11015
11016 2008-05-27 Kenichi Handa <handa@m17n.org>
11017
11018 * xfont.c (xfont_open): Fix calculation of font->average_width.
11019
11020 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11021
11022 * casefiddle.c (casify_object): Try to guess better whether the
11023 argument is a byte or a char.
11024
11025 2008-05-26 Andreas Schwab <schwab@suse.de>
11026
11027 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11028 Always send multiples of format size.
11029
11030 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11031
11032 2008-05-26 Jason Rumney <jasonr@gnu.org>
11033
11034 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11035 (compute_metrics): Don't set failure if we just cleared the cache.
11036 (w32_weight_table): Remove unused variable.
11037 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11038 backwards compatibility.
11039
11040 2008-05-25 Kenichi Handa <handa@m17n.org>
11041
11042 * w32term.c (x_draw_glyph_string):
11043 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11044
11045 * xfaces.c: Delete unused function prototypes.
11046 (xstrlwr, font_frame): Delete them.
11047 (clear_face_cache): Delete unused variable.
11048
11049 * xftfont.c (xftfont_open): Delete unused variable.
11050 If underline_thickness is not 1, adjust underline_position.
11051
11052 * ftxfont.c (ftxfont_open): Delete unused variable.
11053
11054 * fontset.c (face_for_char): Optimize for the case of no charset
11055 property.
11056
11057 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11058 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11059 (otf_open, font_otf_capability, generate_otf_features)
11060 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11061 Comment out by surrounding "#if 0" and "#endif" for the moment.
11062 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11063 (syms_of_font): Codes for accessing above commented out.
11064
11065 2008-05-24 Eli Zaretskii <eliz@gnu.org>
11066
11067 * w32proc.c: Include dispextern.h.
11068
11069 * w32.c: Include dispextern.h.
11070
11071 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
11072
11073 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11074 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11075 Fix typos in docstrings.
11076
11077 2008-05-23 Jason Rumney <jasonr@gnu.org>
11078
11079 * xsmfns.c: Remove includes that are already included by config.h.
11080
11081 2008-05-23 Kenichi Handa <handa@m17n.org>
11082
11083 * charset.c (Qemacs, charset_emacs): New variables.
11084 (char_charset): Fix for non-Unicode characters.
11085 (syms_of_charset): Define charset_emacs.
11086
11087 * w32term.c (x_draw_glyph_string): Be sure to update
11088 s->underline_thickness and s->underline_position. Be sure to draw
11089 underline within the current line area.
11090
11091 * xterm.c (x_draw_glyph_string): Be sure to update
11092 s->underline_thickness and s->underline_position. Be sure to draw
11093 underline within the current line area.
11094
11095 * fontset.c: Delete unused variables and add casting for char *
11096 throughout the file.
11097 (fontset_font): Try the fallback fonts of the current fontset
11098 before consulting the default fontset.
11099
11100 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11101
11102 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11103
11104 2008-05-22 Jason Rumney <jasonr@gnu.org>
11105
11106 * font.c: Don't include strings.h.
11107
11108 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11109
11110 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11111 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11112 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11113 to call xstrcasecmp.
11114
11115 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11116
11117 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11118
11119 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11120
11121 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11122
11123 2008-05-22 Kenichi Handa <handa@m17n.org>
11124
11125 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11126
11127 * font.c (font_prop_validate_style): Adjust for the format
11128 change of font_style_table.
11129
11130 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11131 two args.
11132
11133 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11134 two args.
11135
11136 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11137
11138 * minibuf.c (keys_of_minibuf): Delete.
11139 * lisp.h (keys_of_minibuf): Delete.
11140 * emacs.c (main): Don't call keys_of_minibuf.
11141
11142 2008-05-22 Kenichi Handa <handa@m17n.org>
11143
11144 * ftfont.c (ftfont_resolve_generic_family): Rename from
11145 ftfont_list_generic_family. Return a single family for each
11146 generic family.
11147 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11148 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11149 Call font_add_log.
11150 (ftfont_match): Call font_add_log.
11151
11152 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11153 (FONT_DEBUG): Define it.
11154 (font_add_log): Extern it.
11155 (font_assert): Rename from xassert.
11156
11157 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11158 (xfont_list_family): Call font_add_log.
11159 (xfont_match): Likewise.
11160 (memq_no_quit): Delete.
11161
11162 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11163 call of Ffont_xlfd_name.
11164
11165 * xfaces.c (struct table_entry, slant_table, weight_table)
11166 (swidth_table): Move to font.c.
11167
11168 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11169 xassert are changed to font_assert. Delete many unused variables.
11170 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11171 New variables.
11172 (struct table_entry): Move from xfaces.c and modified.
11173 (weight_table, slant_table, width_table): Move from xfaces.c and
11174 contents adjusted for the change of struct table_entry.
11175 (font_style_to_value, font_style_symbolic): Adjust for the
11176 format change of font_style_table.
11177 (font_parse_family_registry): Don't overwrite existing foundry and
11178 family of font_spec.
11179 (font_score): Fix calculation of diff for sizes.
11180 (font_sort_entites): Call font_add_log.
11181 (font_delete_unmatched): Return a newly created list.
11182 (font_list_entities): Fix previous change. Call font_add_log.
11183 (font_matching_entity, font_open_entity, font_close_entity):
11184 Call font_add_log.
11185 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11186 (Finternal_set_font_style_table): Delete.
11187 (BUILD_STYLE_TABLE): New macro.
11188 (build_style_table): New function.
11189 (Vfont_log, font_log_env_checked): New variables.
11190 (font_add_log): New function.
11191 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11192 Declare Lisp variables "font-weight-table", "font-slant-table",
11193 "font-width-table", and "font-log". Initialize font_style_table.
11194
11195 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11196
11197 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11198
11199 2008-05-21 Seiji Zenitani <zenitani@mac.com>
11200 Ryo Yoshitake <ryo@shiftmode.net>
11201
11202 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11203 (Vframe_alpha_lower_limit): New variable.
11204 (x_set_alpha): New function.
11205
11206 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11207
11208 * xfns.c (x-create-frame, Qalpha):
11209 Initialize the frame parameter `alpha'.
11210 * xterm.c (OPAQUE, OPACITY): New.
11211 (x_set_frame_alpha): New function.
11212 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11213
11214 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11215 * w32fns.c (w32_frame_parm_handlers): Likewise.
11216
11217 2008-05-20 Jason Rumney <jasonr@gnu.org>
11218
11219 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11220 truetype fonts to opentype list.
11221
11222 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
11223
11224 * fontset.c (Ffontset_info): Doc fix.
11225 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11226 <ignore-relative-composition>: Fix typos in docstrings.
11227
11228 * font.c (syms-of-font) <font-encoding-alist>:
11229 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11230 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11231 (Ffont_otf_alternates): Doc fixes.
11232
11233 2008-05-20 Kenichi Handa <handa@m17n.org>
11234
11235 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11236 font.h through out the file.
11237 (FONT_DRIVERS): Rename from FONTOBJ.
11238 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11239 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11240
11241 * emacs.c (main): Call syms_of_font unconditionally.
11242
11243 * font.h (find_font_encoding): Extern it.
11244
11245 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11246 fontset.c.
11247 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
11248 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11249 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11250 only when HAVE_WINDOW_SYSTEM is defined.
11251 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11252 when HAVE_WINDOW_SYSTEM is defined.
11253
11254 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11255 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11256
11257 * xfaces.c: Include font.h unconditionally.
11258 (merge_face_ref, merge_face_vectors)
11259 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11260
11261 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11262
11263 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11264 indirect_variable.
11265 * eval.c (lisp_indirect_variable): New fun.
11266 (Fuser_variable_p): Use it.
11267
11268 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11269
11270 * lisp.h (indirect_variable):
11271 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11272 Use Lisp_Symbol pointers rather than Lisp_Object.
11273 Adjust callers.
11274 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11275 To this end, change calling-convention.
11276
11277 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11278 if some non-hidden buffers are selected by string&pred.
11279
11280 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * process.c (wait_reading_process_output): Always check status
11283 when in batch mode.
11284
11285 2008-05-19 Kenichi Handa <handa@m17n.org>
11286
11287 * font.c (font_list_entities): Fix handling of cache.
11288 (font_matching_entity): Likewise.
11289
11290 * ftfont.c (cs_iso8859_1): Delete.
11291 (ft_face_cache): New variable.
11292 (struct ftfont_info): New member fc_charset_idx.
11293 (ftfont_build_basic_charsets): Delete.
11294 (fc_charset_table): New variable.
11295 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11296 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11297 Callers changed.
11298 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11299 (ftfont_spec_pattern): New argument fc_charset_idx.
11300 Check registry more rigidly. Change callers.
11301 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11302 change of :font-entity property of the font.
11303
11304 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11305 property of the font.
11306
11307 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
11308
11309 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11310 (Funencodable_char_position, Fcheck_coding_systems_region)
11311 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11312 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11313 (Ffind_operation_coding_system, Fset_coding_system_priority)
11314 (Fcoding_system_eol_type): Doc fixes.
11315
11316 2008-05-17 Glenn Morris <rgm@gnu.org>
11317
11318 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11319
11320 2008-05-16 Eli Zaretskii <eliz@gnu.org>
11321
11322 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11323 and st_gid.
11324
11325 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11326 HAVE_WINDOW_SYSTEM is not defined.
11327
11328 * xfaces.c (merge_face_ref, merge_face_vectors)
11329 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11330 HAVE_WINDOW_SYSTEM is defined.
11331 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11332
11333 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11334
11335 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11336
11337 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11338
11339 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11340
11341 2008-05-15 Kenichi Handa <handa@m17n.org>
11342
11343 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11344 preference.
11345
11346 2008-05-15 Glenn Morris <rgm@gnu.org>
11347
11348 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11349
11350 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
11351
11352 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11353 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11354
11355 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11356
11357 2008-05-15 Kenichi Handa <handa@m17n.org>
11358
11359 * ftfont.c (ftfont_list): Downcase family name to check generic
11360 families.
11361
11362 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11363 font-spec for QCfont value.
11364
11365 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11366 buffer. Check the return value of it.
11367
11368 2008-05-14 Jason Rumney <jasonr@gnu.org>
11369
11370 * w32term.c (w32_get_glyph_overhangs): Remove.
11371 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11372
11373 2008-05-14 Kenichi Handa <handa@m17n.org>
11374
11375 * font.c (font_prop_validate): Make nil a valid value.
11376 (font_clear_cache): Check if the cached vector of entities is nil
11377 or not.
11378
11379 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11380
11381 * emacs.c (main_thread): Conditionalize on
11382 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11383 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11384
11385 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11386 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11387 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11388
11389 2008-05-14 Kenichi Handa <handa@m17n.org>
11390
11391 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11392 has no corresponding coding system.
11393
11394 2008-05-14 Jason Rumney <jasonr@gnu.org>
11395
11396 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11397
11398 * w32font.h (w32font_open_internal): Update declaration.
11399
11400 * w32font.c (w32font_open_internal): Change last argument from
11401 w32font_info struct to font object. Fill in font object from
11402 font_entity. Get Outline metrics if possible. Use them to
11403 calculate underline position and thickness. Use xlfd name as name
11404 property. Don't set codepage.
11405 (w32font_open): Pass font_object to w32font_open_internal. Don't
11406 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11407 (w32font_draw): Use s->font.
11408 (clear_cached_metrics): Don't clear non-existent blocks.
11409
11410 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11411 font was not found.
11412 (x_draw_glyph_string): Use underline position and thickness from font.
11413
11414 * w32uniscribe.c (uniscribe_open): Pass font_object to
11415 w32font_open_internal.
11416
11417 2008-05-14 Kenichi Handa <handa@m17n.org>
11418
11419 These changes are to delete all legacy font-handling codes, and
11420 make Emacs use only font-backends.
11421
11422 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11423 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11424
11425 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11426
11427 * charset.h (Vcharset_non_preferred_head)
11428 (Vcurrent_iso639_language): Extern them.
11429
11430 * charset.c (Vcharset_non_preferred_head): New variable.
11431 (Vcurrent_iso639_language): New variable.
11432 (syms_of_charset): Declare it as a Lisp variable.
11433 (char_charset): Don't check non preferred charsets. As a last
11434 resort, return charset_unicode.
11435 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11436
11437 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11438 conditionals. Don't check enable_font_backend. Delete all codes
11439 used only when USE_FONT_BACKEND is not defined.
11440
11441 * dispextern.h (struct glyph_string): Change type of `font' to
11442 `struct font *'.
11443 (struct glyph_string): New member underline_position and
11444 underline_thickness.
11445 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11446 (struct face): Change type of `font' to `struct font *'. Remove
11447 members `font_name', `font_info_id'.
11448 (per_char_metric, encode_char): Delete externs.
11449 (calc_pixel_width_or_height): Adjust the prototype.
11450
11451 * emacs.c (enable_font_backend): Delete extern.
11452 (main): Don't set enable_font_backend. Don't check the command
11453 line argument "-disable-font-backend".
11454
11455 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11456 (enum font_property_index): New members FONT_DPI_INDEX,
11457 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11458 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11459 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11460 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11461 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11462 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11463 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11464 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11465 (struct font_spec, struct font_entity): New structs.
11466 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11467 (struct font): Many members from old "struct font_info" moved to
11468 here. Members font and entity deleted.
11469 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11470 the new font-related objects.
11471 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11472 (CHECK_FONT_GET_OBJECT): Likewise.
11473 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11474 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11475 (struct font_driver): New members case_sensitive anc check. Type
11476 of the member list and open changed.
11477 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11478 (font_symbolic_width, font_find_object, font_get_spec)
11479 (font_set_lface_from_name): Delete extern.
11480 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11481
11482 * font.c: Include <strings.h>.
11483 (enable_font_backend): Delete it.
11484 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11485 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11486 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11487 (null_string): Delete it.
11488 (null_vector): Make it static.
11489 (font_family_alist): Delete it.
11490 (Qnormal): Extern it.
11491 (QCextra, QClanguage): Delete it.
11492 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11493 (font_make_spec, font_make_entity, font_make_object)
11494 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11495 the string. Callers changed.
11496 (font_pixel_size): Adjusted for the format change of font-related
11497 objects.
11498 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11499 (font_style_to_value, font_style_symbolic): New function.
11500 (build_font_family_alist): Delete it.
11501 (font_registry_charsets): Use Fassoc_string instead of
11502 assq_no_quit.
11503 (font_prop_validate_symbol): Don't return null_string.
11504 (font_prop_validate_style): Adjusted for the change of
11505 style-related values in a font vector.
11506 (font_property_table): Delete entries for QClanguage and
11507 QCantialias, add entries for QCavgwidth.
11508 (get_font_prop_index): Delete the 2nd argument FROM.
11509 (font_prop_validate): Arguments changed.
11510 (font_put_extra): Adjusted for the change of font-related objects.
11511 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11512 (font_parse_fcname, font_unparse_fcname)
11513 (font_prepare_composition): Likewise.
11514 (font_parse_family_registry): Renamed from font_merge_old_spec.
11515 (otf_open): Delete the 1st arg entity.
11516 (font_otf_capability): Adjusted for the above change.
11517 (font_score): New arg alternate_families. Adjusted for the change
11518 of font-related objects.
11519 (font_sort_entites): New arg best_only.
11520 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11521 Delete them.
11522 (font_match_p): Check alternate families.
11523 (font_find_object): Delete it.
11524 (font_check_object): New function.
11525 (font_clear_cache): Adjusted for the change of font-related objects.
11526 (font_delete_unmatched): New arg.
11527 (font_list_entities): Call font_driver->list with a spec that
11528 doesn't specify style-related properties.
11529 (font_matching_entity): Arguments changed. Caller changed.
11530 (font_open_entity): Adjusted for the change of font-related objects.
11531 (font_close_object, font_has_char, font_encode_char)
11532 (font_get_name, font_get_spec): Likewise.
11533 (font_spec_from_name, font_clear_prop, font_update_lface):
11534 New functions.
11535 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11536 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11537 (font_at): Adjusted for the change of font-related objects.
11538 (font_range): New function.
11539 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11540 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11541 (Fcopy_font_spec, Fmerge_font_spec): New function.
11542 (Ffont_family_list): Renamed from list-families.
11543 (Finternal_set_font_style_table): Arguments changed.
11544 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11545 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11546 change of font-related objects.
11547 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11548
11549 * fontset.h (struct font_info): Delete it. Most members go to
11550 struct font.
11551 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11552 (enum FONT_SPEC_INDEX): Delete it.
11553 (font_info, list_fonts_func, load_font_func, query_font_func)
11554 (set_frame_fontset_func, find_ccl_program_func)
11555 (get_font_repertory_func, new_fontset_from_font_name): Delete
11556 externs.
11557 (fontset_from_font_name): Extern it.
11558 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11559 (FONT_INFO_FROM_FACE): Deleted.
11560 (face_for_font): Adjust prototype.
11561
11562 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11563 conditionals. Don't check enable_font_backend. Delete all codes
11564 used only when USE_FONT_BACKEND is not defined.
11565 (get_font_info_func, list_font_func, load_font_func)
11566 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11567 (get_font_repertory_func): Delete them.
11568 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11569 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11570 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11571 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11572 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11573 (fontset_compare_rfontdef): New function.
11574 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11575 rfont-defs by qsort. Adjusted for the change of font-group vector.
11576 (load_font_get_repertory): Deleted.
11577 (fontset_find_font): Use new macros to ref/set elements of
11578 font-def and rfont-def.
11579 (fontset_font): Fix the timing of remembering that no font for C.
11580 (free_face_fontset): Do nothing if the face has no fontset.
11581 (face_suitable_for_char_p): Use new macros to ref/set elements of
11582 rfont-def.
11583 (face_for_char): Likewise. Call face_for_char with font_object.
11584 (fs_load_font): Delete. Delete #pragma surrounding it.
11585 (fs_query_fontset): Use strcasecmp instead of strcmp.
11586 (generate_ascii_font_name): Adjusted for the format change of
11587 font-spec.
11588 (Fset_fontset_font): Likewise. Use new macros to set elements of
11589 font-def.
11590 (Fnew_fontset): Use font_unparse_xlfd to generate
11591 FONTSET_ASCII (fontset).
11592 (new_fontset_from_font_name): Deleted.
11593 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11594 a fontset is already created for the font. FIx updating of
11595 Vfontset_alias_alist.
11596 (fontset_ascii_font): Deleted.
11597 (Ffont_info): Adjusted for the format change of font-spec.
11598 (Finternal_char_font): Likewise.
11599 (Ffontset_info): Likewise.
11600 (syms_of_fontset): Don't check load_font_func.
11601
11602 * fns.c (internal_equal): Handle PREV_FONT.
11603
11604 * frame.h: Delete USE_FONT_BACKEND conditional.
11605
11606 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11607 conditionals. Don't check enable_font_backend. Delete all codes
11608 used only when USE_FONT_BACKEND is not defined.
11609 (x_set_font): Call x_new_font, not x_new_fontset2.
11610 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11611 already set for the frame.
11612
11613 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11614 a font-entity by font_make_entity. Use font_intern_prop instead
11615 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11616 font property. If a font is scalable, set avgwidth property to 0.
11617 Set font-entity property by font_put_extra.
11618 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11619 (ffont_driver): Adjusted for the change of struct font_driver.
11620 (ftfont_spec_pattern): New function.
11621 (ftfont_list): Return a list, not vector.
11622 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11623 (ftfont_list_family): Don't downcase names.
11624 (ftfont_free_entity): Deleted.
11625 (ftfont_open): Return a font-object. Adjusted for the change of
11626 struct font. Get underline_thickness and underline_position from
11627 font property. Don't update dpyinfo->smallest_font_height and
11628 dpyinfo->smallest_char_width.
11629 (ftfont_close): Don't free `struct font'.
11630 (ftfont_has_char): Adjusted for the format change of font-entity.
11631 (ftfont_encode_char, ftfont_text_extents): Likewise.
11632
11633 * ftxfont.c (ftxfont_list): Return a list, not vector.
11634 (ftxfont_open): Return a font-object. Adjusted for the change of
11635 struct font. Get underline_thickness and underline_position from
11636 font property. Don't update dpyinfo->smallest_font_height and
11637 dpyinfo->smallest_char_width.
11638 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11639 (ftxfont_draw): Adjusted for the change of struct font.
11640
11641 * image.c (image_ascent): Don't include "charset.h". Include
11642 "character.h" and "font.h".
11643
11644 * lisp.h (enum pvec_type): New member PREV_FONT.
11645 (Fassoc_string): EXFUN it.
11646
11647 * print.c: Include font.h.
11648 (print_object): Handle font-related objects.
11649
11650 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11651 conditionals. Don't check enable_font_backend. Delete all codes
11652 used only when USE_FONT_BACKEND is not defined.
11653 (handle_auto_composed_prop): Do nothing if it->f is not on a
11654 window system. Check how many following characters can be
11655 displayed by the same font.
11656 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11657 'struct font *'.
11658 (get_char_face_and_encoding): Assign the whole encoding task to
11659 the `encode-char' method of a font driver.
11660 (fill_composite_glyph_string): Adjusted for the change of `struct
11661 face' and `struct glyph_string'.
11662 (fill_glyph_string): Likewise.
11663 (get_per_char_metric): Arguments changed.
11664 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11665 and `struct glyph_string'.
11666 (produce_stretch_glyph, calc_line_height_property)
11667 (x_produce_glyphs): Likewise.
11668
11669 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11670 conditionals. Don't check enable_font_backend. Delete all codes
11671 used only when USE_FONT_BACKEND is not defined. Use
11672 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11673 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11674 (Qp): Extern them.
11675 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11676 Deleted.
11677 (struct font_name): Deleted.
11678 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11679 (compare_fonts_by_sort_order): New function.
11680 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11681 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11682 Deleted.
11683 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11684 compare_fonts_by_sort_order.
11685 (Fx_font_family_list): Call Ffont_family_list.
11686 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11687 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11688 (face_symbolic_slant, face_symbolic_swidth)
11689 (split_font_name_into_vector, build_font_name_from_vector)
11690 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11691 (font_rescale_ratio, split_font_name, build_font_name)
11692 (free_font_names, sort_fonts, x_face_list_fonts)
11693 (face_font_available_p, sorted_font_list, cmp_font_names)
11694 (font_list_1, concat_font_list, font_list, remove_duplicates):
11695 Deleted.
11696 (Fx_list_fonts): Use Ffont_list.
11697 (LFACE_AVGWIDTH): Deleted.
11698 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11699 by FONTP.
11700 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11701 (set_lface_from_font_name): Delete it.
11702 (set_lface_from_font): Renamed from
11703 set_lface_from_font_and_fontset. Caller changed. Don't set
11704 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11705 for face.
11706 (merge_face_vectors): Copy font-spec if necessary.
11707 Clear properties of the font-spec if necessary.
11708 (merge_face_ref): Clear properties of the font-spec if necessary.
11709 (Finternal_set_lisp_face_attribute): Likewise.
11710 (set_font_frame_param): Use font_load_for_lface to load a
11711 font-object, and call Fmodify_frame_parameters with it.
11712 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11713 font name by Ffont_xlfd_name.
11714 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11715 QCslant, and QCwidth.
11716 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11717 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11718 Compare fonts by EQ.
11719 (lookup_non_ascii_face): Deleted.
11720 (face_for_font): The 2nd argument changed.
11721 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11722 Check atomic font properties by case insensitive.
11723 (realize_non_ascii_face): Set face->overstrike correctly.
11724 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11725 (dump_realized_face): Get font name from
11726 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11727
11728 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11729 conditionals. Don't check enable_font_backend. Delete all codes
11730 used only when USE_FONT_BACKEND is not defined.
11731 (xic_create_xfontset): Original code deleted and renamed from
11732 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11733 (x_make_gc): Don't set GCFont in GCs.
11734 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11735 opened by "fixed".
11736 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11737 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11738 get_font_repertory_func.
11739
11740 * xfont.c: Include <stdlib.h> and "ccl.h".
11741 (struct xfont_info): New structure.
11742 (xfont_query_font): Deleted.
11743 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11744 moved from xterm.c.
11745 (xfont_driver): Adjusted for the change of struct font_driver.
11746 (compare_font_names): New function.
11747 (xfont_list_pattern): Sort font names case insensitively. Make
11748 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11749 (xfont_list): Return a list, not vector.
11750 (xfont_match): If the font doesn't have QCname property, generate
11751 a name from the other font properties.
11752 (xfont_open): Return a font-object. Adjusted for the change of
11753 struct font. Get underline_thickness and underline_position from
11754 font property. Don't update dpyinfo->smallest_font_height and
11755 dpyinfo->smallest_char_width.
11756 (xfont_close): Don't free struct font.
11757 (xfont_prepare_face): Adjusted for the change of struct font.
11758 (xfont_done_face): Deleted.
11759 (xfont_has_char): Adjusted for the change of struct font.
11760 (xfont_encode_char, xfont_draw): Likewise.
11761 (xfont_check): New function.
11762
11763 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11764 callback function.
11765 (xftfont_match): Adjusted for the format change of font-entity.
11766 (xftfont_open): Adjusted for the format change of font-entity and
11767 font-object. Adjusted for the change of struct font. Return a
11768 font-object. Don't update dpyinfo->smallest_font_height and
11769 dpyinfo->smallest_char_width.
11770 (xftfont_close): Block input while calling XftFontClose.
11771 (xftfont_prepare_face): Don't block input while calling
11772 xftfont_get_colors. Adjusted for the change of struct font.
11773 (xftfont_shape): Return value of error case fixed.
11774
11775 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11776
11777 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11778 conditionals.
11779 (FONT_WIDTH): Return (f)->max_width.
11780 (struct x_display_info): Delete member `font'.
11781 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11782 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11783 (struct x_output): Change type of `font' to `struct font *'.
11784
11785 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11786 conditionals. Don't check enable_font_backend. Delete all codes
11787 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11788 (x_per_char_metric, x_encode_char): Deleted.
11789 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11790 (x_compute_glyph_string_overhangs): Adjusted for the change of
11791 `struct face'.
11792 (x_draw_glyph_string_foreground)
11793 (x_draw_composite_glyph_string_foreground): Likewise.
11794 (x_draw_glyph_string): Likewise. Use font->underline_position and
11795 font->underline_thickness.
11796 (x_new_font): Renamed from x_new_fontset2.
11797 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11798 (x_check_font): Call `check' method of a font driver.
11799 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11800 (x_query_font, x_get_font_repertory): Deleted.
11801 (x_find_ccl_program): Renamed and moved to xfont.c.
11802 (x_redisplay_interface): Adjusted for the change of `struct
11803 redisplay_interface'.
11804
11805 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11806 conditionals. Don't check enable_font_backend. Delete all codes
11807 used only when USE_FONT_BACKEND is not defined. Surround non-used
11808 code by "#ifdef OLD_FONT" and "endif".
11809 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11810
11811 * w32font.h (struct w32font_info): New member.
11812 (FONT_COMPAT): New macro.
11813 (w32font_open_internal): Prototype adjusted.
11814
11815 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11816 OLD_FONT" and "endif".
11817
11818 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11819 conditionals. Don't check enable_font_backend. Delete all codes
11820 used only when USE_FONT_BACKEND is not defined.
11821 (w32font_open): Return a font-object. Make a font-object by
11822 font_make_object. Adjusted for the change of struct w32font_info.
11823 (w32font_close): Don't free struct font. Adjusted for the change
11824 of struct w32font_info.
11825 (w32font_encode_char, w32font_text_extents, w32font_draw):
11826 Adjusted for the change of struct w32font_info.
11827 (w32font_draw): Likewise.
11828 (w32font_list_internal): Return a list, not vector.
11829 (w32font_open_internal): Change the 4th arg to font-object.
11830 Adjusted for the change of struct w32font_info and font-object format.
11831 (add_font_name_to_list): Don't downcase names.
11832 (w32_enumfont_pattern_entity): Make a font-entity by
11833 font_make_entity. Adjusted for the format change of font-entity.
11834 Use FONT_SET_STYLE to set a style-related font property. If a
11835 font is scalable, set avgwidth property to 0. Set font-entity
11836 property by font_put_extra.
11837 (font_matches_spec): Adjusted for the format change of font-entity.
11838 (w32_weight_table, w32_decode_weight): New variables.
11839 (w32_encode_weight): New function.
11840 (fill_in_logfont): Adjusted for the format change of font-spec.
11841 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11842 weight value.
11843 (w32font_driver): Adjusted for the change of struct font_driver.
11844
11845 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11846 conditionals. Don't check enable_font_backend. Surround non-used
11847 code by "#ifdef OLD_FONT" and "endif".
11848 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11849 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11850
11851 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11852 conditionals. Don't check enable_font_backend. Delete all codes
11853 used only when USE_FONT_BACKEND is not defined. Surround non-used
11854 code by "#ifdef OLD_FONT" and "endif".
11855
11856 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11857 (uniscribe_open): Return value changed to font-object.
11858 Adjusted for the format change of font-object.
11859 (uniscribe_otf_capability): Adjusted for the change of struct font.
11860 (add_opentype_font_name_to_list): Don't downcase names.
11861 (uniscribe_font_driver): Adjusted for the change of struct
11862 font_driver.
11863
11864 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11865
11866 * dispnew.c (update_frame_1): Check if tty output is still valid
11867 before flushing it.
11868
11869 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11870
11871 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11872 to Gtk+ menus.
11873
11874 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * dired.c (file_name_completion): Tweak the code so as to always do it
11877 in a single pass. Tighten the scope of some variables.
11878
11879 * dired.c (Qdefault_directory): New var.
11880 (file_name_completion): Use it instead of Fexpand_file_name.
11881 (syms_of_dired): Initialize it.
11882
11883 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11884
11885 * fileio.c (double_dollars): Remove dead code.
11886
11887 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11888
11889 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11890 Mention w32-get-true-file-attributes in doc string.
11891
11892 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11893
11894 2008-05-09 Glenn Morris <rgm@gnu.org>
11895
11896 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11897 2008-04-23.
11898
11899 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11900
11901 Support for reporting owner and group of each file on MS-Windows:
11902 * dired.c (stat_uname, stat_gname): New functions, with special
11903 implementation for w32.
11904 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11905
11906 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11907 (dflt_group_name): New static variable.
11908 (dflt_group): Rename from the_group.
11909 (init_user_info): Init dflt_group fields. Get user's group name
11910 from LookupAccountSid.
11911 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11912 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11913 New initialization states.
11914 (globals_of_w32): Initialize them to zero. Initialize the default
11915 group name to "None".
11916 (GetFileSecurity_Name): New global var, the name of the function
11917 to call for GetFileSecurity.
11918 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11919 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11920 (get_file_security, get_security_descriptor_owner)
11921 (get_security_descriptor_group, is_valid_sid)
11922 (get_file_security_desc, get_rid, get_name_and_id)
11923 (get_file_owner_and_group): New functions.
11924 (stat): Use get_file_security_desc and get_file_owner_and_group to
11925 report the owner and primary group of each file. Don't ignore the
11926 high 32 bits of file's size, now that st_size is 64-bit wide.
11927 Fix test when to get true file attributes.
11928 (init_user_info): Use get_rid instead of equivalent inline code.
11929 (fstat): Don't ignore the high 32 bits of file's size.
11930
11931 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11932
11933 * image.c (png_load): Use correct bit-depth for setting background
11934 color.
11935
11936 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11937
11938 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11939 epa-hook.elc.
11940
11941 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11942
11943 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11944
11945 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11946
11947 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11948 because the original parameters are in pure storage now.
11949 (mac_window): Remove unused params. Update callers.
11950
11951 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11952
11953 * lread.c (substitute_object_recurse): Use lower-level primitives.
11954 Don't signal errors when traversing sub-char-tables.
11955 Don't loop over all the possible characters when traversing char-tables.
11956
11957 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11958 just like we do in print.c.
11959
11960 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11961
11962 * minibuf.c (Ftry_completion): Remove code left over from when we used
11963 scmp instead of Fcompare_strings.
11964
11965 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11966
11967 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11968
11969 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11970
11971 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11972 Create bitmap context in native byte order.
11973
11974 * macterm.c (XDrawLine)
11975 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11976 context in native byte order.
11977
11978 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11979
11980 * config.in: Regenerate.
11981
11982 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11983 New definitions for Image I/O support.
11984 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11985 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11986 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11987 (mac_data_provider_release_data, image_load_image_io)
11988 [USE_MAC_IMAGE_IO]: New functions.
11989 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11990 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11991 (init_image_func_pointer) [MAC_OSX]: Remove function.
11992 (image_load_quartz2d) [MAC_OSX]: Check availability of
11993 CGImageCreateWithPNGDataProvider at compile time.
11994 Use lowercase `false' for boolean constant.
11995 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11996 Use image_load_image_io.
11997 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11998 Don't check MyCGImageCreateWithPNGDataProvider.
11999 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12000 Don't call init_image_func_pointer.
12001
12002 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12003
12004 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12005 Make variable non-static.
12006 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12007 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12008
12009 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12010 (RED_FROM_ULONG): Mask off higher bits.
12011 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12012
12013 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12014 Include AvailabilityMacros.h.
12015 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12016 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12017
12018 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12019
12020 * chartab.c (Fset_char_table_range): If range is t, really set all
12021 chars to that value.
12022
12023 2008-05-03 Eli Zaretskii <eliz@gnu.org>
12024
12025 * dired.c (Ffile_attributes): Don't allow the device number become
12026 negative.
12027
12028 2008-05-02 Daiki Ueno <ueno@unixuser.org>
12029
12030 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12031
12032 2008-05-02 Juri Linkov <juri@jurta.org>
12033
12034 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12035 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12036 DEFAULT argument as a list of default values in docstrings.
12037
12038 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
12039
12040 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12041
12042 2008-05-01 Martin Rudalics <rudalics@gmx.at>
12043
12044 * dispnew.c (change_frame_size_1): Preserve small windows when
12045 shrinking frames by calling set_window_height|width with third
12046 arg 2.
12047
12048 * window.h (struct window): Replace field too_small_ok by field
12049 resize_proportionally.
12050
12051 * window.c (make_window): Initialize resize_proportionally.
12052 (enlarge_window): Temporarily set resize_proportionally to make
12053 sure that shrink_windows does scale the window proportionally.
12054 (shrink_windows): When window has resize_proportionally set try
12055 to shrink it proportionally by stealing from other windows.
12056 (struct saved_window, Fset_window_configuration)
12057 (compare_window_configurations): Handle resize_proportionally.
12058 (WINDOW_TOTAL_SIZE): New macro.
12059 (window_min_size, shrink_windows, size_window): Use it.
12060 (check_min_window_sizes): Remove. Invalid values of
12061 window-min-height|width are handled by window_min_size_2 now.
12062 (size_window, Fsplit_window, enlarge_window)
12063 (adjust_window_trailing_edge, grow_mini_window): Don't call
12064 check_min_window_sizes.
12065 (window_min_size_2, window_min_size_1, window_min_size):
12066 New argument safe_p for retrieving "safe" minimum sizes.
12067 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12068 (adjust_window_trailing_edge, grow_mini_window):
12069 Adjust arguments of window_min_size... functions.
12070 (shrink_windows): Argument min_size removed. New argument
12071 safe_p allows shrinking windows to their safe minimum sizes.
12072 Calculate minimum size and decide whether a window shall be
12073 deleted for each window individually.
12074 (size_window): When nodelete_p equals 2, tell shrink_windows to
12075 delete windows only if their new minimum size is no more safe.
12076 (shrink_window_lowest_first): Call window_min_size_1 to make
12077 sure to preserve modeline of bottom-most window when resizing
12078 the minibuffer.
12079 (Fset_window_configuration, Fcurrent_window_configuration)
12080 (compare_window_configurations): Do not handle
12081 window-min-height|width any more.
12082 (syms_of_window): Clarify window-min-height|width doc-strings.
12083
12084 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12085
12086 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12087 some more. Copy some of the code from Ftry_completions.
12088 Remove special case code that dates back to initial revision when the
12089 slash was only added when necessary and that can't trigger nowadays.
12090
12091 2008-04-27 Kenichi Handa <handa@m17n.org>
12092
12093 * font.c (font_prop_validate): Signal `error' instead of `font'.
12094
12095 2008-04-29 Jason Rumney <jasonr@gnu.org>
12096
12097 * w32fns.c (Fw32_battery_status): New defun.
12098 (syms_of_w32fns): Defsubr it.
12099
12100 2008-04-28 Andreas Schwab <schwab@suse.de>
12101
12102 * dired.c (file_name_completion): Fix another mixing of encoded
12103 and decoded names.
12104
12105 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
12106
12107 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12108
12109 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
12110
12111 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12112
12113 2008-04-27 Andreas Schwab <schwab@suse.de>
12114
12115 * dired.c (file_name_completion): Fix inappropriate mixing of
12116 encoded and decoded names.
12117
12118 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12119
12120 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12121
12122 2008-04-26 Eli Zaretskii <eliz@gnu.org>
12123
12124 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12125 2008-03-31, it's not needed anymore with `struct stat' definition
12126 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12127 for the same reasons.
12128
12129 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12130
12131 * m/sparc.h: Additional redefinitions for GNU/Linux.
12132
12133 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12134
12135 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12136 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12137 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12138 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12139 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12140 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12141 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12142 Likewise.
12143
12144 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12145 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12146 (mac_ax_number_of_characters): Add externs.
12147 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12148 [USE_MAC_TSM]: Likewise.
12149 (mac_handle_text_input_event) [MAC_OSX]:
12150 Handle kEventTextInputOffsetToPos for no active input area case.
12151 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12152 (mac_handle_document_access_event)
12153 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12154 (install_application_handler) [MAC_OSX]: Register handlers for
12155 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12156 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12157 Register mac_handle_document_access_event.
12158
12159 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12160 Make functions non-static.
12161
12162 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12163
12164 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12165 (read_file_name_completion_ignore_case, insert_default_directory)
12166 (Qdefault_directory): Move to minibuffer.el.
12167 (Fread_file_name): Call the new `read-file-name' instead.
12168
12169 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12170
12171 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12172 Make function non-static.
12173 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12174 Remove function.
12175 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12176 Move to mactoolbox.c.
12177 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12178
12179 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12180 (mac_rect_make): New macro.
12181
12182 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12183 instead of float.
12184 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12185 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12186 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12187 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12188 CGRectMake.
12189 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12190 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12191 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12192 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12193 instead of WindowRef in argument type.
12194 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12195 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12196 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12197 instead of DISPLAY. All uses changed.
12198 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12199 (x_calc_absolute_position): Simplify so as not to use
12200 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12201
12202 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12203 instead of WindowRef in argument type.
12204 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12205 [TARGET_API_MAC_CARBON]: Remove externs.
12206 (create_apple_event, mac_event_parameters_to_lisp)
12207 [TARGET_API_MAC_CARBON]: Add externs.
12208
12209 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12210 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12211 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12212 is clicked.
12213 (x_activate_menubar): Remove extern for saved_menu_event_location.
12214 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12215 Move from mac.c.
12216
12217 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12218
12219 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12220 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12221
12222 2008-04-23 Jason Rumney <jasonr@gnu.org>
12223
12224 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12225 attributes only for local files.
12226
12227 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12228 default to Qlocal.
12229
12230 2008-04-22 Juri Linkov <juri@jurta.org>
12231
12232 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12233 read-buffer-to-switch instead of using the letter "B".
12234
12235 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12236
12237 * fileio.c (Qdefault_directory): New variable.
12238 (Fread_file_name): Use it to pass `dir' to the completion functions.
12239
12240 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
12241
12242 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12243
12244 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12245
12246 * keyboard.c (Vpre_help_message): Remove.
12247 (show_help_echo): Remove default C code.
12248
12249 * dired.c (directory_files_internal, file_name_completion):
12250 Only call ENCODE_FILE if the string is indeed decoded.
12251
12252 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12253
12254 * Makefile.in (TOOLKIT_DEFINES): Remove.
12255 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12256
12257 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12258
12259 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12260 (mactoolbox.o): New target.
12261
12262 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12263 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12264
12265 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12266 Use mac_set_frame_window_background instead of XSetWindowBackground.
12267 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12268 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12269 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12270 instead of SetWindowTitleWithCFString.
12271 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12272 Move function to mactoolbox.c.
12273 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12274 Use mac_set_window_modified instead of SetWindowModified.
12275 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12276 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12277 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12278 FrontNonFloatingWindow. Use mac_activate_window instead of
12279 ActivateWindow. Use mac_active_non_floating_window instead of
12280 ActiveNonFloatingWindow.
12281 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12282 Use mac_show_hourglass and mac_hide_hourglass.
12283 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12284 instead of GetGlobalMouse.
12285 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12286 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12287 Use mac_bring_window_to_front instead of BringToFront.
12288 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12289 mactoolbox.c.
12290 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12291 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12292 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12293 mactoolbox.c.
12294
12295 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12296 (XtPointer): Move typedef from macmenu.c.
12297 (enum button_type): Move enum from macmenu.c.
12298 (widget_value): Move typedef from macmenu.c.
12299 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12300 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12301 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12302 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12303 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12304 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12305 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12306 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12307 (Selection): Move typedef from macselect.c.
12308 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12309 macterm.c.
12310 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12311 (mac_is_window_collapsed, mac_bring_window_to_front)
12312 (mac_send_window_behind, mac_hide_window, mac_show_window)
12313 (mac_collapse_window, mac_front_non_floating_window)
12314 (mac_active_non_floating_window, mac_activate_window)
12315 (mac_move_window_structure, mac_move_window, mac_size_window)
12316 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12317
12318 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12319 (enum mac_menu_kind): Move enum to mactoolbox.c.
12320 (min_menu_id): Move variable to mactoolbox.c.
12321 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12322 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12323 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12324 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12325 [TARGET_API_MAC_CARBON]: Likewise.
12326 (XtPointer): Move typedef to macgui.h.
12327 (enum button_type): Move enum to macgui.h.
12328 (widget_value): Move typedef to macgui.h.
12329 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12330 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12331 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12332 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12333 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12334 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12335 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12336 (popup_activated_flag): Make variable non-static.
12337 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12338 (add_menu_item, fill_menu, dispose_menus):
12339 Move functions to mactoolbox.c.
12340 (restore_show_help_function, menu_target_item_handler)
12341 (install_menu_target_item_handler, mac_handle_dialog_event)
12342 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12343 [TARGET_API_MAC_CARBON]: Likewise.
12344 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12345 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12346 (find_and_call_menu_selection, name_is_separator): Make function
12347 non-static.
12348 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12349 to mactoolbox.c.
12350 (set_frame_menubar): Don't call install_menu_quit_handler.
12351 (menu_item_selection): New variable.
12352 (mac_menu_show): Use create_and_show_popup_menu.
12353 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12354 selection but set variable menu_item_selection. All uses changed.
12355 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12356 Call install_menu_quit_handler. Move to mactoolbox.c.
12357
12358 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12359 (Selection): Move typedef to macgui.h.
12360 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12361 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12362 Make variables non-static.
12363 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12364 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12365 Make functions non-static.
12366 (Vmac_service_selection) [MAC_OSX]: Likewise.
12367 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12368 (mac_valid_selection_target_p, mac_clear_selection)
12369 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12370 (mac_put_selection_value, mac_selection_has_target_p)
12371 (mac_get_selection_value, mac_get_selection_target_list)
12372 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12373 Move functions to mactoolbox.c.
12374 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12375 Likewise.
12376 (copy_scrap_flavor_data, mac_handle_service_event)
12377 (install_service_handler) [MAC_OSX]: Likewise.
12378 (syms_of_macselect) <Vmac_dnd_known_types>:
12379 Use mac_dnd_default_known_types.
12380
12381 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12382 Move to mactoolbox.c.
12383 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12384 (Fx_selection_owner_p): Add EXFUN.
12385 (install_window_handler, remove_window_handler, XSetWindowBackground):
12386 Remove externs.
12387 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12388 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12389 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12390 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12391 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12392 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12393 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12394 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12395 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12396 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12397 (mac_valid_selection_target_p, mac_clear_selection)
12398 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12399 (mac_put_selection_value, mac_selection_has_target_p)
12400 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12401 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12402 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12403 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12404 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12405 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12406 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12407 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12408 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12409
12410 * mactoolbox.c: New file.
12411
12412 2008-04-18 Jason Rumney <jasonr@gnu.org>
12413
12414 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12415
12416 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12417
12418 * character.c (Fmultibyte_char_to_unibyte):
12419 Return latin1 chars unchanged.
12420
12421 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12422 relocated if it points to `name'.
12423
12424 2008-04-17 Kenichi Handa <handa@m17n.org>
12425
12426 * data.c (Faset): Allow setting a multibyte character in an
12427 ASCII-only unibyte string.
12428
12429 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12430
12431 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12432
12433 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12434 done in config.h.
12435
12436 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
12437
12438 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12439 (Fchar_direction): Add usage in the docstring.
12440
12441 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
12442
12443 * keyboard.c (read_key_sequence): Remove always-true checks.
12444
12445 2008-04-14 Jason Rumney <jasonr@gnu.org>
12446
12447 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12448 compatibility struct, for better underline positioning.
12449
12450 2008-04-13 David Hansen <david.hansen@gmx.net>
12451
12452 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12453 string.
12454
12455 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12456
12457 * m/hp800.h (XUINT, XSET): Remove.
12458
12459 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12460
12461 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12462 previous change.
12463
12464 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12465
12466 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12467 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12468
12469 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12470
12471 * keymap.h (map_keymap_canonical): Declare.
12472 * xmenu.c (single_keymap_panes): Use it.
12473
12474 2008-04-11 Glenn Morris <rgm@gnu.org>
12475
12476 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12477 set the target's value to that of the alias.
12478
12479 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12480
12481 * term.c (set_tty_color_mode): Left over typo.
12482
12483 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12484
12485 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12486 only after check for file name handler functions. Signal, when
12487 native functionality is not supported.
12488 (syms_of_fileio): Declare it unconditionally.
12489
12490 2008-04-10 Jason Rumney <jasonr@gnu.org>
12491
12492 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12493 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12494
12495 * w32.c (logon_network_drive): Also logon to remote drives that
12496 are mapped to drive letters.
12497
12498 2008-04-10 Glenn Morris <rgm@gnu.org>
12499
12500 * xdisp.c (truncate-partial-width-windows): Doc fix.
12501
12502 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12503
12504 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12505 Move functions to minibuffer.el.
12506 (syms_of_fileio): Don't declare them.
12507
12508 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12509
12510 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12511 (syms_of_minibuf): Remove its initialization.
12512
12513 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12514
12515 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12516
12517 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12518
12519 2008-04-09 Jason Rumney <jasonr@gnu.org>
12520
12521 * makefile.w32-in (distclean): Delete makefile too.
12522 (maintainer-clean): New target.
12523
12524 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12525
12526 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12527 for new font backend and composite cases.
12528
12529 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12530
12531 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12532 Most of the code moved to run_timers.
12533 (do_pending_atimers): Call run_timers.
12534 (run_timers): New function.
12535
12536 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12537 run atimers.
12538
12539 * process.c (wait_reading_process_output): The same as above.
12540
12541 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * minibuf.c (last_exact_completion): Remove variable.
12544 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12545 (complete_and_exit_1, complete_and_exit_2)
12546 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12547 (Fdisplay_completion_list, display_completion_list_1)
12548 (Fminibuffer_completion_help, Fself_insert_and_exit)
12549 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12550 minibuffer.el.
12551 (syms_of_minibuf): Remove corresponding initializations.
12552
12553 * keyboard.c (Qdeactivate_mark): New var.
12554 (command_loop_1): Use it to call `deactivate-mark'.
12555 (syms_of_keyboard): Initialize it.
12556
12557 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12558 to another frame.
12559 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12560 Don't call set_tty_color_mode.
12561 (store_frame_param): Reset previous_frame rather than call
12562 set_tty_color_mode.
12563 * term.c (set_tty_color_mode): Rewrite.
12564 * dispextern.h (set_tty_color_mode): New type.
12565 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12566
12567 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12568
12569 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12570 for generic chars, which do not exist any more in emacs-unicode.
12571
12572 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12573
12574 * coding.c (detect_coding_emacs_mule)
12575 (Ffind_operation_coding_system): Fix typo.
12576
12577 2008-04-08 Jason Rumney <jasonr@gnu.org>
12578
12579 * w32uniscribe.c (SNAME): Extract only symbol name.
12580
12581 * w32font.h (struct w32_metric_cache): New struct.
12582 (w32font_info): Use it.
12583 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12584 (CACHE_BLOCKSIZE): New constants.
12585
12586 * w32font.c (Qja, Qko, Qzh): New symbols.
12587 (syms_of_w32font): Initialise them.
12588 (font_matches_spec): Use them to filter by language.
12589 (recompute_cached_metrics): Remove function.
12590 (compute_metrics, clear_cached_metrics): New functions.
12591 (w32font_encode_char): Use them to manage metric cache.
12592 (w32font_text_extents): Cache metrics for all glyphs on demand.
12593 Delay converting glyph indices to WORD until needed.
12594 (w32font_open_internal): Initialize metric cache to empty.
12595 (registry_to_w32_charset): Charset should always be a symbol.
12596 (fill_in_logfont, list_all_matching_fonts): Family should
12597 always be a symbol.
12598
12599 2008-04-06 Jason Rumney <jasonr@gnu.org>
12600
12601 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12602 Give up if glyph indices not supported. Use uniscribe obtained
12603 ABC widths for individual metrics. Map glyph clusters back to
12604 characters using fClusterStart flag. Return number of glyphs
12605 produced, not chars processed.
12606 (uniscribe_shape): Map char at FROM to current glyph.
12607
12608 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12609
12610 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12611 Use SetMenuItemHierarchicalMenu.
12612
12613 2008-04-05 Jason Rumney <jasonr@gnu.org>
12614
12615 * image.c (pbm_load): Allow color values up to 65535.
12616 Throw an error if max_color_idx is outside the supported range.
12617 Report an error when image size is invalid.
12618 Read two bytes at a time when raw images have max_color_idx above 255.
12619
12620 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12621
12622 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12623 cFileName a file name that includes `?' characters, use the 8+3
12624 alias in cAlternateFileName instead.
12625
12626 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12627
12628 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12629 append "CCL: Quitted" when the CCL program is quitted.
12630 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12631
12632 * ccl.h (struct ccl_program): New member quit_silently.
12633
12634 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12635
12636 * search.c (compile_pattern_1): Treat non-nil and non-string of
12637 search-spaces-regexp as nil.
12638
12639 * minibuf.c (Fassoc_string): Tweak docstring.
12640
12641 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12642
12643 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12644 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12645 2008-03-14 to force inode be positive.
12646
12647 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12648 _S_* ones, since we now use our own sys/stat.h.
12649 (stat, fstat): Don't mangle the inode number.
12650 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12651
12652 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12653
12654 * frame.h (struct frame): Give one more bit to `visible' since we use
12655 values larger than 1 to indicate obscured frames on ttys.
12656
12657 * keymap.c (Qkeymap_canonicalize): New var.
12658 (Fmap_keymap_internal): New fun.
12659 (describe_map): Use keymap-canonicalize.
12660
12661 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12662 (Fundo_boundary): Set them.
12663 (syms_of_undo): Initialize them.
12664 (record_point): Use them instead of last_point_position*.
12665 (last_undo_buffer): Change type.
12666
12667 2008-04-04 Jason Rumney <jasonr@gnu.org>
12668
12669 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12670 (recompute_cached_metrics): Don't set ascent and descent per char.
12671
12672 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12673 (uniscribe_check_otf): Add GC protection before consing.
12674 Rearrange loop for counting features.
12675
12676 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12677
12678 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12679 buffer with byte-size of source buffer.
12680
12681 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12682
12683 * callint.c (Fcall_interactively): Handle temporary region even
12684 when shift-select-mode is off.
12685
12686 2008-04-03 Jason Rumney <jasonr@gnu.org>
12687
12688 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12689
12690 2008-04-03 Kenichi Handa <handa@m17n.org>
12691
12692 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12693 (CATEGORY_MASK_UTF_16): Likewise.
12694 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12695 binary file.
12696 (detect_coding): Add null-byte detection for a binary file.
12697 (detect_coding_system): Likewise.
12698
12699 2008-04-03 Jason Rumney <jasonr@gnu.org>
12700
12701 * w32uniscribe.c: New file.
12702
12703 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12704
12705 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12706
12707 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12708 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12709 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12710 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12711 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12712 (Qphonetic): New symbols.
12713 (syms_of_w32font): Initialize them.
12714 (font_supported_scripts): Use them.
12715 (w32font_list_family): List all charsets.
12716 (w32font_text_extents, recompute_cached_metrics): Fix metric
12717 calculations.
12718 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12719 Give opentype fonts their own format.
12720 (font_matches_spec): New arguments backend and logfont.
12721 Handle :otf spec for uniscribe backend.
12722 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12723 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12724
12725 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12726 font backend.
12727 (globals_of_w32fns): Initialize uniscribe font backend.
12728
12729 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12730 dependencies.
12731 (w32uniscribe.$(O)): New file to build.
12732 (FONT_OBJ): Include w32uniscribe.$(O).
12733 (LIBS): Add uniscribe libraries.
12734
12735 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12736
12737 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12738
12739 * callint.c (Vshift_select_mode): New var.
12740 (Finteractive): Document new ^ spec.
12741 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12742 is present.
12743
12744 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12745 (command_loop_1): Avoid running the direct display versions of
12746 forward-char and backward-char if shift-selection may occur.
12747 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12748 shift-translation takes place.
12749
12750 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12751 avoid clobbering by define-minor-mode.
12752
12753 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12754 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12755
12756 * syntax.c (Fforward_word): Add ^ interactive spec.
12757
12758 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12759 (Fscroll_right): Add ^ interactive spec.
12760
12761 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12762
12763 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12764
12765 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12766
12767 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12768
12769 2008-03-31 Juri Linkov <juri@jurta.org>
12770
12771 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12772
12773 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12774
12775 * gtkutil.c (xg_set_geometry): Fix indentation.
12776 (xg_resize_outer_widget): Remove.
12777 (x_wm_size_hint_off): Fix indentation.
12778 (xg_frame_set_char_size): Call flush_and_sync after
12779 gtk_window_resize.
12780 (x_wm_set_size_hint): Pass NULL as geometry window to
12781 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12782 Add menu bar and tool bar height to base height.
12783 (xg_update_frame_menubar, free_frame_menubar)
12784 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12785 (update_frame_tool_bar, free_frame_tool_bar):
12786 Change xg_resize_outer_widget to xg_frame_set_char_size.
12787
12788 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12789
12790 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12791 (Fdbus_call_method): New parameter TIMEOUT.
12792 (dbus-send-signal): Optimize UNGCPRO call.
12793
12794 2008-03-29 Juri Linkov <juri@jurta.org>
12795
12796 * window.c (Fdisplay_buffer): Move call to
12797 Vsplit_window_preferred_function out of conditions that check
12798 if window is eligible for vertical splitting.
12799 When Vsplit_window_preferred_function is non-nil, call it and use
12800 its non-nil return value as window. Otherwise, continue doing
12801 vertical splitting using Fsplit_window with arg horflag=nil.
12802 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12803 default value from `split-window' to nil.
12804
12805 2008-03-29 Juri Linkov <juri@jurta.org>
12806
12807 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12808 for interactive code letters 'b' and 'B'.
12809
12810 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12811
12812 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12813 multibyte string.
12814
12815 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * keyboard.c (pending_funcalls): New var.
12818 (timer_check): Run it.
12819 (syms_of_keyboard): Initialize it.
12820 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12821 (Vdelete_terminal_functions): New vars.
12822 (syms_of_terminal): Initialize them.
12823 (Fdelete_terminal): Run delete-terminal-functions.
12824 * xdisp.c (safe_eval): Rewrite.
12825 (safe_call2): New fun.
12826 * frame.c (Qdelete_frame_functions): New var.
12827 (syms_of_frame): Initialize it.
12828 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12829 * lisp.h (safe_call2, pending_funcalls): Declare.
12830
12831 2008-03-28 Andreas Schwab <schwab@suse.de>
12832
12833 * indent.c (Fmove_to_column): Move declaration before statements.
12834
12835 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12836
12837 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12838 (struct frame): Use bit fields for boolean vars.
12839
12840 * process.c (server_accept_connection): Simplify naming.
12841 (emacs_get_tty_pgrp): Use SDATA.
12842
12843 * coding.c (decode_coding_object): Fix last change.
12844
12845 2008-03-27 Jason Rumney <jasonr@gnu.org>
12846
12847 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12848
12849 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12850
12851 * charset.c (Fdefine_charset_internal): Change the way of
12852 registering charsets in Vcharset_order_list.
12853 (syms_of_charset): Make the charset `eight-bit' supplementary.
12854
12855 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12856
12857 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12858 operations, to avoid having the difference between pointers
12859 overflow.
12860
12861 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12862
12863 * indent.c (check_display_width): New fun.
12864 (scan_for_column): Use it.
12865
12866 * data.c (syms_of_data): Mark most-positive-fixnum and
12867 most-negative-fixnum as constants.
12868
12869 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12870
12871 * indent.c (scan_for_column): Extract from current_column_1.
12872 Merge with the same code from Fmove_to_column.
12873 (current_column_1, Fmove_to_column): Use it.
12874
12875 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12876
12877 * keymap.c (map_keymap_internal): New fun.
12878 (map_keymap): Use it.
12879 (Fmap_keymap_internal): New fun.
12880 (Fmap_keymap): Remove left-out test from before make_save_value.
12881
12882 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12883
12884 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12885 Use XCAR/XCDR.
12886
12887 * process.h (struct Lisp_Process): Remove filter_multibyte.
12888 * process.c (QCfilter_multibyte): Remove.
12889 (setup_process_coding_systems): Don't use filter_multibyte.
12890 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12891 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12892 (Fset_process_filter_multibyte): Change the coding-system to
12893 approximate the previous behavior.
12894 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12895 coding-system.
12896
12897 * coding.c (decode_coding_object): When not decoding into a buffer,
12898 obey the coding system's preference of (uni|multi)byte.
12899
12900 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12901
12902 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12903 every char is changed and has a different byte-length.
12904 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12905 Fix int -> EMACS_INT.
12906
12907 2008-03-23 David Hansen <david.hansen@gmx.net>
12908
12909 * dbusbind.c (xd_read_message): Remove extra copying of message
12910 strings. Check for NULL `interface' or `member'.
12911
12912 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12913
12914 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12915 cFileName a file name that includes `?' characters, use the 8+3
12916 alias in cAlternateFileName instead.
12917
12918 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12919
12920 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12921
12922 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12923
12924 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12925 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12926 work on current_buffer only instead (that was already the case
12927 for some of the code anyway).
12928 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12929 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12930 (SET_PT, SET_PT_BOTH): Adjust.
12931 * intervals.h (set_point, temp_set_point, set_point_both)
12932 (temp_set_point_both): Remove redundant declarations.
12933
12934 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12935
12936 * fileio.c (Finsert_file_contents):
12937 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12938 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12939 when buffer != current_buffer anyway.
12940
12941 2008-03-20 Andreas Schwab <schwab@suse.de>
12942
12943 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12944 as default.
12945
12946 2008-03-19 Jason Rumney <jasonr@gnu.org>
12947
12948 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12949 (syms_of_w32fns): Initialize them.
12950 (HOURGLASS_ID): New constant.
12951 (x_window_to_frame): Don't check hourglass_window.
12952 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12953 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12954 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12955 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12956 Only change the cursor if hourglass is not active.
12957 (Fx_create_frame): Initialize frame's current_cursor.
12958 (hourglass_atimer): Remove.
12959 (hourglass_started): New function.
12960 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12961 (show_hourglass): Adapt to w32, changing argument to frame.
12962
12963 * w32term.h (struct w32_output): Remove hourglass_window.
12964 Add current_cursor.
12965
12966 * eval.c (call_debugger, Fsignal):
12967 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12968 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12969 (Fexecute_extended_command, cancel_hourglass_unwind):
12970 * minibuf.c (read_minibuf):
12971 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12972
12973 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * window.c (run_funs): New fun.
12976 (run_window_configuration_change_hook): Use it to run the buffer-local
12977 and the global part of the hook.
12978
12979 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12980 (unwind_format_mode_line): Restore selected window.
12981 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12982
12983 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12984
12985 * editfns.c (Fchar_equal): Check they are valid characters.
12986
12987 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12988
12989 2008-03-17 Andreas Schwab <schwab@suse.de>
12990
12991 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12992 against a charset.
12993
12994 * lisp.h (Fbuffer_list): Declare.
12995
12996 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12997
12998 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12999 handlebox_widget is != 0.
13000
13001 2008-03-16 Juri Linkov <juri@jurta.org>
13002
13003 * callint.c (Fcall_interactively): For interactive code letters
13004 'b' and 'B' put the buffer list into the list of default "future"
13005 values of the minibuffer.
13006
13007 2008-03-16 Andreas Schwab <schwab@suse.de>
13008
13009 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13010 modifiers.
13011
13012 * regex.c (re_match_2_internal): Correct matching of a charset
13013 against latin-1 characters.
13014
13015 2008-03-16 Kenichi Handa <handa@m17n.org>
13016
13017 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13018 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13019 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13020 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13021 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13022 CHAR_STRING_ADVANCE.
13023 (produce_chars): Fix for the case that the source and the
13024 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13025 instead of CHAR_STRING_ADVANCE.
13026 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13027 STRING_CHAR_ADVANCE.
13028
13029 2008-03-15 Andreas Schwab <schwab@suse.de>
13030
13031 * regex.c (re_match_2_internal): Correct matching of eight bit
13032 characters in unibyte strings.
13033
13034 2008-03-15 Martin Rudalics <rudalics@gmx.at>
13035
13036 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13037 at end of range when it coincides with the end of the buffer.
13038
13039 2008-03-14 Eli Zaretskii <eliz@gnu.org>
13040
13041 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13042
13043 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13044
13045 2008-03-14 Jason Rumney <jasonr@gnu.org>
13046
13047 * editfns.c (initial_tz): New variable.
13048 (syms_of_editfns): Initialize it.
13049 (Fset_time_zone_rule): Set it when first called.
13050 Use it when TZSTRING is nil.
13051
13052 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13053 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13054 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13055 (globals_of_w32fns): Initialize them.
13056 (compute_tip_xy): Use them to position tooltips.
13057
13058 2008-03-14 Glenn Morris <rgm@gnu.org>
13059
13060 * emacs.c (main): Revert previous change.
13061 (standard_args): Revert -internal-script back to -scriptload,
13062 and remove the long-option form.
13063
13064 2008-03-13 Glenn Morris <rgm@gnu.org>
13065
13066 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13067 Remove option -enable-font-backend.
13068
13069 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13070
13071 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13072
13073 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13074
13075 * xterm.c (x_connection_closed): For GTK: If this is the last
13076 terminal just exit without closing the display.
13077
13078 2008-03-11 Jason Rumney <jasonr@gnu.org>
13079
13080 * w32font.c (w32font_full_name): Use floor to round.
13081
13082 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13083
13084 * sound.c (alsa_configure): Declare vol at beginning of block.
13085
13086 * fontset.c (Ffontset_info): Remove extra semicolon.
13087
13088 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13089
13090 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13091 size of resulting string.
13092
13093 2008-03-10 Jason Rumney <jasonr@gnu.org>
13094
13095 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13096
13097 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13098
13099 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13100 Don't pretend as if characters with display property haven't been
13101 consumed for string-replacing-string case.
13102
13103 2008-03-08 Kim F. Storm <storm@cua.dk>
13104
13105 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13106 (get_next_display_element, next_element_from_string)
13107 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13108
13109 2008-03-08 Andreas Schwab <schwab@suse.de>
13110
13111 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13112
13113 2008-03-06 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13116 when charset not specified. Only translate ANSI to unicode when
13117 font_type is truetype.
13118 (w32font_coverage_ok): New function.
13119 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13120
13121 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13122
13123 * lread.c (Fread_char): Resolve modifiers.
13124 (Fread_char_exclusive): Likewise.
13125
13126 * character.c (char_resolve_modifier_mask): New function.
13127 (char_string): Use char_resolve_modifier_mask.
13128 (Fchar_resolve_modifiers): New function.
13129 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13130 function.
13131
13132 2008-03-04 Jason Rumney <jasonr@gnu.org>
13133
13134 * makefile.w32-in: Always include w32font.c in the build.
13135 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13136
13137 2008-03-04 Andreas Schwab <schwab@suse.de>
13138
13139 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13140 (versionclean): Likewise.
13141
13142 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
13143
13144 * .cvsignore: Add oo.
13145
13146 2008-03-03 Andreas Schwab <schwab@suse.de>
13147
13148 * coding.c (decode_coding_object): Inhibit gap shrinking while
13149 decoding in place.
13150
13151 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13152
13153 * w32term.c: Remove unused include "gnu.h".
13154 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13155
13156 * gnu.h: Rename to ...
13157 * emacs-icon.h: ... this.
13158 * xterm.c: Use emacs-icon.h instead of gnu.h.
13159 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13160
13161 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
13162
13163 * w32font.c: Include math.h.
13164
13165 2008-03-03 Jason Rumney <jasonr@gnu.org>
13166
13167 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13168 Compute options separately.
13169 (w32font_open_internal): Set glyph_idx before caching metrics.
13170
13171 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13172 Define if system headers don't.
13173 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13174 (w32font_encode_char): Don't declare here.
13175
13176 * w32font.c (Quniscribe, QCformat): New symbols.
13177 (syms_of_w32font): Define them.
13178 (w32font_has_char): Indicate uncertainty.
13179 (w32font_encode_char): Encode as glyph point. Make static.
13180 (recompute_cached_metrics): New function.
13181 (w32font_open_internal): Use it. Set font to use glyph points
13182 initially. Set format based on type of font.
13183 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13184 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13185 on it. Set format based on information available here.
13186 (add_font_entity_to_list): Identify backend based on opentype_only.
13187
13188 2008-03-02 Andreas Schwab <schwab@suse.de>
13189
13190 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13191
13192 * coding.c (decode_coding_big5, produce_chars):
13193 Fix typos in last change.
13194
13195 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13196
13197 * gnu.h: New icon.
13198
13199 2008-03-02 Kenichi Handa <handa@m17n.org>
13200
13201 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13202 `dos', don't decode '\r' if that is the last in the source.
13203 (decode_coding_utf_16, decode_coding_emacs_mule)
13204 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13205 (decode_coding_raw_text, decode_coding_charset): Likewise.
13206 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13207
13208 2008-03-01 Jason Rumney <jasonr@gnu.org>
13209
13210 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13211
13212 2008-03-01 Kim F. Storm <storm@cua.dk>
13213
13214 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13215
13216 2008-03-01 Jason Rumney <jasonr@gnu.org>
13217
13218 * w32font.c (w32font_full_name): New function.
13219 (w32font_open_internal): Use it.
13220
13221 2008-03-01 Kim F. Storm <storm@cua.dk>
13222
13223 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13224
13225 2008-03-01 Jason Rumney <jasonr@gnu.org>
13226
13227 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13228
13229 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13230
13231 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13232 xg_frame_resized when the event is for the edit widget.
13233
13234 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13235
13236 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13237 set_char_size.
13238 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13239 operations on widgets here. Just set frame size if needed.
13240 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13241 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13242 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13243 the whole frame.
13244 (xg_create_tool_bar): Move attachment of the tool bar to
13245 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13246 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13247
13248 2008-03-01 Jason Rumney <jasonr@gnu.org>
13249
13250 * w32fns.c (w32_msg_pump): Disable debug code.
13251
13252 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13253
13254 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13255
13256 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13257
13258 * xdisp.c (next_overlay_string): Don't set
13259 overlay_strings_at_end_processed_p if we're currently reading from
13260 a display string.
13261
13262 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13263
13264 * xdisp.c (get_overlay_strings_1): Fix typo.
13265
13266 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
13267
13268 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13269
13270 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13271
13272 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13273
13274 * xdisp.c (display_mode_element): Cancel the previous change.
13275 (decode_mode_spec): Likewise.
13276 (handle_auto_composed_prop): Don't make composition if it->string
13277 is a string.
13278
13279 2008-02-27 Kim F. Storm <storm@cua.dk>
13280
13281 * lisp.h (GLYPH): Change type from int to struct with separate char
13282 and face_id members.
13283 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13284 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13285 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13286 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13287 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13288 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13289 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13290 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13291 handle new Lisp glyph code encoding, either an integer or a cons.
13292
13293 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13294 (GLYPH_ALIAS): Delete.
13295 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13296 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13297 (GLYPH_FROM_CHAR): Replace macro by ...
13298 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13299
13300 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13301 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13302 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13303 (GLYPH_INVALID_P): New macro.
13304 (spec_glyph_lookup_face): Update prototype.
13305
13306 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13307 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13308 new glyph code encoding.
13309 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13310 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13311
13312 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13313 Adapt to new glyph type and new glyph code encoding.
13314
13315 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13316
13317 * indent.c (current_column, current_column_1, Fmove_to_column)
13318 (compute_motion): Adapt to new glyph code encoding.
13319
13320 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13321
13322 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
13323
13324 * process.c (wait_reading_process_output): Check for window
13325 changes caused by timers.
13326 Suggested by Johan Bockgård.
13327
13328 2008-02-27 Glenn Morris <rgm@gnu.org>
13329
13330 * emacs.c (USAGE1): Add `--disable-font-backend'.
13331
13332 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13333
13334 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13335 is made to the buffer.
13336
13337 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13340 (face_at_string_position):
13341 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13342 (face_at_string_position):
13343 * xdisp.c (display_string, next_overlay_change):
13344 * buffer.h (overlays_at):
13345 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13346 Update callers.
13347
13348 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
13349
13350 * editfns.c (Fformat): Doc fix.
13351
13352 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
13353
13354 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13355 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13356 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13357
13358 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13359
13360 * buffer.c (Fbuffer_swap_text): New function.
13361 (syms_of_buffer): Defsubr it.
13362
13363 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
13364
13365 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13366
13367 2008-02-25 Jason Rumney <jasonr@gnu.org>
13368
13369 * w32font.c (w32font_draw): Draw one character at a time when padding.
13370
13371 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13372
13373 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13374 Handle a nil arg. Use run_window_configuration_change_hook.
13375 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13376 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13377 Use run_window_configuration_change_hook.
13378
13379 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13380
13381 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13382 1-pixel width.
13383
13384 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13385
13386 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13387 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13388 if the glyph in the font is zero pixel with.
13389
13390 * dispextern.h (struct glyph_string): New member padding_p.
13391
13392 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13393
13394 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13395
13396 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13397
13398 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13399
13400 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13401
13402 2008-02-25 Jason Rumney <jasonr@gnu.org>
13403
13404 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13405
13406 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13407
13408 Allow fine-grained image-cache flushing.
13409 * dispextern.h (struct image): Add `dependencies' field.
13410 (clear_image_caches): Change arg to Lisp_Object.
13411 * image.c (make_image): Initialize `dependencies' field.
13412 (clear_image_cache): Change arg to allow fine-grained flushing.
13413 Perform the flush even if image-cache-eviction-delay is nil.
13414 (clear_image_caches): Change arg to Lisp_Object.
13415 (Fclear_image_cache): Expand meaning of the argument.
13416 (mark_image): Mark `dependencies' field.
13417 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13418 (lface_hash): Use XHASH rather than XFASTINT.
13419 (face_at_buffer_position): Fix int -> EMACS_INT position.
13420 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13421 (select_frame_for_redisplay): Remove code duplication.
13422 (redisplay_internal): Adapt arg to call to clear_image_caches.
13423
13424 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13425
13426 * s/vms4-0.h:
13427 * s/vms4-2.h:
13428 * s/vms4-4.h:
13429 * s/vms5-5.h: Remove, unused.
13430
13431 * s/irix5-2.h:
13432 * s/irix6-0.h:
13433 * s/riscos5.h:
13434 * s/mach-bsd4-3.h:
13435 * m/mips4.h: Remove files for obsolete systems.
13436
13437 * Makefile.in:
13438 * filelock.c:
13439 * unexmips.c:
13440 * m/hp9000s300.h:
13441 * m/iris4d.h:
13442 * s/aix3-1.h:
13443 * s/hpux.h:
13444 * s/msdos.h:
13445 * s/usg5-0.h:
13446 * s/usg5-2-2.h:
13447 * s/usg5-2.h:
13448 * s/usg5-3.h: Remove references to obsolete variables.
13449
13450 * s/irix5-0.h: Remove, move all the contents ...
13451 * s/irix6-5.h: ... here. Simplify.
13452 * config.in: Regenerate.
13453
13454 2008-02-24 Jason Rumney <jasonr@gnu.org>
13455
13456 * w32term.c (x_draw_glyph_string_background): Clear the background
13457 manually when cleartype is in use.
13458 (x_draw_glyph_string_foreground): Draw text transparently when
13459 cleartype is in use.
13460
13461 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13462 a font into it unless we have to.
13463
13464 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13467 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13468
13469 2008-02-18 Jason Rumney <jasonr@gnu.org>
13470
13471 * w32fns.c (Fw32_shell_execute): Encode parameters.
13472
13473 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13474
13475 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13476
13477 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13478
13479 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13480
13481 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13482
13483 * xterm.c (x_set_offset): Don't change the gravity if
13484 CHANGE_GRAVITY is -1.
13485
13486 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13487
13488 * fileio.c (auto_save_error_occurred): New var.
13489 (auto_save_error): Set it.
13490 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13491 error occurred.
13492
13493 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13494
13495 * w32.c (globals_of_w32): Add initializations for
13496 g_b_init_get_sid_sub_authority and
13497 g_b_init_get_sid_sub_authority_count.
13498
13499 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13500
13501 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13502 (font_parse_xlfd): Use them for sanity check.
13503 (Finternal_set_font_style_table): Make sure the table is bijective.
13504
13505 Consolidate the image_cache to the terminal struct.
13506 * termhooks.h (P_): Remove redundant def.
13507 (struct terminal): New field `image_cache'.
13508 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13509 of FRAME_X_IMAGE_CACHE.
13510 * xterm.h (struct x_display_info): Remove image_cache field.
13511 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13512 * w32term.h (struct w32_display_info): Remove image_cache field.
13513 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13514 * macterm.h (struct mac_display_info): Remove image_cache field.
13515 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13516 * xterm.c (x_term_init):
13517 * w32term.c (w32_term_init):
13518 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13519 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13520 Remove declarations.
13521 (clear_image_caches, mark_image_cache): New declarations.
13522 * xfaces.c (clear_face_cache):
13523 * xdisp.c (redisplay_internal): Use clear_image_caches.
13524 * image.c (clear_image_cache): Don't check that a frame is on
13525 a window-system before checking if it shares the same cache.
13526 (clear_image_caches): New function.
13527 (Fclear_image_cache): Use it.
13528 (mark_image): Move from allo.c.
13529 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13530 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13531 (mark_object): Don't call mark_image_cache for frames.
13532 (mark_terminals): Call mark_image_cache.
13533
13534 * lisp.h (Fdelete_terminal): Declare.
13535
13536 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13537 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13538 wrong_type_argument.
13539
13540 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13541
13542 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13543 malayalam.el, and tamil.el. Add sinhala.el.
13544
13545 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * xterm.c (x_connection_closed): Consolidate identical tests.
13548 (x_delete_terminal): Don't crash if called via x_connection_closed.
13549
13550 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13551
13552 * xdisp.c (decode_mode_spec): New arg string.
13553 (display_mode_element): Adjust for the above change.
13554
13555 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13556
13557 * callint.c (Fcall_interactively): Use AREF.
13558
13559 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13560
13561 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13562
13563 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13564
13565 * xfns.c (Fx_show_tip): Set string to " " if empty.
13566
13567 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13568
13569 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13570 with Qt.
13571
13572 2008-02-17 Kenichi Handa <handa@m17n.org>
13573
13574 * ftfont.c (ftfont_shape): Return Lispy number.
13575
13576 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13577 for GCs.
13578 (Finternal_set_font_selection_order): Call font_update_sort_order
13579 only when enable_font_backend is set.
13580 (realize_x_face): Set face->font_info to that of default face only
13581 when enable_font_backend is set.
13582
13583 * xdisp.c (handle_composition_prop): Set it->c to the fist
13584 character of the composed region.
13585 (fill_composite_glyph_string): Set base_face->font_info to
13586 s->font_info. Get a face for ascii from base_face->ascii_face.
13587 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13588 with a face already decided.
13589 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13590 non-negative.
13591 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13592 call font_prepare_composition unconditionally.
13593
13594 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13595
13596 * xterm.h (struct x_display_info): New member font.
13597
13598 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13599 (x_set_mouse_face_gc, x_new_font): Likewise.
13600 (x_term_init): Setup display_info->font.
13601 (x_delete_terminal): Free display_info->font.
13602
13603 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13604
13605 * ftxfont.c (ftxfont_default_fid): Delete it.
13606 (ftxfont_open): Set xfont->fid to 0.
13607 (ftxfont_end_for_frame): Clear data specific to the frame and the
13608 font-driver.
13609
13610 * xftfont.c (xftfont_default_fid): Delete it.
13611 (xftfont_open): Set xfont->fid to 0.
13612
13613 * fontset.c (FONTSET_OBJLIST): New macro.
13614 (fontset_find_font): Update font-object list of the fontset.
13615 (free_realized_fontset): New function.
13616 (free_face_fontset): Call free_realized_fontset.
13617 (Ffont_info): Call font_close_object only when enable_font_backend
13618 is set.
13619
13620 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13621 [HAVE_NTGUI]: Include w32term.h.
13622 [MAC_OS]: Include macterm.ch.
13623 (font_otf_ValueRecord): Use make_number.
13624 (font_finish_cache): Fix handling of reference count.
13625 (font_clear_cache): Update num_fonts.
13626 (font_open_entity): Update smallest_char_width and
13627 smallest_font_height of the frame.
13628 (font_close_object): Update num_fonts.
13629 (Fclear_font_cache): Fix finding the target cache data.
13630
13631 2008-02-16 Glenn Morris <rgm@gnu.org>
13632
13633 * fontset.c (Finternal_char_font): Fix compilation warning.
13634
13635 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13636
13637 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13638 instead of char arrays. Enlarge the size of array passed to
13639 get_token_information.
13640
13641 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13642 warnings.
13643
13644 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13645
13646 * .gdbinit: Don't set `args', it breaks gdb --args.
13647
13648 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13649
13650 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13651 within a narrowed buffer.
13652
13653 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13654
13655 * coding.c (decode_coding_object, encode_coding_object):
13656 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13657
13658 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13659
13660 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13661 hardcoding 1.
13662 (detect_coding_system):
13663 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13664 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13665 * insdel.c (insert_from_gap):
13666 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13667 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13668 (string_to_multibyte):
13669 * character.c (chars_in_text, multibyte_chars_in_text):
13670 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13671
13672 * character.h (FETCH_STRING_CHAR_ADVANCE)
13673 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13674 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13675 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13676
13677 * casefiddle.c (casify_region): Only call after-change and composition
13678 functions on the part of the region that was changed.
13679
13680 * keyboard.c (read_avail_input):
13681 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13682
13683 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13684
13685 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13686 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13687
13688 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13689
13690 * w32menu.c (push_submenu_start, push_submenu_end)
13691 (push_left_right_boundary, push_menu_pane, push_menu_item):
13692 * keyboard.c (read_key_sequence): Don't pass args with side effects
13693 to AREF, it fails when compiling with -DENABLE_CHECKING.
13694
13695 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13696
13697 * Makefile.in (${lispsource}international/charprop.el):
13698 Delete this target.
13699
13700 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13701 emacs-unicode-2.
13702
13703 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13704
13705 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13706
13707 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13708
13709 * frame.c (Qnoelisp): New symbol.
13710 (syms_of_frame): Initialize it.
13711 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13712 harmless Elisp code, from a strong `force' from x_connection_closed.
13713 * frame.h (Qnoelisp): Declare.
13714 * xterm.c (x_connection_closed): Pass `noelisp'.
13715
13716 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13717 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13718 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13719 rather than `int' for the type of `type'.
13720
13721 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13722
13723 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13724
13725 * Makefile.in (GNUC): Remove support for gcc-1.x.
13726
13727 2008-02-10 Richard Stallman <rms@gnu.org>
13728
13729 * lisp.h (ASET): Use AREF, not ASLOT.
13730
13731 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13732
13733 * lisp.h (ASET): Check bounds.
13734
13735 2008-02-10 Glenn Morris <rgm@gnu.org>
13736
13737 * buffer.c (mode-name): Doc fix.
13738
13739 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13740
13741 * Makefile.in:
13742 * emacs.c:
13743 * gmalloc.c:
13744 * keyboard.c:
13745 * lisp.h:
13746 * m/ibm370aix.h:
13747 * process.c:
13748 * regex.c:
13749 * s/hpux.h:
13750 * sysdep.c:
13751 * sysselect.h:
13752 * systty.h:
13753 * unexec.c:
13754 * w32term.c:
13755 * xsmfns.c:
13756 * xterm.c: Remove code that deals with obsolete variables.
13757
13758 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13759
13760 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13761 nothing else needs it anymore.
13762
13763 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13764
13765 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13766 instead of unibyte_char_to_multibyte.
13767
13768 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13769
13770 * s/gnu-linux.h: Remove commented out code.
13771
13772 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13773
13774 * Makefile.in: Update what RMS says about using autoconf.
13775 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13776 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13777 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13778 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13779
13780 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13781
13782 * keymap.c (Fkey_description): Move side effect outside of macro call.
13783
13784 * xfaces.c (Finternal_make_lisp_face):
13785 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13786
13787 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13788 (syms_of_fontset): Use ASET.
13789
13790 * fns.c (concat): Move side effect outside of macro call.
13791 (hash_clear): Use ASET.
13792
13793 2008-02-08 Richard Stallman <rms@gnu.org>
13794
13795 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13796 If FORCE, and frame has a surrogate minibuffer for another frame,
13797 delete the other frame first.
13798
13799 2008-02-07 Timo Savola <timo.savola@iki.fi>
13800
13801 * xterm.c (x_detect_focus_change): Handle embed client message.
13802 (handle_one_xevent): Ditto.
13803 (handle_one_xevent): If embedded and we get a button press/release,
13804 request focus.
13805 (xembed_set_info, xembed_send_message): New functions.
13806 (x_make_frame_visible): Call xembed_set_info if embedded.
13807 (x_make_frame_invisible): Call xembed_set_info if embedded.
13808 (x_term_init): Initialize Xatom_XEMBED.
13809 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13810 (x_iconify_frame): Ditto.
13811
13812 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13813 (enum xembed_info, enum xembed_message, enum xembed_focus)
13814 (enum xembed_modifier, enum xembed_accelerator): New.
13815 (xembed_set_info, xembed_send_message): Declare.
13816 (FRAME_X_EMBEDDED_P): New.
13817
13818 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13819 gtk_plug_new.
13820
13821 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13822 window ID of a frame.
13823 (x_window): Reparent frame if embedded.
13824 (Fx_create_frame): Don't set border width if embedded.
13825
13826 * emacs.c (USAGE3): Add --parent-id.
13827 (standard_args): Ditto.
13828
13829 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13830
13831 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13832
13833 2008-02-07 Jim Meyering <meyering@redhat.com>
13834
13835 Use "do...while (0)", not "if (1)...else" in macro definitions.
13836 The latter provokes a warning from gcc about the empty else, when
13837 followed by ";". Also, without that trailing semicolon, it would
13838 silently swallow up any following statement.
13839 * syntax.h (SETUP_SYNTAX_TABLE)
13840 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13841 * buffer.h (DECODE_POSITION): Likewise.
13842 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13843 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13844 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13845 (FETCH_CHAR_ADVANCE): Likewise.
13846 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13847
13848 2008-02-07 Jim Meyering <meyering@redhat.com>
13849
13850 * lread.c [lint]: Don't include <sys/inode.h>.
13851
13852 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13853
13854 * xselect.c (x_handle_dnd_message):
13855 * xmenu.c (digest_single_submenu, xmenu_show):
13856 * xdisp.c (with_echo_area_buffer_unwind_data)
13857 (format_mode_line_unwind_data, unwind_format_mode_line)
13858 (display_menu_bar):
13859 * eval.c (Ffetch_bytecode):
13860 * doc.c (store_function_docstring):
13861 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13862 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13863 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13864
13865 2008-02-07 Kenichi Handa <handa@m17n.org>
13866
13867 * ftxfont.c (ftxfont_open): Don't set
13868 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13869
13870 * ftfont.c (ftfont_open): Fix previous change.
13871
13872 2008-02-06 Jason Rumney <jasonr@gnu.org>
13873
13874 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13875 Use cached metrics for ASCII characters.
13876 (w32font_open_internal): Don't set font's owning_frame.
13877 Cache metrics for ASCII characters.
13878
13879 * w32font.h (struct w32font_info): Add ascii_metrics.
13880 Remove owning_frame.
13881
13882 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13883
13884 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13885 to negative value.
13886
13887 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13888
13889 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13890
13891 * charset.c (syms_of_charset): Set QCtest and Qeq.
13892
13893 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13894
13895 * process.c (Fstart_process):
13896 * callproc.c (Fcall_process): Handle the case where
13897 Funhandled_file_name_directory returns nil.
13898
13899 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13900 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13901 * font.c (check_gstring): Use them and AREF to access the vector before
13902 we know it's really a gstring.
13903 (Ffont_shape_text): Fix typo.
13904 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13905
13906 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13907 Declare.
13908
13909 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13910
13911 2008-02-05 Jason Rumney <jasonr@gnu.org>
13912
13913 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13914 Set smallest_font_height and smallest_char_width in display info.
13915
13916 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13917
13918 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13919
13920 2008-02-05 Miles Bader <miles@gnu.org>
13921
13922 * xfaces.c (get_lface_attributes, merge_named_face)
13923 (lookup_named_face, lookup_derived_face, realize_named_face):
13924 Revert 2008-02-01 change by cyd@stupidchicken.com.
13925
13926 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13927
13928 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13929 fallback fonts.
13930 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13931
13932 2008-02-04 Jason Rumney <jasonr@gnu.org>
13933
13934 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13935 set full_name.
13936 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13937
13938 2008-02-03 Jason Rumney <jasonr@gnu.org>
13939
13940 * makefile.w32-in (OBJ1): Include font.o here.
13941 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13942
13943 2008-02-02 Jason Rumney <jasonr@gnu.org>
13944
13945 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13946
13947 2008-02-01 Jason Rumney <jasonr@gnu.org>
13948
13949 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13950
13951 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13952
13953 2008-02-01 Andreas Schwab <schwab@suse.de>
13954
13955 * Makefile.in (shortlisp, lisp): Update for rename of
13956 ../lisp/language/myanmar.el.
13957
13958 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13959
13960 * xfaces.c (get_lface_attributes): Delete function.
13961 (merge_named_face, lookup_named_face, lookup_derived_face)
13962 (realize_named_face): Call lface_from_face_name directly, and use
13963 the fact that merge_face_vectors does not alter its FROM argument.
13964
13965 2008-02-01 Jason Rumney <jasonr@gnu.org>
13966
13967 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13968 input in the default locale. Handle non-Unicode multibyte input.
13969
13970 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13971
13972 * fontset.c (reorder_font_vector): Exclude nil elements from the
13973 font group. Don't try multiple fonts.
13974 (fontset_font): Adjust for the above change.
13975 (Finternal_char_font): Return nil if the found font doesn't
13976 contain the character ch.
13977
13978 * Makefile.in (lisp, shortlisp): Add cham.el.
13979
13980 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13981
13982 * font.h (FONTP): Make it return 1 also for a font-object.
13983
13984 * .gdbinit (xfontset): New function.
13985
13986 * font.c (font_find_for_lface): Check if the character C is
13987 supported or not only for the first font.
13988
13989 * fontset.c (reorder_font_vector): Fix typo.
13990 (fontset_find_font): Don't add a font-spec specifying a script.
13991 Use 0 (not Qt) for the indication of empty font-group. Change the
13992 format of RFONT-DEF. Return Qt if no font in the font-group
13993 support the character.
13994 (fontset_font): Adjust for the above change. If no font was
13995 found the character, remember that.
13996 (face_for_char): Adjust for the change of RFONT-DEF.
13997 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13998 no font for the target.
13999 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14000
14001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14002
14003 * font.c (font_load_for_face): Handle the case that the font in
14004 face->lface is a string.
14005
14006 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14007
14008 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14009
14010 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14011
14012 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14013 Fix previous change. If the frame is not on a window system,
14014 signal an error.
14015
14016 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14017
14018 * coding.c (decode_coding_object, encode_coding_object): Adjust
14019 marker positions after conversion.
14020
14021 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14022
14023 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14024
14025 * font.c (font_find_for_lface): Fix the handling of the return
14026 value of font_has_char.
14027 (Ffont_shape_text): Fix previous change.
14028
14029 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14030 (fontset_ref_and_range): Delete it.
14031 (fontset_find_font): Call char_table_ref_and_range instead of
14032 FONTSET_REF_AND_RANGE.
14033 (make_fontset): Don't setup font groups of Latin here.
14034 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14035 (new_fontset_from_font): Make the specified font the default for
14036 all Latin characters.
14037
14038 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14039
14040 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14041 is on a window system before accessing the fontset of the frame.
14042
14043 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14044
14045 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14046
14047 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14048 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14049
14050 * font.c (Ffont_shape_text): If the font driver doesn't have a
14051 shaper function, make zero-width glyphs to have at least one-pixel
14052 width. Fix setting of `to' field of glyphs.
14053
14054 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14055
14056 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14057 glyphs.
14058
14059 * font.h (struct font_driver): Improve docstring of member `shape'.
14060
14061 2008-02-01 Kenichi Handa <handa@m17n.org>
14062
14063 * composite.c (syms_of_composite): Fix docstring of
14064 auto-composition-function.
14065
14066 * font.h (LGLYPH_SIZE): New macro.
14067
14068 * font.c (Ffont_fill_gstring): Stop filling when a character not
14069 supported by the font is found.
14070 (Ffont_shape_text): When a shape callback function returns nil,
14071 try at most two more times with larger gstring.
14072 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14073
14074 * xdisp.c (handle_auto_composed_prop): Change the argument to
14075 auto-composition-function.
14076
14077 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14078 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14079 Lispy glyph and store it in the lgstring.
14080
14081 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14082
14083 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14084
14085 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14086
14087 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14088
14089 * fontset.c (Vfont_encoding_charset_alist): New variable.
14090 (syms_of_fontset): DEFVAR it.
14091 (reorder_font_vector, fontset_find_font): Optimize for the case of
14092 no need of reordering.
14093 (face_for_char): Map the charset property by
14094 Vfont_encoding_charset_alist.
14095
14096 2008-02-01 Jason Rumney <jasonr@gnu.org>
14097
14098 * w32font.c (logfonts_match): Don't check adstyle here.
14099 (font_matches_spec): Check here against physical font instead.
14100 (add_font_entity_to_list): Avoid some substitutions.
14101
14102 * font.c (font_parse_fcname): Default weight and slant to normal.
14103 (font_score): Prefer normal fonts if weight or slant unspecified.
14104 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14105 match freetype scores.
14106
14107 2008-02-01 Jason Rumney <jasonr@gnu.org>
14108
14109 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14110 font, as it may have been deleted.
14111 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14112 most common hyphenless variation.
14113 (logfonts_match): Check generic family.
14114 (font_matches_spec): Don't check generic family here.
14115 (fill_in_logfont): Set generic family based on adstyle.
14116
14117 * w32font.h (w32font_get_cache): Update declaration.
14118
14119 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14120
14121 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14122
14123 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14124 If none of the new drivers are available, call font_update_drivers
14125 with the old drivers.
14126
14127 * w32font.c (w32font_get_cache): Adjust the argument type.
14128
14129 * xfont.c (xfont_get_cache): Adjust the argument type.
14130
14131 * font.h (struct font_driver): Change argument type of get_cache.
14132
14133 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14134
14135 * font.c (Ffont_get): Fix arguments to Fassoc.
14136 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14137 (font_clear_cache): New function.
14138 (font_list_entities, font_matching_entity): Use font_get_cache.
14139 (font_update_drivers): Call font_clear_cache when finishing a driver.
14140
14141 * fontset.c (fontset_find_font): Fix previous change.
14142
14143 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14144
14145 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14146 dpyinfo->font_table.
14147 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14148 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14149
14150 * font.c (font_at): Handle the case that the arg C is negative.
14151 Handle the unibyte case.
14152 (Ffont_at): Call font_at with the arg C -1.
14153
14154 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14155 the position here, and call font_at with the arg C -1.
14156 Don't check the range of the existing composition at the point.
14157
14158 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14159
14160 * fontset.c (fontset_add): New args charset_id and family.
14161 Change caller.
14162 (load_font_get_repertory, fontset_find_font): Assume that
14163 font_spec is always a font-spec object.
14164 (Fset_fontset_font): Always store a font-spec object in a fontset.
14165
14166 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14167 instead of get_property_and_range.
14168
14169 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14170
14171 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14172 (xftfont_open): Don't keep locking face.
14173 (xftfont_close): Don't unlock face.
14174 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14175
14176 * fontset.c (fontset_find_font): Don't prefer a font of
14177 supplementary charset.
14178
14179 2008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14182 script, langsys_tag to langsys, new member script.
14183 (OTF_TAG_STR): Terminate by '\0'.
14184 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
14185 listing to the script specified in that property. Fix arg to
14186 OTF_check_features.
14187
14188 2008-02-01 Jason Rumney <jasonr@gnu.org>
14189
14190 * w32font.h: New file.
14191
14192 * w32font.c: Include it.
14193 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14194 (w32font_open): Set owning_frame.
14195 (w32font_text_extents): Use owning_frame.
14196 (struct font_callback_data): Add opentype_only field.
14197 (add_font_entity_to_list): Use it to filter fonts.
14198 Don't check against full name.
14199 (w32font_list_internal): New function.
14200 (w32font_list): Use it.
14201 (w32font_match_internal): New function.
14202 (w32font_match): Use it.
14203 (w32font_open_internal): New function.
14204 (w32font_open): Use it.
14205 (w32font_get_cache, w32font_close, w32font_has_char)
14206 (w32font_encode_char, w32font_text_extents, w32font_draw):
14207 Make non-static.
14208
14209 * makefile.w32-in (w32font.o): Depend on w32font.h.
14210
14211 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14212
14213 * charset.c (Fdefine_charset_internal): Record a supplementary
14214 charset at the tail of Vcharset_order_list.
14215
14216 * font.c (Ffont_shape_text): Fix the return value.
14217
14218 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14219
14220 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14221
14222 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14223
14224 * ftfont.c (struct OpenTypeSpec): New struct.
14225 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14226 (ftfont_get_open_type_spec): New function.
14227 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14228
14229 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14230
14231 2008-02-01 Jason Rumney <jasonr@gnu.org>
14232
14233 * w32font.c (add_font_entity_to_list): Compare only the beginning
14234 of full name.
14235
14236 2008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14239 Never return HANDLED_RECOMPUTE_PROPS.
14240
14241 2008-02-01 Kenichi Handa <handa@m17n.org>
14242
14243 * font.c (font_gstring_produce): Delete it.
14244
14245 * composite.h (COMPOSITION_METHOD):
14246 Handle COMPOSITION_WITH_GLYPH_STRING.
14247
14248 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14249
14250 * xfont.c (Qx): Delete.
14251 (syms_of_xfont): Don't initialize Qx.
14252
14253 * composite.h (enum composition_method):
14254 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14255
14256 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14257
14258 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14259 (choose_face_font): Accept new form of font-spec.
14260
14261 * frame.h (font_driver_list): Declare it unconditionally.
14262 (struct frame): Define members font_driver_list and font_data_list
14263 unconditionally.
14264
14265 * fontset.c: Include "font.h" unconditionally.
14266 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14267 (Fset_fontset_font): Accept a font-spec object.
14268
14269 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14270 PIXEL_SIZE part a wild card.
14271
14272 * dispextern.h (struct glyph_string): Define members clip and
14273 num_clips unconditionally.
14274 (struct face): Define members font_info and extra unconditionally.
14275
14276 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14277 ftfont_info only when HAVE_LIBOTF is defined.
14278
14279 2008-02-01 Andreas Schwab <schwab@suse.de>
14280
14281 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14282 and end.
14283
14284 2008-02-01 Jason Rumney <jasonr@gnu.org>
14285
14286 * w32font.c (w32font_driver): Add new fields.
14287
14288 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14289
14290 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14291 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14292 (LIBES): Add @M17N_FLT_CFLAGS@.
14293
14294 * composite.c (compose_text): Don't treat the new style
14295 composition specially.
14296
14297 * emacs.c (main): Call syms_of_font unconditionally.
14298
14299 * font.h (FONT_ENTITY_NOT_LOADABLE)
14300 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14301 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14302 (struct font_driver): New member shape.
14303 (font_registry_charsets): Extern it.
14304 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14305 (font_otf_capability, font_drive_otf): Delete their externs.
14306
14307 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14308 (font_charset_alist, font_registry_charsets): Move from xfont.c
14309 and rename.
14310 (font_prop_validate_otf): New function.
14311 (font_property_table): Register it for QCotf.
14312 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14313 (font_drive_otf): Delete.
14314 (font_prepare_composition): New arg F. Adjust for the change of
14315 lispy gstring.
14316 (font_find_for_lface): New arg C.
14317 (font_load_for_face): Adjust for the change of font_find_for_lface.
14318 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14319 lispy gstring.
14320 (Ffont_shape_text): New function.
14321 (Fopen_font): If the font size is not given, use 12-pixel.
14322 (Ffont_at): New arg STRING.
14323 (syms_of_font): Initialize font_charset_alist.
14324 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14325 conditionally.
14326
14327 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14328 fonts of the same font-spec. Change the format of RFONT-DEF.
14329 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14330 Adjust for the change of RFONT-DEF.
14331 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14332
14333 * ftfont.h: New file.
14334
14335 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14336 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14337 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14338 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14339 font_otf_capability and font_drive_otf, set ftfont_shape.
14340 (ftfont_list): Adjust for the change of :otf property value.
14341 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14342 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14343 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14344 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14345 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14346 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14347
14348 * w32term.c (x_draw_composite_glyph_string_foreground):
14349 Adjust for the change of lispy gstring.
14350
14351 * xdisp.c (handle_composition_prop): Adjust for the change of
14352 lispy gstring. Call a function for auto-composition with the
14353 third arg it->window.
14354 (fill_composite_glyph_string): Adjust for the change of lispy string.
14355 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14356
14357 * xfaces.c (set_font_frame_param): Adjust for the change of
14358 font_find_for_lface.
14359
14360 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14361 (xfont_registry_charsets): Likewise. Change caller.
14362 (syms_of_xfont): Don't handle x_font_charset_alist.
14363
14364 * xftfont.c: Include "ftfont.h".
14365 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14366 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14367 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14368 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14369 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14370 Set xftfont_driver.shape to xftfont_shape.
14371
14372 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14373 the change of lispy gstring.
14374
14375 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14376
14377 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14378
14379 2008-02-01 Jason Rumney <jasonr@gnu.org>
14380
14381 * w32font.c (w32font_draw): Fill background manually.
14382
14383 2008-02-01 Jason Rumney <jasonr@gnu.org>
14384
14385 * font.c (Qfontp): Remove unused symbol.
14386 (QCantialias): New symbol.
14387 (syms_of_font): Define it.
14388 (font_property_table): Set a validator for QCantialias.
14389
14390 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14391 Define if not already.
14392 (QCfamily): Share with xfaces.c.
14393 (Qstandard, Qsubpixel, Qnatural): New symbols.
14394 (syms_of_w32font): Define them. Don't define QCfamily here.
14395 (w32_antialias_type, lispy_antialias_type): New functions.
14396 (w32_enumfont_pattern_entity): New arg requested_font.
14397 Set antialias parameter if non-default was requested.
14398 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14399
14400 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14401
14402 * lread.c (read1): Undo the previous change.
14403
14404 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14405
14406 * frame.c (Fdelete_frame): Call font_update_drivers only when
14407 USE_FONT_BACKEND is defined.
14408
14409 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14410
14411 * font.h (struct font_bitmap): New member bits_per_pixel.
14412 (struct font_driver): New members start_for_frame and end_for_frame.
14413 (struct font_data_list): New struct.
14414 (font_put_frame_data, font_get_frame_data): Extern them.
14415
14416 * frame.h (struct frame): New member font_data_list.
14417
14418 * font.c (font_update_drivers): Call driver->start_for_frame and
14419 driver->end_for_frame at proper timings.
14420 (font_put_frame_data, font_get_frame_data): New functions.
14421 (Ffont_spec): Add usage in the docstring.
14422
14423 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14424 (Fdelete_frame): Call font_update_drivers.
14425
14426 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14427 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14428 (xftfont_get_xft_draw): New function.
14429 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14430 (xftfont_end_for_frame): New function.
14431 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14432
14433 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14434 Change argument. Cache GCs in the per-frame data.
14435 (struct ftxfont_frame_data): New struct.
14436 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14437 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14438 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14439 (ftxfont_end_for_frame): New function.
14440 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14441
14442 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14443
14444 2008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * xselect.c (Vselection_coding_system)
14447 (Vnext_selection_coding_system): Delete them.
14448 (syms_of_xselect): Don't declare selection-coding-system and
14449 next-selection-coding-system. They are declared in select.el.
14450
14451 2008-02-01 Jason Rumney <jasonr@gnu.org>
14452
14453 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14454
14455 * w32fns.c: Include imm.h.
14456 (get_composition_string_fn, get_ime_context_fn): New optional
14457 system functions.
14458 (globals_of_w32fns): Load them from imm32.dll.
14459 (ignore_ime_char): New flag.
14460 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14461 WM_IME_ENDCOMPOSITION messages.
14462
14463 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14464 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14465
14466 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14467
14468 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14469 (READCHAR_REPORT_MULTIBYTE): New macro.
14470 (readchar): New 2nd arg MULTIBYTE.
14471 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14472 Make symbol's name multibyte according to the multibyteness of the
14473 source.
14474
14475 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14476
14477 * xfaces.c (face_for_overlay_string): Call lookup_face with
14478 correct arguments (fix of synching with the trunk).
14479
14480 2008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14483 (font_prop_validate_non_neg, font_prop_validate_spacing):
14484 Delete argument prop_index.
14485 (font_property_table): Change arguments to validater. Change Callers.
14486 (font_lispy_object): Delete.
14487 (font_at): Use font_find_object instead fo font_lispy_object.
14488
14489 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14490
14491 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14492 and file names.
14493
14494 2008-02-01 Jason Rumney <jasonr@gnu.org>
14495
14496 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14497 (font_matches_spec): Remove debug output.
14498 (add_font_entity_to_list): Avoid using substituted fonts.
14499
14500 2008-02-01 Jason Rumney <jasonr@gnu.org>
14501
14502 * doc.c (Fsnarf_documentation):
14503 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14504
14505 2008-02-01 Miles Bader <miles@gnu.org>
14506
14507 * dispextern.h (struct glyph_row): Only define "clip" field if
14508 HAVE_WINDOW_SYSTEM is defined.
14509
14510 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14511
14512 Fix up multi-tty merge.
14513
14514 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14515 and indentation.
14516
14517 * xfaces.c (free_realized_face, clear_face_gcs):
14518 Include font_done_for_face in the input_blocked section, just in case.
14519
14520 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14521 (get_char_face_and_encoding): Undo last change and remove the *other*
14522 duplicate definition (i.e. keep the one that's better scoped and that
14523 includes code for the font-backend).
14524
14525 * terminal.c (create_terminal): Default keyboard_coding to
14526 `no-conversion' and terminal_coding to `undecided'.
14527
14528 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14529
14530 * fontset.c (free_realized_fontsets): Check that the table entry does
14531 contain a fontset before trying to compare it to `base'.
14532
14533 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14534 syms_of_charset, and syms_of_coding earlier because init_window_once
14535 now needs Vcoding_system_hash_table to be setup.
14536
14537 * coding.h (default_buffer_file_coding): Remove.
14538
14539 * coding.c (default_buffer_file_coding): Remove.
14540 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14541 than ->symbol, and use the terminal-local coding system.
14542 (syms_of_coding): Don't setup the coding-systems that are not
14543 terminal-local.
14544 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14545
14546 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14547 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14548
14549 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14550 in chartab.c and were re-added here by mistake.
14551 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14552
14553 * doc.c (Fsnarf_documentation):
14554 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14555 src to etc.
14556
14557 * ChangeLog.10: Add mistakenly removed entry.
14558
14559 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14560
14561 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14562
14563 2008-02-01 Miles Bader <miles@gnu.org>
14564
14565 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14566 Add extra args to FACE_FOR_CHAR.
14567
14568 2008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14571 in sequence.
14572
14573 * chartab.c (map_sub_char_table, map_char_table): If the range
14574 contains just one character, call the function with that character
14575 even if the depth is not 3.
14576
14577 2008-02-01 Jason Rumney <jasonr@gnu.org>
14578
14579 * w32font.c (w32font_text_extents): Calculate metrics for the
14580 whole string.
14581
14582 2008-02-01 Jason Rumney <jasonr@gnu.org>
14583
14584 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14585
14586 2008-02-01 Jason Rumney <jasonr@gnu.org>
14587
14588 * w32term.c (x_set_glyph_string_clipping): Use
14589 get_glyph_string_clip_rects.
14590 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14591 Adjust for the change of struct glyph_string.
14592
14593 * w32font.c (w32font_draw): Do clipping here.
14594
14595 2008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * xftfont.c (xftfont_draw): Adjust for the change of struct
14598 glyph_string.
14599
14600 * xterm.c (x_set_glyph_string_clipping): Use
14601 get_glyph_string_clip_rects.
14602 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14603 Adjust for the change of struct glyph_string.
14604
14605 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14606 the resulting clip(s}.
14607 (expose_overlaps): Add arg r. Change callers. Set it to
14608 row->clip temporarily.
14609 (expose_window): Redraw rows overlapping the exposed area.
14610
14611 * dispextern.h (struct glyph_row): New member clip.
14612 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14613 clip_height, new member clip, and num_clips.
14614
14615 2008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * data.c (Fchar_or_string_p): Fix docstring.
14618
14619 2008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14622 create a temporary XftDraw object.
14623
14624 2008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * font.c (Ffontp): Fix docstring.
14627
14628 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14629 strong evidence of ISO-2022.
14630
14631 2008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14634 SYNTAX_ENTRY_FOLLOW_PARENT.
14635
14636 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14637
14638 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14639 its type.
14640 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14641 Update to the new type of weak_hash_tables and next_weak.
14642
14643 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14644 a plain C pointer to Lisp_Hash_Table.
14645
14646 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14647 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14648 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14649 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14650 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14651 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14652 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14653 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14654 (GC_EQ): Remove since they've been identical to their non-GC_
14655 alter-egos ever since the markbit was eradicated.
14656
14657 * alloc.c:
14658 * buffer.c:
14659 * buffer.h:
14660 * data.c:
14661 * fileio.c:
14662 * filelock.c:
14663 * fns.c:
14664 * frame.h:
14665 * lisp.h:
14666 * macterm.c:
14667 * print.c:
14668 * process.c:
14669 * w32fns.c:
14670 * w32menu.c:
14671 * w32term.c:
14672 * xfns.c:
14673 * xmenu.c:
14674 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14675
14676 2008-02-01 Kenichi Handa <handa@m17n.org>
14677
14678 * chartab.c (map_sub_char_table): Make it work for the top-level
14679 char-table. Fix handling of parent char-table.
14680 (map_char_table): Adjust for the above change.
14681
14682 2008-02-01 Jason Rumney <jasonr@gnu.org>
14683
14684 * w32font.c (Qgdi): Rename from Qw32.
14685
14686 2008-02-01 Jason Rumney <jasonr@gnu.org>
14687
14688 * w32bdf.c (get_quoted_string): Make function static.
14689
14690 2008-02-01 Kenichi Handa <handa@m17n.org>
14691
14692 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14693 bigger ascent and descent than those of the font, use them as
14694 font's ascent and descent.
14695
14696 2008-02-01 Kenichi Handa <handa@m17n.org>
14697
14698 * Makefile.in (${lispsource}international/charprop.el): Move this
14699 target within "#ifdef HAVE_UNIDATA" and "#endif".
14700
14701 2008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14704 (shortlisp): Add ../lisp/language/tai-viet.el.
14705
14706 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14707
14708 * Makefile.in (${lispsource}international/charprop.el): Depend on
14709 temacs${EXEEXT}.
14710
14711 2008-02-01 Jason Rumney <jasonr@gnu.org>
14712
14713 * w32font.c (w32font_close): Delete the GDI font object.
14714
14715 * w32menu.c: Include character.h.
14716
14717 * w32proc.c: Likewise.
14718
14719 * w32select.c: Likewise.
14720
14721 * makefile.w32-in (w32proc.o): Depend on character.h.
14722
14723 2008-02-01 Jason Rumney <jasonr@gnu.org>
14724
14725 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14726
14727 * w32menu.c (syms_of_w32menu): Likewise.
14728
14729 * w32proc.c (syms_of_ntproc): Likewise.
14730
14731 * w32select.c (syms_of_w32select): Likewise.
14732
14733 * w32term.c (syms_of_w32term): Likewise.
14734
14735 2008-02-01 Jason Rumney <jasonr@gnu.org>
14736
14737 * w32font.c (w32font_draw): Delete brush after using it.
14738
14739 2008-02-01 Jason Rumney <jasonr@gnu.org>
14740
14741 * w32font.c (w32font_open): Don't set font_idx.
14742 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14743 to font settings.
14744 (w32font_draw): Fill background explicitly.
14745
14746 2008-02-01 Jason Rumney <jasonr@gnu.org>
14747
14748 * w32term.c (w32_initialize): Don't call w32font_initialize.
14749
14750 * w32font.c (w32font_info): Remove subranges.
14751 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14752 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14753 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14754 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14755 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14756 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14757 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14758 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14759 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14760 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14761 New symbols.
14762 (font_callback_data): New struct.
14763 (w32font_list, w32font_match): Use it.
14764 (w32font_open): Don't populate subranges.
14765 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14766 (w32font_encode_char): Always return unicode code-point as-is.
14767 (w32font_text_extents): Supply a transformation matrix to
14768 GetGlyphOutline. Never look up by glyph index. Avoid looping
14769 twice. Use unicode version of GetTexExtentPoint32 instead of
14770 glyph index version.
14771 (set_fonts_frame): Remove.
14772 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14773 set frame parameter. Use backward compatible fake foundries.
14774 Save generic family in extra slot under QCfamily. Make width slot
14775 constant. Save QCspacing value. Save list of scripts instead of
14776 binary subranges.
14777 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14778 (add_font_entity_to_list): Use font_callback_data struct. Filter
14779 unwanted fonts.
14780 (add_one_font_entity_to_list): Use font_callback_data struct.
14781 (w32_registry): Default to iso10646_1.
14782 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14783 string font registries. Don't fill in font name if it is a generic
14784 family name, fill family instead. Use spacing, family and script
14785 extra info to fill pitch, family and charset fields.
14786 (list_all_matching_fonts): Use font_callback_data struct.
14787 (unicode_range_for_char): Remove.
14788 (font_supported_scripts): New function.
14789 (w32font_initialize): Remove.
14790 (syms_of_w32font): Update which symbols are defined.
14791
14792 2008-02-01 Jason Rumney <jasonr@gnu.org>
14793
14794 * font.c (font_pixel_size): Reverse assq_no_quit args.
14795
14796 * w32term.h (FONT_WIDTH): Report max width, not average.
14797 (FONT_MAX_WIDTH): Remove.
14798 (FONT_AVG_WIDTH): New macro.
14799
14800 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14801 redefinition of FONT_WIDTH.
14802
14803 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14804 (w32_cache_char_metrics): Use FONT_WIDTH.
14805
14806 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14807
14808 2008-02-01 Jason Rumney <jasonr@gnu.org>
14809
14810 * w32font.c (w32font_open): Make lfHeight negative.
14811
14812 * w32fns.c (x_default_font_parameter): Use new style font name.
14813 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14814
14815 2008-02-01 Jason Rumney <jasonr@gnu.org>
14816
14817 * w32font.c (QCsubranges): New symbol.
14818 (w32font_open, w32font_has_char): Get subranges from subproperty
14819 of extra.
14820 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14821 (syms_of_w32font): Define :subranges symbol.
14822
14823 * font.c (font_put_extra): Expose externally.
14824
14825 * font.h (font_put_extra): Move declaration from font.c.
14826
14827 * font.c (Ffont_get): Use font driver to determine otf capability.
14828 (adjust_anchor): Check if driver defines anchor_point before using.
14829
14830 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14831 (w32font_draw): Use options.
14832 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14833 Fix detection of truetype fonts.
14834 (registry_to_w32_charset): Handle charsets other than iso8859-1
14835 expressed as lisp symbols.
14836 (w32_registry): Express charset as lisp symbol.
14837 (fill_in_logfont): Reverse pixel and point height logic.
14838 Don't set width here. Set quality to default.
14839
14840 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14841 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14842
14843 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14844 Remove redundant loop and allocation.
14845
14846 * makefile.w32-in (font.o, w32font.o): New objects.
14847 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14848 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14849
14850 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14851 STORE_XCHARB a valid l-value.
14852
14853 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14854 calculations for non-Truetype fonts.
14855 (x_draw_glyph_string): Sync with xterm.c.
14856 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14857 Remove redundant code.
14858 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14859
14860 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14861 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14862
14863 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14864 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14865
14866 * w32font.c: New file for w32 font backend.
14867
14868 2008-02-01 Kenichi Handa <handa@m17n.org>
14869
14870 * term.c: Don't include "buffer.h" twice.
14871
14872 2008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * character.c (Funibyte_string): New function.
14875 (syms_of_character): Defsubr it.
14876
14877 2008-02-01 Jason Rumney <jasonr@gnu.org>
14878
14879 * w32term.c [USE_FONT_BACKEND]:
14880 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14881 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14882 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14883 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14884 (x_free_frame_resources): Sync with xterm.c.
14885
14886 2008-02-01 Andreas Schwab <schwab@suse.de>
14887
14888 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14889 char-table size.
14890
14891 2008-02-01 Kenichi Handa <handa@m17n.org>
14892
14893 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14894
14895 2008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14898 font_otf_gpos, add font_drive_otf.
14899
14900 * fontset.c (fontset_find_font): Pay attention to font size
14901 specified for a font.
14902 (reorder_font_vector): Check contents of font_def.
14903
14904 * font.c (struct otf_list): Delete it.
14905 (otf_list): Make it a lisp variable.
14906 (otf_open): Use lispy otf_list.
14907 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14908 (check_otf_features): New function.
14909 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14910 New functions.
14911 (font_drive_otf): New function merging font_otf_gsub and
14912 font_otf_gpos.
14913 (font_open_for_lface): New arg spec. Change argument order.
14914 (font_load_for_face): Adjust for the change of font_open_for_lface.
14915 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14916 Ffont_otf_gpos.
14917 (syms_of_font): Staticpro otf_list. Delete defsubr of
14918 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14919
14920 * xfaces.c (set_font_frame_param): Adjust for the change of
14921 font_open_for_lface.
14922
14923 * font.h (font_open_for_lface): Adjust prototype.
14924 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14925 member otf_drive.
14926 (font_otf_gsub, font_otf_gpos): Delete externs.
14927 (font_drive_otf): Extern it.
14928
14929 2008-02-01 Kenichi Handa <handa@m17n.org>
14930
14931 * font.c (font_at): If the window W is not on a window system,
14932 return Qnil.
14933
14934 * coding.c (produce_chars, encode_coding): Don't call
14935 insert_from_gap if no characters to produce.
14936
14937 2008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14940 Fclear_face_cache.
14941
14942 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14943
14944 2008-02-01 Miles Bader <miles@gnu.org>
14945
14946 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14947 Parse "--disable-font-backend" option.
14948 (standard_args): Add "--disable-font-backend" option.
14949
14950 2008-02-01 Kenichi Handa <handa@m17n.org>
14951
14952 * fontset.c (fontset_find_font): New function.
14953 (fontset_font): Use fontset_find_font.
14954 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14955 Register the specified font for all Latin characters.
14956 (new_fontset_from_font): Register the specified font for all Latin
14957 characters.
14958 (dump_fontset): For a realized fontset, include the base fontset
14959 name in the returned vector.
14960
14961 2008-02-01 Kenichi Handa <handa@m17n.org>
14962
14963 * character.h (CHAR_STRING): Cast C to unsigned on calling
14964 char_string.
14965
14966 * character.c (char_string): Type of arg C changed to unsigned.
14967 Signal an error if C is an invalid character code.
14968
14969 * editfns.c (general_insert_function, Fchar_to_string):
14970 Use CHARACTERP, not INTEGERP.
14971
14972 2008-02-01 Kenichi Handa <handa@m17n.org>
14973
14974 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14975 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14976
14977 * regex.c (analyse_first): Fix for multibyte characters in "case
14978 charset:" and "case categoryspec:".
14979
14980 2008-02-01 Andreas Schwab <schwab@suse.de>
14981
14982 * Makefile.in (LIBES): Move standard libraries to the end.
14983
14984 2008-02-01 Kenichi Handa <handa@m17n.org>
14985
14986 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14987 nonzero, don't shrink the buffer nextb.
14988
14989 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14990
14991 * coding.c (coding_alloc_by_making_gap): New arg offset.
14992 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14993 offset.
14994 (decode_coding_iso_2022): Update coding->safe_charsets.
14995 (decode_coding_gap): Temporarily set
14996 current_buffer->text->inhibit_shrinking to 1.
14997
14998 2008-02-01 Kenichi Handa <handa@m17n.org>
14999
15000 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15001 indexing into elements of s->cmp and s->char2b.
15002
15003 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
15004
15005 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15006
15007 2008-02-01 Kenichi Handa <handa@m17n.org>
15008
15009 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15010 target_multibyte instead of multibyte.
15011 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15012 (bcmp_translate): Change the argument name from multibyte to
15013 target_multibyte.
15014
15015 2008-02-01 Kenichi Handa <handa@m17n.org>
15016
15017 These changes are to compile a regexp into a pattern that can be
15018 used both for multibyte and unibyte targets.
15019
15020 * Makefile.in (search.o): Depend on charset.h.
15021
15022 * character.c (multibyte_char_to_unibyte_safe): New function.
15023
15024 * search.c: Include "charset.h".
15025 (compile_pattern_1): Delete argument multibyte. Don't set
15026 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15027 (compile_pattern): Don't compare cp->buf.target_multibyte.
15028 Compare cp->buf.charset_unibyte.
15029 (compile_pattern): Set cp->buf.target_multibyte.
15030
15031 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15032
15033 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15034
15035 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15036 multibyte. Change callers.
15037 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15038 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15039 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15040 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15041 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15042 (regex_compile): Make the compiled pattern usable both for
15043 multibyte and unibyte targets.
15044 (analyse_first): Make the fastmap usable both for multibyte and
15045 unibyte targets.
15046 (TRANSLATE_VIA_MULTIBYTE): Delete.
15047 (re_match_2_internal): Pay attention to the case that the
15048 multibyteness of bufp and target may be different.
15049
15050 2008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15053 empty box occupy at least one column width.
15054
15055 2008-02-01 Miles Bader <miles@gnu.org>
15056
15057 * Makefile.in: Remove redundant HAVE_XFT clause.
15058
15059 2008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15062
15063 2008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15066 being nil.
15067
15068 2008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15071
15072 2008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15075
15076 2008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * search.c (simple_search): Fix previous change.
15079
15080 2008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * xftfont.c (ftfont_font_format): Extern declaration.
15083
15084 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15085
15086 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15087 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15088
15089 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15090 (ftfont_font_format): Fix previous change.
15091
15092 * font.h (Ffont_xlfd_name): EXFUN it.
15093
15094 * font.c (font_parse_xlfd): Fix the array size of `f'.
15095 (register_font_driver): Use EQ to compare driver->type.
15096
15097 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15098 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15099 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15100
15101 2008-02-01 Kenichi Handa <handa@m17n.org>
15102
15103 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15104 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15105
15106 2008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * xfont.c (xfont_open): Set font->format.
15109
15110 * xftfont.c (xftfont_open): Set font->format.
15111
15112 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15113 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15114 (ftfont_open): Set font->format.
15115 (ftfont_font_format): New function.
15116
15117 * font.h (struct font): New member format.
15118
15119 * font.c (Qopentype): New variable.
15120 (syms_of_font): Defsym it.
15121 (Fquery_font): Change the format of the last element of the return
15122 value.
15123
15124 2008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15127 last resort.
15128
15129 2008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * coding.c (detect_coding_charset): Fix detection of multi-byte
15132 charset.
15133
15134 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15135
15136 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15137
15138 2008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * xdisp.c (get_next_display_element): Set it->face_id for the
15141 first component of a composition.
15142 (x_produce_glyphs): Check if the font is changed or not for composition.
15143
15144 2008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * fontset.c (Qlatin): New variable.
15147 (syms_of_fontset): Define it as a lisp symbol.
15148 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15149
15150 2008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * font.c (font_unparse_fcname): Pay attention to the case that
15153 some of font property is a null string.
15154
15155 2008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * term.c: Include "composite.h".
15158 (encode_terminal_code): Output all components of composition.
15159 Check the size of encode_terminal_src.
15160 (produce_glyphs): For composition, call produce_composite_glyph.
15161 (append_composite_glyph, produce_composite_glyph): New functions.
15162
15163 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15164 is not found, get font_info from the current ascii face.
15165
15166 2008-02-01 Kenichi Handa <handa@m17n.org>
15167
15168 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15169 buffer-file-name to Qnil before calling insert_from_buffer.
15170
15171 * font.c (font_unparse_fcname): Pay attention to the case that
15172 foundry is a null string.
15173
15174 2008-02-01 Kenichi Handa <handa@m17n.org>
15175
15176 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15177
15178 * font.c (Qunicode_sip): New variable.
15179 (syms_of_font): Declare it as a Lisp symbol.
15180
15181 * font.h (Qunicode_sip): Extern it.
15182
15183 2008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * composite.c (get_composition_id): Pay attention to TAB component.
15186
15187 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15188 TAB. Adjust for the change of s->char2b which always points to
15189 the first element of allocated memory.
15190
15191 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15192
15193 * xdisp.c (handle_composition_prop): Set it->c to the first
15194 non-TAB component.
15195 (fill_composite_glyph_string): Change argument.
15196 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15197 (x_produce_glyphs): Fix handling of left/right padding.
15198
15199 2008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * coding.c (detect_coding_system): Fix for handling off
15202 inhibit_iso_escape_detection. Fix for the case that no coding
15203 system is defined for a specific coding category.
15204
15205 2008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * font.c (font_matching_entity): Delete unused local var.
15208
15209 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15210 opening a font.
15211
15212 * fileio.c (Finsert_file_contents): On recovering a file, assume
15213 Unix-like eol.
15214 (choose_write_coding_system): On auto-saving a file, force
15215 Unix-like eol.
15216
15217 * coding.c (setup_coding_system): Fix setting of
15218 coding->common_flags based on eol_type.
15219 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15220 inherit from it.
15221
15222 2008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * alloc.c (NSTATICS): Increas to 0x600.
15225
15226 2008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15229 (ftfont_list): Don't check :name property.
15230 (ftfont_match): New function.
15231 (ftfont_pattern_entity): If the pattern doesn't contain
15232 FC_SPACING, don't assume FC_MONO.
15233
15234 * font.h (struct font_driver): New member `match'.
15235 (font_update_drivers): Adjust prototype.
15236
15237 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15238 property of FONT.
15239 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15240 them unconditionally.
15241 (font_matching_entity): New function.
15242 (font_open_by_name): Try font_matching_entity if exact match is
15243 not found.
15244 (font_update_drivers): Delete the arg FONT. Return a list of
15245 actually used backends. Don't free faces, font caches here.
15246 Don't store data in frame parameters. Don't call x_set_font.
15247 (Ffont_spec): Store :name property as is.
15248 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15249 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15250 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15251 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15252 Call font->driver->otf_gsub instead of font_otf_gsub.
15253
15254 * frame.c (x_set_font_backend): Do more works that were done in
15255 font_update_drivers before.
15256
15257 * xfont.c (xfont_match): New function.
15258 (xfont_driver): Set xfont_driver.match to xfont_match.
15259 (xfont_draw): Set font in GC if necessary.
15260
15261 * ftxfont.c (ftxfont_match): New function.
15262 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15263
15264 * xftfont.c (xftfont_match): New function.
15265 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15266
15267 2008-02-01 Kenichi Handa <handa@m17n.org>
15268
15269 * font.h (struct font): New member scalable.
15270 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15271 (font_otf_gsub): Adjust prototype.
15272
15273 * font.c (font_otf_capability): Fix handling of the default langsys.
15274 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15275 Check the contents of SPEC.
15276 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15277 (check_gstring): New function.
15278 (REPLACEMENT_CHARACTER): New macro.
15279 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15280 glyph codes of GSTRING.
15281 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15282 (font_prepare_composition): Set cmp->glyph_len.
15283 (font_open_entity): Set font->scalable.
15284 (Ffont_get): Handle :otf property.
15285 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15286 functions.
15287 (Fquery_font): Use font->font.full_name.
15288 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15289 Sfont_otf_alternates.
15290
15291 * ftfont.c (ftfont_open): Set font->font.full_name and
15292 font->font.name properly. Fix calculation of font->font.height
15293 and font->min_width.
15294
15295 * ftxfont.c (ftxfont_create_gcs): New function.
15296 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15297 (ftxfont_draw_backgrond): Fix filling region.
15298 (ftxfont_default_fid): New function.
15299 (ftxfont_open): Set xfont->fid to the return value of
15300 ftxfont_default_fid.
15301 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15302 (ftxfont_done_face): Free only GCs that are created by
15303 ftxfont_create_gcs.
15304 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15305
15306 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15307 Clip to src->width, etc (not src->clip_XXX).
15308
15309 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15310 FontBackend frame parameter.
15311
15312 2008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 * font.h (struct font_driver_list): New member `on'.
15315 (Fclear_font_cache): EXFUN it.
15316 (font_update_drivers): Extern it.
15317
15318 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15319 (font_list_entities): Check driver_list->on.
15320 (register_font_driver): Initialize `on' member to 0.
15321 (font_update_drivers): New function.
15322 (Fclear_font_cache): Check driver_list->on.
15323
15324 * frame.h (Qfont_backend): Extern it.
15325 (x_set_font_backend): Extern it.
15326
15327 * frame.c (Qfont_backend): New variable.
15328 (frame_parms): New element for font-backend.
15329 (x_set_font_backend): New function.
15330
15331 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15332 FontBackend frame parameter.
15333 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15334 x_set_font_backend.
15335
15336 * xfont.c (xfont_list): Don't try listing by :name property if the
15337 name is not for XLFD.
15338
15339 2008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15342 (LGLYPH_SET_TO): New macros.
15343 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15344 element of G is vector or not.
15345 (font_at): Extern it.
15346
15347 * font.c: Include window.h.
15348 (font_lispy_object): New function.
15349 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15350 end of valid glyph.
15351 (font_close_object): Fix getting (struct font *).
15352 (font_at): New function.
15353 (Ffont_get): If FONT is a font-object, get entity from it.
15354 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15355 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15356 range check.
15357 (Ffont_at): New function.
15358 (syms_of_font): Defsubr Sfont_at.
15359
15360 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15361 before the entry for Qcomposition.
15362 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15363 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15364 the font in gstring.
15365 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15366 LGLYPH_FORM (g) to detect the end of valid glyph.
15367 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15368 we are composing with gstring.
15369
15370 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15371 Check if adjustment is vector or not.
15372
15373 * Makefile.in (font.o): Make it depends on window.h.
15374
15375 2008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15378 adjustment is vector or not.
15379
15380 2008-02-01 Miles Bader <miles@gnu.org>
15381
15382 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15383
15384 2008-02-01 Kenichi Handa <handa@m17n.org>
15385
15386 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15387 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15388 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15389
15390 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15391 (DEVICE_DELTA): Fix typo.
15392 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15393 LGLYPH format.
15394
15395 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15396 the change of LGLYPH format.
15397
15398 2008-02-01 Kenichi Handa <handa@m17n.org>
15399
15400 * ftfont.c (ftfont_list): Fix typo.
15401 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15402
15403 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15404
15405 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15406
15407 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15408 xftface_info is non-NULL.
15409
15410 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15411
15412 * ftfont.c (ftfont_list): Move misplaced #endif.
15413
15414 2008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * ftfont.c (ftfont_list): Pay attention to the case that
15417 FC_CAPABILITY is not defined.
15418
15419 2008-02-01 Kenichi Handa <handa@m17n.org>
15420
15421 * xftfont.c (xftfont_open): Set charset related members to -1.
15422
15423 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15424 QCname.
15425 (ftfont_open): Set charset related members to -1.
15426
15427 * fontset.c (Votf_script_alist): New variable.
15428 (syms_of_fontset): Initialize it.
15429 (fontset_font): Delete unused variable.
15430
15431 * fontset.h (Votf_script_alist): Extern it.
15432
15433 * font.c (font_find_for_lface): Optimize code.
15434
15435 * font.h (font_close_object, font_merge_old_spec): Extern them.
15436
15437 2008-02-01 Kenichi Handa <handa@m17n.org>
15438
15439 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15440 (syms_of_font): Initialize them.
15441 (font_pixel_size): Allow float value in dpi.
15442 (font_prop_validate_type): Delete.
15443 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15444 Change caller.
15445 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15446 (font_prop_validate_extra): Delete.
15447 (font_prop_validate_spacing): New function.
15448 (font_property_table): Add elements for all known properties.
15449 (get_font_prop_index): Rename from check_font_prop_name. New
15450 argument FROM. Change caller.
15451 (font_prop_validate): Validate all known properties.
15452 (font_put_extra): Delete argument force. Change caller.
15453 (font_expand_wildcards): Make it static. Fix the way of shrinking
15454 the possible range.
15455 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15456 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15457 Change caller.
15458 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15459 (font_parse_fcname): Delete argument merge. Fix parsing of point
15460 size. Don't validate properties values here. Change caller.
15461 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15462 (font_open_by_name): Delete unused variable.
15463 (Ffont_spec): Likewise. Validate property values.
15464 (Ffont_match_p): New function.
15465
15466 * font.h (QCscalable): Extern it.
15467 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15468
15469 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15470
15471 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15472 (xfont_list_pattern): New function.
15473 (xfont_list): Use xfont_list_pattern.
15474
15475 2008-02-01 Kenichi Handa <handa@m17n.org>
15476
15477 * font.h (Flist_fonts): EXFUN it.
15478
15479 2008-02-01 Jason Rumney <jasonr@gnu.org>
15480
15481 * w32term.c (w32_initialize): Add back smoothing_type and
15482 smoothing_enabled definitions.
15483
15484 2008-02-01 Kenichi Handa <handa@m17n.org>
15485
15486 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15487 s->face->font on determining underline position.
15488
15489 2008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15492 (font_has_char): Accept font-object too.
15493 (font_find_for_lface): Try at first with a size specified in face.
15494
15495 2008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15498 font_open_by_name.
15499
15500 2008-02-01 Kenichi Handa <handa@m17n.org>
15501
15502 * font.h (QCspacing, QCdpi): Extern them.
15503 (enum font_spacing): New enum.
15504 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15505
15506 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15507 (QCspacing, QCdpi): New variables.
15508 (syms_of_font): Initialize them.
15509 (font_pixel_size): New function.
15510 (font_put_extra): New function.
15511 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15512 in FONT_EXTRA.
15513 (font_parse_fcname): Handle enumerated values (e.g. bold).
15514 Fix handling font size. Add QCname property that contains only
15515 unknown properties.
15516 (font_score): Change argument. Change caller. Pay attention to
15517 FONT_PIXEL_SIZE_QUANTUM.
15518 (font_sort_entites, font_list_entities, font_find_for_lface)
15519 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15520 (Ffont_spec): Add QCname property that contains only unknown properties.
15521
15522 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15523 include weight in listing pattern, instead check weight of each
15524 listed font. Don't include scalable in pattern. Pay attention to
15525 FONT_PIXEL_SIZE_QUANTUM.
15526
15527 2008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * font.c (font_parse_fcname): Fix parsing of point-size.
15530 (font_unparse_fcname): Produce symbolic names for style properties.
15531 (font_list_entities): Handle float size correctly.
15532 (font_open_by_name): Prefer `normal' property values if the name
15533 doesn't specify them.
15534
15535 * fontset.c (Finternal_char_font): Use font_get_name, not
15536 Ffont_xlfd_name.
15537
15538 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15539 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15540 pattern. Don't force scalable.
15541
15542 * xftfont.c (xftfont_open): For generating a name, start from
15543 96-byte buffer.
15544
15545 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15546
15547 * frame.h (x_new_fontset2): Fix prototype.
15548
15549 2008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * font.h (struct font_driver): Delete member parse_name.
15552 (font_match_p, font_get_spec, font_parse_fcname)
15553 (font_unparse_fcname): Extern them.
15554 (font_get_name): Adjust prototype.
15555
15556 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15557 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15558 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15559 unnecessary checks for weight, slant, and swidth.
15560 (font_parse_fcname): New function.
15561 (font_unparse_fcname): New function.
15562 (font_parse_name): New function.
15563 (font_match_p): New function.
15564 (font_get_name): Change return value to Lisp string.
15565 (font_get_spec): New function.
15566 (Qunspecified, Qignore_defface): Don't extern them.
15567 (font_find_for_lface): Assume that LFACE is fully specified.
15568 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15569 object, use it for FACE.
15570 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15571 driver->parse_name.
15572 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15573
15574 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15575 prototype.
15576
15577 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15578 argument F. Don't call Fnew_fontset. Instead, directly call
15579 make_fontset.
15580
15581 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15582
15583 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15584 of x_new_fontset2.
15585
15586 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15587 (Qsans__serif): New variables.
15588 (ftfont_generic_family_list): New variable.
15589 (syms_of_ftfont): Initialize the above variables.
15590 (ftfont_pattern_entity): Delete argument NAME.
15591 (ftfont_list_generic_family): New function.
15592 (ftfont_parse_name): Delete this function.
15593 (ftfont_list): Try generic family only when FcFontList found no font.
15594 (ftfont_list_family): Fix args to FcObjectSetBuild.
15595
15596 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15597 object in attrs[LFACE_FONT_INDEX].
15598 (set_lface_from_font_name): Cancel all changes for font-backend.
15599 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15600 function.
15601 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15602 font object in QCfont attribute.
15603 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15604 (realize_default_face) [USE_FONT_BACKEND]: Call
15605 set_lface_from_font_and_fontset.
15606
15607 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15608 "fixed", and signal error here if no suitable font was found.
15609
15610 * xfont.c (xfont_parse_name): Delete this function.
15611
15612 * xftfont.c (xftfont_open): Change coding style of error
15613 handling. Generate fontconfig's fontname pattern.
15614
15615 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15616 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15617
15618 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15619 Both args FONTSET and FONT_OBJECT must be existing ones.
15620
15621 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15622
15623 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15624
15625 2008-02-01 Kenichi Handa <handa@m17n.org>
15626
15627 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15628
15629 * font.h (struct font): Fix typo.
15630
15631 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15632 XLFD_XXX_INDEX.
15633 (enum xlfd_field_mask): New enum.
15634 (intern_font_field): Changed argument. Change caller. If digits
15635 are followed by non-digits, return a symbol.
15636 (font_expand_wildcards): New function.
15637 (font_parse_xlfd): Fix wildcard handling.
15638 (Ffont_spec): If :name is specified, reflect the info in the other
15639 properties.
15640
15641 * ftfont.c (ftfont_pattern_entity): Fix typo.
15642 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15643 locale.
15644
15645 2008-02-01 Kenichi Handa <handa@m17n.org>
15646
15647 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15648
15649 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15650 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15651 registry doesn't specify encoding part.
15652 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15653 (font_open_by_name): At first try parsing the name.
15654 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15655 as Lisp symbols.
15656
15657 * fontset.c (reorder_font_vector): Pay attention to the case that
15658 the 3rd element of font_def is nil.
15659 (fontset_font): For the default fontset, append one more fontset
15660 elements for a script-based font specification. Don't add script
15661 attribute on finding a font.
15662 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15663 font name.
15664 (fontset_ascii_font): If a font can't be opened, return nil.
15665
15666 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15667 (ftfont_pattern_entity): New function.
15668 (ftfont_get_cache): Assume that freetype_font_cache is already
15669 initialized.
15670 (ftfont_list): Handle the case that a file is specified in font
15671 name. Use ftfont_pattern_entity to generate entities.
15672 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15673 (syms_of_ftfont): Initialize freetype_font_cache.
15674
15675 * xftfont.c (xftfont_open): Make the font name fontconfig's
15676 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15677 (xftfont_close): Free font->font.name if not NULL.
15678
15679 * xfont.c (xfont_list): If script is specified for a font, return
15680 null_vector.
15681 (xfont_list_family): Declare argument type.
15682
15683 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15684 name, set LFACE_FONT (lface) to nil.
15685
15686 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15687 return Qnil.
15688
15689 2008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15692 (standard_args): Add "-enable-font-backend".
15693
15694 2008-02-01 Kenichi Handa <handa@m17n.org>
15695
15696 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15697 (struct xftdraw_list, xftdraw_list): Delete them.
15698 (register_xftdraw, check_xftdraw): Delete them.
15699 (xftfont_prepare_face): Don't call register_xftdraw.
15700 (xftfont_done_face): Don't call check_xftdraw.
15701 (xftfont_draw): Get background color only when with_background is
15702 nonzero.
15703
15704 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15705
15706 2008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 These changes are for the new font handling codes.
15709
15710 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15711 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15712 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15713 (FONTSRC, FONTOBJ): New variables.
15714 (obj): Add $(FONTOBJ).
15715 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15716 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15717 @LIBOTF_LIBS@.
15718 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15719 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15720
15721 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15722
15723 * character.h (Vscript_representative_chars): Extern it.
15724
15725 * character.c (Vscript_representative_chars): New variable.
15726 (syms_of_character): Declare it as a Lisp variable.
15727
15728 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15729 enable_font_backend is nonzero, accept the composition method
15730 COMPOSITION_WITH_GLYPH_STRING.
15731
15732 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15733 enumeration COMPOSITION_WITH_GLYPH_STRING.
15734
15735 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15736 members clip_x, clip_y, clip_width, and clip_height.
15737 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15738
15739 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15740 --enable-font-backend. Call syms_of_font.
15741
15742 * fns.c (assoc_no_quit): New function.
15743
15744 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15745 (face_for_font, new_fontset_from_font)
15746 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15747
15748 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15749 (fontset_font, fontset_ascii, face_for_char)
15750 (make_fontset_for_ascii_face, Ffont_info)
15751 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15752 is nonzero, use font-backend mechanism.
15753 (find_font_encoding): Make it non-static.
15754 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15755 New functions.
15756
15757 * frame.h (struct frame): New members resx and resy.
15758 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15759 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15760
15761 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15762 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15763
15764 * lisp.h (assoc_no_quit): Extern it.
15765
15766 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15767 Through out the file, use FONT_INFO_FROM_FACE instead of
15768 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15769 rif->per_char_metric.
15770 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15771 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15772 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15773 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15774 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15775 nonzero, use font-backend mechanism.
15776 (get_per_char_metric): New function.
15777
15778 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15779 (set_lface_from_font_name)
15780 (set_font_frame_param, free_realized_face)
15781 (prepare_face_for_display, clear_face_gcs)
15782 (Finternal_set_font_selection_order, realize_x_face)
15783 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15784 font-backend mechanism.
15785 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15786 (load_face_font) [USE_FONT_BACKEND]: Abort.
15787 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15788 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15789
15790 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15791 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15792 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15793 nonzero, register all available font drivers. Call
15794 x_default_font_parameter for deciding a font.
15795 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15796
15797 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15798 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15799 (x_set_glyph_string_clipping_exactly)
15800 (x_compute_glyph_string_overhangs)
15801 (x_draw_glyph_string_foreground)
15802 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15803 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15804 enable_font_backend is nonzero, use font-backend mechanism.
15805 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15806
15807 2008-02-01 Kenichi Handa <handa@m17n.org>
15808
15809 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15810 system_eol_type.
15811 (syms_of_coding): Initialize system_eol_type.
15812
15813 * process.c (Fset_process_coding_system): Inherit system's eol
15814 format if necessary.
15815
15816 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15817
15818 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15819
15820 2008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * coding.c (decode_eol): Pay attention to buffer relocation in
15823 del_range_2.
15824 (decode_coding): Call decode_eol before restoring undo_list.
15825
15826 2008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * charset.c (Fdefine_charset_internal): Fix setting of
15829 emacs_mule_bytes.
15830
15831 2008-02-01 Kenichi Handa <handa@m17n.org>
15832
15833 * keyboard.c (read_char): Check if C is a character or not before
15834 looking up Vkeyboard_translate_table.
15835
15836 2008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15839 condition to terminate the loop.
15840
15841 2008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * coding.c (produce_composition): Compare charbuf[i] instead of
15844 args[i] against 0.
15845 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15846
15847 2008-02-01 Kenichi Handa <handa@m17n.org>
15848
15849 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15850 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15851 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15852 detect_coding.
15853 (emacs_mule_char): Handle old style (Emacs 20) component character
15854 of a composition.
15855 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15856 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15857 composition rule.
15858 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15859
15860 2008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * coding.c (encode_coding_ccl): Allocate destination dynamically
15863 when necessary.
15864
15865 2008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15868 the loop. When quitted, show a proper error message.
15869
15870 2008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15873 src->clip_head and src->clip_tail temporarily instead of src->hl.
15874
15875 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15876 character sequence.
15877 (Fccl_execute_on_string): Use ASET, not XSET.
15878
15879 2008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15882
15883 2008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * coding.c (decode_coding): Fix the condition of terminating the
15886 decoding loop.
15887
15888 2008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * data.c (Faset): On setting a character bigger than 255 in a
15891 unibyte string, signal an error instead of make the string multibyte.
15892
15893 2008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15896 made by a mapping table.
15897
15898 2008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15901 not.
15902 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15903 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15904
15905 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15906 s->face is NULL or not.
15907
15908 2008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15911 (x_draw_glyph_string): Fix drawing of right_overhang and
15912 left_overhang around/on cursor.
15913
15914 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15915
15916 2008-02-01 Kenichi Handa <handa@m17n.org>
15917
15918 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15919
15920 2008-02-01 Kenichi Handa <handa@m17n.org>
15921
15922 * coding.c (Fdefine_coding_system_internal)
15923 (Fdefine_coding_system_alias): Avoid a duplicated element in
15924 Vcoding_system_alist.
15925
15926 2008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15929
15930 * coding.c (Qcoding_system_define_form): New variable.
15931 (syms_of_coding): Intern and staticpro it.
15932 (Fcoding_system_p): Check Qcoding_system_define_form.
15933 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15934
15935 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15936 Fcoding_system_p.
15937 (CHECK_CODING_SYSTEM): If ID is not available, call
15938 Fcheck_coding_system.
15939 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15940 Try also Fcheck_coding_system.
15941
15942 2008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * coding.c (code_conversion_restore): GCPRO arg.
15945
15946 2008-02-01 Kenichi Handa <handa@m17n.org>
15947
15948 * character.c (lisp_string_width): Check multibyteness of STRING.
15949
15950 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15951
15952 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15953 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15954 (decode_mac_font_name): Use decode_coding_c_string instead of
15955 decode_coding.
15956 (x_load_font): Initialize fontp->fontset to -1. Set
15957 fontp->encoding_type.
15958
15959 2008-02-01 Kenichi Handa <handa@m17n.org>
15960
15961 * search.c (search_buffer): Give up BM search on case-fold-search
15962 if one of a target character has a case-equivalence of different
15963 byte length even if that target charcter is an ASCII.
15964 (simple_search): Fix calculation of byte length of matched text.
15965 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15966
15967 2008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * coding.c (decode_coding): Fix handling of invalid bytes.
15970
15971 2008-02-01 Kenichi Handa <handa@m17n.org>
15972
15973 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15974 Unicode characters.
15975
15976 2008-02-01 Kenichi Handa <handa@m17n.org>
15977
15978 * coding.c (encode_coding_object): If a pre-write-conversion
15979 function makes a new buffer, kill it.
15980
15981 2008-02-01 Kenichi Handa <handa@m17n.org>
15982
15983 * coding.c (QCascii_compatible_p): New variable.
15984 (syms_of_coding): Initialize it.
15985 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15986 calling string_char.
15987 (record_conversion_result): Add `default:' case.
15988 (coding_charset_list): Delete unused variable `coding_type'.
15989 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15990 property in the plist of the coding system.
15991 (Fcoding_system_put): Check QCascii_compatible_p.
15992
15993 2008-02-01 Miles Bader <miles@gnu.org>
15994
15995 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15996 removed calculation of frame `f', as it's now used.
15997
15998 2008-02-01 Kenichi Handa <handa@m17n.org>
15999
16000 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16001 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16002 (UNIDATA): New variable.
16003 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16004 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16005 $(RUN_TEMACS) unconditionally.
16006
16007 2008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16010 (admindir): New variable.
16011 ($(lispsource)international/charprop.el): New target.
16012
16013 2008-02-01 Miles Bader <miles@gnu.org>
16014
16015 * character.c (chars-in-region): Remove obsolete function.
16016 (syms_of_character): Remove its initialization.
16017
16018 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16019
16020 * w32select.c (validate_coding_system)
16021 (setup_windows_coding_system): New functions.
16022 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16023 setup_windows_coding_system.
16024 (setup_config, Fw32_get_clipboard_data): Use
16025 validate_coding_system.
16026 (Fx_selection_exists): Move call to setup_config to a place
16027 where signals are allowed.
16028
16029 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16030 (Fcheck_coding_system): Add declarations.
16031
16032 2008-02-01 Kenichi Handa <handa@m17n.org>
16033
16034 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16035
16036 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16037
16038 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16039 string as the second argument for x_new_fontset.
16040
16041 2008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16044 (encode_coding_object): Use safe_call instead of call2.
16045
16046 2008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16049
16050 * Makefile.in (lisp): Include charprop.el.
16051
16052 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16053
16054 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16055 Not sure if it's unnecessary.
16056
16057 2008-02-01 Steven Tamm <steventamm@mac.com>
16058
16059 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16060 some possibly unnecessary fontset checking code that crashed
16061 when creating a new frame.
16062
16063 2008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16066 lookup_face.
16067
16068 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16069
16070 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16071
16072 2008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16075 (coding_charset_list): New function.
16076
16077 * coding.h (coding_charset_list): Extern it.
16078
16079 2008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16082 concatenation of family and registry.
16083
16084 2008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * character.h (BYTE8_STRING): Fix typo.
16087
16088 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16089 string to multibyte (sync to HEAD).
16090
16091 * casefiddle.c (casify_region): Handle changes in byte-length
16092 using replace_range_2 (sync to HEAD).
16093
16094 2008-02-01 Andreas Schwab <schwab@suse.de>
16095
16096 * chartab.c (map_char_table): GCPRO table and arg.
16097
16098 2008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16101 already at limit.
16102
16103 2008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16106 instead of fast_c_string_match_ignore_case.
16107 (find_font_encoding): Change argument to Lisp_Object. Use
16108 fast_string_match_ignore_case instead of
16109 fast_c_string_match_ignore_case. Change caller.
16110
16111 2008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * xdisp.c (get_next_display_element): In unibyte case, decide to
16114 display in octal form by checking a character by
16115 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16116
16117 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16118
16119 * character.c (unibyte_has_multibyte_table): New variable.
16120
16121 * character.h (unibyte_has_multibyte_table): Extern it.
16122 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16123
16124 2008-02-01 Kenichi Handa <handa@m17n.org>
16125
16126 * coding.c (encode_coding_iso_2022): Fix handling of charset
16127 annotation.
16128
16129 2008-02-01 Kenichi Handa <handa@m17n.org>
16130
16131 * coding.c (setup_coding_system): If coding_system is nil, use
16132 Qundecided.
16133 (Fterminal_coding_system): Return nil if terminal coding system is
16134 `undecided'.
16135 (syms_of_coding): Define coding-system `undecided' here. Setup
16136 terminal_coding as `undecided'.
16137
16138 2008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * xdisp.c (message_dolog, set_message_1): Call
16141 unibyte_char_to_multibyte with arg type int.
16142
16143 * lread.c (read1): Fix reading of a char-table.
16144
16145 * print.c (print_object): Include sub char-table in circularities
16146 detection.
16147
16148 2008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16151 Append the found sequences in car of ARGS instead of prepending.
16152
16153 2008-02-01 Kenichi Handa <handa@m17n.org>
16154
16155 * fileio.c (report_file_error): Make a unibyte string from
16156 strerror (errorno).
16157 (Fsubstitute_in_file_name): Fix the arg to
16158 unibyte_char_to_multibyte. It is evaluated twice.
16159
16160 2008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16163
16164 2008-02-01 Kenichi Handa <handa@m17n.org>
16165
16166 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16167 BOM is not found.
16168 (detect_coding, detect_coding_system): Optimization for ISO-2022
16169 when no 8-bit data is found.
16170
16171 2008-02-01 Jason Rumney <jasonr@gnu.org>
16172
16173 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16174
16175 2008-02-01 Kenichi Handa <handa@m17n.org>
16176
16177 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16178 CHARS.
16179
16180 2008-02-01 Steven Tamm <steventamm@mac.com>
16181
16182 * macterm.c (mac_encode_char): Add charset argument and update
16183 to use encoding_type.
16184 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16185 switch to pure fontset.
16186 (decode_mac_font_name): Temporarily remove decoding.
16187 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16188 (x_load_font): Temporarily remove encoding.
16189
16190 2008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * xfaces.c (Fface_font): If frame is not on a window system,
16193 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16194 refer to face->font.
16195 (split_font_name_into_vector, build_font_name_from_vector)
16196 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16197 when HAVE_WINDOW_SYSTEM is defined.
16198
16199 2008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16202 (x_produce_glyphs): Fix setting of members of cmp in case
16203 cmp->glyph_len is zero.
16204
16205 * fontset.c (Fset_fontset_font): Fix docstring.
16206 (Ffontset_info): Make it backward compatible. New arg ALL.
16207
16208 2008-02-01 Kim F. Storm <storm@cua.dk>
16209
16210 * process.c (read_process_output): Grow decoding_buf when needed;
16211 this could cause a crash in allocate_string and compact_small_strings.
16212
16213 2008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16216
16217 2008-02-01 Kenichi Handa <handa@m17n.org>
16218
16219 * coding.c (setup_coding_system): Set coding->common_flags
16220 correctly for raw-text.
16221 (consume_chars): On encoding unibyte text by raw-text, don't check
16222 multibyte form.
16223 (encode_coding): On encoding by raw-text, never use translation tables.
16224
16225 * fileio.c (e_write): Short cut for the case of no encoding.
16226
16227 2008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * coding.c (detect_coding, detect_coding_system): Delete unused
16230 variables.
16231
16232 2008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16235 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16236
16237 2008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * coding.c (Ffind_coding_systems_region_internal): Include
16240 raw-text and no-conversion in the result.
16241
16242 2008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16245 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16246 FONT_DEF.
16247 (font_def_arg, add_arg, from_arg, to_arg): New args.
16248 (set_fontset_font): Change argument.
16249 (Fset_fontset_font): Fix for the case that TARGET is a script
16250 name and charset name.
16251 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16252
16253 2008-02-01 Kenichi Handa <handa@m17n.org>
16254
16255 * fontset.c (fontset_font): Rename from fontset_face. Change return
16256 value.
16257 (face_suitable_for_char_p, face_for_char): Adjust for the change
16258 of fontset_font.
16259 (make_fontset_for_ascii_face): Fix setting of the fontset element
16260 for ASCII.
16261 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16262 to get a font name.
16263 (Ffontset_info): Adjust for the change of fontset_font.
16264
16265 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16266
16267 * character.h (LEADING_CODE_LATIN_1_MIN)
16268 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16269
16270 2008-02-01 Kenichi Handa <handa@m17n.org>
16271
16272 * editfns.c (check_translation): New function.
16273 (Ftranslate_region_internal): Handle M:N mapping.
16274
16275 2008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16278
16279 2008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16282 goto invalid_code.
16283 (decode_coding_iso_2022): Fix handling of invalid designation.
16284
16285 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16286 after calling code_conversion_save.
16287
16288 2008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16291
16292 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16293
16294 * fontset.c: Include "intervals.h".
16295 (fontset_face): Fix comparing of Lisp_Objects.
16296 (free_face_fontset, new_fontset_from_font_name): Fix
16297 Lisp_Object/int mixup.
16298
16299 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16300
16301 * coding.c: Add many prototypes for static functions.
16302 (get_translation_table): Allow max_lookup to be NULL.
16303 (decode_coding, Ffind_coding_systems_region_internal)
16304 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16305 get_translation_table with max_lookup NULL.
16306
16307 2008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * coding.c (get_translation_table): Declare it as Lisp_Object.
16310 (LOOKUP_TRANSLATION_TABLE): New macro.
16311 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16312 instead of CHAR_TABLE_REF.
16313
16314 2008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16317 annotation data format.
16318 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16319 Change arguments FROM and TO to single argument NCHARS. Change caller.
16320 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16321 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16322 (decode_coding_ccl, decode_coding_charset): Pay attention to
16323 coding->charbuf_used.
16324 (get_translation): New function.
16325 (produce_chars): New arguments translation_table and last_block.
16326 Translate characters here. Return number of carryover chars.
16327 Change caller.
16328 (produce_composition): New argument pos. Change caller.
16329 Adjust for the change of annotation data format.
16330 (produce_charset, produce_annotation): Likewise.
16331 (decode_coding, encode_coding): Don't call translate_chars.
16332 (consume_chars): New arg translation_table. Change caller.
16333 (translate_chars): Delete.
16334 (syms_of_coding): Make translation-table's number of extra slots 2.
16335
16336 2008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * search.c (simple_search): Fix setting this_pos_byte in backward
16339 search.
16340
16341 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16342 byte sequence.
16343 (detect_coding_ccl): Fix setting of the variable valids.
16344
16345 2008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16348
16349 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16350
16351 * editfns.c (Ftranslate_region_internal): Rename from
16352 Ftranslate_region. Accept a char-table in TABLE.
16353 (syms_of_editfns): Defsubr Stranslate_region_internal.
16354
16355 * xfaces.c (set_lface_from_font_name): If a font is specified for
16356 a frame, generate a fontset from the font.
16357 (build_scalable_font_name): If the scalable font is requested for
16358 a specific size, don't change that size.
16359 (try_font_list): Try a scalable font also in the case that a
16360 pattern string is specified.
16361
16362 2008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * xfaces.c (Fface_font): New optional arg CHARACTER.
16365
16366 2008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * charset.h (CHARSET_OFFSET): New macro.
16369
16370 2008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16373
16374 * fontset.c (fontset_face): Handle the case that repertory is a
16375 char-table.
16376 (find_font_encoding): Return nil for unknown encoding.
16377 (Fset_fontset_font): Ignore a font of unknown encoding.
16378
16379 2008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * keymap.c (describe_vector): Handle default value of a char table.
16382
16383 * fontset.c (fontset_face): Handle fallback fonts correctly.
16384 (Ffontset_info): Return infomation about fallback fonts.
16385
16386 2008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * fontset.c (FONTSET_DEFAULT): New macro.
16389 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16390 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16391 the case that it is nil.
16392 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16393 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16394
16395 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16396 subset or superset.
16397
16398 2008-02-01 Kenichi Handa <handa@m17n.org>
16399
16400 * emacs.c (main): Call init_charset after syms_of_XXX.
16401
16402 * charset.c (Vcharset_map_directory): Delete.
16403 (Vcharset_map_path): New variable.
16404 (load_charset_map_from_file): Use Vcharset_map_path instead.
16405 (init_charset): Initialize Vcharset_map_path.
16406 (syms_of_charset): Delete declaration of "charset-map-directory",
16407 add declaration of "charset-map-path".
16408
16409 2008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16412 ASCII only string.
16413
16414 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16415
16416 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16417 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16418
16419 2008-02-01 Kenichi Handa <handa@m17n.org>
16420
16421 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16422
16423 * coding.c (QCmnemonic, QCdefalut_char)
16424 (QCdecode_translation_table, QCencode_translation_table)
16425 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16426 (get_translation_table): Return a list of translation tables if
16427 necessary.
16428 (decode_coding): Call get_translation_table with ENCODEP 0.
16429 (char_encodable_p): If translation_table is non-nil, always call
16430 translate_char.
16431 (Fdefine_coding_system_internal): Accept list of translation
16432 tables as :encode-translation-table and :decode-translation-table.
16433 (Fcoding_system_put): New function.
16434 (syms_of_coding): Declare new symbols. Defsubr
16435 Scoding_system_put.
16436 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16437 typically JISX0212.
16438
16439 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16440 when the charset is superset type.
16441
16442 * character.c (translate_char): Accept list of translation tables.
16443
16444 2008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16447 (CODING_ATTR_TRANS_TBL): New macro.
16448
16449 * coding.c (get_translation_table): New function.
16450 (translate_chars): Fix the bug of skipping annotation data.
16451 (decode_coding, encode_coding): Utilize get_translation_table.
16452 (char_encodable_p, Funencodable_char_position): Translate char if
16453 necessary.
16454 (Ffind_coding_systems_region_internal)
16455 (Fcheck_coding_systems_region): Setup translation table for encode
16456 in a coding system attribute vector in advance.
16457 (Fdefine_coding_system_internal): Allow a symbol as translation
16458 table. For shift-jis type coding system, allow 4th charset.
16459
16460 2008-02-01 Kenichi Handa <handa@m17n.org>
16461
16462 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16463
16464 * xdisp.c (get_next_display_element): Pass -1 as POS to
16465 FACE_FOR_CHAR if displaying a C-string.
16466
16467 2008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 * composite.c (get_composition_id): Handle xoff and yoff in a
16470 composition rule.
16471
16472 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16473 (struct composition): New member lbearing and rbearing.
16474
16475 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16476 (x_get_glyph_overhangs): Handle a composition glyph.
16477 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16478
16479 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16480 composition glyph.
16481
16482 2008-02-01 Kenichi Handa <handa@m17n.org>
16483
16484 * print.c: Include charset.h.
16485 (Vprint_charset_text_property): New variable.
16486 (Qdefault): Extern it.
16487 (PRINT_STRING_NON_CHARSET_FOUND)
16488 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16489 (print_check_string_result): New variable.
16490 (print_check_string_charset_prop): New function.
16491 (print_prune_charset_plist): New variable.
16492 (print_prune_string_charset): New function.
16493 (print_object): Call print_prune_string_charset if
16494 Vprint_charset_text_property is not t.
16495 (print_interval): Print nothing if interval->plist is nil.
16496 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16497 variable. Init and staticpro print_prune_charset_plist.
16498
16499 2008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * fontset.c (new_fontset_from_font_name): Use the specified font
16502 for all characters in the new fontset.
16503
16504 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16505 OBJECT args.
16506
16507 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16508 OBJECT args for composition too.
16509
16510 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16511 OBJECT args.
16512
16513 2008-02-01 Kenichi Handa <handa@m17n.org>
16514
16515 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16516
16517 * fontset.c (reorder_font_vector): Adjust for the change of
16518 FONT_DEF format.
16519 (fontset_face): New arg id. Change caller.
16520 (face_for_char): New args pos and object.
16521 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16522 (fs_query_fontset): Check NAME by Fassoc too.
16523 (Fset_fontset_font): Allow non-XLFD font name.
16524 (Ffontset_info): Adjust for the change of FONT_DEF format.
16525
16526 * fontset.h (face_for_char): Adjust prototype.
16527
16528 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16529 (append_space, extend_face_to_end_of_line)
16530 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16531 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16532
16533 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16534 POS and OBJECT args.
16535
16536 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16537 POS and OBJECT args.
16538
16539 2008-02-01 Jason Rumney <jasonr@gnu.org>
16540
16541 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16542 of GlobalAlloc'ed memory.
16543
16544 2008-02-01 Kenichi Handa <handa@m17n.org>
16545
16546 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16547
16548 * charset.h (charset_table_used): Delete extern.
16549
16550 * charset.c (charset_table_used): Make it static.
16551 (map_charset_chars): Fix args to c_function with.
16552
16553 * chartab.c (map_sub_char_table_for_charset): Fix args to
16554 c_function with.
16555
16556 * coding.h (enum coding_result_code): Delete
16557 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16558
16559 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16560 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16561 (Vlast_code_conversion_error): New variables.
16562 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16563 (ONE_MORE_BYTE): Record error if any instead of signaling an
16564 error. If non-ASCII multibyte char is found, return the negative
16565 value of the code. All callers changed to check it.
16566 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16567 (record_conversion_result): New function. Change all codes setting
16568 coding->result to call this function.
16569 (detect_coding_utf_8, decode_coding_utf_8)
16570 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16571 Don't use the local variable incomplete.
16572 (emacs_mule_char): Change the second arg to `const'.
16573 (decode_coding): Fix of flushing out unprocessed data.
16574 (make_conversion_work_buffer): Fix making of a work buffer.
16575 (decode_coding_object): Return coding->dst_object.
16576
16577 * fontset.c (set_fontset_font): Fix args.
16578
16579 * lisp.h (CHARACTERBITS): Define as 22.
16580
16581 * process.c (send_process): Be sure to set coding->src_multibyte.
16582
16583 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16584
16585 2008-02-01 Kenichi Handa <handa@m17n.org>
16586
16587 * xdisp.c (handle_auto_composed_prop): Give limit to
16588 Fnext_single_char_property_change.
16589
16590 2008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * composite.c (syms_of_composite): Don't make the composition hash
16593 table weak.
16594
16595 * fontset.c (Fset_fontset_font): Fix docstring.
16596
16597 * lisp.h (detect_coding_system): Adjust prototype.
16598
16599 * fileio.c (kill_workbuf_unwind): Delete this function.
16600 (Finsert_file_contents): Adjust the call of detect_coding_system.
16601 Get conversion_buffer by code_conversion_save. Use the macro
16602 CODING_MAY_REQUIRE_DECODING. After decoding, update
16603 coding_system.
16604
16605 * coding.h (make_conversion_work_buffer): Delete extern.
16606 (code_conversion_save): Extern it.
16607
16608 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16609 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16610 (decode_coding_utf_8): Don't do eol converion.
16611 (detect_coding_utf_16): Check coding->src_chars, not
16612 coding->src_bytes. Add heuristics for those that have no signature.
16613 (decode_coding_emacs_mule, decode_coding_iso_2022)
16614 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16615 Don't do eol converion.
16616 (adjust_coding_eol_type): Return a new coding system.
16617 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16618 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16619 each change.
16620 (decode_coding): Pay attention to undo_list. Do eol conversion for
16621 all types of coding-systems (if necessary).
16622 (Vcode_conversion_work_buf_list): Delete it.
16623 (Vcode_conversion_reused_workbuf): Rename from
16624 Vcode_conversion_reused_work_buf.
16625 (Vcode_conversion_workbuf_name): New variable.
16626 (reused_workbuf_in_use): New variable.
16627 (make_conversion_work_buffer): Delete the arg DEPTH.
16628 (code_conversion_restore): Change argument to cons.
16629 (code_conversion_save): Delete the argument BUFFER. Change callers.
16630 (detect_coding_system): New argument src_chars. Change callers.
16631 Fix for utf-16 detection.
16632 (init_coding_once): Don't use ISO_carriage_return.
16633 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16634 reused_workbuf_in_use.
16635
16636 2008-02-01 Kenichi Handa <handa@m17n.org>
16637
16638 * keymap.c (store_in_keymap): Pay attention to the case that idx
16639 is a cons specifying a character range.
16640
16641 2008-02-01 Kenichi Handa <handa@m17n.org>
16642
16643 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16644 HANDLED_RECOMPUTE_PROPS.
16645
16646 * coding.c (Fdefine_coding_system_internal): Fix checking of
16647 ascii compatibility.
16648
16649 2008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * charset.c (find_charsets_in_text): Delete unused locale variable.
16652 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16653
16654 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16655 Resync charset_list to Vemacs_mule_charset_list.
16656
16657 * keymap.c (store_in_keymap): Pay attention to the case that idx
16658 is a cons specifying a character range.
16659
16660 2008-02-01 Kenichi Handa <handa@m17n.org>
16661
16662 * composite.c (update_compositions): Bind inhibit-read-only, etc
16663 to t before calling remove-list-of-text-properties.
16664
16665 * print.c (print_object): Always print ASCII chars as is.
16666
16667 2008-02-01 Kenichi Handa <handa@m17n.org>
16668
16669 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16670
16671 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16672 is a char table.
16673
16674 2008-02-01 Kenichi Handa <handa@m17n.org>
16675
16676 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16677
16678 2008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * xfaces.c (set_lface_from_font_name): Fix for the case that
16681 FONTNAME is not fontset name.
16682
16683 2008-02-01 Kenichi Handa <handa@m17n.org>
16684
16685 * fns.c (base64_encode_1): Fix previous change.
16686
16687 2008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * fontset.c (set_fontset_font): New function.
16690 (Fset_fontset_font): If a font is specified for a charset, use
16691 map_charset_chars to store the font spec in a fontset.
16692
16693 2008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 * fontset.c (fontset_face): Create a fallback fontset on demand.
16696 (make_fontset): Don't create a fallback fontset here.
16697 (free_face_fontset): Free a fallback fontset (if any) too.
16698 (n_auto_fontsets): Delete this variable.
16699 (auto_fontset_alist): New variable.
16700 (new_fontset_from_font_name): Check auto_fontset_alist.
16701 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16702 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16703 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16704 Defsubr Sfontset_list_all.
16705
16706 2008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16709
16710 2008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16713
16714 2008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * editfns.c (Fgoto_char): Fix docstring.
16717
16718 2008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * insdel.c (insert_from_gap): Adjust intervals correctly.
16721
16722 2008-02-01 Jason Rumney <jasonr@gnu.org>
16723
16724 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16725 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16726 (w32_initialize): Try to load it.
16727 (x_get_font_repertory): Use it if available.
16728 (w32_encode_char): Add shortcut for unicode output.
16729
16730 * w32fns.c (w32_load_system_font): Default charset to -1.
16731 (x_to_w32_charset): Match all fonts for unicode.
16732 (w32_to_x_charset): New parameter matching. Don't return partial
16733 or wildcard charsets.
16734 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16735 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16736 (w32_to_x_font): Match charset to real charset.
16737 (enum_font_cb2): Always list unicode versions.
16738
16739 * makefile.w32-in (temacs): Increase EMHEAP.
16740
16741 2008-02-01 Jason Rumney <jasonr@gnu.org>
16742
16743 * w32term.c (w32_encode_char): New charset parameter.
16744 font_info.encoding becomes encoding_type.
16745 (x_get_font_repertory): New function. Warning: stub only!
16746 (x_new_font): Return quickly if font already set.
16747 (x_new_fontset): fontsetname parameter is Lisp_Object.
16748 Use new fs_query_fontset. Try new_fontset_from_font_name.
16749 Use fontset_name for return value.
16750
16751 * w32term.h: Declare x_get_font_repertory.
16752
16753 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16754 place of find_charset_in_text. Use encode_coding_object in place
16755 of encode_coding.
16756 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16757 decode_coding.
16758
16759 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16760 of x_new_fontset.
16761 (w32_load_system_font): Initialize charset as unicode.
16762 font_info.encoding becomes encoding_type.
16763 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16764 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16765 (syms_of_w32fns): Set get_font_repertory_func.
16766
16767 * w32console.c: Include character.h. Use terminal_encode_buffer
16768 from term.c.
16769 (write_glyphs): Use new version of encode_terminal_code. Use
16770 encode_coding_object in place of encode_coding.
16771
16772 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16773 encoding becomes encoding_type.
16774
16775 * term.c (terminal_encode_buffer): Make externally visible.
16776
16777 * makefile.w32-in: Add character.h dependancies.
16778 (character.o, chartab.o): New targets.
16779
16780 2008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16783 CODING_ID_EOL_TYPE.
16784
16785 2008-02-01 Andreas Schwab <schwab@suse.de>
16786
16787 * coding.c (produce_chars): Revert last change.
16788
16789 2008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * charset.h (charset_unicode): Extern it.
16792
16793 * charset.c (string_xstring_p): Check by (C >= 0x100).
16794 (find_charsets_in_text): Change format of the arc CHARSETS. New
16795 arg MULTIBYTE.
16796 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16797 change of find_charsets_in_text.
16798 (Fsplit_char): Fix doc. Never return unknown.
16799
16800 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16801
16802 * coding.c (Fdefine_coding_system_alias): Update
16803 Vcoding_system_list.
16804
16805 * fontset.c (load_font_get_repertory): Pay attention to the case
16806 that ENCODING of a font is specified by a char-table.
16807
16808 * xterm.c (x_get_font_repertory): Handle the case that the
16809 encoding of font is other than Unicode.
16810
16811 2008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16814 if a character is encodable by the terminal coding system. If
16815 not, produces proper number of `?'s. Update
16816 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16817 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16818
16819 2008-02-01 Kenichi Handa <handa@m17n.org>
16820
16821 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16822 variables.
16823 (encode_terminal_code): Change argument. Encode multiple
16824 characters at once. Store the result of encoding in
16825 terminal_encode_buffer.
16826 (write_glyphs, insert_glyphs): Adjust for the change of
16827 encode_terminal_code.
16828 (term_init): Initialize terminal_encode_buffer and
16829 terminal_encode_buf_size.
16830
16831 * coding.c (consume_chars): If coding->src_object is nil, don't
16832 check annotation.
16833
16834 2008-02-01 Kenichi Handa <handa@m17n.org>
16835
16836 * character.c (char_string): Use ASCII_CHAR_P instead of
16837 SINGLE_BYTE_CHAR_P.
16838
16839 2008-02-01 Kenichi Handa <handa@m17n.org>
16840
16841 * xdisp.c (handle_auto_composed_prop): Check if the last
16842 characters of auto-composed region is newly composed with the
16843 following characters.
16844 (handle_composition_prop): Fix checking of point being inside
16845 composition.
16846
16847 2008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 * fns.c (concat): Don't change multibyteness of the result by
16850 concatenating an 8-bit character.
16851
16852 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16853 multibyteness of the result when newelt is an 8-bit character.
16854
16855 2008-02-01 Dave Love <fx@gnu.org>
16856
16857 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16858 EMACS_INT.
16859
16860 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16861
16862 * xfaces.c (face_numeric_value): Declare dim size_t.
16863 (Finternal_lisp_face_equal_p): Remove unused f.
16864
16865 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16866 (MATRIX_ROW): Remove unused vars.
16867 (draw_glyphs, x_insert_glyphs, fast_find_position)
16868 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16869 byte/char counts.
16870
16871 * regex.c (regex_compile): Remove unused var.
16872
16873 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16874
16875 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16876 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16877
16878 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16879
16880 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16881
16882 * fileio.c (Fwrite_region): Remove unused var.
16883
16884 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16885 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16886
16887 * composite.c (Fremove_list_of_text_properties): Declare.
16888
16889 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16890 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16891 (coding_inherit_eol_type): Remove unused attrs.
16892 (detect_coding): Cast arg of detect_eol.
16893
16894 * charset.c (syms_of_charset): Remove unused var p.
16895 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16896 byte/char counts.
16897
16898 * casetab.c (set_case_table): Remove unused var.
16899
16900 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16901 unused vars.
16902
16903 2008-02-01 Dave Love <fx@gnu.org>
16904
16905 * xterm.c (x_bitmap_mask): Declare.
16906
16907 2008-02-01 Dave Love <fx@gnu.org>
16908
16909 * xterm.c (x_term_init): Fix type error.
16910
16911 * lisp.h: Add Funibyte_char_to_multibyte.
16912
16913 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16914 (Fset_coding_system_priority): Doc fix.
16915
16916 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16917
16918 * indent.c (check_composition): Make start and end EMACS_INT.
16919
16920 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16921
16922 * xdisp.c (handle_composition_prop, check_point_in_composition):
16923 Make buffer positions EMACS_INT.
16924
16925 * composite.c (find_composition, run_composition_function)
16926 (update_compositions, Ffind_composition_internal): Make buffer
16927 positions EMACS_INT.
16928
16929 * composite.h (find_composition, update_compositions): Make
16930 position args EMACS_INT.
16931
16932 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16933
16934 * intervals.c (get_property_and_range):
16935 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16936
16937 * unexalpha.c: Don't include varargs.h.
16938
16939 2008-02-01 Dave Love <fx@gnu.org>
16940
16941 * coding.h (ENCODE_UTF_8): New.
16942
16943 * Makefile.in (gtkutil.o): Depend on coding.h.
16944
16945 * coding.c (Fset_coding_system_priority): Doc fix.
16946
16947 2008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16950 the case of auto saving.
16951
16952 2008-02-01 Andreas Schwab <schwab@suse.de>
16953
16954 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16955 `range' from GC.
16956
16957 2008-02-01 Kenichi Handa <handa@m17n.org>
16958
16959 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16960
16961 2008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * fileio.c (choose_write_coding_system): Return a decided coding system.
16964 (Fwrite_region): Set Vlast_coding_system_used to the return value
16965 of choose_write_coding_system.
16966
16967 2008-02-01 Kenichi Handa <handa@m17n.org>
16968
16969 * charset.c (Fset_charset_priority): Pay attention to duplicated
16970 arguments.
16971
16972 * coding.c (QCcategory): New variable.
16973 (syms_of_coding): Defsym it. Set all elements of
16974 Vcoding_category_table and their symbol values.
16975 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16976 coding-category-XXX, and coding-category-list.
16977 (Fdefine_coding_system_internal): Add category in the plist.
16978
16979 2008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 * callproc.c (Fcall_process): Handle carryover correctly.
16982
16983 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16984 (raw_text_coding_system): Check NILP (coding_system).
16985 (coding_inherit_eol_type): Check NILP (coding_system) and
16986 NILP (parent).
16987 (consume_chars): Fix for the case of raw-text.
16988
16989 * process.c (read_process_output): Handle carryover correctly.
16990
16991 2008-02-01 Dave Love <fx@gnu.org>
16992
16993 * regex.c (re_search_2): Fix last change.
16994
16995 2008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16998 target_multibyte. Even in a unibyte case, return a converted
16999 multibyte char.
17000 (GET_CHAR_AFTER): New macro.
17001 (PATFETCH): Translate via multibyte char.
17002 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17003 (SETUP_MULTIBYTE_RANGE): New macro.
17004 (regex_compile): Setup compiled code so that its multibyteness
17005 matches that of a target. Fix the handling of "[X-YZ]" using
17006 SETUP_MULTIBYTE_RANGE.
17007 (analyse_first) <charset>: For filling fastmap for all multibyte
17008 characters, don't check by BASE_LEADING_CODE_P.
17009 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17010 the same as RE_MULTIBYTE_P (bufp) now.
17011 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17012 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17013 (TRANSLATE_VIA_MULTIBYTE): New macro.
17014 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17015 It is the same as RE_MULTIBYTE_P (bufp) now.
17016 <exactn>: Translate via multibyte.
17017 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17018 translate it.
17019 <charset, charset_not>: Fetch a character by
17020 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17021 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17022 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17023 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17024 by GET_CHAR_AFTER.
17025 (bcmp_translate): Likewise.
17026
17027 * search.c (compile_pattern): Check the member target_multibyte,
17028 not the member multibyte of buf.
17029
17030 * lread.c (read1): While reading a string, set force_singlebyte
17031 and force_multibyte correctly.
17032
17033 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17034 up of unibyte_to_multibyte_table.
17035
17036 2008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * coding.c (setup_coding_system): If coding has
17039 post-read-conversion or pre-write-conversion, set
17040 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17041 respectively.
17042 (decode_coding_gap): Run post-read-conversion if any.
17043
17044 * fileio.c (Finsert_file_contents): Even if we read into a
17045 unibyte buffer, check if we must decode the result or not.
17046
17047 2008-02-01 Kenichi Handa <handa@m17n.org>
17048
17049 * coding.c (make_conversion_work_buffer): Change the work buffer
17050 name to the same one as that of Emacs 21.
17051
17052 2008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * coding.h (make_conversion_work_buffer): Adjust prototype.
17055 (code_conversion_restore): Don't extern it.
17056
17057 * coding.c (detected_mask): Delete unused variable.
17058 (decode_coding_iso_2022): Pay attention to the byte sequence of
17059 CTEXT extended segment, and retain those bytes as is.
17060 (decode_coding_ccl): Delete unused variable `valids'.
17061 (setup_coding_system): Delete unused variable `category'.
17062 (consume_chars): Delete unused variable `category'. Make it work
17063 for non-multibyte case.
17064 (make_conversion_work_buffer): Change argument.
17065 (saved_coding): Delete unused variable.
17066 (code_conversion_restore): Don't check saved_coding->destination.
17067 (code_conversion_save): New function.
17068 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17069 instead of record_unwind_protect.
17070 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17071 (detect_coding_system): Delete unused variable `mask'.
17072 (Fdefine_coding_system_internal): Delete unused variable id.
17073
17074 * fileio.c (kill_workbuf_unwind): New function.
17075 (Finsert_file_contents): On replacing, call
17076 make_conversion_work_buffer with correct args, and call
17077 record_unwind_protect with the first arg kill_workbuf_unwind.
17078
17079 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17080
17081 2008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17084 (fontset_add): Fix for the case that TO is less than TO1.
17085 (Ffontset_info): Don't use fallback fontset on checking the
17086 default fontset.
17087 (dump_fontset): New function for debugging.
17088
17089 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17090 coding_type is Qcharset.
17091
17092 2008-02-01 Kenichi Handa <handa@m17n.org>
17093
17094 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17095 (map_char_table): Don't inherit the value from the parent on
17096 initializing VAL. Adjust for the above change.
17097
17098 2008-02-01 Kenichi Handa <handa@m17n.org>
17099
17100 * coding.c (Qsignature, Qendian): Delete these variables.
17101 (syms_of_coding): Don't initialize them.
17102 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17103 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17104 detect_info->found.
17105 (decode_coding_utf_16): Don't detect BOM here.
17106 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17107 is NOT utf_16_without_bom.
17108 (setup_coding_system): For a coding system of type utf-16, check
17109 if the attribute :endian is Qbig or not (not nil or not), and set
17110 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17111 (detect_coding): If coding type is utf-16 and BOM detection is
17112 required, detect it.
17113 (Fdefine_coding_system_internal): For a coding system of type
17114 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17115
17116 2008-02-01 Kenichi Handa <handa@m17n.org>
17117
17118 * coding.c (coding_set_source): Fix for the case that the current
17119 buffer is different from coding->src_object.
17120 (decode_coding_object): Don't use the conversion work buffer if
17121 DST_OBJECT is a buffer.
17122
17123 2008-02-01 Dave Love <fx@gnu.org>
17124
17125 * lread.c (read_emacs_mule_char) [len==2]: Index
17126 emacs_mule_charset correctly.
17127
17128 2008-02-01 Dave Love <fx@gnu.org>
17129
17130 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17131 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17132 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17133 treated specially.)
17134 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17135 (detected_mask): Remove Big5 bits.
17136
17137 2008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 The following changes are to make the font rescaling facility
17140 compatible with Emacs 21.
17141
17142 * xfaces.c (Vface_font_rescale_alist): Rename from
17143 Vface_resizing_fonts.
17144 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17145 (font_rescale_ratio): Rename from font_resizing_ratio.
17146 (split_font_name): Set font->rescale_ratio.
17147 (better_font_p): Pay attention to font->rescale_ratio.
17148 (build_scalable_font_name): Likewise. Change RESX, and RESY
17149 fields.
17150 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17151
17152 2008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17155 (Qutf_16_le): Remove these variables.
17156 (syms_of_coding): Don't DEFSYM them.
17157 (decode_coding_utf_16): Fix handling of BOM.
17158 (encode_coding_utf_16): Fix handling of BOM.
17159
17160 2008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * fileio.c (Finsert_file_contents): On replacing, before decoding
17163 the file into the work buffer, set point of the work buffer to the end.
17164
17165 2008-02-01 Dave Love <fx@gnu.org>
17166
17167 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17168
17169 2008-02-01 Dave Love <fx@gnu.org>
17170
17171 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17172 and fix C types.
17173
17174 2008-02-01 Kenichi Handa <handa@m17n.org>
17175
17176 * xdisp.c (SKIP_GLYPHS): New macro.
17177 (set_cursor_from_row): Pay attention to string display properties.
17178
17179 * category.c (copy_category_entry): Fix for the case that RANGE
17180 is an integer.
17181
17182 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17183
17184 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17185
17186 2008-02-01 Kenichi Handa <handa@m17n.org>
17187
17188 * charset.c (Fcharset_id_internal): New function.
17189 (syms_of_charset): Defsubr it.
17190
17191 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17192 with the last arg charset_list acquired from coding.
17193 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17194 the attribute coding_attr_ccl_valids.
17195
17196 * coding.h (enum define_coding_ccl_arg_index): Set the first
17197 member coding_arg_ccl_decoder to coding_arg_max.
17198
17199 * ccl.h (ccl_driver): Adjust prototype.
17200
17201 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17202 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
17203 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
17204 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17205 last arg Qnil.
17206
17207 2008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17210 call encode_char.
17211
17212 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17213
17214 2008-02-01 Dave Love <fx@gnu.org>
17215
17216 * composite.c (syms_of_composite): Make composition_hash_table weak.
17217
17218 2008-02-01 Kenichi Handa <handa@m17n.org>
17219
17220 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17221 (font_name_registry): Don't extern them.
17222 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17223
17224 * fontset.h (Qfontset): Don't extern it.
17225 (new_fontset_from_font_name): Extern it.
17226
17227 * fontset.c: Give 8 extra slots to fontset objects.
17228 (Qfontset_info): New variable.
17229 (syms_of_fontset): Defsym it.
17230 (FONTSET_FALLBACK): New macro.
17231 (fontset_face): Try also the default fontset.
17232 (make_fontset): Realize a fallback fontset from the default fontset.
17233 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17234 using split_font_name_into_vector and build_font_name_from_vector.
17235 (Fset_fontset_font): Access the elements of font_spec by enum
17236 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17237 name by using split_font_name_into_vector.
17238 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17239 generate a proper font name from the fontset name. Update
17240 Vfontset_alias_alist.
17241 (n_auto_fontsets): New variable.
17242 (new_fontset_from_font_name): New function.
17243 (Ffont_info): Store the information about fonts generated from the
17244 default fontset in the first extra slot of the returned char-table.
17245
17246 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17247 (font_name_registry): Delete function.
17248 (split_font_name_into_vector): New function.
17249 (build_font_name_from_vector): New function.
17250 (font_list): The argument REGISTRY is now a list of registry names.
17251 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17252 specifies an explicit font name, return the name as is. Make a
17253 list of registy names.
17254
17255 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17256 of x_new_fontset.
17257 (Fx_create_frame): Don't call x_new_fontset here. Just use
17258 x_list_fonts to check the existence of fonts.
17259
17260 * xterm.h (x_new_fontset): Adjust prototype.
17261
17262 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17263 string. Use new_fontset_from_font_name to create a fontset from a
17264 font name.
17265
17266 2008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * syntax.c (Vfind_word_boundary_function_table): New name for
17269 Vnext_word_boundary_function_table.
17270 (find-word-boundary-function-table): New name for
17271 next-word-boundary-function-table.
17272
17273 2008-02-01 Dave Love <fx@gnu.org>
17274
17275 * Makefile.in: Fix some dependencies.
17276
17277 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17278 set it to nil before returning.
17279
17280 * composite.c (update_compositions): Fix type error.
17281
17282 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17283
17284 2008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * xterm.c (x_new_font): Optimize for the case that the font is
17287 already set for the frame.
17288
17289 2008-02-01 Kenichi Handa <handa@m17n.org>
17290
17291 * chartab.c (char_table_ascii): Check if the char table contents
17292 is sub-char-table or not.
17293 (char_table_set, char_table_set_range): Fix argument to
17294 char_table_ascii.
17295
17296 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17297 (detect_coding_utf_8, detect_coding_utf_16)
17298 (detect_coding_emacs_mule, detect_coding_iso_2022)
17299 (detect_coding_sjis, detect_coding_big5)
17300 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17301 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17302 sequence is valid in this coding system. Change callers.
17303 (MAX_ANNOTATION_LENGTH): New macro.
17304 (ADD_ANNOTATION_DATA): New macro.
17305 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17306 ADD_ANNOTATION_DATA. Change the format of annotation data.
17307 (ADD_CHARSET_DATA): New macro.
17308 (emacs_mule_char): New argument ID. Change callers.
17309 (decode_coding_emacs_mule, decode_coding_iso_2022)
17310 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17311 Produce charset annotation data in coding->charbuf.
17312 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17313 to charset annotation data in coding->charbuf.
17314 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17315 coding->common_flags if the coding system is iso-2022 based and
17316 uses designation.
17317 (produce_composition): Adjust for the new annotation data format.
17318 (produce_charset): New function.
17319 (produce_annotation): Handle charset annotation.
17320 (handle_composition_annotation, handle_charset_annotation): New
17321 functions.
17322 (consume_chars): Handle charset annotation. Utilize the above two
17323 functions.
17324 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17325 buffer, get the deleted text as a string and set
17326 coding->src_object to that string.
17327 (detect_coding, detect_coding_system): Use the new struct
17328 coding_detection_info.
17329
17330 * coding.h (struct coding_detection_info): New structure.
17331 (struct coding_system): Adjust prototype of the member `detector'.
17332 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17333
17334 2008-02-01 Kenichi Handa <handa@m17n.org>
17335
17336 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17337
17338 2008-02-01 Dave Love <fx@gnu.org>
17339
17340 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17341 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17342 to new local and nullify apropos_accumulate before returning.
17343 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17344
17345 2008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17348 correctly.
17349
17350 2008-02-01 Dave Love <fx@gnu.org>
17351
17352 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17353
17354 2008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 The following changes are to make character composition happen
17357 automatically on displaying.
17358
17359 * Makefile.in (lisp, shortlisp): Add composite.elc.
17360
17361 * composite.h (Qauto_composed, Vauto_composition_function)
17362 (Qauto_composition_function): Extern them.
17363
17364 * composite.c (Vcomposition_function_table)
17365 (Qcomposition_function_table): Delete variables.
17366 (Qauto_composed, Vauto_composition_function)
17367 (Qauto_composition_function): New variables.
17368 (run_composition_function): Don't call
17369 compose-chars-after-function.
17370 (update_compositions): Clear `auto-composed' text property.
17371 (compose_chars_in_text): Delete this function.
17372 (syms_of_composite): Staticpro Qauto_composed and
17373 Qauto_composition_function. Declare Vauto_composition_function as
17374 a Lisp variable.
17375
17376 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17377
17378 * xdisp.c (it_props): Add an entry for Qauto_composed.
17379 (handle_auto_composed_prop): New function.
17380
17381 * xselect.c (selection_data_to_lisp_data): Don't call
17382 compose_chars_in_text.
17383
17384 2008-02-01 Dave Love <fx@gnu.org>
17385
17386 * keyboard.c (read_char): Modify checking around use of
17387 Vkeyboard_translate_table.
17388
17389 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17390 and fix C types.
17391
17392 2008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17395 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17396 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17397 the case that the last byte is '\r' correctly.
17398 (decode_coding): Flush out the unprocessed data correctly.
17399 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17400
17401 2008-02-01 Dave Love <fx@gnu.org>
17402
17403 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17404 Add XK_ISO... case.
17405 (xaw_scroll_callback): Revert last change.
17406
17407 2008-02-01 Kenichi Handa <handa@m17n.org>
17408
17409 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17410
17411 2008-02-01 Kenichi Handa <handa@m17n.org>
17412
17413 * xfaces.c (Vface_resizing_fonts): New variable.
17414 (struct font_name): New member `resizing_ratio'.
17415 (font_resizing_ratio): New function.
17416 (split_font_name): Set font->resizing_ratio.
17417 (better_font_p): Pay attention to font->resizing_ratio.
17418 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17419 RESX, and RESY fields.
17420 (try_alternative_families): Try scalable fonts if
17421 Vscalable_fonts_allowed is not Qt.
17422 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17423
17424 2008-02-01 Dave Love <fx@gnu.org>
17425
17426 * xterm.c (xaw_scroll_callback): Cast correctly.
17427
17428 2008-02-01 Dave Love <fx@gnu.org>
17429
17430 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17431 (lispy_kana_keys): Comment out.
17432 (make_lispy_event) [XK_kana_A]: Comment out.
17433
17434 * xterm.c (xaw_scroll_callback): Cast call_data.
17435 (XTread_socket): Deal with ASCII keysyms.
17436 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17437
17438 2008-02-01 Dave Love <fx@gnu.org>
17439
17440 * xterm.c (Vx_keysym_table): New.
17441 (syms_of_xterm): Initialize it.
17442 (XTread_socket): Use it.
17443 From head: Eliminate incorrect optimization that tried to avoid
17444 decoding the output of X*LookupString.
17445 (x_get_font_repertory): Delete charset declaration.
17446
17447 2008-02-01 Kenichi Handa <handa@m17n.org>
17448
17449 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17450 return 0.
17451 (Fdefine_coding_system_internal): Setup
17452 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17453
17454 2008-02-01 Dave Love <fx@gnu.org>
17455
17456 * coding.c (Fcheck_coding_system): Doc fix.
17457
17458 * editfns.c (Finsert_byte): Return a proper value.
17459
17460 2008-02-01 Kenichi Handa <handa@m17n.org>
17461
17462 * coding.c (decode_coding): Fix args to translate_chars. Pay
17463 attention to Vstandard_translation_table_for_decode.
17464 (encode_coding): Fix args to translate_chars. Pay attention to
17465 Vstandard_translation_table_for_encode.
17466
17467 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17468 SINGLE_BYTE_CHAR_P.
17469
17470 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17471 not by SINGLE_BYTE_CHAR_P.
17472
17473 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17474 SINGLE_BYTE_CHAR_P.
17475
17476 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17477 SINGLE_BYTE_CHAR_P.
17478
17479 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17480 by SINGLE_BYTE_CHAR_P.
17481
17482 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17483 SINGLE_BYTE_CHAR_P.
17484
17485 2008-02-01 Dave Love <fx@gnu.org>
17486
17487 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17488
17489 2008-02-01 Dave Love <fx@gnu.org>
17490
17491 * fns.c (Flanginfo): Fix typo.
17492
17493 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17494
17495 2008-02-01 Kenichi Handa <handa@m17n.org>
17496
17497 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17498 (detect_coding_emacs_mule, detect_coding_iso_2022)
17499 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17500 incomplete byte sequence. Don't update *mask when correctly detected.
17501 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17502 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17503 (detect_coding, detect_coding_system): Adjust for the changes above.
17504
17505 2008-02-01 Kenichi Handa <handa@m17n.org>
17506
17507 * character.c (char_string): Rename from
17508 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17509 (string_char): Rename from string_char.
17510
17511 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17512 if C is greater than MAX_3_BYTE_CHAR.
17513 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17514 string_char instead of string_char_with_unification.
17515
17516 2008-02-01 Dave Love <fx@gnu.org>
17517
17518 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17519
17520 2008-02-01 Kenichi Handa <handa@m17n.org>
17521
17522 * keymap.c (push_key_description): Pay attention to force_multibyte.
17523
17524 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17525
17526 2008-02-01 Dave Love <fx@gnu.org>
17527
17528 * charset.c (define_charset_internal): Rename `supprementary'.
17529
17530 * Makefile.in (lisp, shortlisp): Remove latin-N.
17531
17532 2008-02-01 Dave Love <fx@gnu.org>
17533
17534 * xfns.c (x_window, x_window): Use use_xim.
17535
17536 * xterm.c (use_xim): Initialize.
17537 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17538 (x_term_init): Maybe set use_xim.
17539
17540 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17541
17542 2008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * search.c (search_buffer): Fix case-fold-search of multibyte
17545 characters.
17546 (boyer_moore): Rename the last argument to char_high_bits.
17547
17548 2008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * xdisp.c (display_string): Fix for the case of zero width glyph.
17551
17552 * xfns.c (x_set_font): Change the error message of the case that
17553 x_new_fontset returns Qt.
17554
17555 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17556 (Finternal_set_lisp_face_attribute): Use signal_error for the
17557 error of invalid fontset.
17558
17559 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17560 fontset, return Qt.
17561
17562 2008-02-01 Dave Love <fx@gnu.org>
17563
17564 * unexelf.c (unexec): Make .got handling not SGI-specific.
17565
17566 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17567
17568 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17569
17570 * keyboard.c (read_key_sequence): Fix type error.
17571
17572 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17573 type error.
17574
17575 * fontset.c (fontset_add): Return Lisp_Object.
17576
17577 2008-02-01 Dave Love <fx@gnu.org>
17578
17579 * charset.h (charset_ordered_list_tick): Declare extern.
17580
17581 2008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 The following changes (and some of 2008-02-01 changes of mine) are
17584 for handling syntax, category, and case conversion for unibyte
17585 characters by converting them to multibyte on the fly. With these
17586 changes, we don't have to setup syntax and case tables for unibyte
17587 characters in each language environment.
17588
17589 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17590 multibyte if necessary.
17591
17592 * bytecode.c (Fbyte_code): Likewise.
17593
17594 * character.h (LEADING_CODE_LATIN_1_MIN)
17595 (LEADING_CODE_LATIN_1_MAX): New macros.
17596 (unibyte_to_multibyte_table): Extern it.
17597 (unibyte_char_to_multibyte): New macro.
17598 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17599 (CHAR_LEADING_CODE): New macro.
17600 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17601
17602 * character.c (unibyte_to_multibyte_table): New variable.
17603 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17604 (multibyte_char_to_unibyte): If C is an eight-bit character,
17605 convert it to the corresponding byte value.
17606
17607 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17608 not 1, signals an error. Update the elements of
17609 unibyte_to_multibyte_table.
17610 (init_charset_once): Initialize unibyte_to_multibyte_table.
17611 (syms_of_charset): Define the charset `iso-8859-1'.
17612
17613 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17614 as is without converting it to unibyte. In a unibyte buffer,
17615 convert C to multibyte before checking the syntax.
17616
17617 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17618
17619 * minibuf.c (Fminibuffer_complete_word): Use the macro
17620 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17621
17622 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17623
17624 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17625 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17626 that is zero, convert an eight-bit char to multibyte.
17627 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17628 non-emacs case.
17629 (PATFETCH): Convert an eight-bit char to multibyte.
17630 (HANDLE_UNIBYTE_RANGE): New macro.
17631 (regex_compile): Setup the compiled pattern for multibyte chars
17632 even if the given regex string is unibyte. Use PATFETCH_RAW
17633 instead of PATFETCH in many places. To handle `charset'
17634 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17635 only for ASCII chars.
17636 (analyse_first) <exactn>: Simplify because the compiled pattern
17637 is multibyte.
17638 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17639 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17640 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17641 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17642 multibyte always 1.
17643 (re_search_2): In emacs, set the locale variable multibyte to 1,
17644 otherwise to 0. New local variable target_multibyte. Check it
17645 to decide the multibyteness of STR1 and STR2. If
17646 target_multibyte is zero, convert unibyte chars to multibyte
17647 before translating and checking fastmap.
17648 (TARGET_CHAR_AND_LENGTH): New macro.
17649 (re_match_2_internal): In emacs, set the locale variable multibyte
17650 to 1, otherwise to 0. New local variable target_multibyte. Check
17651 it to decide the multibyteness of STR1 and STR2. Use
17652 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17653 <charset, charset_not>: If multibyte is nonzero, check fastmap
17654 only for ASCII chars. Call bcmp_translate with
17655 target_multibyte, not with multibyte.
17656 <begline>: Declare the local variable C as `unsigned'.
17657 (bcmp_translate): Change the last arg name to target_multibyte.
17658
17659 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17660 the regexp pattern and the matching target. Set cp->buf.multibyte
17661 to the multibyteness of the regexp pattern. Set
17662 cp->but.target_multibyte to the multibyteness of the matching target.
17663 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17664 FETCH_STRING_CHAR_ADVANCE.
17665 (Freplace_match): Convert unibyte chars to multibyte.
17666
17667 * syntax.c (char_quoted, back_comment, scan_words)
17668 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17669 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17670 unibyte chars to multibyte.
17671 (skip_chars): Delete the arg syntaxp, and move the code for
17672 handling syntaxes to skip_syntaxes. Change callers.
17673 Fix the case that the multibyteness of STRING and the current
17674 buffer doesn't match.
17675 (skip_syntaxes): New function.
17676 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17677 SINGLE_BYTE_CHAR_P.
17678
17679 2008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * xfaces.c (QCfontset): New variable.
17682 (LFACE_FONTSET): New macro.
17683 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17684 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17685 (Finternal_set_lisp_face_attribute)
17686 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17687 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17688 check also LFACE_FONTSET_INDEX.
17689 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17690 attrs[LFACE_FONT_INDEX].
17691 (syms_of_xfaces): Intern and staticpro QCfontset.
17692
17693 * dispextern.h (enum lface_attribute_index): New member
17694 LFACE_FONTSET_INDEX.
17695
17696 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17697
17698 2008-02-01 Kenichi Handa <handa@m17n.org>
17699
17700 * coding.c (coding_set_destination): Fix coding->destination for
17701 the case converting a region.
17702 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17703 (encode_coding_object): Fix coding->dst_pos and
17704 coding->dst_pos_byte for the case converting a region.
17705
17706 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17707
17708 * character.h (BYTE8_STRING): New macro.
17709
17710 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17711
17712 2008-02-01 Kenichi Handa <handa@m17n.org>
17713
17714 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17715 characters by octal form.
17716
17717 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17718
17719 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17720 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17721 _fetch_multibyte_char_len.
17722 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17723
17724 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17725
17726 * casefiddle.c (casify_object): Simplify. Handle the case that
17727 the case conversion change the byte length.
17728 (casify_region): Likewise.
17729
17730 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17731
17732 * character.c (_fetch_multibyte_char_len): Delete this variable.
17733 (syms_of_character): Setup Vprintable_chars.
17734
17735 * editfns.c (Fchar_equal): Fix for the unibyte case.
17736 (Finsert_byte): New function.
17737 (syms_of_editfns): Defsubr it.
17738
17739 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17740 of direct code 0x3ffff.
17741
17742 * search.c (Freplace_match): Fix for the unibyte case.
17743
17744 2008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * lread.c (safe_to_load_p): Fix the logic.
17747
17748 * syntax.c (scan_words): Don't treat characters belonging to
17749 different scripts as constituting a word.
17750
17751 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17752
17753 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17754
17755 * emacs.c (main): In the case of --unibyte, instead of aborting on
17756 finding non-empty buffer, make it unibyte.
17757
17758 2008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17761 to create a fontset.
17762
17763 2008-02-01 Dave Love <fx@gnu.org>
17764
17765 * character.c (Funibyte_char_to_multibyte): Doc fix.
17766
17767 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17768
17769 2008-02-01 Kenichi Handa <handa@m17n.org>
17770
17771 * fontset.c (fontset_add): Make the type `int'.
17772 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17773
17774 * character.c (unibyte_char_to_multibyte)
17775 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17776 charset_unibyte, not charset_primary.
17777
17778 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17779
17780 * charset.c (charset_unibyte): Rename from charset_primary.
17781 (Funibyte_charset): Rename from Fprimary_charset.
17782 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17783 (syms_of_charset): Adjust for the above changes.
17784
17785 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17786 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17787 it->multibyte_p is zero.
17788
17789 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17790 Delete extern.
17791
17792 2008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * coding.c (Fdefine_coding_system_internal): Fix category setting
17795 for a coding system of type iso-2022.
17796
17797 2008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17800
17801 2008-02-01 Kenichi Handa <handa@m17n.org>
17802
17803 * syntax.c (Vnext_word_boundary_function_table): New variable.
17804 (next-word-boundary-function-table): Declare it as a Lisp variable
17805 in syms_of_syntax.
17806 (scan_words): Call functions in Vnext_word_boundary_function_table
17807 if any.
17808
17809 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17810
17811 * fontset.c (fs_load_font): If fontp->charset is not negative,
17812 return fontp without setting its members.
17813
17814 2008-02-01 Dave Love <fx@gnu.org>
17815
17816 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17817
17818 * m/sparc.h (HAVE_ALLOCA): Delete.
17819
17820 * s/irix6-5.h: Don't include strings.h.
17821 (bcopy, bzero, bcmp): Don't undef.
17822
17823 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17824
17825 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17826 (TIOCSIGSEND): Don't test IRIX6.
17827 (bcopy, bzero, bcmp): Define conditionally.
17828
17829 2008-02-01 Kenichi Handa <handa@m17n.org>
17830
17831 * buffer.c (Qas, Qmake, Qto): New variables.
17832 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17833 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17834
17835 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17836 we are inserting a process output into a multibyte buffer.
17837
17838 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17839 multibyte_char_to_unibyte.
17840
17841 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17842 by the primary charset, make it eight-bit char.
17843 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17844
17845 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17846 (charset_8_bit__control, charset_8_bit_graphic)
17847 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17848 (define_charset_internal): New function.
17849 (syms_of_charset): Call define_charset_internal for pre-defined
17850 charsets.
17851
17852 * charset.h (charset_8_bit): Extern it.
17853
17854 * coding.c (make_conversion_work_buffer): Adjust for the change
17855 of Fset_buffer_multibyte.
17856 (encode_coding_raw_text): Increment p0 in the loop.
17857
17858 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17859
17860 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17861 for the change of Fset_buffer_multibyte.
17862
17863 * fns.c (Fstring_to_multibyte): New function.
17864 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17865
17866 2008-02-01 Dave Love <fx@gnu.org>
17867
17868 * xfns.c (x_put_x_image): Declare args.
17869
17870 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17871 (try_font_list): Declare an arg.
17872
17873 * xdisp.c (message2_nolog, set_message): Declare an arg.
17874
17875 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17876
17877 * syntax.c (scan_sexps_forward): Declare an arg.
17878
17879 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17880 Declare an arg.
17881
17882 * lisp.h (Fnew_fontset): Declare.
17883
17884 * keymap.c (push_key_description): Call CHARACTERP correctly.
17885
17886 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17887 (face_for_char): Delete unused vars.
17888 (Fset_fontset_font): Doc fix. Delete unused vars.
17889
17890 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17891
17892 * composite.c (update_compositions): Declare arg.
17893
17894 * cm.c (calccost, cmgoto): Declare args.
17895
17896 * charset.c: Remove `emacs' conditional. Doc fixes.
17897 (map_char_table_for_charset): Declare.
17898
17899 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17900
17901 * ccl.c: Remove `emacs' conditional.
17902
17903 2008-02-01 Kenichi Handa <handa@m17n.org>
17904
17905 The following changes are to allow specifying multiple font
17906 patterns for a character range (specified by script or charset).
17907
17908 * Makefile.in (abbrev.o): Depend on syntax.h.
17909 (xfaces.o): Depend on charset.h.
17910
17911 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17912 SINGLE_BYTE_CHAR_P.
17913
17914 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17915
17916 * character.h (Vchar_script_table): Extern it.
17917
17918 * character.c (Vscript_alist): Delete.
17919 (Vchar_script_table, Qchar_script_table): New variable.
17920 (syms_of_character): Declare Vchar_script_table as a lisp variable
17921 and initialize it.
17922
17923 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17924 have property char-table-extra-slots, make no extra slot.
17925
17926 * dispextern.h (struct face): Delete member `charset'.
17927 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17928 SINGLE_BYTE_CHAR_P.
17929 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17930 Add prototypes.
17931 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17932 (generate_ascii_font_name): Rename from generate_ascii_font.
17933
17934 * fontset.h (get_font_repertory_func): New prototype.
17935 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17936 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17937
17938 * fontset.c (Qprepend, Qappend): New variables.
17939 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17940 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17941 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17942 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17943 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17944 (load_font_get_repertory): New functions.
17945 (fontset_set): Delete.
17946 (fontset_face): New arg FACE. Return face ID, not face.
17947 Complete re-write to handle new fontset structure. Change caller.
17948 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17949 (face_for_char): Don't call lookup_face.
17950 (make_fontset_for_ascii_face): New arg FACE.
17951 (fs_load_font): New arg CHARSET_ID. Don't check
17952 Vfont_encoding_alist here.
17953 (find_font_encoding): New function.
17954 (list_fontsets): Use STRINGP, not ! NILP.
17955 (accumulate_script_ranges): New function.
17956 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17957 re-written to handle new fontset structure.
17958 (Ffontset_font): Return a copy of element.
17959 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17960 docstring of font-encoding-alist.
17961
17962 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17963 (Fset_fotset_font): Fix arguments to 5.
17964
17965 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17966
17967 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17968 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17969 (highlight_trailing_whitespace): Adjust for the change of
17970 lookup_named_face.
17971
17972 * xfaces.c: Include charset.h.
17973 (load_face_font): Delete argument C. Change caller.
17974 (generate_ascii_font_name): Rename from generate_ascii_font.
17975 (font_name_registry): New function.
17976 (cache_face): Store ascii faces before non-ascii faces in buckets.
17977 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17978 Lookup only ascii faces.
17979 (lookup_non_ascii_face): New function.
17980 (lookup_named_face): Delete argument C. Change caller.
17981 (lookup_derived_face): Delete argument C. Change caller.
17982 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17983 a string, just call font_list with it.
17984 (choose_face_font): Delete arguments FACE and C. New arg
17985 FONT_SPEC. Change caller.
17986 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17987 Change caller.
17988 (realize_non_ascii_face): New function.
17989 (realize_x_face): Call load_face_font here.
17990 (realize_tty_face): Delete argument C. Change caller.
17991 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17992 get a face ID.
17993 (dump_realized_face): Don't print charset of FACE.
17994
17995 * xfns.c (x_set_font): Always call x_new_fontset and
17996 store_frame_parameter.
17997 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17998 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17999
18000 * xterm.h (x_get_font_repertory): Extern it.
18001
18002 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18003 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18004 it->multibyte_p is zero.
18005 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18006 (x_new_fontset): If FONTSETNAME doesn't match any existing
18007 fontsets, create a new one.
18008 (x_get_font_repertory): New function.
18009
18010 2008-02-01 Kenichi Handa <handa@m17n.org>
18011
18012 * coding.c (Ffind_coding_systems_region_internal): Detect an
18013 ASCII only string correctly.
18014
18015 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18016 version is 0.
18017
18018 2008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * lread.c: Include "coding.h".
18021 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18022 (load_each_byte, unread_char): New variables.
18023 (readchar_backlog): Delete.
18024 (readchar): Return a character unless load_each_byte is nonzero.
18025 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18026 cons. If unread_char is not -1, simply return it.
18027 (unreadchar): Handle the case that readcharfun is
18028 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18029 (read_multibyte): Delete.
18030 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18031 (read_emacs_mule_char): New functions.
18032 (Fload): Even if the file doesn't have the extension ".elc", if
18033 safe_to_load_p returns a positive version number, assume that the
18034 file contains bytecompiled code. If the version is less than 22,
18035 load the file while decoding multibyte sequences by emacs-mule.
18036 (readevalloop): Don't use readchar_backlog.
18037 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18038 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18039 (read_escape): Delete the arg BYTEREP.
18040 (read1): Set load_each_byte to 1 temporarily while handling
18041 #@NUMBER. Don't call read_multibyte.
18042 (read_vector): Call Fread with a cons. If readcharfun is
18043 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18044 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18045 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18046 and Qload_force_doc_strings.
18047
18048 2008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * xdisp.c (face_before_or_after_it_pos): Call
18051 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18052
18053 2008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * character.h (TRAILING_CODE_P): New macro.
18056 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18057 (string_char_with_unification): Fix prototype.
18058 (Vscript_alist): Extern it.
18059
18060 * character.c (Vscript_alist): New variable.
18061 (string_char_with_unification, str_as_unibyte)
18062 (string_escape_byte8): Add `const' to local variables.
18063 (syms_of_character): Declare script-alist as a Lisp variable.
18064
18065 * charset.h (Vcharset_ordered_list): Extern it.
18066 (charset_ordered_list_tick): Extern it.
18067 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18068 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18069 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18070 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18071 (Funify_charset): Adjust for the change of Funify_charset.
18072
18073 * charset.c (charset_ordered_list_tick): New variable.
18074 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18075 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18076 deunify intead of unify a charset.
18077 (string_xstring_p): Add `const' to local variables.
18078 (find_charsets_in_text): Add `const' to arguments and local variables.
18079 (encode_char): Adjust for the change of Funify_charset. Fix
18080 detecting of invalid code.
18081 (Fset_charset_priority): Increment charset_ordered_list_tick.
18082 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18083 and TO_CODE.
18084
18085 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18086 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18087 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18088 (decode_coding_ccl, consume_chars)
18089 (Ffind_coding_systems_region_internal)
18090 (Fcheck_coding_systems_region): Add `const' to local variables.
18091
18092 * print.c (print_object): Use octal form for printing the
18093 contents of a bool vector.
18094
18095 2008-02-01 Dave Love <fx@gnu.org>
18096
18097 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18098 <version == 20>: Refuse to load.
18099
18100 2008-02-01 Dave Love <fx@gnu.org>
18101
18102 * fns.c: Move coding.h.
18103 (Qcodeset, Qdays, Qmonths): New.
18104 (concat): Use CHARACTERP instead of INTEGERP.
18105 (Flocale_codeset): Delete.
18106 (Flanginfo): New function.
18107 (syms_of_fns): Change accordingly.
18108
18109 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18110
18111 2008-02-01 Dave Love <fx@gnu.org>
18112
18113 * casetab.c (init_casetab_once, init_casetab_once): Fix
18114 CHAR_TABLE_SET call.
18115
18116 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18117
18118 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18119
18120 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18121 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18122 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18123
18124 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18125
18126 * coding.c (ENCODE_DESIGNATION, decode_eol)
18127 (make_conversion_work_buffer, code_conversion_restore)
18128 (Fdefine_coding_system_internal): Convert Lisp types.
18129 (code_conversion_restore): Use EQ, not ==.
18130 (Fencode_coding_string): Fix code_convert_string call.
18131
18132 * coding.h (code_convert_region): Fix prototype.
18133
18134 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18135
18136 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18137 (Ffontset_info): Convert Lisp types.
18138
18139 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18140
18141 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18142
18143 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18144
18145 * chartab.c: Include "...h", not <...h> in some cases.
18146
18147 * callproc.c (Fcall_process): Remove unused variables.
18148
18149 2008-02-01 Dave Love <fx@gnu.org>
18150
18151 * coding.c (Fset_coding_system_priority): Allow null arg list.
18152
18153 2008-02-01 Dave Love <fx@gnu.org>
18154
18155 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18156 (Fself_insert_and_exit): Use CHARACTERP.
18157
18158 * callproc.c (Fcall_process): Remove unused vars.
18159
18160 * xterm.c (XTread_socket): Add extra dead keysyms.
18161
18162 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18163
18164 * dispextern.h: Remove prototypes for redraw_frame,
18165 redraw_garbaged_frames.
18166
18167 * cmds.c (Fself_insert_command): Use CHARACTERP.
18168
18169 * chartab.c (make_sub_char_table): Remove unused var.
18170 (Fset_char_table_default, Fmap_char_table): Doc fix.
18171
18172 * keymap.c (access_keymap): Remove generic char code.
18173 (push_key_description): Use CHARACTERP.
18174
18175 2008-02-01 Dave Love <fx@gnu.org>
18176
18177 * charset.c: Doc fixes.
18178 (Funify_charset): Extra checking.
18179
18180 2008-02-01 Dave Love <fx@gnu.org>
18181
18182 * lread.c: Remove some unused variables.
18183 (safe_to_load_p): If safe, return the magic number version byte.
18184 (Fload): Maybe use load-with-code-conversion.
18185
18186 2008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * category.c (Fmodify_category_entry): Don't modify the contents
18189 of category_set for characters out of the range. Avoid
18190 unnecessary modification.
18191
18192 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18193 Vchar_unify_table. The default value of the table is now nil.
18194
18195 * character.c (syms_of_character): Setup Vchar_width_table for
18196 eight-bit-control and raw-byte chars.
18197
18198 * charset.h (enum define_charset_arg_index): Delete
18199 charset_arg_parents and add charset_arg_subset and
18200 charset_arg_superset.
18201 (enum charset_attr_index): Delete charset_parents and add
18202 charset_subset and charset_superset.
18203 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18204 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18205 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18206 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18207 (CHARSET_SUPERSET): New macros.
18208 (charset_work): Extern it.
18209 (ENCODE_CHAR): Use charset_work.
18210 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18211 (map_charset_chars): Extern it.
18212
18213 * charset.c (load_charset_map): Set the default value of encoder
18214 and deunifier char-tables to nil.
18215 (map_charset_chars): Change argument. Change callers. Use
18216 map_char_table_for_charset instead of map_char_table.
18217 (Fmap_charset_chars): New optional args from_code and to_code.
18218 (Fdefine_charset_internal): Adjust for the change of
18219 `define-charset' (:parents -> :subset or :superset).
18220 (charset_work): New variable.
18221 (encode_char, syms_of_charset): Adjust for the change of
18222 Fdefine_charset_internal.
18223 (Ffind_charset_string): Setup the vector `charsets' correctly.
18224
18225 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18226 the previous change.
18227 (char_table_ref_and_range): Adjust for the above change.
18228 (map_sub_char_table_for_charset): New function.
18229 (map_char_table_for_charset): New function.
18230
18231 * keymap.c (describe_vector): Handle a char-table directly here.
18232 (describe_char_table): Delete.
18233
18234 * lisp.h (map_charset_chars): Delete.
18235
18236 2008-02-01 Dave Love <fx@gnu.org>
18237
18238 * fns.c (count_combining): Comment out (unused).
18239 (Flocale_codeset): New.
18240 (syms_of_fns): Defsubr it.
18241
18242 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18243 (size_t): Remove.
18244
18245 2008-02-01 Dave Love <fx@gnu.org>
18246
18247 * Makefile.in (chartab.o): Depend on charset.h.
18248
18249 2008-02-01 Kenichi Handa <handa@m17n.org>
18250
18251 * character.c (syms_of_character): Set the default value of
18252 Vprintable_chars to Qnil.
18253
18254 2008-02-01 Dave Love <fx@gnu.org>
18255
18256 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18257
18258 2008-02-01 Kenichi Handa <handa@m17n.org>
18259
18260 * charset.c (load_charset_map): Handle the case that from < to
18261 correctly.
18262
18263 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18264 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18265 Pay attention to raw-8-bit chars.
18266
18267 2008-02-01 Kenichi Handa <handa@m17n.org>
18268
18269 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18270 It is not bytecompiled now.
18271
18272 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18273 (charset_jisx0208): New variables.
18274 (Fdefine_charset_internal): Setup them if appropriate.
18275 (init_charset_once): Initialize them to -1.
18276
18277 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18278 (charset_jisx0208): Extern them.
18279
18280 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18281 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18282 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18283 (setup_iso_safe_charsets): Fix arguments to Fassq.
18284 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18285 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18286 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18287 (encode_coding_iso_2022): Change the 1st arg to
18288 ENCODE_ISO_CHARACTER to a variable.
18289
18290 2008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * charset.h (enum define_charset_arg_index): New enums
18293 charset_arg_min_code and charset_arg_max_code.
18294 (struct charset): New member char_index_offset.
18295
18296 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18297 Take charset->char_index_offset into account.
18298 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18299 args[charset_arg_max_code]. Setup charset.char_index_offset.
18300 (syms_of_charset): Fix args to Fdefine_charset_internal.
18301
18302 2008-02-01 Dave Love <fx@gnu.org>
18303
18304 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18305
18306 2008-02-01 Dave Love <fx@gnu.org>
18307
18308 * coding.c: Doc fixes.
18309 (Fcoding_system_aliases): Fix return value.
18310 (Qmac): Remove (duplicated) definition.
18311
18312 2008-02-01 Dave Love <fx@gnu.org>
18313
18314 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18315 New functions.
18316
18317 * character.c (Fstring): Doc fix.
18318
18319 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18320
18321 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
18322 (font-encoding-alist): Doc fix.
18323
18324 2008-02-01 Dave Love <fx@gnu.org>
18325
18326 * term.c (costs_set): Declare static, non-initialized for pcc.
18327 (encode_terminal_code): Remove unused var.
18328
18329 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18330 for K&R.
18331
18332 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18333
18334 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18335 (suffixes): Move out of make_subsidiaries for K&R.
18336
18337 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18338
18339 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18340
18341 2008-02-01 Dave Love <fx@gnu.org>
18342
18343 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18344
18345 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18346
18347 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18348
18349 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18350
18351 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18352
18353 2008-02-01 Kenichi Handa <handa@m17n.org>
18354
18355 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18356 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18357
18358 2008-02-01 Kenichi Handa <handa@m17n.org>
18359
18360 * coding.c (decode_coding_charset): Adjust for the change of
18361 Fdefine_coding_system_internal.
18362 (Fdefine_coding_system_internal): For a coding system of
18363 `charset' type, store a list of charset IDs in
18364 `charset_attr_charset_valids' element of coding attributes.
18365
18366 2008-02-01 Kenichi Handa <handa@m17n.org>
18367
18368 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18369 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18370 caller. Handle 2-byte and 3-byte charsets correctly.
18371 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18372 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18373 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18374 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18375 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18376 sequence.
18377 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18378 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18379 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18380 and alt&rule composition.
18381 (decode_coding_iso_2022): Handle composition correctly.
18382 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18383
18384 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18385 re-defining a charset. If the charset has :emacs-mule-id, setup
18386 emacs_mule_bytes.
18387 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18388
18389 2008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18392 (encode_coding_big5, encode_coding_charset): If coding requires safe
18393 encoding, produce a character specified by
18394 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18395
18396 2008-02-01 Dave Love <fx@gnu.org>
18397
18398 * xterm.c (XSetIMValues): Declare.
18399
18400 * process.c: Conditionally include sys/wait.h, pty.h.
18401
18402 * print.c (print_object): Fix print format for 64-bit systems.
18403
18404 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18405
18406 * buffer.c (emacs_strerror): Declare.
18407
18408 * fontset.c (Fclear_face_cache): Declare.
18409 (accumulate_font_info): Comment-out (unused).
18410 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18411 variables.
18412
18413 * character.h (string_escape_byte8): Declare.
18414
18415 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18416 unused vars.
18417 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18418 (Fmap_charset_chars): Doc fix.
18419
18420 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18421 (Fset_coding_system_priority, Fset_coding_system_priority)
18422 (Fdefine_coding_system_internal): Doc fix.
18423
18424 2008-02-01 Dave Love <fx@gnu.org>
18425
18426 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18427
18428 2008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * character.c (string_escape_byte8): Make multibyte string with
18431 correct size.
18432
18433 * charset.c (Fmake_char): Delete unnecessary code.
18434
18435 2008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * xfns.c (x_encode_text): Allocate coding.destination here, and
18438 call encode_coding_object with dst_object Qnil.
18439
18440 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18441 multibyte form correctly.
18442
18443 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18444 against Vfont_encoding_alist.
18445
18446 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18447 handling of charset list.
18448 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18449 (decode_coding_object): Move point to coding->dst_pos before
18450 calling post-read-conversion function.
18451 (encode_coding_object): Give correct arguments to
18452 pre-write-conversion. Ignore the return value of
18453 pre-write-conversion function. Pay attention to the case that
18454 pre-write-conversion changes the current buffer. If dst_object is
18455 Qt, even if coding->src_bytes is zero, allocate at least one byte
18456 to coding->destination.
18457
18458 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18459
18460 * charset.c (Fmake_char): Make it more backward compatible.
18461 (Fmap_charset_chars): Fix docstring.
18462
18463 2008-02-01 Dave Love <fx@gnu.org>
18464
18465 * coding.c: Doc fixes.
18466 (Fdefine_coding_system_alias): Use names, not symbols, in
18467 coding-system-alist.
18468
18469 2008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18472 of calling free_realized_face.
18473
18474 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18475
18476 * charset.c (read_hex): Don't treat SPC as a comment starter.
18477 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18478 (Fdecode_char): Fix typo.
18479
18480 2008-02-01 Kenichi Handa <handa@m17n.org>
18481
18482 * charset.h (struct charset): New member `code_space_mask'.
18483
18484 * coding.c (coding_set_source): Delete the local variable beg_byte.
18485 (encode_coding_charset, Fdefine_coding_system_internal):
18486 Delete the local variable charset.
18487 (Fdefine_coding_system_internal): Setup
18488 attrs[coding_attr_charset_valids] correctly.
18489
18490 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18491 member to check if CODE is valid or not.
18492 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18493 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18494 is within the range of charset->min_code and carset->max_code.
18495
18496 2008-02-01 Dave Love <fx@gnu.org>
18497
18498 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18499
18500 * dispextern.h (generate_ascii_font): Fix return type.
18501
18502 * xfaces.c (generate_ascii_font): Fix arg declaration.
18503
18504 * coding.c (coding_inherit_eol_type)
18505 (Fset_terminal_coding_system_internal)
18506 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18507
18508 2008-02-01 Kenichi Handa <handa@m17n.org>
18509
18510 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18511 multiple charsets correctly.
18512
18513 2008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * search.c (boyer_moore): Fix handling of multibyte character
18516 translation.
18517
18518 * xdisp.c (display_mode_element): When the variable `elt' is
18519 changed, update `this' and `lisp_string'.
18520
18521 2008-02-01 Kenichi Handa <handa@m17n.org>
18522
18523 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18524
18525 * callproc.c (Fcall_process): Be sure to give the current buffer
18526 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18527
18528 * charset.c (struct charset_map_entries): New struct.
18529 (load_charset_map): Rename from parse_charset_map. New args
18530 entries and n_entries. Change caller.
18531 (load_charset_map_from_file): Rename from load_charset_map.
18532 Change caller. New arg control_flag. Call load_charset_map at
18533 the tail.
18534 (load_charset_map_from_vector): New function.
18535 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18536 (encode_char): If the charset is compact, change a character index
18537 to a code point.
18538
18539 * coding.c (coding_alloc_by_making_gap): Check the case that the
18540 source and destination are the same correctly.
18541 (decode_coding_raw_text): Set coding->consumed_char and
18542 coding->consumed to 0.
18543 (produce_chars): If coding->chars_at_source is nonzero, update
18544 coding->consumed_char and coding->consumed before calling
18545 alloc_destination.
18546 (Fdefine_coding_system_alias): Register ALIAS in
18547 Vcoding_system_alist.
18548 (syms_of_coding): Define `no-conversion' coding system at the tail.
18549
18550 * fileio.c (Finsert_file_contents): Set coding_system instead of
18551 val. If the current buffer is multibyte, always call
18552 decode_coding_gap.
18553
18554 * xfaces.c (try_font_list): Give higher priority to fontset's
18555 family than face's family.
18556
18557 2008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * callproc.c (Fcall_process): Be sure to give the current buffer
18560 to decode_coding_c_string.
18561
18562 * xfaces.c (try_font_list): Give a family specified in a fontset
18563 higher priority than a family specified in a face.
18564
18565 2008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18568 Fix arguments to insert_from_buffer.
18569
18570 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18571
18572 2008-02-01 Kenichi Handa <handa@m17n.org>
18573
18574 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18575 (decode_coding_gap): Set coding->dst_multibyte correctly.
18576
18577 2008-02-01 Kenichi Handa <handa@m17n.org>
18578
18579 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18580 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18581 (encode_coding_utf_16): Substitute coding->default_char for
18582 non-Unicode characters.
18583 (decode_coding): Don't call record_insert here.
18584 (setup_coding_system): Initialize `surrogate' of
18585 coding->spec.utf_16 to 0.
18586 (EMIT_ONE_BYTE): Fix for multibyte case.
18587
18588 * insdel.c (insert_from_gap): Call record_insert.
18589
18590 2008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * casefiddle.c (casify_region): Fix multibyte case.
18593
18594 * character.c (c_string_width): Add return type `int'.
18595 (char_string_with_unification): Delete arg ADVANCED.
18596
18597 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18598 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18599 (CHAR_STRING_ADVANCE): Make it do-while statement.
18600
18601 * chartab.c (sub_char_table_set_range): Optimize for the case
18602 DEPTH == 3. Add workaround code for a GCC optimization bug.
18603
18604 * charset.c (parse_charset_map): Remove an unused variable.
18605
18606 * coding.c: Delete unused variables.
18607
18608 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18609 earlier. If inserted is zero and the coding system doesn't
18610 require flushing, don't call decode_coding_gap.
18611
18612 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18613
18614 2008-02-01 Kenichi Handa <handa@m17n.org>
18615
18616 The following changes are for using Unicode as an internal
18617 character model, and use UTF-8 format for buffer/string
18618 representation.
18619
18620 * .gdbinit (xchartable): Adjust for the change of char table structure.
18621 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18622
18623 * Makefile.in (obj): Add character.o and chartab.o.
18624 (lisp, shortlisp): Remove utf-8.elc.
18625 (*.o): For many files, change dependency on charset.h to
18626 character.h, and add dependency on character.h.
18627 (character.o, chartab.o): New targets.
18628
18629 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18630 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18631 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18632 of "charset.h".
18633
18634 * dired.c, filelock.c: Include "character.h".
18635
18636 * alloc.c: Include "character.h" instead of "charset.h".
18637 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18638 (syms_of_alloc): Remove defsubr for Smake_char_table.
18639
18640 * buffer.c: Include "character.h" instead of "charset.h", don't
18641 include "coding.h".
18642 (Fset_buffer_multibyte): Adjust for UTF-8.
18643
18644 * buffer.h: EXFUN Fbuffer_live_p.
18645
18646 * callproc.c: Include "character.h" instead of "charset.h".
18647 (Fcall_process): Big change for the new code-conversion APIs.
18648
18649 * casetab.c: Include "character.h" instead of "charset.h".
18650 (set_canon, set_identity, shuffle): Adjust for the new
18651 map_char_table spec.
18652 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18653 accessing the char table structure.
18654
18655 * chartab.c: New file that implements char table.
18656
18657 * category.c: Include "character.h".
18658 (copy_category_entry): New function.
18659 (copy_category_table): Call map_char_table and copy_category_entry.
18660 (Fmake_category_table): Initialize all top-level slots.
18661 (char_category_set): New function.
18662 (modify_lower_category_set): Delete.
18663 (Fmodify_category_entry): Call char_table_ref_and_range.
18664
18665 * category.h (CATEGORY_SET): Just call char_category_set.
18666
18667 * ccl.c: Include "character.h".
18668 (Qccl, Qcclp): New variables.
18669 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18670 it's less than 256.
18671 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18672 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18673 and DST type.
18674 (ccl_driver): Change types of argument, adjust code accordingly.
18675 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18676 ccl_driver.
18677 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18678
18679 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18680 New members src_multibyte, dst_multibyte, consumed, and produced.
18681 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18682 (CODING_SPEC_CCL_PROGRAM): New macro.
18683 (ccl_driver): Update prototype.
18684 (Qccl, Qcclp, Fccl_program_p): Extern them.
18685 (CHECK_CCL_PROGRAM): New macro.
18686
18687 * character.c, character.h, chartab.c: New files.
18688
18689 * charset.c: Mostly re-written. Move character and multibyte sequence
18690 handling codes to character.c.
18691
18692 * charset.h: Mostly re-written. Move character and multibyte sequence
18693 handling codes to character.h.
18694
18695 * coding.c, coding.h: Mostly re-written.
18696
18697 * composite.c: Include "character.h" instead of "charset.h".
18698 (CHAR_WIDTH): Move to character.h.
18699 (HASH_KEY, HASH_VALUE): Delete.
18700
18701 * composite.h (enum composition_method): Change order of enumeration
18702 symbols.
18703
18704 * data.c: Include "character.h" instead of "charset.h".
18705 (Faref): Call CHAR_TABLE_REF for a char table.
18706 (Faset): Call CHAR_TABLE_SET for a char table.
18707
18708 * dispextern.h (free_realized_face, check_face_attribytes)
18709 (generate_ascii_font): Extern them.
18710 (free_realized_multibyte_face): Delete extern.
18711
18712 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18713 table structure.
18714
18715 * editfns.c: Include "character.h" instead of "charset.h".
18716 (Fchar_to_string): Always call CHAR_STRING.
18717
18718 * emacs.c (main): Call init_charset_once, init_charset,
18719 syms_of_chartab, and syms_of_character.
18720
18721 * fileio.c: Include "character.h" instead of "charset.h".
18722 (Finsert_file_contents): Big change for the new code-conversion API.
18723 (choose_write_coding_system, Fwrite_region): Likewise.
18724 (build_annotations_2): Delete.
18725 (e_write): Big change for the new code-conversion API.
18726
18727 * fns.c: Include "character.h" instead of "charset.h".
18728 (copy_sub_char_table): Move to chartab.c.
18729 (Fcopy_sequence): Call copy_char_table for a char table.
18730 (concat): Delete codes calling count_multibyte.
18731 (string_char_to_byte, string_byte_to_char): Adjust for the new
18732 multibyte form.
18733 (internal_equal): Adjust for the change of char table structure.
18734 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18735 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18736 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18737 (char_table_translate, optimize_sub_char_table)
18738 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18739 chartab.c.
18740 (char_table_ref_and_index): Delete.
18741 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18742 (Fmd5): Call preferred_coding_system instead of accessing
18743 Vcoding_category_list. Adjust for the new code-conversion API.
18744 (syms_of_fns): Move defsubr for char table related functions to
18745 chartab.c.
18746
18747 * fontset.c: Mostly re-written.
18748
18749 * fontset.h (struct font_info): Change type of the member encoding_type.
18750 (enum FONT_SPEC_INDEX): New enum.
18751 (fontset_font_pattern, fs_load_font): Update prototype.
18752 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18753
18754 * indent.c: Include "character.h" instead of "charset.h".
18755 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18756
18757 * insdel.c: Include "character.h" instead of "charset.h".
18758 (copy_text): Don't refer to Vnonascii_translation_table.
18759 (insert_from_gap): New function.
18760
18761 * keyboard.c: Include "character.h" instead of "charset.h".
18762 (command_loop_1): Never call direct_output_forward_char before
18763 a non-ASCII character.
18764 (read_char): If Vkeyboard_translate_table is a char table, always
18765 translate a character.
18766
18767 * keymap.c: Include "character.h".
18768 (store_in_keymap): Handle the case that IDX is a cons.
18769 (Fdefine_key): Handle the case that KEY is a cons and the car part
18770 is also a cons (range).
18771 (push_key_description): Adjust for the new character code.
18772 (describe_vector): Call describe_char_table for a char table.
18773 (describe_char_table): New function.
18774
18775 * keymap.h (describe_char_table): Extern it.
18776
18777 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18778 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18779 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18780 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18781 Delete.
18782 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18783 structure.
18784 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18785 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18786 (CHARTAB_SIZE_BITS_3): New macros.
18787 (chartab_size): Extern it.
18788 (struct Lisp_Char_Table): Re-design.
18789 (struct Lisp_Sub_Char_Table): New structure.
18790 (HASH_KEY, HASH_VALUE): Move from fns.c.
18791 (CHARACTERBITS): Define as 22.
18792 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18793 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18794 (GC_SUB_CHAR_TABLE_P): New macro.
18795 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18796 (code_convert_string_norecord): Deleted extern.
18797 (init_character_once, syms_of_character, init_charset)
18798 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18799
18800 * lread.c: Include "character.h".
18801 (read_multibyte): New arg NBYTES.
18802 (read_escape): Change the meaning of returned *BYTEREP.
18803 (to_multibyte): Delete.
18804 (read1): Adjust the handling of char table and string.
18805
18806 * print.c: Include "character.h" instead of "charset.h".
18807 (print_string): Convert 8-bit raw bytes to octal form by
18808 string_escape_byte8.
18809 (print_object): Adjust for the new multibyte form. Print 8-bit
18810 raw bytes always in octal form. Handle sub char table correctly.
18811
18812 * process.c: Include "character.h" instead of "charset.h".
18813 (read_process_output, send_process): Adjust for the new
18814 code-conversion API.
18815
18816 * puresize.h (BASE_PURESIZE): Increase.
18817
18818 * regex.c: Include "character.h" instead of "charset.h".
18819 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18820 (regex_compile): Accept a range whose starting and ending
18821 character have different leading bytes.
18822 (analyse_first): Adjust for the above change.
18823
18824 * search.c: Include "character.h" instead of "charset.h".
18825 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18826 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18827
18828 * syntax.c: Include "character.h" instead of "charset.h".
18829 (syntax_parent_lookup): Delete.
18830 (Fmodify_syntax_entry): Accept a cons as CHAR.
18831 (skip_chars): Adjust for the new multibyte form.
18832 (init_syntax_once): Call char_table_set_range instead of directly
18833 accessing the structure of a char table.
18834
18835 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18836 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18837 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18838 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18839
18840 * term.c: Include "buffer.h" and "character.h".
18841 (encode_terminal_code, write_glyphs): Adjust for the new
18842 code-conversion API.
18843 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18844
18845 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18846
18847 * xdisp.c: Include "character.h".
18848 (get_next_display_element): Adjust for the new multibyte form.
18849 (disp_char_vector): Adjust for the new char table structure.
18850 (decode_mode_spec_coding): Adjust for the new structure of
18851 coding system.
18852 (decode_mode_spec): Adjust for the new code-conversion API.
18853
18854 * xfaces.c: Include "character.h" instead of "charset.h".
18855 (load_face_font): Adjust for the change of choose_face_font and
18856 FS_LOAD_FONT.
18857 (generate_ascii_font): New function.
18858 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18859 (set_font_frame_param): Adjust for the change of choose_face_font.
18860 (free_realized_face): Make it public.
18861 (free_realized_faces_for_fontset): Rename from
18862 free_realized_multibyte_face. Free also faces realized for ASCII.
18863 (choose_face_font): Change arguments. Adjust for the change of
18864 fontset_font_pattern and FS_LOAD_FONT.
18865
18866 * xfns.c: Include "character.h".
18867 (x_encode_text): Adjust for the new code-conversion API.
18868
18869 * xselect.c: Don't include "charset.h".
18870 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18871
18872 * xterm.c: Include "character.h".
18873 (x_encode_char): New argument CHARSET. Change caller.
18874 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18875 Call ENCODE_CHAR instead of SPLIT_CHAR.
18876 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18877 CHAR_WIDTH instead of CHARSET_WIDTH.
18878 (XTread_socket): Adjust for the new code-conversion API.
18879 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18880 (x_load_font): Adjust for the change of struct font.
18881
18882 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18883
18884 * xfaces.c (face_at_buffer_position): Remove unused vars.
18885
18886 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18887
18888 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18889 Fix overflow checking.
18890
18891 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18892
18893 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18894 Cancel previous change.
18895
18896 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18897
18898 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18899 ccl->eight_bit_control. Fix check for buffer overflow.
18900 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18901 (ccl_driver): Initialize extra_bytes to 0.
18902
18903 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18904
18905 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18906 return it ORed with ctrl_modifier.
18907
18908 2008-01-29 Miles Bader <miles@gnu.org>
18909
18910 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18911
18912 2008-01-28 Jason Rumney <jasonr@gnu.org>
18913
18914 * w32.c (stat): Don't double check for networked drive.
18915
18916 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18917
18918 * window.c (run_window_configuration_change_hook): New function.
18919 Code extracted from set_window_buffer. Set the selected frame.
18920 (set_window_buffer): Use it.
18921 * window.h (run_window_configuration_change_hook): Declare.
18922 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18923
18924 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18925
18926 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18927
18928 * Makefile.in: Remove references to unused macros.
18929
18930 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18931
18932 * w32.c (g_b_init_get_sid_sub_authority)
18933 (g_b_init_get_sid_sub_authority_count): New static variables.
18934 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18935 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18936 (init_user_info): Use them to retrieve uid and gid.
18937 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18938 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18939 st_uid and st_gid of the file.
18940
18941 2008-01-26 Jason Rumney <jasonr@gnu.org>
18942
18943 * w32.c (logon_network_drive): New function.
18944 (stat): Use it.
18945
18946 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18947
18948 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18949 invisible text covered with an ellipsis.
18950
18951 2008-01-25 Richard Stallman <rms@gnu.org>
18952
18953 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18954 jump back to beginning. Move some other initializations after that.
18955 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18956 New variables.
18957 (syms_of_xdisp): Init them.
18958
18959 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18960
18961 * buffer.c (reset_buffer_local_variables):
18962 Implement `permanent-local-hook'.
18963 (Qpermanent_local_hook): New variable.
18964 (syms_of_buffer): Init and staticpro it.
18965
18966 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18967
18968 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18969
18970 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18971
18972 * fns.c (Fclrhash): Return TABLE.
18973
18974 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18975
18976 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18977 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18978 is set even without positional changes.
18979 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18980
18981 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18982
18983 2008-01-23 Jason Rumney <jasonr@gnu.org>
18984
18985 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18986
18987 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18988 the unicode range available in MULE by locale-coding-system.
18989 Improve dbcs lead byte detection. Set event timestamp and modifiers
18990 earlier.
18991
18992 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18993
18994 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18995 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18996 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18997 when used on child processes.
18998
18999 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
19000
19001 * dbusbind.c (Fdbus_method_return_internal): Rename from
19002 Fdbus_method_return.
19003 (Fdbus_unregister_object): Move to dbus.el.
19004 (Fdbus_call_method, Fdbus_method_return_internal)
19005 (Fdbus_send_signal): Improve debug messages.
19006
19007 2008-01-20 Martin Rudalics <rudalics@gmx.at>
19008
19009 * undo.c (undo_inhibit_record_point): New variable.
19010 (syms_of_undo): Initialize it.
19011 (record_point): Don't record point when undo_inhibit_record_point
19012 is set.
19013
19014 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19015
19016 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19017
19018 * xdisp.c (Qauto_hscroll_mode): New var.
19019 (syms_of_xdisp): Initialize it.
19020 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19021 window's buffer.
19022 (hscroll_windows): Don't check automatic_hscrolling_p here.
19023
19024 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19025 vscroll if we're setting window-buffer to the value it already has.
19026
19027 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19028
19029 * m/intel386.h: Remove references to XENIX.
19030
19031 2008-01-17 Andreas Schwab <schwab@suse.de>
19032
19033 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19034 instead of HAVE_X86_64_LIB64_DIR.
19035 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19036
19037 2008-01-17 Glenn Morris <rgm@gnu.org>
19038
19039 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19040 to HAVE_X86_64_LIB64_DIR.
19041
19042 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19043
19044 * s/irix3-3.h:
19045 * s/irix4-0.h:
19046 * s/386-ix.h:
19047 * s/domain.h:
19048 * s/hpux9-x11r4.h:
19049 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19050
19051 * sysdep.c: Remove code containing references to symbols defined
19052 by unsupported systems.
19053
19054 2008-01-16 Glenn Morris <rgm@gnu.org>
19055
19056 * coding.c (select-safe-coding-system-function): Doc fix.
19057
19058 2008-01-15 Glenn Morris <rgm@gnu.org>
19059
19060 * config.in: Revert 2008-01-13 change: this is a generated file.
19061
19062 2008-01-13 Tom Tromey <tromey@redhat.com>
19063
19064 * lisp.h: Fix typo.
19065
19066 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19067
19068 * m/sequent-ptx.h:
19069 * m/sequent.h:
19070 * s/ptx.h:
19071 * s/ptx4-2.h:
19072 * s/ptx4.h: Remove files for systems no longer supported.
19073
19074 * callproc.c (Fcall_process): Fix previous change.
19075
19076 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19077
19078 * unexsunos4.c: Remove file, system not supported anymore.
19079
19080 * m/mips.h:
19081 * m/intel386.h:
19082 * callproc.c:
19083 * config.in:
19084 * ecrt0.c:
19085 * emacs.c:
19086 * fileio.c:
19087 * frame.c:
19088 * getpagesize.h:
19089 * keyboard.c:
19090 * lread.c:
19091 * process.c:
19092 * puresize.h:
19093 * sysdep.c:
19094 * systty.h:
19095 * syswait.h:
19096 * unexec.c:
19097 * xdisp.c:
19098 * alloc.c: Remove code containing references to symbols defined by
19099 unsupported systems.
19100
19101 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19102
19103 * coding.c (detect_coding_mask): Fix previous change.
19104
19105 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19106
19107 * coding.c (detect_coding_iso2022): New arg
19108 latin_extra_code_state. Allow Latin extra codes only
19109 when *latin_extra_code_state is nonzero.
19110 (detect_coding_mask): If there is a NULL byte, detect the encoding
19111 as UTF-16 or binary. If Latin extra codes exist, detect the
19112 encoding as ISO-2022 only when there's no other proper encoding is
19113 found.
19114
19115 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19116
19117 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19118 #ifdef MAC_OS.
19119
19120 2008-01-08 Richard Stallman <rms@gnu.org>
19121
19122 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19123
19124 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
19125
19126 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19127 menu bar in parentheses.
19128
19129 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19130
19131 * m/7300.h:
19132 * m/acorn.h:
19133 * m/alliant-2800.h:
19134 * m/alliant.h:
19135 * m/alliant1.h:
19136 * m/alliant4.h:
19137 * m/altos.h:
19138 * m/amdahl.h:
19139 * m/apollo.h:
19140 * m/att3b.h:
19141 * m/aviion-intel.h:
19142 * m/aviion.h:
19143 * m/celerity.h:
19144 * m/clipper.h:
19145 * m/cnvrgnt.h:
19146 * m/convex.h:
19147 * m/cydra5.h:
19148 * m/delta88k.h:
19149 * m/dpx2.h:
19150 * m/dual.h:
19151 * m/elxsi.h:
19152 * m/f301.h:
19153 * m/gould-np1.h:
19154 * m/gould.h:
19155 * m/i860.h:
19156 * m/ibmps2-aix.h:
19157 * m/ibmrt-aix.h:
19158 * m/ibmrt.h:
19159 * m/irist.h:
19160 * m/is386.h:
19161 * m/isi-ov.h:
19162 * m/mega68.h:
19163 * m/mg1.h:
19164 * m/news-r6.h:
19165 * m/news-risc.h:
19166 * m/news.h:
19167 * m/nh3000.h:
19168 * m/nh4000.h:
19169 * m/ns16000.h:
19170 * m/ns32000.h:
19171 * m/nu.h:
19172 * m/orion.h:
19173 * m/orion105.h:
19174 * m/paragon.h:
19175 * m/pfa50.h:
19176 * m/plexus.h:
19177 * m/pyramid.h:
19178 * m/pyrmips.h:
19179 * m/sh3el.h:
19180 * m/sps7.h:
19181 * m/sr2k.h:
19182 * m/stride.h:
19183 * m/sun1.h:
19184 * m/sun2.h:
19185 * m/sun3-68881.h:
19186 * m/sun3-fpa.h:
19187 * m/sun3-soft.h:
19188 * m/sun3.h:
19189 * m/sun386.h:
19190 * m/symmetry.h:
19191 * m/tad68k.h:
19192 * m/tahoe.h:
19193 * m/targon31.h:
19194 * m/tek4300.h:
19195 * m/tekxd88.h:
19196 * m/tower32.h:
19197 * m/tower32v3.h:
19198 * m/ustation.h:
19199 * m/wicat.h:
19200 * m/xps100.h:
19201 * s/cxux.h:
19202 * s/cxux7.h:
19203 * s/dgux.h:
19204 * s/dgux4.h:
19205 * s/dgux5-4-3.h:
19206 * s/dgux5-4r2.h:
19207 * s/esix.h:
19208 * s/esix5r4.h:
19209 * s/hiuxmpp.h:
19210 * s/hiuxwe2.h:
19211 * s/iris3-5.h:
19212 * s/iris3-6.h:
19213 * s/isc2-2.h:
19214 * s/isc3-0.h:
19215 * s/isc4-0.h:
19216 * s/isc4-1.h:
19217 * s/newsos5.h:
19218 * s/newsos6.h:
19219 * s/osf1.h:
19220 * s/osf5-0.h:
19221 * s/riscix1-1.h:
19222 * s/riscix12.h:
19223 * s/sco4.h:
19224 * s/sco5.h:
19225 * s/sunos4-0.h:
19226 * s/sunos4-1.h:
19227 * s/sunos413.h:
19228 * s/sunos4shr.h:
19229 * s/umax.h:
19230 * s/unipl5-2.h:
19231 * s/xenix.h:
19232 * cxux-crt0.s:
19233 * unexapollo.c:
19234 * unexconvex.c:
19235 * unexenix.c:
19236 * unexsni.c: Remove files for systems no longer supported.
19237
19238 * m/intel386.h: Remove references to unsupported systems.
19239
19240 * w32.c (get_emacs_configuration): Remove reference to i860.
19241
19242 * sysdep.c: Remove dead code.
19243
19244 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19245
19246 * s/rtu.h:
19247 * m/masscomp.h: Remove files. Platform is obsolete.
19248
19249 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
19250
19251 * dbusbind.c (Fdbus_method_return): New function.
19252 (xd_read_message): Add the serial number to the event.
19253 (Fdbus_register_method): Activate the function.
19254
19255 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19256
19257 * keyboard.c (read_key_sequence): Fix typo.
19258
19259 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
19260
19261 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19262 (xd_signature, xd_append_arg): Handle element type detection for
19263 empty arrays.
19264 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19265 SDATA () calls; this must be solved more general.
19266 (Fdbus_register_signal): Use SBYTES instead of strlen.
19267
19268 2008-01-03 Magnus Henoch <magnus@zemdatav>
19269
19270 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19271 unsigned int for byte values (necessary for big-endian platform).
19272 (Fdbus_call_method): Handle the case of no returned arguments.
19273
19274 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19275
19276 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19277
19278 2007-12-31 Magnus Henoch <mange@freemail.hu>
19279
19280 * dbusbind.c (xd_signature): Signature of variant is just "v".
19281
19282 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
19283
19284 * dbusbind.c: Fix several errors and compiler warnings.
19285 Reported by Tom Tromey <tromey@redhat.com>.
19286 (XD_ERROR, XD_DEBUG_MESSAGE)
19287 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19288 (xd_append_arg): Part for basic D-Bus types rewritten.
19289 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19290 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19291 appropriate.
19292 (xd_read_message): Return Qnil. Don't signal an error; it is not
19293 useful during event reading.
19294 (Fdbus_register_signal): Signal an error if the check for
19295 FUNCTIONP fails.
19296 (Fdbus_register_method): New function. The implementation is not
19297 complete, the call of the function signals an error therefore.
19298 (Fdbus_unregister_object): New function, renamed from
19299 Fdbus_unregister_signal. The initial check signals an error, if
19300 the object is not well formed.
19301
19302 2007-12-30 Richard Stallman <rms@gnu.org>
19303
19304 * textprop.c (get_char_property_and_overlay):
19305 Signal error if POSITION is out of range in a buffer.
19306
19307 2007-12-29 Martin Rudalics <rudalics@gmx.at>
19308
19309 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19310 because the original parameters are in pure storage now.
19311
19312 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19313
19314 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19315
19316 2007-12-22 Eli Zaretskii <eliz@gnu.org>
19317
19318 * callint.c (syms_of_callint) <command-history>: Add reference to
19319 history-length in the doc string.
19320
19321 2007-12-17 Jason Rumney <jasonr@gnu.org>
19322
19323 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19324 before passing as wParam.
19325
19326 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
19327
19328 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19329 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19330 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19331 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19332 as number.
19333 (Fdbus_call_method): Fix docstring.
19334
19335 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
19336
19337 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19338 New macros.
19339 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19340 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19341 Simplify.
19342 (xd_signature): New function.
19343 (xd_append_arg): Compute also signatures. Major rewrite.
19344 (xd_retrieve_arg): Make debug messages friendly.
19345 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19346 Check for signatures of arguments.
19347
19348 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
19349
19350 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19351 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19352 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19353 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19354 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19355 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19356 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19357 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19358 (xd_retrieve_value): Remove. Functionality included in ...
19359 (xd_append_arg): New function.
19360 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19361
19362 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
19363
19364 * dbusbind.c (top): Include <stdio.h>.
19365 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19366 dbus_message_new_method_call and dbus_message_new_signal.
19367 (Fdbus_register_signal): Rename unique_name to uname.
19368 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19369 non-existing unique name. Fix typos in matching rule. Return an
19370 object which is useful in Fdbus_unregister_signal.
19371 (Fdbus_unregister_signal): Reimplementation, in order to remove
19372 only the corresponding entry.
19373 (Vdbus_registered_functions_table): Change the order of entries.
19374 Apply these changes in xd_read_message and Fdbus_register_signal.
19375
19376 2007-12-16 Andreas Schwab <schwab@suse.de>
19377
19378 * fileio.c (Finsert_file_contents): Fix overflow check to not
19379 depend on undefined integer overflow.
19380
19381 2007-12-14 Jason Rumney <jasonr@gnu.org>
19382
19383 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19384 for characters above 127.
19385
19386 2007-12-13 Jason Rumney <jasonr@gnu.org>
19387
19388 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19389 before dereferencing array.
19390 (lookup_vk_code): Remove zero comparison.
19391
19392 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
19393
19394 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19395 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19396 Use `unsigned int' instead of `uint'.
19397 (xd_read_message, Fdbus_register_signal): Split expressions into
19398 multiple lines before operators "&&" and "||", according to the
19399 GNU Coding Standards.
19400
19401 2007-12-14 Eli Zaretskii <eliz@gnu.org>
19402
19403 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19404
19405 2007-12-12 Juri Linkov <juri@jurta.org>
19406
19407 * buffer.c (Frename_buffer): In interactive spec replace
19408 `read-buffer' with `read-string' that uses `buffer-name-history'
19409 as history, and the current buffer's name as default.
19410
19411 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19412
19413 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19414 manipulating the backtrace manually.
19415 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19416 (struct backtrace, backtrace_list): Remove.
19417 (command_loop_1): Remove dead var `no_direct'.
19418
19419 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19420 preserve non-built-in buffer-local variables.
19421 (Fkill_all_local_variables): Don't re-create&re-set permanent
19422 buffer-local variables.
19423
19424 2007-12-09 Juri Linkov <juri@jurta.org>
19425
19426 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19427 Lisp code that uses `read-buffer' with current buffer as default.
19428
19429 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
19430
19431 * dbusbind.c (xd_read_message): Generate an event for every
19432 registered handler. There might be several handlers registered
19433 for the same signal.
19434 (Fdbus_register_signal): Don't overwrite a registration for the
19435 same signal. Add a new registration if handlers are different.
19436 (Vdbus_registered_functions_table): Rework doc string.
19437
19438 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
19439
19440 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19441 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19442 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19443 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19444 Unify argument lists.
19445 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19446 arguments and hash table keys. Use unique name for service.
19447 (Fdbus_unregister_signal): Remove checks.
19448 (Vdbus_registered_functions_table): Fix doc string.
19449
19450 2007-12-05 Magnus Henoch <mange@freemail.hu>
19451
19452 * process.c (make_process): Initialize pty_flag to 0.
19453
19454 2007-12-05 Jason Rumney <jasonr@gnu.org>
19455
19456 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19457 specified XBMs.
19458
19459 2007-12-05 Richard Stallman <rms@gnu.org>
19460
19461 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19462
19463 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19464
19465 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19466 New variable.
19467 (mac_try_close_socket) [MAC_OSX]: New function.
19468 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19469 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19470
19471 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19472 Use mac_try_close_socket.
19473
19474 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19475
19476 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19477 reloc_base.
19478 (copy_dysymtab): Compute relocation base here.
19479 (rebase_reloc_address) [__ppc64__]: New function.
19480 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19481 changed.
19482
19483 2007-12-05 Jason Rumney <jasonr@gnu.org>
19484
19485 * w32proc.c (sys_spawnve): Quote args with wildcards.
19486
19487 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19488
19489 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19490 __objc_* sections.
19491 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19492
19493 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19494
19495 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19496 Move check for Vdbus_registered_functions_table to
19497 xd_read_queued_messages.
19498 (xd_read_queued_messages): Protect xd_read_message calls by
19499 internal_condition_case_1.
19500
19501 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19502
19503 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19504 Qdbus_system_bus and Qdbus_session_bus, respectively.
19505 (Vdbus_intern_symbols): Remove.
19506 (Vdbus_registered_functions_table): New hash table.
19507 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19508 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19509 Rewrite in order to manage registered functions by hash table
19510 Vdbus_registered_functions_table.
19511
19512 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19513
19514 * xterm.c: Update URL to Window Manager Specification in comment.
19515
19516 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19517
19518 * config.in (HAVE_DBUS): Add.
19519
19520 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19521 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19522 (obj): Add $(DBUS_OBJ).
19523 (LIBES): Add $(DBUS_LIBS).
19524 (dbusbind.o): New target.
19525
19526 * dbusbind.c: New file.
19527
19528 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19529
19530 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19531 (Qdbus_event): New Lisp symbol.
19532 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19533 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19534 (keys_of_keyboard): Define dbus-event.
19535
19536 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19537
19538 2007-12-01 Richard Stallman <rms@gnu.org>
19539
19540 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19541
19542 2007-11-30 Jason Rumney <jasonr@gnu.org>
19543
19544 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19545 (w32con_reset_terminal_modes): Clear screen buffer.
19546 (w32_face_attributes): Don't use color indexes that are out of range.
19547 Only reverse the default colors.
19548
19549 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19550 WINDOWSNT.
19551
19552 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19553
19554 2007-11-29 Jason Rumney <jasonr@gnu.org>
19555
19556 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19557 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19558 if the terminal colors are initialized.
19559 (unspecified_fg, unspecified_bg): Remove unused declarations.
19560
19561 2007-11-29 Andreas Schwab <schwab@suse.de>
19562
19563 * keyboard.c (apply_modifiers): Fix typo.
19564
19565 2007-11-29 Richard Stallman <rms@gnu.org>
19566
19567 * keymap.c (Fcurrent_local_map): Doc fix.
19568
19569 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19570
19571 * s/gnu-kfreebsd.h: New file.
19572
19573 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19574
19575 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19576 Don't cast redundantly.
19577
19578 * keyboard.c (KEY_TO_CHAR): New macro.
19579 (parse_modifiers, apply_modifiers): Accept integer arguments.
19580 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19581 for chars and symbol keys.
19582 After doing such remapping, apply function-key-map again.
19583
19584 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19585
19586 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19587 compiled anymore.
19588
19589 2007-11-26 Andreas Schwab <schwab@suse.de>
19590
19591 * process.c (list_processes_1): Fix indentation level of the
19592 command column.
19593
19594 2007-11-23 Andreas Schwab <schwab@suse.de>
19595
19596 * editfns.c (Fformat): Handle %c specially since it requires the
19597 argument to be of type int.
19598
19599 2007-11-23 Markus Triska <markus.triska@gmx.at>
19600
19601 * emacs.c (main): Call init_editfns before init_process, since
19602 init_process sets Vprocess_connection_type depending on OS release.
19603
19604 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19605
19606 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19607 (find_symbol_value): Use do_symval_forwarding.
19608
19609 * data.c (set_internal): Set the value in the `cons-cell' (for
19610 Buffer_Local_values) not only for frame-local variables.
19611
19612 2007-11-22 Andreas Schwab <schwab@suse.de>
19613
19614 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19615 values to sprintf.
19616 * keymap.c (Fsingle_key_description): Likewise.
19617 * print.c (print_object): Likewise.
19618
19619 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19620
19621 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19622 file for image is nil.
19623
19624 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19625
19626 * term.c: Include stdarg.h.
19627 (fatal): Implement using varargs.
19628 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19629
19630 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19631
19632 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19633 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19634 Update call to buffer_slot_type_mismatch.
19635 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19636 (buffer_slot_type_mismatch): Update.
19637 * buffer.c (buffer_local_types): Remove.
19638 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19639 (defvar_per_buffer): Set the type in the buffer_objfwd.
19640
19641 2007-11-21 Jason Rumney <jasonr@gnu.org>
19642
19643 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19644 CreateFileMapping returns NULL on failure.
19645
19646 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19647
19648 * search.c (Fset_match_data): Remove the `evaporate' feature.
19649 (unwind_set_match_data): Don't use the `evaporate' feature.
19650
19651 2007-11-21 Jason Rumney <jasonr@gnu.org>
19652
19653 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19654
19655 * w32console.c (w32con_write_glyphs): Remove unused variables.
19656
19657 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19658
19659 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19660
19661 * s/darwin.h (MULTI_KBOARD): Remove.
19662
19663 * macfns.c (x_create_tip_frame, Fx_create_frame)
19664 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19665
19666 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19667
19668 * buffer.c (Fbuffer_local_value): Remove redundant test.
19669 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19670 than in `current-buffer' to match the comment.
19671 Do the swap using swap_in_global_binding.
19672
19673 * data.c (store_symval_forwarding, set_internal):
19674 * eval.c (specbind): Remove dead code.
19675
19676 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19677 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19678 Since we do not want to see internal Lisp_*fwd objects here.
19679
19680 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19681
19682 * sysdep.c (init_system_name): Use getaddrinfo if available.
19683
19684 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19685 (x_scroll_bar_note_movement): start, end, with, height in struct
19686 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19687
19688 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19689
19690 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19691
19692 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19693
19694 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19695 This undoes Richard's change of 14-Oct-2002.
19696
19697 * alloc.c (allocate_other_vector):
19698 * lisp.h (allocate_other_vector): Remove.
19699
19700 * window.c (struct save_window_data): Move non-lisp data to the end
19701 and make it `int' rather than Lisp_Object.
19702 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19703 Done wrap/unwrap integer values.
19704 (Fset_window_configuration, compare_window_configurations):
19705 Update use of fields to their new types.
19706
19707 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19708 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19709 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19710 (SET_SCROLL_BAR_X_WINDOW): Remove.
19711 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19712 Access the new x_window field directly.
19713 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19714 Don't wrap/unwrap integers into Lisp_Objects.
19715 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19716 (x_scroll_bar_report_motion):
19717 Don't wrap/unwrap integers into Lisp_Objects.
19718 (x_term_init): Use SDATA.
19719 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19720 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19721 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19722 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19723 * xfns.c (x_set_background_color):
19724 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19725 Access the new x_window field directly.
19726
19727 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19728 (allocate_pseudovector): Make non-static.
19729
19730 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19731 (allocate_pseudovector): Declare.
19732 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19733
19734 2007-11-15 Andreas Schwab <schwab@suse.de>
19735
19736 * editfns.c (Fformat): Correctly format EMACS_INT values.
19737 Also take precision into account when formatting an integer.
19738
19739 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19740
19741 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19742
19743 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19744 (syms_of_keyboard): Defsubr it.
19745
19746 * data.c (swap_in_global_binding): Fix longstanding bug where
19747 store_symval_forwarding was not called with the right second argument,
19748 thus causing objfwd-ing from being dropped.
19749
19750 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19751
19752 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19753 (Fx_display_pixel_height, Fx_display_planes)
19754 (Fx_display_color_cells, Fx_server_max_request_size)
19755 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19756 (Fx_display_visual_class, Fx_display_save_under):
19757 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19758 (Fx_display_pixel_height, Fx_display_planes)
19759 (Fx_display_color_cells, Fx_server_max_request_size)
19760 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19761 (Fx_display_mm_height, Fx_display_mm_width)
19762 (Fx_display_backing_store, Fx_display_visual_class)
19763 (Fw32_select_font, Fx_display_save_under):
19764 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19765 (Fx_display_pixel_height, Fx_display_planes)
19766 (Fx_display_color_cells, Fx_server_max_request_size)
19767 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19768 (Fx_display_save_under): Fix typos in docstrings.
19769
19770 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19771
19772 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19773 corresponding to deleted entries; they are an implementation detail.
19774 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19775 Remove variables.
19776 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19777 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19778 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19779 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19780 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19781 (Fw32_define_rgb_color, Fw32_load_color_file)
19782 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19783 Fix typos in docstrings.
19784 (Fx_server_version): Reflow docstring.
19785 (Fw32_shell_execute): Doc fixes.
19786
19787 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19788
19789 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19790 if w32_parse_hot_key returned nil.
19791
19792 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19793
19794 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19795
19796 2007-11-09 Jason Rumney <jasonr@gnu.org>
19797
19798 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19799
19800 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19801
19802 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19803 Remove W32_SCROLL_BAR_CLICK_EVENT.
19804
19805 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19806 Add MULTIMEDIA_KEY_EVENT.
19807
19808 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19809 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19810 (make_lispy_event) [WINDOWSNT]: Use it to translate
19811 MULTIMEDIA_KEY_EVENT.
19812
19813 * w32term.h (WM_APPCOMMAND): Define if not already.
19814 (GET_APPCOMMAND_LPARAM): Likewise.
19815
19816 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19817 WM_APPCOMMAND.
19818
19819 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19820 (syms_of_w32fns): Export and initialize it.
19821 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19822
19823 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19824
19825 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19826 twice.
19827
19828 * xdisp.c (handle_face_prop): Fix last change.
19829
19830 2007-11-09 Richard Stallman <rms@gnu.org>
19831
19832 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19833 not just for after-strings and before-strings.
19834 Call face_for_overlay_string and pass the overlay to it.
19835 (handle_display_prop): Determine whether property came from an overlay.
19836 Pass OVERLAY arg to handle_single_display_spec.
19837 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19838 (load_overlay_strings): Fill in it->string_overlays.
19839 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19840
19841 * xfaces.c (face_for_overlay_string): Function renamed from
19842 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19843
19844 * dispextern.h (struct it): New elt string_overlays.
19845 New elt from_overlay, also in stack.
19846 Rearrange a few elements.
19847 (face_for_overlay_string): Decl renamed from
19848 face_at_buffer_position_no_overlays, and add argument.
19849
19850 2007-11-09 Richard Stallman <rms@gnu.org>
19851
19852 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19853 to get the base face for an overlay string.
19854
19855 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19856
19857 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19858
19859 * xdisp.c (handle_stop): Move some code out of loop.
19860
19861 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19862
19863 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19864 Fix conversion from Lisp object to ATSUFontID.
19865
19866 2007-11-09 Jason Rumney <jasonr@gnu.org>
19867
19868 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19869
19870 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19871
19872 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19873 Don't assume regions are aligned to page boundary.
19874 (print_load_command_name): Add LC_UUID if defined.
19875
19876 2007-11-09 Richard Stallman <rms@gnu.org>
19877
19878 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19879
19880 2007-11-07 Jason Rumney <jasonr@gnu.org>
19881
19882 * s/windows95.h: Remove.
19883
19884 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19885
19886 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19887 abort with a message on unhandled store_type values.
19888
19889 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19890
19891 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19892 Remove HAVE_X11R5 and HAVE_X11R4.
19893
19894 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19895
19896 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19897
19898 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19899
19900 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19901 Don't set s->stippled_p here, since it has already been set by
19902 x_set_glyph_string_gc from x_draw_glyph_string.
19903
19904 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19905
19906 * sunfns.c: Remove file.
19907
19908 * m/sun386.h:
19909 * m/sun2.h:
19910 * m/sparc.h: Remove Sun windows code.
19911
19912 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19913
19914 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19915 (init_keyboard): Set current_kboard's window-system to nil.
19916 (tty_read_avail_input): Typo.
19917 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19918
19919 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19920
19921 * s/usg5-4.h:
19922 * s/usg5-3.h:
19923 * s/ptx.h:
19924 * m/is386.h:
19925 * m/ibmps2-aix.h:
19926 * Makefile.in: Remove all mentions of X10.
19927
19928 * dispnew.c (syms_of_display): Don't mention version 10.
19929
19930 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19931
19932 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19933 ($(BLD)/abbrev.$(O)): Remove.
19934
19935 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19936
19937 Rewrite abbrev.c in Elisp.
19938 * image.c (Qcount): Don't declare as extern.
19939 (syms_of_image): Initialize and staticpro `Qcount'.
19940 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19941 * emacs.c (main): Don't call syms_of_abbrev.
19942 * Makefile.in (obj): Remove abbrev.o.
19943 (abbrev.o): Remove.
19944 * abbrev.c: Remove.
19945
19946 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19947
19948 * window.c (window_min_size_2): Don't count header-line.
19949
19950 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19951
19952 * frame.h (struct frame): Move all bit fields after the first bit
19953 field to take advantage of the available space. Group all the
19954 chars together to reduce wasted space due to padding.
19955
19956 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19957
19958 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19959
19960 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19961 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19962 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19963 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19964 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19965 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19966 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19967 (last_marked, mark_object_loop_halt): Make static.
19968
19969 * frame.c (syms_of_frame) <delete-frame-functions>:
19970 Fix typo in docstring.
19971
19972 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19973
19974 * w32.c (init_environment): Fix tiny memory leak.
19975 (w32_get_resource): Remove unused variable `ok'.
19976
19977 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19978
19979 Make `window-system' into a keyboard-local variable (rather than
19980 frame-local as done originally by multi-tty).
19981
19982 * keyboard.h (struct kboard): Add Vwindow_system.
19983 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19984 (mark_kboards): Mark Vwindow_system.
19985
19986 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19987 (init_display): Don't set the obsolete `window-system' frame-param.
19988
19989 * xterm.c (x_term_init):
19990 * w32term.c (w32_create_terminal):
19991 * term.c (init_tty): Set Vwindow_system.
19992 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19993 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19994
19995 * xfns.c (Fx_create_frame, x_create_tip_frame):
19996 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19997 * macfns.c (Fx_create_frame):
19998 Don't set the obsolete `window-system' frame-param.
19999
20000 * frame.h (Qwindow_system): Remove.
20001 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20002 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20003
20004 2007-10-24 Richard Stallman <rms@gnu.org>
20005
20006 * frame.c (x_figure_window_size): For fullscreen case,
20007 set USPosition | PPosition without clobbering rest of window_prompting.
20008
20009 * keyboard.c (Fcurrent_idle_time): Doc fix.
20010
20011 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20012
20013 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20014
20015 * process.c (unwind_request_sigio): Only define if __ultrix__.
20016
20017 * callproc.c (child_setup): Remove spurious *.
20018
20019 * lisp.h (Fget_text_property): Declare.
20020 (have_menus_p): Declare it here rather than in sys-dep header files.
20021 * macterm.h (have_menus_p):
20022 * msdos.h (have_menus_p):
20023 * xterm.h (have_menus_p): Remove.
20024
20025 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20026 (Fmake_variable_frame_local): Just check the variable's const-ness
20027 rather than checking nil or t.
20028
20029 2007-10-22 Jason Rumney <jasonr@gnu.org>
20030
20031 * w32fns.c: Include math.h.
20032 (w32_abort): Declaration moved to nt/config.nt.
20033
20034 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20035 (abort): Redefinition moved to nt/config.nt.
20036
20037 * m/windowsnt.h: Remove.
20038
20039 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
20040
20041 * emacs.c (Fdump_emacs): Fix typo in message.
20042 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20043 <installation-directory>: Reflow docstring.
20044
20045 2007-10-22 Juri Linkov <juri@jurta.org>
20046
20047 * minibuf.c: Allow minibuffer default to be a list of default values.
20048 With empty input use the first element of this list as returned default.
20049 (string_to_object)
20050 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20051 (read_minibuf): If defalt is cons, set histstring to its car.
20052 (Fread_string): If default_value is cons, set val to its car.
20053 (Fread_buffer): If def is cons, use its car.
20054 (Fcompleting_read): If defalt is cons, set val to its car.
20055
20056 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
20057
20058 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20059
20060 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
20061
20062 * doc.c (Fdocumentation): Check for advice in all cases.
20063
20064 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
20065
20066 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20067
20068 2007-10-19 Richard Stallman <rms@gnu.org>
20069
20070 * doc.c (Fdocumentation): Check for and handle an advised function.
20071
20072 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
20073
20074 * process.c (Fset_process_filter): Doc fix.
20075
20076 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20077
20078 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20079 which caused key-translation-map to applied repeatedly (thus breaking
20080 double-mode).
20081
20082 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20083
20084 * xselect.c (x_own_selection, x_handle_selection_clear)
20085 (x_clear_frame_selections):
20086 * w32menu.c (list_of_panes, list_of_items):
20087 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20088 * textprop.c (validate_plist, interval_has_all_properties)
20089 (interval_has_some_properties, interval_has_some_properties_list)
20090 (add_properties, text_property_list):
20091 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20092 * minibuf.c (Fassoc_string):
20093 * macselect.c (x_own_selection, x_clear_frame_selections)
20094 (Fx_disown_selection_internal):
20095 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20096 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20097
20098 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
20099
20100 * process.c: Link to libs for calling res_init() if available.
20101 (Fmake_network_process): Call res_init() before getaddrinfo or
20102 gethostbyname, if possible.
20103
20104 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20105
20106 * lread.c (read1): Set pvectype for char_tables.
20107
20108 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20109 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20110 Add type checks.
20111 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20112
20113 * alloc.c (free_misc): Use XMISCTYPE.
20114 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20115
20116 2007-10-17 Glenn Morris <rgm@gnu.org>
20117
20118 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20119 (syms_of_minibuf): Add Qcompletion_ignore_case.
20120 * dired.c (Qcompletion_ignore_case): Change to external.
20121 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20122 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20123 (Fread_file_name): Use it rather than intern'ing.
20124
20125 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20126 (Fread_coding_system): Ignore case of user input.
20127
20128 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20129
20130 * xdisp.c (handle_display_prop): Ignore display specs after
20131 replacing one when string text is being replaced.
20132 (handle_single_display_spec): Pretend as if characters with display
20133 property haven't been consumed only when buffer text is being replaced.
20134
20135 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20136
20137 * xfns.c (Fx_create_frame, Fx_display_list):
20138 * window.c (window_fixed_size_p, enlarge_window)
20139 (shrink_window_lowest_first):
20140 * macterm.c (init_font_name_table):
20141 * macfns.c (Fx_create_frame, Fx_display_list):
20142 * lread.c (close_load_descs):
20143 * keyboard.c (read_char_x_menu_prompt):
20144 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20145 * coding.c (code_convert_region_unwind): Test the type of an object
20146 rather than just !NILP before extracting data from it.
20147
20148 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20149
20150 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20151 (XMISCANY): New macro.
20152 (XMISCTYPE): Use it.
20153 (struct Lisp_Misc_Any): New type.
20154 (union Lisp_Misc): Use it.
20155 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20156 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20157 (find_symbol_value, set_internal, default_value, Fset_default)
20158 (Fmake_variable_buffer_local, Fmake_local_variable)
20159 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20160 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20161 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20162 * alloc.c (allocate_buffer): Set the size and tag.
20163 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20164 Use XMISCANY.
20165 (die): Follow the GNU convention for error messages.
20166 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20167 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20168 tag any more.
20169 (set_buffer_internal_1):
20170 * frame.c (store_frame_param):
20171 * eval.c (specbind):
20172 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20173
20174 * doc.c (Fsnarf_documentation): Simplify.
20175
20176 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20177
20178 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20179 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20180
20181 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20182
20183 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20184
20185 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
20186
20187 * eval.c (do_autoload): Don't save autoloads.
20188
20189 * data.c (Ffset): Save autoload of the function being set.
20190
20191 2007-10-07 John Paul Wallington <jpw@pobox.com>
20192
20193 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20194 parameter before setting up faces.
20195
20196 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20197
20198 * ccl.c (Fregister_code_conversion_map):
20199 * keyboard.c (append_tool_bar_item): Reformat last change.
20200
20201 * lisp.h (eabs): Rename from `abs'. All callers changed.
20202
20203 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20204
20205 * buffer.c (add_overlay_mod_hooklist):
20206 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20207 * fontset.c (make_fontset):
20208 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20209 (append_tool_bar_item):
20210 * macmenu.c (grow_menu_items):
20211 * w32menu.c (grow_menu_items):
20212 * xmenu.c (grow_menu_items): Use larger_vector.
20213
20214 2007-10-13 Eli Zaretskii <eliz@gnu.org>
20215
20216 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20217 selected frame'' on MSDOS).
20218
20219 2007-10-12 Martin Rudalics <rudalics@gmx.at>
20220
20221 * frame.c (Qexplicit_name): New variable.
20222 (x_report_frame_params): Report it in parameter alist.
20223 (syms_of_frame): Intern and staticpro it.
20224
20225 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20226
20227 * macfns.c (x_create_tip_frame): Set terminal for frame.
20228
20229 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20230
20231 * frame.c (Qenvironment): Remove.
20232 (syms_of_frame) <Qenvironment>: Don't initialize.
20233 (Fdelete_frame): Don't treat the `environment' param specially.
20234 * frame.h (Qenvironment): Don't declare.
20235 * callproc.c (set_initial_environment): Don't set unused frame param.
20236
20237 * frame.c (Fframe_with_environment): Remove.
20238 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20239
20240 * lisp.h (Fframe_with_environment): Don't declare.
20241
20242 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
20243
20244 * indent.c (indent_tabs_mode, last_known_column)
20245 (last_known_column_modified): Make static.
20246 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20247
20248 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20249
20250 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20251
20252 2007-10-09 Jason Rumney <jasonr@gnu.org>
20253
20254 * w32term.c (x_set_window_size): Disable code that attempts to tell
20255 Lisp code about a size change before it actually happens.
20256
20257 2007-10-09 Richard Stallman <rms@gnu.org>
20258
20259 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20260 return HANDLED_RETURN.
20261
20262 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20263
20264 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20265 when there's an unread command event.
20266
20267 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20268 window autoselection act appropriately when leaving selected frame.
20269 (syms_of_frame): Initialize focus_follows_mouse.
20270 * frame.h (focus_follows_mouse): Extern it.
20271 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20272 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20273 * msdos.c (dos_rawgetc): Likewise.
20274 * w32term.c (w32_read_socket): Likewise.
20275 * xterm.c (handle_one_xevent): Likewise.
20276 * xdisp.c (syms_of_xdisp): In doc-string of
20277 mouse-autoselect-window mention focus-follows-mouse.
20278
20279 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20280
20281 * macterm.c (mac_load_query_font): Fix missing return value.
20282 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20283 Add BLOCK_INPUT.
20284
20285 2007-10-08 Richard Stallman <rms@gnu.org>
20286
20287 * xdisp.c (get_window_cursor_type): Implement documented behavior
20288 for cursor-in-non-selected-windows = t.
20289
20290 2007-10-08 Jason Rumney <jasonr@gnu.org>
20291
20292 * w32.c (w32_get_resource): Always close registry keys.
20293
20294 2007-10-08 Jason Rumney <jasonr@gnu.org>
20295
20296 * makefile.w32-in (LIBS): Add COMCTL32.
20297
20298 * w32fns.c (globals_of_w32fns): Init common controls.
20299
20300 2007-10-08 Richard Stallman <rms@gnu.org>
20301
20302 * image.c (our_memory_buffer): Rename from omfib_buffer.
20303
20304 2007-10-08 Richard Stallman <rms@gnu.org>
20305
20306 * buffer.c (Foverlays_at): Doc fix.
20307
20308 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20309
20310 * fns.c (Fplist_put): Preserve uneven tail data.
20311
20312 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20313
20314 * termhooks.h (enum event_kind): Remove trailing comma.
20315
20316 * frame.h (enum): Remove trailing comma.
20317
20318 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20319
20320 * w32proc.c (delete_child): Don't terminate threads of zombies.
20321
20322 2007-10-08 Martin Rudalics <rudalics@gmx.at>
20323
20324 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20325
20326 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20327 last-repeatable-command.
20328 (init_kboard): Initialize Vlast_repeatable_command.
20329 (command_loop_1): Set it to real_this_command unless that was
20330 bound to an input event.
20331 (mark_kboards): Mark it.
20332
20333 2007-10-08 Richard Stallman <rms@gnu.org>
20334
20335 * eval.c (condition-case): Doc fix.
20336
20337 2007-10-08 Masatake YAMATO <jet@gyve.org>
20338
20339 * xfaces.c (tty_supports_face_attributes_p): Fix code
20340 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20341 was copied and not edited.
20342
20343 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20344
20345 Add new `input-decode-map' keymap and use it for terminal
20346 escape sequences.
20347 * keyboard.h (struct kboard): Add Vinput_decode_map.
20348 Remove Vlocal_key_translation_map.
20349 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20350 (init_kboard): Init input-decode-map.
20351 Replace local-key-translation-map back with key-translation-map.
20352 (syms_of_keyboard): Declare input-decode-map.
20353 Remove local-key-translation-map. Update docstrings.
20354 (mark_kboards): Mark Vinput_decode_map.
20355 Don't mark Vlocal_key_translation_map.
20356 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20357 Replace local-key-translation-map back with key-translation-map.
20358 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20359 Bind in input-decode-map rather than function-key-map.
20360
20361 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20362 This was made redundant by the previous introduction of XSETPVECTYPE.
20363
20364 2007-10-09 Richard Stallman <rms@gnu.org>
20365
20366 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20367
20368 2007-09-29 Richard Stallman <rms@gnu.org>
20369
20370 * eval.c (internal_condition_case_2, internal_condition_case_1)
20371 (internal_condition_case): Reenable abort if x_catching_errors ()
20372 to see if that really happens and why.
20373
20374 2007-10-06 Andreas Schwab <schwab@suse.de>
20375
20376 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20377
20378 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
20379
20380 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20381
20382 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20383
20384 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20385
20386 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20387
20388 * window.h (struct window):
20389 * window.c (struct save_window_data, struct saved_window):
20390 * termhooks.h (struct terminal):
20391 * process.h (struct Lisp_Process):
20392 * frame.h (struct frame):
20393 * buffer.h (struct buffer):
20394 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20395 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20396 The size field of (pseudo)vectors is now unsigned.
20397 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20398
20399 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20400 Turn `count' into an integer.
20401
20402 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20403 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20404 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20405 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20406 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20407
20408 * alloc.c (allocate_pseudovector): New fun.
20409 (ALLOCATE_PSEUDOVECTOR): New macro.
20410 (allocate_window, allocate_terminal, allocate_frame)
20411 (allocate_process): Use it.
20412 (mark_vectorlike): New function.
20413 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20414 (mark_terminals): Use it.
20415 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20416 (Fmake_byte_code): Use XSETPVECTYPE.
20417
20418 * frame.c (Fframe_parameters): Minor simplification.
20419
20420 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20421
20422 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20423
20424 * buffer.c (Fget_buffer_create, init_buffer_once):
20425 * lread.c (defsubr):
20426 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20427
20428 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20429 defined differently in the m/*.h files.
20430 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20431 (XSETPVECTYPE): New macro.
20432 (XSETPSEUDOVECTOR): Use it.
20433
20434 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20435 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20436
20437 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20438 * lread.c (defvar_per_buffer):
20439 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20440
20441 * window.c (candidate_window_p): Only consider as visible frames that
20442 are on the same terminal.
20443
20444 * m/ibms390x.h (MARKBIT): Remove unused macro.
20445
20446 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20447
20448 * lread.c (Fload): Fix typo in docstring.
20449
20450 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20451
20452 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20453 of a non-zero value can't yield zero.
20454
20455 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20456
20457 * term.c (term_clear_mouse_face, term_mouse_highlight)
20458 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20459
20460 * print.c (safe_debug_print): Use XHASH.
20461
20462 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20463 Lisp elements such as tags.
20464 (XHASH): New macro.
20465 (EQ): Use it.
20466 (SREF, SSET, STRING_COPYIN): Use SDATA.
20467 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20468
20469 * alloc.c (mark_terminal): Remove left-over declaration.
20470 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20471 (allocate_vectorlike): Remove type argument. Adjust callers.
20472 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20473 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20474
20475 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20476 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20477 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20478 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20479 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20480 Use them.
20481
20482 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20483 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20484 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20485
20486 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20487
20488 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20489 loaded by default.
20490
20491 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20492
20493 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20494 on this tty.
20495 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20496
20497 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20498 Update all users.
20499 (handle_one_term_event): Use Gpm_DrawPointer.
20500 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20501 Signal errors instead of returning nil. Always return nil.
20502 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20503 Make it a noop if gpm-mouse was not activated.
20504 (syms_of_term): Update names.
20505
20506 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20507
20508 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20509 (init_sys_modes): Check that gpm_tty is the current tty.
20510
20511 * alloc.c (allocate_terminal): Set the vector size to only count the
20512 lisp fields. Initialize those to nil.
20513 (mark_object): Don't treat terminals specially.
20514 (mark_terminal): Remove.
20515 (mark_terminals): Use mark_object instead.
20516
20517 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20518 the GC to the beginning.
20519
20520 * indent.h:
20521 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20522
20523 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20524
20525 2007-09-25 Jason Rumney <jasonr@gnu.org>
20526
20527 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20528
20529 * w32console.c (create_w32cons_output): Remove.
20530
20531 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20532
20533 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20534 (reset_sys_modes): Use reset_terminal_modes_hook.
20535
20536 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20537
20538 * eval.c (do_autoload): Don't output any message.
20539
20540 2007-09-24 Juri Linkov <juri@jurta.org>
20541
20542 * emacs.c (standard_args): Change priority of "--no-splash"
20543 from 40 to 3. Add "--no-desktop" with the same priority.
20544
20545 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20546
20547 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20548 and optimize the case where they are all 1.
20549
20550 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20551
20552 * lisp.h (abs): Define if not defined.
20553 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20554 Don't define `abs', since it's defined in lisp.h.
20555
20556 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20557
20558 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20559 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20560 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20561 (init_tty): Use DEV_TTY instead of "/dev/tty".
20562 [WINDOWSNT]: No need to protect from NAME arg being null.
20563
20564 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20565
20566 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20567 up the tty state.
20568
20569 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20570
20571 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20572 (gpm_tty): Change its type.
20573 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20574 (gpm_tty): Change its type and initialize it.
20575 (Fterm_open_connection): Check the frame is indeed a tty.
20576 Use the new gpm_tty.
20577 (Fterm_close_connection): Use the new gpm_tty.
20578 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20579 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20580
20581 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20582
20583 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20584 underline_color, to draw strike-through.
20585
20586 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20587
20588 * lisp.h (allocate_terminal): Declare.
20589
20590 * window.c (candidate_window_p): Consider frames that are being placed
20591 by the user as somewhere between visible and iconified.
20592 (window_loop): Prefer windows on the current frame.
20593 (Fselect_window): Move the use of select-frame to the beginning so we
20594 can just delegate all the work (it'll call us back anyway).
20595
20596 * frame.c (Qdisplay_environment_variable):
20597 * frame.h (Qdisplay_environment_variable): Delete.
20598
20599 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20600 of the first arg, since that value may be a union.
20601
20602 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20603 parameter rather than Qdisplay_environment_variable. If all else
20604 fails, look for DISPLAY in initial-environment.
20605
20606 2007-09-21 Glenn Morris <rgm@gnu.org>
20607
20608 * Makefile.in (emacstool): Remove target.
20609 (lisp, shortlisp): Remove termdev.elc.
20610
20611 2007-09-21 Markus Triska <markus.triska@gmx.at>
20612
20613 * xterm.c (x_delete_display): Compile session management conditionally.
20614
20615 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20616
20617 * callproc.c (getenv_internal_1): New function.
20618 (getenv_internal): Use it.
20619 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20620
20621 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20622 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20623 (Fset_terminal_parameter): Work with dead terminals as well.
20624 (Fmodify_terminal_parameters): Remove.
20625
20626 * terminal.c (get_terminal): Handle terminals.
20627 Make sure the terminal returned is live.
20628 (create_terminal): Use allocate_terminal.
20629 (mark_terminals): Move to alloc.c.
20630 (delete_terminal): Use terminal->name as liveness status.
20631 NULL out fields after freeing their contents.
20632 Don't deallocate the object.
20633 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20634 rather than an int.
20635 (Fterminal_live_p): Accept non-integer arguments.
20636 (Fterminal_list): Return terminal objects rather than an ints.
20637
20638 * alloc.c (enum mem_type): New member for `terminal' objects.
20639 (allocate_terminal): New function.
20640 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20641 Handle terminals.
20642 (mark_terminal): New fun.
20643 (mark_terminals): Move from terminal.c.
20644
20645 * term.c (get_tty_terminal): Don't treat output_initial specially.
20646 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20647 (delete_tty): Use terminal->name as liveness status.
20648
20649 * termhooks.h (struct terminal): Make it into a pseudovector.
20650 Remove `deleted' replaced by checking `name's nullness.
20651
20652 * print.c (print_object): Handle terminals.
20653
20654 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20655 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20656
20657 * frame.c (make_terminal_frame):
20658 * keyboard.c (tty_read_avail_input):
20659 * w32term.c (x_delete_terminal):
20660 * xfns.c (Fx_create_frame, x_create_tip_frame):
20661 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20662
20663 2007-09-20 Glenn Morris <rgm@gnu.org>
20664
20665 * process.c (Fmake_network_process): Doc fix.
20666
20667 2007-09-19 Jason Rumney <jasonr@gnu.org>
20668
20669 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20670
20671 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20672
20673 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20674 Fix a C warning regarding variable constness.
20675
20676 * xterm.c (handle_one_xevent): Fix a C warning.
20677
20678 2007-09-18 Jason Rumney <jasonr@gnu.org>
20679
20680 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20681
20682 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20683
20684 * gtkutil.c (gdpy_def): New variable.
20685 (xg_initialize): Initialize gdpy_def.
20686 (xg_display_close): If no other display exists, set gdpy_def to a
20687 new connection.
20688
20689 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20690
20691 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20692 when we have no file name for the icon.
20693 (xg_tool_bar_expose_callback): Remove.
20694 (xg_create_tool_bar): Don't connect expose signal to
20695 xg_tool_bar_expose_callback.
20696 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20697
20698 2007-09-16 Andreas Schwab <schwab@suse.de>
20699
20700 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20701 values instead of zapping them.
20702
20703 2007-09-14 Glenn Morris <rgm@gnu.org>
20704
20705 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20706 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20707 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20708 scope and rename to omfib_buffer for clarity.
20709 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20710
20711 2007-09-14 Kenichi Handa <handa@m17n.org>
20712
20713 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20714
20715 2007-09-13 Jason Rumney <jasonr@gnu.org>
20716
20717 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20718
20719 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20720
20721 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20722 (mac_term_init): Call here instead, passing rif.
20723
20724 2007-09-13 Glenn Morris <rgm@gnu.org>
20725
20726 * s/hpux.h: No longer define `static' as nothing.
20727
20728 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20729
20730 * callint.c (Fcall_interactively): Remove unused var `fun'.
20731
20732 2007-09-12 Romain Francoise <romain@orebokech.com>
20733
20734 * window.c (prefer_window_split_horizontally, display_buffer):
20735 Revert 2007-09-08 change.
20736
20737 2007-09-12 Glenn Morris <rgm@gnu.org>
20738
20739 * alloca.c: Remove file.
20740 * Makefile.in (alloca): Do not undef.
20741 (allocaobj, alloca.o): Remove.
20742 (otherobj): Remove allocaobj.
20743 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20744 * regex.c (C_ALLOCA): Remove all references and code that was only
20745 used when this was defined.
20746 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20747 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20748 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20749
20750 * Makefile.in (SOURCES, unlock, relock): Delete.
20751
20752 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20753 (menu_grab_callback): All uses changed.
20754
20755 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20756 (x_reply_selection_request): All uses changed.
20757
20758 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20759
20760 * lread.c (load_warn_old_style_backquotes): Change message to look
20761 better when it appears in the middle of byte-compiler messages.
20762
20763 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20764
20765 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20766
20767 * xterm.c (x_create_terminal): Add comment.
20768
20769 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20770
20771 2007-09-10 Richard Stallman <rms@gnu.org>
20772
20773 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20774
20775 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20776
20777 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20778 (DEFUN): Document `intspec', use it instead of `prompt'.
20779
20780 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20781
20782 * data.c (Finteractive_form): If the interactive specification starts
20783 with a `(', use it as a Lisp form.
20784
20785 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20786 name and file modes.
20787
20788 * callint.c (Fcall_interactively): Comment fixes.
20789
20790 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20791
20792 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20793 and compiled functions.
20794
20795 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20796
20797 * window.c (prefer_window_split_horizontally): New variable.
20798 (display_buffer): Consider splitting window horizontally depending
20799 on prefer_window_split_horizontally.
20800
20801 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20802
20803 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20804
20805 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20806
20807 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20808
20809 * frame.c (x_set_frame_parameters): Check number is positive before
20810 using XFASTINT.
20811
20812 * window.c (freeze_window_start): Don't presume selected_window holds
20813 a window object.
20814 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20815
20816 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20817
20818 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20819
20820 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20821
20822 * window.c (Vsplit_window_preferred_function): New var.
20823 (Fdisplay_buffer): Use it.
20824 (syms_of_window): Export, and initialize it.
20825
20826 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20827
20828 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20829
20830 2007-09-06 Glenn Morris <rgm@gnu.org>
20831
20832 * gtkutil.c (menu_grab_callback) <cnt>:
20833 * xselect.c (x_reply_selection_request) <cnt>: Move static
20834 variable to file scope.
20835
20836 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20837
20838 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20839 consistent values of selected_frame and selected_window.
20840
20841 2007-09-04 Jason Rumney <jasonr@gnu.org>
20842
20843 * w32console.c (initialize_w32_display): Zero unused hooks.
20844
20845 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20846
20847 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20848 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20849
20850 2007-09-04 Jason Rumney <jasonr@gnu.org>
20851
20852 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20853 in w32console.c. Set up input. Remove XXX comments that have been
20854 confirmed as correct.
20855
20856 * s/ms-w32.h (MULTI_KBOARD): Define.
20857
20858 * w32console.c (one_and_only_w32cons): Remove.
20859 (initialize_w32_display): Take terminal argument.
20860
20861 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20862 initialize_w32_display.
20863 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20864
20865 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20866
20867 * keyboard.c (discard_mouse_events): Discard it.
20868 (make_lispy_event): Translate it to a lisp event.
20869 (lispy_wheel_names): Add wheel-left and right events.
20870 (syms_of_keyboard): Enlarge wheel_syms.
20871
20872 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20873 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20874
20875 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20876
20877 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20878 from WM_MOUSEHWHEEL.
20879 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20880
20881 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20882 terminal.
20883
20884 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20885 keyboard for the terminal.
20886
20887 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20888
20889 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20890 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20891 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20892 and resume-tty-function to resume-tty-hook.
20893 (Fsuspend_tty, Fresume_tty): Use new names.
20894
20895 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20896
20897 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20898 if it starts with "n:".
20899
20900 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20901
20902 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20903
20904 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20905
20906 * frame.h:
20907 * frame.c (Qterm_environment_variable): Remove.
20908 (syms_of_frame): Don't init and staticpro it.
20909
20910 * callproc.c (getenv_internal): Remove special case for $TERM.
20911
20912 * callproc.c (Vinitial_environment): New variable.
20913 (set_initial_environment): Initialize it.
20914 (syms_of_callproc): Declare it.
20915 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20916 TERM under which a process runs is never related to the TERM in which
20917 Emacs is running.
20918
20919 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20920
20921 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20922 * s/darwin.h: ... do it here.
20923
20924 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20925
20926 * lisp.h (set_initial_environment): Rename from set_global_environment.
20927
20928 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20929 removed by mistake on the multi-tty branch.
20930
20931 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20932 (Fmodify_frame_parameters): Return a value.
20933
20934 * image.c (png_load): Comment-out var only used in commented-out code.
20935
20936 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20937 before passing it to mark_object.
20938
20939 * xfaces.c (internal_resolve_face_name): Return a value.
20940 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20941
20942 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20943 (x_icon): Comment-out var only used in commented-out code.
20944
20945 2007-08-29 Romain Francoise <romain@orebokech.com>
20946
20947 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20948 QUIT hasn't been provided.
20949
20950 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20951
20952 * callproc.c (child_setup, getenv_internal): Use the
20953 display-environment-variable and term-environment-variable frame params.
20954 (set_initial_environment): Initialise Vprocess_environment.
20955
20956 * config.in: Disable multi-keyboard support on a mac.
20957
20958 * frame.c (Qterm_environment_variable)
20959 (Qdisplay_environment_variable): New variables.
20960 (syms_of_frame): Intern and staticpro them.
20961 (Fmake_terminal_frame): Disable output method test.
20962
20963 * frame.h: Declare them here.
20964
20965 * macfns.c (x_set_mouse_color): Get rif from the frame.
20966 (x_set_tool_bar_lines): Don't use updating_frame.
20967 (mac_window): Add 2 new parameters for consistency with other systems.
20968 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20969 frame parameters following what is done in X11 and w32. Don't use
20970 FRAME_MAC_DISPLAY_INFO.
20971 (Fx_open_connection, start_hourglass): Remove window-system check.
20972 (x_create_tip_frame): Get the keyboard from the terminal.
20973
20974 * macmenu.c: Reorder includes.
20975 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20976
20977 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20978 terminal parameter.
20979 (x_clear_frame): Add a frame parameter.
20980 (note_mouse_movement): Get rif from the frame.
20981 (mac_term_init): Initialize the terminal.
20982 (mac_initialize): Make static and move terminal initialization ...
20983 (mac_create_terminal): ... to this new function.
20984
20985 * macterm.h (struct mac_display_info): Add terminal.
20986 (mac_initialize): Delete declaration.
20987
20988 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20989
20990 * sysdep.c: Comment out text after #endif.
20991
20992 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20993 is defined. Better initialize ttys in windows. Use terminal
20994 specific mouse_position_hook.
20995
20996 * termhooks.h (union display_info): Add mac_display_info.
20997
20998 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20999 Set the default minibuffer frame, window_system and the rest of the
21000 frame parameters following what is done in X11.
21001
21002 * w32term.c (w32_initialize): Make static.
21003
21004 * xselect.c (x_handle_selection_clear): Only access
21005 terminal->kboard when MULTI_KBOARD is defined.
21006
21007 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21008 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21009
21010 2007-08-29 Jason Rumney <jasonr@gnu.org>
21011
21012 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21013 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21014
21015 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21016 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21017
21018 * keyboard.c (restore_kboard_configuration): Only define when
21019 MULTI_KBOARD defined.
21020
21021 * makefile.w32-in: Update dependancies from Makefile.in.
21022 (OBJ1): Add terminal.$(O)
21023
21024 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21025 Don't define function body.
21026 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21027
21028 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21029
21030 * w32.c (request_sigio, unrequest_sigio): Remove.
21031
21032 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21033 (w32con_clear_frame, w32con_clear_end_of_line)
21034 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21035 (w32con_delete_glyphs, w32con_set_terminal_window)
21036 (scroll_line, w32_sys_ring_bell): Add frame arg.
21037 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21038 Add terminal arg.
21039 (PICK_FRAME): Remove.
21040 (w32con_write_glyphs): Use frame specific terminal coding.
21041 (one_and_only_w32cons): New global variable.
21042 (initialize_w32_display): Use it for storing hooks.
21043 (create_w32cons_output): New function.
21044
21045 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21046 arg a frame.
21047
21048 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21049 Set window_system.
21050 (x_set_tool_bar_lines): Don't use updating_frame.
21051 (Fx_create_frame): Set terminal and ref count.
21052 (Fx_open_connection): Remove window-system check.
21053
21054 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21055
21056 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21057 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21058 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21059 Add frame arg.
21060 (x_delete_terminal, w32_create_terminal): New functions.
21061 (w32_term_init): Create a terminal.
21062 (w32_initialize): Move terminal specific initialization to
21063 w32_create_terminal.
21064
21065 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21066 (w32_clear_rect, w32_clear_area): Use background from frame.
21067 (w32_display_info): Add terminal.
21068 (w32_sys_ring_bell, x_delete_display): Declare here.
21069
21070 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21071
21072 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21073
21074 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21075
21076 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21077 Fix get_named_tty calls for the controlling tty.
21078
21079 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21080
21081 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
21082
21083 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21084
21085 * term.c (tty_insert_glyphs): Add missing first parameter.
21086
21087 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21088
21089 * buffer.c (Fbuffer_list, Fbury_buffer):
21090 Take frame->buried_buffer_list into account.
21091
21092 * cm.c (current_tty): New variable, for cmputc().
21093 (cmputc): Use it.
21094 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21095 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21096 (cmgoto): Add tty parameter. Pass it on to calccost().
21097 Use emacs_tputs() instead of tputs().
21098
21099 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21100 tputs().
21101 (current_tty): New variable, for cmputc().
21102 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21103
21104 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21105 (internal_condition_case, internal_condition_case_1)
21106 (internal_condition_case_2): Don't abort when x_catching_errors.
21107
21108 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21109 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21110 prevent crashes caused by bogus longjmps in read_char.
21111
21112 * keymap.h (Fset_keymap_parent): Add EXFUN.
21113
21114 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21115 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21116 Remove redundant definition.
21117
21118 * macfns.c (x_set_mouse_color, x_make_gc):
21119 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21120
21121 * w32term.c (x_free_frame_resources):
21122 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21123 (w32_initialize): Use the accessor macros for terminal characteristics.
21124
21125 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21126 Use the accessor macros for terminal characteristics.
21127 * msdos.c (internal_terminal_init): Use the accessor macros for
21128 terminal characteristics.
21129 (ScreenVisualBell, internal_terminal_init):
21130 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21131
21132 * termopts.h (no_redraw_on_reenter): Declare.
21133
21134 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21135 (mark_terminals, mark_ttys): Declare.
21136 (Fgarbage_collect): Call them.
21137 (mark_object): Mark buried_buffer_list.
21138
21139 * prefix-args.c: Include stdlib.h for exit.
21140
21141 * syssignal.h: Add comment.
21142
21143 * indent.c: Include stdio.h.
21144
21145 * window.h (Vinitial_window_system): Declare.
21146 (Vwindow_system): Delete declaration.
21147
21148 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21149
21150 * image.c (lookup_image): Don't initialize `c' until the xasserts
21151 have been run.
21152
21153 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21154 FRAME_FOREGROUND_PIXEL.
21155
21156 * print.c (print_preprocess): Don't lose print_depth levels while
21157 iterating.
21158
21159 * widget.c (update_from_various_frame_slots):
21160 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21161
21162 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21163 frames.
21164 (window_internal_height): Remove bogus make_number call.
21165 (init_window_once): Call make_terminal_frame with two zero parameters.
21166
21167 * fileio.c (Fread_file_name): Update comment.
21168
21169 * callint.c (Fcall_interactively):
21170 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21171 Make sure it is correctly unwound.
21172
21173 * xsmfns.c (x_session_close): New function.
21174
21175 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21176 Delete declarations.
21177
21178 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21179 (x_output): Remove background_pixel and foreground_pixel fields.
21180 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21181 (x_delete_device, x_session_close): Declare.
21182
21183 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21184 (read_filtered_event): Call `read_char' with a local
21185 `wrong_kboard_jmpbuf'.
21186
21187 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21188 Don't call single_kboard_state. Use FRAME_RIF.
21189
21190 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21191 systems.
21192
21193 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21194 (Fframe_with_environment, Fset_input_meta_mode)
21195 (Fset_quit_char): EXFUN.
21196 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21197 (init_sys_modes, reset_sys_modes): Update prototypes.
21198 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21199
21200 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21201 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21202 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21203 Delete declarations.
21204 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21205 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21206 New declarations.
21207
21208 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21209 already does that during init_display(). Call syms_of_keymap
21210 before syms_of_keyboard. Call `syms_of_terminal'.
21211 Call set_initial_environment, not set_process_environment.
21212 (shut_down_emacs): Call reset_all_sys_modes() instead of
21213 reset_sys_modes().
21214
21215 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21216 (internal_resolve_face_name, resolve_face_name_error): New functions.
21217 (resolve_face_name): Protect against loops and errors thrown by Fget.
21218 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21219 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21220
21221 * scroll.c: Replace CURTTY() with local variables throughout the
21222 file (where applicable).
21223 (calculate_scrolling, calculate_direct_scrolling)
21224 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21225 characteristics.
21226
21227 * keymap.c (Vfunction_key_map): Remove.
21228 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21229 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21230 (Vkey_translation_map): Remove.
21231 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21232 (Fdescribe_buffer_bindings)
21233 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21234 Update for terminal-local key-translation-map.
21235
21236 * Makefile.in (callproc.o): Update dependencies.
21237 (lisp, shortlisp): Add termdev.elc.
21238 (obj): Add terminal.o.
21239 (terminal.o): Add dependencies.
21240 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21241 (data.o, fns.o): Add termhooks.h dependency.
21242 (SOME_MACHINE_LISP): Add dnd.elc.
21243 (minibuf.o): Fix typo.
21244 Update dependencies.
21245
21246 * data.c (do_symval_forwarding, store_symval_forwarding)
21247 (find_symbol_value): Use the selected frame's keyboard, not
21248 current_kboard.
21249
21250 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21251 Vwindow_system.
21252
21253 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21254 Fmenu_bar_open.
21255 (syms_of_xmenu): Update defsubr.
21256 (mouse_position_for_popup, Fx_popup_menu)
21257 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21258 (set_frame_menubar, free_frame_menubar)
21259 (create_and_show_popup_menu, xmenu_show)
21260 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21261 an X frame.
21262
21263 * xselect.c (x_own_selection): Abort if not an X frame.
21264 (some_frame_on_display): Check if it is an X frame.
21265 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21266
21267 * coding.c: Include frame.h and termhooks.h.
21268 (terminal_coding, keyboard_coding): Delete.
21269 (Fset_terminal_coding_system_internal)
21270 (Fset_keyboard_coding_system_internal)
21271 (Fkeyboard_coding_system)
21272 (Fterminal_coding_system): Add a terminal parameter.
21273 Get terminal_coding from the terminal.
21274 (init_coding_once): Don't call setup_coding_system here.
21275
21276 * dispextern.h (set_scroll_region, turn_off_insert)
21277 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21278 (tty_clear_end_of_line, tty_setup_colors)
21279 (delete_tty, updating_frame)
21280 (produce_special_glyphs, produce_glyphs, write_glyphs)
21281 (insert_glyphs): Remove.
21282 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21283 (tty_turn_off_highlight, get_tty_size): Add declaration.
21284 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21285
21286 * frame.h (enum output_method): Add output_initial.
21287 (struct x_output): Delete.
21288 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21289 Access foreground_pixel and background_pixel directly from the frame.
21290 (tty_display): Delete.
21291 (struct frame): Add buried_buffer_list, foreground_pixel,
21292 background_pixel and terminal. Delete kboard.
21293 (union output_data): Add tty.
21294 (FRAME_KBOARD): Get the kboard from the terminal.
21295 (FRAME_INITIAL_P): New macro.
21296 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21297 (Qterm_environment_variable, Qdisplay_environment_variable)
21298 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21299 New declarations.
21300
21301 * termchar.h (tty_output, tty_display_info): New structures.
21302 (tty_list): Declare.
21303 (FRAME_TTY, CURTTY): New macros.
21304 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21305 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21306 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21307 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21308
21309 * callproc.c: Include frame.h and termhooks.h, for terminal
21310 parameters.
21311 (add_env): New function.
21312 (child_setup): Use it.
21313 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21314 (getenv_internal): Fix get_terminal_param call.
21315 (Fgetenv_internal, egetenv): Update doc.
21316 (syms_of_callproc): Initialize Vprocess_environment to nil.
21317 Register and initialize them. Remove obsolete defvars. Update doc
21318 strings.
21319 (child_setup): Handle Vlocal_environment_variables.
21320 (getenv_internal): Add terminal parameter.
21321 Handle Vlocal_environment_variables.
21322 (Fgetenv_internal): Add terminal parameter.
21323 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21324 environment in a frame (not terminal) parameter. Update doc strings.
21325 (set_initial_environment): Rename from set_global_environment.
21326 Store Emacs environment in initial frame parameter.
21327
21328 * xdisp.c (redisplay_internal): Update references to
21329 `previous_terminal_frame'.
21330 (display_mode_line, Fformat_mode_line): Replace calls to
21331 `push_frame_kboard' with `push_kboard'.
21332 (get_glyph_string_clip_rects): Add extra parentheses and
21333 braces to prevent compiler warnings.
21334 (calc_pixel_width_or_height): Add xassert to check that the
21335 frame is alive. Don't call `lookup_image' on a termcap frame.
21336 (message2_nolog, message3_nolog, redisplay_internal)
21337 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21338 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21339 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21340 (Fx_display_pixel_width, Fx_display_pixel_height)
21341 (Fx_display_planes, Fx_display_color_cells)
21342 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21343 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21344 (Fx_display_backing_store, Fx_display_visual_class)
21345 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21346 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21347
21348 * xfns.c (x_set_foreground_color x_set_background_color)
21349 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21350 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21351 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21352 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21353 terminal that is being deleted.
21354 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21355 frame parameter, and make sure it overrides any user-supplied setting.
21356 (Fx_close_connection, Fx_synchronize): Unify argument names with
21357 the rest of the DEFUNs.
21358
21359 * dispnew.c (Fsend_string_to_terminal): Update call to
21360 `get_tty_terminal'.
21361 (Fredraw_frame, Fsend_string_to_terminal)
21362 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21363 FRAME_TERMCAP_P and FRAME_TTY.
21364 (window_change_signal): Don't believe width/height values that are
21365 impossibly small.
21366 (Vinitial_window_system): Rename from Vwindow_system.
21367 (termscript, Wcm, rif): Delete.
21368
21369 * termhooks.h (struct terminal): New struct containing the
21370 previously global text display hooks and new members NAME,
21371 DELETED and PARAM_ALIST.
21372 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21373 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21374 (FRAME_RIF): New macros.
21375 (get_terminal_param, get_device): New declarations.
21376 (termscript): Delete declaration.
21377
21378 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21379 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21380 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21381 FRAME_FOREGROUND_PIXEL.
21382 (x_fully_uncatch_errors): Disable definition.
21383 (x_scroll_bar_expose): Fix reference to foreground pixel.
21384 (XTread_socket): Disable loop on all X displays.
21385 (x_delete_terminal): Don't set terminal->deleted and let
21386 delete_terminal delete the frames on the terminal.
21387 (x_delete_display): Doc update to reflect changes in
21388 delete_terminal.
21389 (x_display_info) <terminal>: Move member earlier in the struct.
21390 (deleting_tty): Remove old variable.
21391 (Fsuspend_tty): Call clear_tty_hooks.
21392 (Fresume_tty, init_tty): Call set_tty_hooks.
21393 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21394 errors on X frames.
21395 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21396 (handle_one_xevent): Initialize `f' to NULL.
21397 (x_delete_terminal, x_create_terminal): New functions.
21398 (XTset_terminal_modes, XTreset_terminal_modes)
21399 (XTread_socket, x_connection_closed, x_term_init)
21400 (x_term_init, x_delete_display): Add terminal parameter.
21401 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21402 X connections.
21403
21404 * frame.c: Include termchar.h.
21405 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21406 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21407 (Qdisplay_environment_variable): New vars.
21408 (Fframep): Deal with output_initial.
21409 (Fframe-live-p): Doc fix.
21410 (Fwindow-system): New function.
21411 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21412 (make_terminal_frame): Don't create frames on a terminal that is
21413 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21414 (store_frame_param): Check for found_for_frame before calling XFRAME.
21415 (Fmake_terminal_frame): Handle NULL tty names correctly.
21416 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21417 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21418 frames to refer to a deleted frame in their 'environment parameter.
21419 (Fframe_with_environment): New function.
21420 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21421 (get_future_frame_param): New function.
21422 (Fmake_terminal_frame): Use it.
21423 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21424
21425 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21426 * sysdep.c (reset_sys_modes): Update for renames.
21427
21428 * keyboard.c (tty_read_avail_input): New function.
21429 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21430 (syms_of_keyboard): Defsubr them.
21431 (Fset_input_meta_mode, Fset_quit_char): New functions.
21432 (Fset_input_mode): Split to above functions.
21433 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21434 parameter. Use it in call to `read_char'.
21435 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21436 Set wrong_kboard_jmpbuf correctly in recursive calls.
21437 Use current_kboard to access Vkeyboard_translate_table.
21438 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21439 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21440 Update longjmp invocations. Remember the original current_kboard,
21441 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21442 changes it. Comment out unnecessary calls to
21443 `record_single_kboard_state' and `any_kboard_state'.
21444 Update recursive calls.
21445 (wrong_kboard_jmpbuf): Remove global variable.
21446 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21447 Handle deleted interrupted_kboards correctly; that is a legal
21448 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21449 and read_char calls. Abort if interrupted_kboard died in read_char.
21450 (any_kboard_state, single_kboard_state)
21451 (push_frame_kboard): Remove function.
21452 (pop_kboard): Switch out of single_kboard mode if the kboard has
21453 been deleted. Remove unused variable. Help debugging by not
21454 changing current_kboard unnecessarily. Set current_kboard to the
21455 kboard of the selected frame when the stored kboard object has
21456 been deleted before pop_kboard.
21457 (temporarily_switch_to_single_kboard): Change first parameter to a
21458 frame pointer. Throw an error when caller wants to change kboards
21459 while in single_kboard mode. Don't push_kboard if we weren't in
21460 single kboard state. Don't pop_kboard if we popped into any
21461 kboard state.
21462 (restore_kboard_configuration): Abort if pop_kboard changed the
21463 kboard in single_kboard mode. Call pop_kboard only after setting
21464 up single_kboard mode.
21465 (Frecursive_edit): Switch to single_kboard mode only in nested
21466 command loops.
21467 (cmd_error, command_loop, command_loop_1, timer_check):
21468 Comment out unnecessary call to `any_kboard_state' and
21469 `record_single_kboard_state'.
21470 (delete_kboard): Exit single_kboard mode if we have just deleted
21471 that kboard. Use FRAME_KBOARD.
21472 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21473 `fatal_error_signal'.
21474 (record_single_kboard_state): Don't push_kboard if we weren't in
21475 single kboard state. Don't pop_kboard if we popped into any
21476 kboard state.
21477 (push_frame_kboard): Rename to push_kboard.
21478 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21479 (read_avail_input): Read input from all terminals.
21480 (mark_kboards): Also mark Vkeyboard_translate_table.
21481 (kbd_buffer_store_event_hold): Simplify condition.
21482 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21483 (Vkeyboard_translate_table): Move to struct kboard.
21484 (init_kboard): Initialize Vkeyboard_translate_table.
21485 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21486 Vkeyboard_translate_table. Update doc strings. Update docs of
21487 local-function-key-map and function-key-map.
21488
21489 * terminal.c: New file.
21490
21491 * term.c: Include errno.h.
21492 (Vring_bell_function, device_list, initial_device)
21493 (next_device_id, ring_bell, update_begin, update_end)
21494 (set_terminal_window, cursor_to, raw_cursor_to)
21495 (clear_to_end, clear_frame, clear_end_of_line)
21496 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21497 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21498 (syms_of_term): Move their initialization to terminal.c.
21499 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21500 (Ftty_display_color_cells)
21501 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21502 (clear_tty_hooks, set_tty_hooks)
21503 (init_tty, maybe_fatal): New functions.
21504 (Ftty_type): Return nil if terminal is not on a tty instead of
21505 throwing an error. Doc update.
21506 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21507 Doc update. Initialize new subrs and variables.
21508 (delete_tty): Use terminal->deleted.
21509 (tty_set_terminal_modes): Rename from set_terminal_modes.
21510 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21511 (set_scroll_region): Rename to `tty_set_scroll_region'.
21512 (turn_on_insert): Rename to `tty_turn_on_insert'.
21513 (turn_off_insert): Rename to `tty_turn_off_insert'.
21514 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21515 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21516 (toggle_highligh): Rename to `tty_toggle_highlight'.
21517 (background_highlight): Rename to `tty_background_highlight'.
21518 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21519 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21520 (tty_set_scroll_region, tty_background_highlight)
21521 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21522 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21523 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21524 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21525 Add static modifier.
21526 (tty_reset_terminal_modes, tty_set_terminal_window)
21527 (tty_set_scroll_region, tty_background_highlight)
21528 (tty_highlight_if_desired, tty_cursor_to)
21529 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21530 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21531 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21532 renames.
21533
21534 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21535
21536 * keyboard.c: Qrtl is new.
21537 (parse_tool_bar_item): Handle :rtl keyword.
21538 (syms_of_keyboard): Intern :rtl keyword.
21539
21540 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21541
21542 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21543 so no Lisp code is executed.
21544 (file_for_image, find_rtl_image): New functions.
21545 (xg_get_image_for_pixmap): Use file_for_image.
21546 (update_frame_tool_bar): If direction is RTL, use RTL image if
21547 defined. Use Gtk stock images if defined.
21548
21549 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21550
21551 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21552 for nonexistent or zero-width glyph in composition glyph.
21553
21554 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21555
21556 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21557
21558 * xdisp.c (Finvisible_p): New function.
21559 (syms_of_xdisp): defsubr it.
21560
21561 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21562
21563 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21564 Doc fixes.
21565
21566 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21567
21568 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21569
21570 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21571
21572 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21573 whether decoding has modified buffer contents.
21574
21575 2007-08-24 Jason Rumney <jasonr@gnu.org>
21576
21577 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21578 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21579 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21580 (init_svg_functions) [HAVE_NTGUI]: New function.
21581 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21582 (svg_load_image): Use them.
21583 (svg_load_image) [HAVE_NTGUI]: Implement background.
21584
21585 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21586
21587 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21588 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21589 (LIBX): Remove @RSVG_LIBS@.
21590 (LIBES): Add $(RSVG_LIBS).
21591
21592 * image.c (svg_load_image): Blend with specified background if exists.
21593 Use IMAGE_BACKGROUND. Add Mac OS Support.
21594
21595 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21596 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21597 Remove macros.
21598 [MAC_OSX] (socket_callback): Do nothing.
21599 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21600 ReceiveNextEvent.
21601 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21602 socket_callback.
21603 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21604
21605 2007-08-22 Glenn Morris <rgm@gnu.org>
21606
21607 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21608
21609 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21610
21611 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21612
21613 * image.c: Add support for SVG images. Some additional comments
21614 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21615 (svg_image_p): New function to test for SVG image.
21616 (svg_load): New function to load SVG image.
21617 (svg_load_image): New function, helper for svg_load.
21618 (Qsvg): New Lisp_object.
21619 (svg_keyword_index): New enum.
21620 (svg_format): New static `image_keyword' struct.
21621 (svg_type): New static `image_type' struct.
21622 (librsvg/rsvg.h): Include it.
21623
21624 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21625
21626 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21627
21628 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21629
21630 * lread.c (Qold_style_backquotes): New var.
21631 (syms_of_lread): Init and staticpro it.
21632 (load_warn_old_style_backquotes): New fun.
21633 (Fload): Use them to warn about old style backquotes.
21634 (end_of_file_error, Fload): Remove unused vars.
21635
21636 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21637
21638 * lread.c (Vold_style_backquotes): New var.
21639 (syms_of_lread): Init and export it to Elisp.
21640 (read1): Set it when we find an old-style (back)quote.
21641
21642 2007-08-22 Jason Rumney <jasonr@gnu.org>
21643
21644 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21645
21646 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21647
21648 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21649
21650 2007-08-19 Richard Stallman <rms@gnu.org>
21651
21652 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21653
21654 2007-08-19 Andreas Schwab <schwab@suse.de>
21655
21656 * alloc.c (pure): Round PURESIZE up.
21657
21658 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21659
21660 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21661 active frame.
21662
21663 2007-08-16 Richard Stallman <rms@gnu.org>
21664
21665 * eval.c (Fcommandp): Add parens to clarify.
21666
21667 * minibuf.c (Fall_completions): Use enum for type of table.
21668
21669 * emacs.c (USAGE2): Improve text.
21670
21671 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21672
21673 * term.c (tty_default_color_capabilities): Declare static
21674 variables in file scope, to avoid HPUX compiler problem.
21675
21676 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21677
21678 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21679 to gtk_toolbar_insert.
21680
21681 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21682
21683 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21684
21685 * insdel.c (reset_var_on_error): New fun.
21686 (signal_before_change, signal_after_change):
21687 Use it to reset (after|before)-change-functions to nil in case of error.
21688 Bind inhibit-modification-hooks to t.
21689 Don't bind (after|before)-change-functions to nil while they run.
21690
21691 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21692
21693 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21694 filling pixmap with stippled background.
21695
21696 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21697
21698 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21699 Don't use invisible frame as parent window for repositioning.
21700
21701 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21702
21703 * print.c (new_backquote_output): Rename from old_backquote_output.
21704 (print): Inverse its logic (according to its name) so as to match the
21705 behavior of new_backquote_flag in lread.c.
21706
21707 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21708
21709 * gmalloc.c (posix_memalign): New function.
21710
21711 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21712 ActivateControl/DeactivateControl here.
21713 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21714 frame-notice-user-settings is non-nil.
21715 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21716 for kEventParamFMFontStyle.
21717 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21718 mac_pass_command_to_system and mac_pass_control_to_system here.
21719 (XTread_socket): Call ActivateControl/DeactivateControl here.
21720 (XTread_socket) [TARGET_API_MAC_CARBON]:
21721 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21722 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21723 for window repositioning.
21724
21725 2007-08-08 Glenn Morris <rgm@gnu.org>
21726
21727 * Replace `iff' in doc-strings and comments.
21728
21729 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21730
21731 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21732
21733 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21734
21735 * fileio.c (Finsert_file_contents): Run format-decode and
21736 after_insert_file_functions on entire buffer when REPLACE is
21737 non-nil and inhibit modification_hooks and point_motion_hooks.
21738 For consistency, run after_insert_file_functions iff something
21739 got inserted. Move signal_after_change and update_compositions
21740 after code running after_insert_file_functions. Make sure that
21741 undo_list doesn't record intermediate steps of the decoding process.
21742
21743 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21744
21745 * emacs.c (main)
21746 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21747 Call malloc_enable_thread on interactive startup.
21748
21749 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21750 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21751 [USE_PTHREAD]: Conditionalize with it.
21752 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21753 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21754 New functions.
21755
21756 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21757
21758 * xdisp.c (redisplay_window): When restoring original buffer
21759 position, make sure it is still valid.
21760
21761 * image.c (png_load): Ignore png-supplied background color.
21762
21763 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21764
21765 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21766 Use kCFAbsoluteTimeIntervalSince1970.
21767
21768 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21769 New variable.
21770 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21771 event loop should be quit.
21772 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21773 Quit dialog event loop if quit_dialog_event_loop is set.
21774
21775 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21776 (Selection): New typedef. Use instead of ScrapRef.
21777 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21778 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21779 (mac_clear_selection): Rename from clear_scrap.
21780 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21781 scrap_has_target_type. All uses changed.
21782 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21783 (mac_selection_has_target_p): New functions.
21784 (mac_put_selection_value): Rename from put_scrap_string.
21785 (mac_get_selection_value): Rename from get_scrap_string.
21786 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21787 (put_scrap_private_timestamp, scrap_has_target_type)
21788 (get_scrap_private_timestamp): Remove functions.
21789 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21790 (x_own_selection, x_get_local_selection):
21791 Use mac_valid_selection_value_p.
21792 (x_own_selection): Don't use put_scrap_private_timestamp.
21793 Record OWNERSHIP-INFO into Vselection_alist instead.
21794 (x_get_local_selection): Don't check type if request is local.
21795 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21796 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21797
21798 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21799
21800 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21801 add comment explaining why.
21802
21803 2007-08-03 Richard Stallman <rms@gnu.org>
21804
21805 * fileio.c (Fvisited_file_modtime): Use make_time.
21806
21807 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21808
21809 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21810 build.
21811
21812 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21813
21814 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21815
21816 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21817
21818 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21819
21820 2007-07-30 Richard Stallman <rms@gnu.org>
21821
21822 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21823
21824 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21825
21826 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21827
21828 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21829
21830 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21831 remote default-directory.
21832
21833 * buffer.c (mode-line-format): Update doc string.
21834
21835 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21836
21837 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21838 scroll bar gap.
21839 (x_scroll_bar_create): Set bar->fringe_extended_p.
21840 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21841 on frame edge. Check fringe background extension. Don't clear
21842 extended fringe background area.
21843
21844 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21845 (w32_fill_area): Enclose multiple statements with do ... while (0).
21846
21847 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21848 Extend fringe background to scroll bar gap.
21849 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21850 Set bar->fringe_extended_p.
21851 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21852 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21853 background extension. Don't clear extended fringe background area.
21854
21855 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21856 New member fringe_extended_p.
21857
21858 2007-07-25 Glenn Morris <rgm@gnu.org>
21859
21860 * Relicense all FSF files to GPLv3 or later.
21861
21862 * COPYING: Switch to GPLv3.
21863
21864 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21865
21866 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21867
21868 * data.c (Finteractive_form): Check for the presence of an
21869 `interactive-form' symbol property more thoroughly.
21870
21871 * data.c (Finteractive_form): Use an `interactive-form' property if
21872 present, analogous to the function-documentation property.
21873
21874 2007-07-24 Jason Rumney <jasonr@gnu.org>
21875
21876 * w32fns.c (x_real_positions): Get real position from OS instead of
21877 calculating it.
21878
21879 2007-07-23 Jason Rumney <jasonr@gnu.org>
21880
21881 * filelock.c (current_lock_owner): Allow for @ sign in username.
21882
21883 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21884
21885 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21886 remote default-directory.
21887
21888 * buffer.c (mode-line-format): Describe above case in doc string.
21889
21890 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21891
21892 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21893 Define if not defined.
21894
21895 2007-07-18 Jason Rumney <jasonr@gnu.org>
21896
21897 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21898
21899 2007-07-18 Richard Stallman <rms@gnu.org>
21900
21901 * data.c (Fsetq_default): Doc fix.
21902
21903 * eval.c (Fsetq): Doc fix.
21904
21905 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21906
21907 * coding.c (Ffind_operation_coding_system):
21908 * eval.c (For, Fand): Doc fixes.
21909 Reported by Johan Bockgård.
21910
21911 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21912
21913 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21914
21915 * xterm.h: Declare x_ewmh_activate_frame.
21916
21917 * xterm.c (x_ewmh_activate_frame): New function.
21918 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21919
21920 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21921
21922 * window.c (Fdisplay_buffer): If largest or LRU window is the
21923 only window, split it even if it is not eligible for splitting.
21924 This restores the original behavior broken by the 2007-07-15
21925 change.
21926
21927 2007-07-17 Glenn Morris <rgm@gnu.org>
21928
21929 * abbrev.c (abbrev_check_chars): New function.
21930 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21931 Call abbrev_check_chars to check abbrev characters are word
21932 constituents. Doc fix.
21933
21934 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21935
21936 * process.c (Fstart_process, Fmake_network_process)
21937 (read_process_output): Fix up last changes.
21938
21939 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21940
21941 * makefile.w32-in (clean): Don't delete *~.
21942
21943 2007-07-16 Andreas Schwab <schwab@suse.de>
21944
21945 * window.c (Fdisplay_buffer): Use NILP.
21946 (Fset_window_scroll_bars): Likewise.
21947
21948 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21949
21950 * window.c (window_min_size_2): New function.
21951 (window_min_size_1, size_window, Fdisplay_buffer)
21952 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21953 windows without mode- or header-lines when window-min-height is
21954 too small.
21955 (size_window): Reset nodelete_p after testing it, following an
21956 earlier note by Kim F. Storm.
21957 (display_buffer): Do not set split_height_threshold to twice the
21958 value of window_min_height to avoid changing the value of a
21959 customizable variable. Rather explicitly check whether the
21960 height of the window that shall be splitted is at least as large
21961 as split_height_threshold.
21962 (Fwindow_full_width_p): New defun.
21963 (syms_of_window): Defsubr it.
21964
21965 * window.h: Add EXFUN for Fwindow_full_width_p.
21966
21967 2007-07-14 Jason Rumney <jasonr@gnu.org>
21968
21969 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21970
21971 2007-07-14 Richard Stallman <rms@gnu.org>
21972
21973 * eval.c (maybe_call_debugger): New function.
21974 (find_handler_clause): Use maybe_call_debugger.
21975 Call it when the handler says `debug'.
21976 Eliminate DEBUGGER_VALUE_PTR.
21977 (Fsignal): Eliminate debugger_value.
21978 (Qdebug): New variable.
21979 (syms_of_eval): Initialize it.
21980
21981 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21982
21983 * eval.c (Fprogn):
21984 * keyboard.c (Ftrack_mouse):
21985 * print.c (Fwith_output_to_temp_buffer):
21986 * window.c (Fsave_window_excursion): Doc fix.
21987
21988 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21989
21990 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21991
21992 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21993
21994 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21995 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21996 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21997 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21998 Remove unused encoding_carryover.
21999 * process.c: Adjust all functions accordingly.
22000
22001 2007-07-12 Richard Stallman <rms@gnu.org>
22002
22003 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22004
22005 2007-07-11 Jason Rumney <jasonr@gnu.org>
22006
22007 * makefile.w32-in (LIBS): Include OLE32.
22008
22009 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22010 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22011
22012 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22013
22014 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22015 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22016 from a Lisp_Object into a bare pointer.
22017 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22018 Adjust the code correspondingly.
22019
22020 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22021
22022 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22023 (term_show_mouse_face): Remove unused var `j'.
22024 (handle_one_term_event): Remove unused vars `i' and `j'.
22025 Don't cast return value of ttyname since it's not necessary.
22026
22027 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22028
22029 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22030 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22031
22032 * fns.c (map_char_table): Use an array of int for `indices' rather than
22033 an array of Lisp_Objects (which are only ever integers anyway).
22034 (Fmap_char_table): Update caller.
22035 * lisp.h: Update prototype.
22036 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22037 * fontset.c (Ffontset_info):
22038 * casetab.c (set_case_table): Update callers.
22039
22040 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22041
22042 * keymap.c (struct accessible_keymaps_data)
22043 (struct where_is_internal_data): New structures.
22044 (accessible_keymaps_1, where_is_internal_1): Use them to change
22045 interface to adhere to the one used by map_keymap.
22046 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22047 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22048
22049 * keymap.h (map_keymap_function_t): More informative prototype.
22050
22051 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22052
22053 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22054 (looking_at_1): Don't change search_regs and last_thing_searched
22055 if `inhibit-changing-match-data' is non-nil.
22056 (string_match_1, search_buffer, set_search_regs): Likewise.
22057 (syms_of_search): Add Lisp level definition for
22058 `inhibit-changing-match-data' and set it to nil.
22059 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22060 start and end of the match, instead of using values in search_regs.
22061
22062 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22063
22064 * minibuf.c (Fcompleting_read): New value `confirm-only'
22065 for `require-match'.
22066
22067 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22068
22069 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22070 part of the 2007-06-27 change to syms_of_fileio.
22071
22072 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22073
22074 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22075 Check WINDOWP before using XWINDOW. Consolidate return statements.
22076
22077 2007-06-27 Richard Stallman <rms@gnu.org>
22078
22079 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22080
22081 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
22082
22083 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22084
22085 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22086
22087 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22088 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22089 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22090 (_free_internal, memalign): Use them.
22091 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22092 Initialize to PTHREAD_MUTEX_INITIALIZER.
22093 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22094 (morecore_nolock): Rename from morecore. All uses changed.
22095 Use only nolock versions of internal allocation functions.
22096 (_malloc_internal_nolock, _realloc_internal_nolock)
22097 (_free_internal_nolock): New functions created from
22098 _malloc_internal, _realloc_internal, and _free_internal.
22099 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22100 Copy hook value to automatic variable before its use.
22101 (memalign): Copy hook value to automatic variable before its use.
22102
22103 2007-06-26 Kenichi Handa <handa@m17n.org>
22104
22105 * coding.c (Ffind_operation_coding_system): Docstring improved.
22106 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22107
22108 2007-06-25 David Kastrup <dak@gnu.org>
22109
22110 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22111 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22112 cater for additional parameter.
22113
22114 * keymap.h: Adjust number of parameters to `current-active-maps'.
22115
22116 * doc.c (Fsubstitute_command_keys): Adjust call of
22117 `current-active-maps'.
22118
22119 2007-06-25 David Kastrup <dak@gnu.org>
22120
22121 * callint.c (Fcall_interactively): Make the parsing of interactive
22122 specs somewhat more readable.
22123
22124 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22125
22126 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22127 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22128 if extended background has already been filled.
22129
22130 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22131
22132 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22133 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22134
22135 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22136 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22137 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22138 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22139 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22140 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22141 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22142 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22143 Run timers during dialog popup.
22144 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22145
22146 2007-06-21 Jason Rumney <jasonr@gnu.org>
22147
22148 * image.c (convert_mono_to_color_image): Swap fore and background.
22149
22150 2007-06-20 Jason Rumney <jasonr@gnu.org>
22151
22152 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22153 (w32_free_bdf_font): Unmap memory not handle.
22154
22155 2007-06-20 Sam Steingold <sds@gnu.org>
22156
22157 * gmalloc.c (__morecore): Fix the declaration to comply with the
22158 definition.
22159
22160 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
22161
22162 * w32term.c (w32_delete_display): Remove leftover declaration.
22163 (w32_define_cursor, w32_initialize): Make static.
22164
22165 * w32.c (_wsa_errlist): Fix typo in error message.
22166 (init_environment): Ignore any environment variable from the
22167 registry having a null value.
22168
22169 2007-06-20 Glenn Morris <rgm@gnu.org>
22170
22171 * Makefile.in (LIBGIF): Default to -lgif.
22172
22173 2007-06-17 Jason Rumney <jasonr@gnu.org>
22174
22175 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22176 unicode strings.
22177
22178 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
22179
22180 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22181 Fix typo in docstring.
22182
22183 2007-06-16 Eli Zaretskii <eliz@gnu.org>
22184
22185 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22186 and their keybindings.
22187
22188 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
22189
22190 * composite.c (update_compositions): Fix last fix.
22191
22192 2007-06-14 Jason Rumney <jasonr@gnu.org>
22193
22194 * w32.c (get_process_times_fn): New function pointer.
22195 (globals_of_w32): Intialize it if present in kernel32.dll.
22196 (w32_get_internal_run_time): New function.
22197
22198 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22199
22200 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22201
22202 * composite.c (update_compositions): Check the validness of
22203 compositions.
22204
22205 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22206
22207 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22208 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22209
22210 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22211 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22212
22213 * macgui.h (USE_MAC_TOOLBAR): New define.
22214
22215 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22216 Return immediately unless popup is activated.
22217
22218 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22219 background to scroll bar gap.
22220 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22221 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22222 scroll bars on frame edge. Check fringe background extension.
22223 Don't clear extended fringe background area.
22224 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22225 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22226 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22227 [USE_MAC_TOOLBAR]: New macros.
22228 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22229 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22230 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22231 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22232 [USE_MAC_TOOLBAR]: New functions.
22233 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22234 manually if previous repositioning has failed.
22235 (mac_handle_keyboard_event): Use precomputed event kind.
22236 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22237 as tool bar item click. Handle mouse movement over tool bar items.
22238
22239 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22240 toolbar_win_gravity.
22241 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22242 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22243 Add externs.
22244
22245 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22246 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22247
22248 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
22249
22250 * image.c (search_image_cache): Remove unused variable.
22251
22252 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
22253
22254 * xfns.c, xmenu.c: Link to xaw3d if available.
22255
22256 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22257
22258 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22259 frame_foreground and frame_background.
22260
22261 * image.c (lookup_image): Save frame foreground and background colors.
22262 (search_image_cache): Check if saved and current frame colors match.
22263
22264 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22265
22266 * regex.c (regex_compile): Remove the `regnum' counter.
22267 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22268
22269 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22270
22271 * term.c: Include intervals.h to declare Fget_text_property.
22272
22273 2007-06-10 Jason Rumney <jasonr@gnu.org>
22274
22275 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22276
22277 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
22278
22279 * callint.c (Fcall_interactively):
22280 * editfns.c (Fdelete_and_extract_region):
22281 * fileio.c (Fread_file_name):
22282 * fns.c (Fmapconcat):
22283 * keyboard.c (cmd_error_internal):
22284 * keymap.c (Fkey_description):
22285 * lread.c (openp):
22286 * minibuf.c (read_minibuf):
22287 * search.c (wordify):
22288 * sunfns.c (sel_read):
22289 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22290 * xfns.c (x_default_scroll_bar_color_parameter):
22291 * xmenu.c (menu_help_callback):
22292 * xselect.c (Fx_get_atom_name):
22293 * xterm.c (x_term_init): Use empty_unibyte_string.
22294
22295 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22296
22297 * alloc.c (init_strings): Initialize canonical empty strings.
22298 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22299 canonical empty string when the requested size is 0.
22300
22301 * emacs.c (empty_unibyte_string): Rename from empty_string.
22302 (empty_multibyte_string): New canonical empty string.
22303 (syms_of_emacs): Don't initialize empty_string.
22304
22305 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22306 string, if appropriate.
22307 (empty_unibyte_string, empty_multibyte_string): New externs.
22308 (empty_string): Remove extern.
22309
22310 * lread.c (syms_of_lread): Use empty_unibyte_string.
22311
22312 2007-06-07 Jason Rumney <jasonr@gnu.org>
22313
22314 * s/ms-w32.h: Don't define HAVE_TZNAME.
22315
22316 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22317
22318 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22319
22320 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22321
22322 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22323 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22324
22325 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22326 Don't call next handler.
22327 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22328 Remove argument. Install handler to application.
22329 (set_frame_menubar): Don't change deep_p.
22330 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22331 FRAME_OUTER_TO_INNER_DIFF_Y.
22332 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22333 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22334 [HAVE_DIALOGS]: New macros.
22335 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22336 Use them.
22337 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22338
22339 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22340 init_service_handler. All callers changed. Return OSStatus value.
22341
22342 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22343 All callers changed so as not to call SetPortWindowPort.
22344 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22345 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22346 mac_draw_string_common.
22347 (mac_draw_image_string_qd): Likewise.
22348 (mac_draw_string_common): Use them. Add INLINE.
22349 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22350 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22351 GetGlobalMouse.
22352 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22353 and FRAME_OUTER_TO_INNER_DIFF_Y.
22354 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22355 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22356 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22357 repositioning window to mac_handle_window_event.
22358 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22359 saving window location to mac_handle_window_event
22360 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22361 (install_menu_target_item_handler): Remove argument in extern.
22362 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22363 Also accept command events.
22364 (do_keystroke): New function created from XTread_socket.
22365 (init_command_handler): Remove functions.
22366 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22367 and save window location by kEventWindowShowing and kEventWindowHiding
22368 handlers here. Don't call next handler for window state change and
22369 focus events.
22370 (mac_handle_application_event, mac_handle_keyboard_event)
22371 [TARGET_API_MAC_CARBON]: New functions.
22372 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22373 kEventWindowShowing and kEventWindowHiding events. Move installation
22374 of mouse, font, text input and menu target item handlers to
22375 install_application_handler.
22376 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22377 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22378 New function.
22379 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22380 Register it.
22381 (XTread_socket) [TARGET_API_MAC_CARBON]:
22382 Consolidate SendEventToEventTarget calls.
22383 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22384 Move application activation handler to mac_handle_application_event.
22385 Move keyboard handler to mac_handle_keyboard_event.
22386 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22387 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22388 init_command_handler. Call install_application_handler.
22389
22390 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22391 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22392
22393 2007-06-07 Glenn Morris <rgm@gnu.org>
22394
22395 * emacs.c (main): Use `emacs-copyright' in --version output.
22396
22397 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
22398
22399 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22400
22401 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22402
22403 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22404
22405 * macgui.h: Replace WindowPtr with WindowRef.
22406
22407 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22408 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22409 Replace ControlHandle with ControlRef.
22410 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22411
22412 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22413 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22414 Replace ControlHandle with ControlRef.
22415 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22416 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22417
22418 * macterm.h (struct scroll_bar): Rename member control_handle_low
22419 and control_handle_high to control_ref_low and control_ref_high.
22420 All uses changed.
22421 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22422 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22423 respectively. All uses changed.
22424 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22425 (install_window_handler, remove_window_handler): Replace WindowPtr
22426 with WindowRef in externs.
22427
22428 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
22429
22430 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22431
22432 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
22433
22434 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22435
22436 * frame.c (Fmouse_position, Fmouse_pixel_position):
22437 Condition on HAVE_GPM too.
22438
22439 * term.c (term_mouse_highlight): Remove unused variables.
22440 (Fterm_open_connection): Set gpm_zerobased to 1.
22441 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22442 Use zero based co-ordinates.
22443 (handle_one_term_event): Report a drag as mouse movement too.
22444
22445 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22446
22447 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22448
22449 * image.c (search_image_cache): New function. Require background
22450 color match if background color is unspecified in the image spec.
22451 (uncache_image, lookup_image): Use it.
22452
22453 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22454
22455 * window.c (Fshrink_window): Reflow docstring.
22456
22457 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22458
22459 * Version 22.1 released.
22460
22461 2007-06-01 Richard Stallman <rms@gnu.org>
22462
22463 * xfns.c (x_encode_text): Add GCPRO.
22464
22465 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22466
22467 * xfns.c (x_set_name_internal): Save encoded name before
22468 x_encode_text in case string data is relocated.
22469
22470 2007-05-31 Richard Stallman <rms@gnu.org>
22471
22472 * buffer.c (syms_of_buffer): Doc fix.
22473
22474 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22475
22476 * sysdep.c (init_sys_modes): Add rather than replace with
22477 O_NONBLOCK.
22478
22479 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22480 term_mouse_moveto.
22481
22482 * termhooks.h (term_mouse_moveto): New extern.
22483
22484 * term.c (mouse_face_window): Rename...
22485 (Qmouse_face_window): ...to this.
22486 (term_show_mouse_face, term_clear_mouse_face)
22487 (term_mouse_highlight): Use Qmouse_face_window.
22488 (term_mouse_moveto): New function.
22489 (term_mouse_position): Make it work.
22490 (syms_of_term): Uncomment assignment to mouse_position_hook.
22491 Staticpro Qmouse_face_window.
22492
22493 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22494
22495 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22496 around current_column call.
22497
22498 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22499
22500 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22501 * xdisp.c (next_element_from_buffer):
22502 * window.c (delete_window):
22503 * term.c (term_mouse_highlight):
22504 * msdos.c (getdefdir):
22505 * macterm.c (mac_create_bitmap_from_bitmap_data)
22506 (init_font_name_table):
22507 * fns.c (Fsxhash):
22508 * data.c (Fmake_local_variable):
22509 * ccl.c (ccl_driver): Likewise.
22510
22511 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22512
22513 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22514 Call mac_wakeup_from_rne on window size change.
22515
22516 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22517
22518 * image.c (uncache_image): Fix typo.
22519
22520 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22521
22522 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22523
22524 2007-05-22 Richard Stallman <rms@gnu.org>
22525
22526 * xterm.c (x_connection_closed): Remove NO_RETURN.
22527
22528 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22529
22530 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22531
22532 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22533
22534 * image.c (uncache_image): New function.
22535 (Fimage_refresh): New function.
22536
22537 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22538
22539 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22540
22541 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22542
22543 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22544 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22545
22546 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22547
22548 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22549 conditional on [HAVE_GPM_H].
22550
22551 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22552
22553 * syntax.c (skip_chars): Update syntax-table only after we checked that
22554 the new location is valid.
22555
22556 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22557
22558 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22559 mac_get_window_bounds.
22560
22561 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22562
22563 * Makefile.in (LIBGPM): Allow it to be set from configure.
22564 If set then link Emacs with it.
22565
22566 * config.in: Regenerate.
22567
22568 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22569 New externs.
22570
22571 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22572 Include gpm.h.
22573 (handle_one_term_event, term_gpm): New externs.
22574
22575 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22576 and allow it to be interrupted by SIGIO.
22577
22578 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22579 (wait_reading_process_output): Wait on gpm_fd too.
22580 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22581 (add_gpm_wait_descriptor_called_flag): New variable.
22582 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22583
22584 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22585 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22586 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22587 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22588 (make_lispy_event): Add case GPM_CLICK_EVENT.
22589 (read_avail_input): Handle mouse input.
22590
22591 * term.c (write_glyphs_with_face): New function.
22592 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22593 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22594 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22595 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22596 (last_mouse_x, last_mouse_y): New variables.
22597 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22598 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22599 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22600 (Fterm_close_connection): New functions.
22601 (term_init): Initialise mouse_face_window.
22602
22603 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22604
22605 * xdisp.c (redisplay_window): If first window line is a
22606 continuation line, recompute the new window start instead of
22607 recentering.
22608
22609 2007-05-18 Glenn Morris <rgm@gnu.org>
22610
22611 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22612 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22613
22614 2007-05-17 Glenn Morris <rgm@gnu.org>
22615
22616 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22617
22618 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22619
22620 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22621 dead key repeat and up events.
22622
22623 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22624
22625 * image.c (pbm_load): Check image size for monochrome pbm.
22626
22627 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22628
22629 * xterm.c (XTread_socket): Revert last change.
22630
22631 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22632
22633 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22634
22635 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22636
22637 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22638
22639 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22640 mixup (YAILOM).
22641
22642 2007-05-07 Andreas Schwab <schwab@suse.de>
22643
22644 * keymap.c (Flookup_key): Fix typo in last change.
22645
22646 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22647
22648 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22649 mapping for unibyte strings.
22650
22651 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22652
22653 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22654 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22655
22656 2007-04-29 Richard Stallman <rms@gnu.org>
22657
22658 * insdel.c (replace_range): For undo, record insertion first.
22659
22660 2007-04-29 Andreas Schwab <schwab@suse.de>
22661
22662 * lisp.h (VECSIZE): Use OFFSETOF.
22663
22664 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22665
22666 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22667 disabled lines.
22668
22669 2007-04-28 Richard Stallman <rms@gnu.org>
22670
22671 * lread.c (read_escape): In a string, \s is always space.
22672
22673 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22674
22675 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22676
22677 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22678 submenu for menu bar items.
22679
22680 See ChangeLog.10 for earlier changes.
22681
22682 ;; Local Variables:
22683 ;; coding: utf-8
22684 ;; add-log-time-zone-rule: t
22685 ;; End:
22686
22687 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
22688
22689 This file is part of GNU Emacs.
22690
22691 GNU Emacs is free software: you can redistribute it and/or modify
22692 it under the terms of the GNU General Public License as published by
22693 the Free Software Foundation, either version 3 of the License, or
22694 (at your option) any later version.
22695
22696 GNU Emacs is distributed in the hope that it will be useful,
22697 but WITHOUT ANY WARRANTY; without even the implied warranty of
22698 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22699 GNU General Public License for more details.
22700
22701 You should have received a copy of the GNU General Public License
22702 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22703
22704 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40