]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Merge latest fix to xg_event_is_for_menubar.
[gnu-emacs] / src / ChangeLog
1 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4 is related to the menu bar (Bug#6499).
5
6 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7
8 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
9
10 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
11
12 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
13 i.e. don't put back ButtonRelease (Bug#6608).
14
15 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
16 instead of Window. Call xg_event_is_for_menubar when
17 USE_GTK (Bug#6499).
18
19 * gtkutil.h (xg_event_is_for_menubar): Declare.
20
21 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
22
23 2010-07-16 Eli Zaretskii <eliz@gnu.org>
24
25 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
26 when it's the same as the old foreground. (Bug#6609)
27
28 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
29
30 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
31 widget is non-null (Bug#6645).
32
33 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
34
35 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
36 Convert old-style definition.
37
38 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
39 timestamp argument.
40
41 2010-07-15 Eli Zaretskii <eliz@gnu.org>
42
43 * fringe.c (update_window_fringes): Restore mistakenly reverted
44 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
45
46 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
47
48 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
49 (SET_SAVED_KEY_EVENT): Remove (not used).
50 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
51 remove size parameter.
52 (handle_one_xevent): Check popup_activated () for menu for Xt also.
53 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
54 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
55 ButtonRelease.
56 (x_set_window_size_1): scroll_bar_actual_width is always
57 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
58
59 * xdisp.c (pending_menu_activation): Remove extern declaration.
60 (prepare_menu_bars): Remove setting of pending_menu_activation.
61
62 * xmenu.c (pending_menu_activation): Remove.
63 (x_activate_menubar): Set popup_activated_flag for Xt also.
64 Remove setting of pending_menu_activation.
65 (set_frame_menubar): Remove check of pending_menu_activation.
66 Declare menubar_size before code. Correct spelling in comment.
67
68 2010-07-14 Kenichi Handa <handa@m17n.org>
69
70 * font.c (font_open_entity): Cancel previous change.
71 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
72
73 2010-07-13 Eli Zaretskii <eliz@gnu.org>
74
75 Remove subprocesses #ifdefs.
76 * process.c <inhibit_sentinels>: Move to the common part.
77 (Fwaiting_for_user_input_p): Move to the common part; return nil
78 if async subprocesses aren't supported.
79 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
80 MS-DOS. Remove "#ifdef subprocesses".
81 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
82 (gettimeofday): Remove "#ifdef subprocesses".
83 (wait_without_blocking): Remove function.
84 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
85 Remove "#ifdef subprocesses".
86 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
87 compiled on MS-DOS.
88 * callproc.c (Fcall_process) [!MSDOS]: Don't call
89 wait_for_termination on MS-DOS.
90 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
91 initialization of inhibit_sentinels.
92 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
93 subprocesses" conditional.
94 * callproc.c (Fcall_process) [!subprocesses]: Don't call
95 wait_for_termination, since `buffer' cannot be an integer when
96 async subprocesses are not supported
97 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
98 for ifdefing away the call to Fprocess_status.
99
100 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
101 away the entire body of the function.
102
103 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
104
105 Remove subprocesses #ifdefs from term.c.
106 * process.c (add_keyboard_wait_descriptor)
107 (delete_keyboard_wait_descriptor): Move to common section, do
108 nothing when subprocesses is not defined.
109 * term.c (Fsuspend_tty, Fresume_tty, init_tty): Remove subprocesses #ifdefs.
110
111 Convert maybe_fatal to standard C.
112 * lisp.h (verror): Declare.
113 * eval.c (verror): New function containing the code from ...
114 (error): ... this. Call verror.
115 * term.c (vfatal): New function containing the code from ...
116 (fatal): ... this. Call vfatal.
117 (maybe_fatal): Convert to standard C, use variable number of
118 arguments. Declare as non-return.
119 (init_tty): Fix maybe_fatal call.
120
121 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
122
123 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
124 (_scroll_bar_note_movement): Convert definitions to standard C.
125 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
126 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
127
128 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
129
130 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
131 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
132 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
133 (xaw_jump_callback, xaw_scroll_callback)
134 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
135 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
136 definitions to standard C.
137 * xmenu.c (menubar_id_to_frame, popup_get_selection)
138 (popup_activate_callback, popup_deactivate_callback)
139 (menu_highlight_callback, menubar_selection_callback)
140 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
141 (free_frame_menubar, popup_selection_callback, as)
142 (create_and_show_popup_menu, dialog_selection_callback)
143 (create_and_show_dialog):
144 * xfns.c (hack_wm_protocols, x_window):
145 * xfaces.c (x_update_menu_appearance):
146 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
147 (char_to_pixel_size, round_size_to_char, get_wm_shell)
148 (set_frame_size, update_wm_hints, setup_frame_gcs)
149 (update_various_frame_slots, update_from_various_frame_slots)
150 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
151 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
152 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
153
154 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
155
156 * dbusbind.c (xd_initialize): Don't compare boolean with a
157 constant.
158
159 2010-07-12 Eli Zaretskii <eliz@gnu.org>
160
161 * process.c (setup_process_coding_systems): Move to the part
162 shared by non-subprocesses systems, and make its body empty when
163 subprocesses is not defined.
164 (close_process_descs): Move to the part shared by non-subprocesses
165 systems.
166 (wait_reading_process_output) [!subprocesses]: Convert arg list to
167 ANSI C.
168
169 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
170
171 * editfns.c (transpose_markers): Convert old-style definition.
172 * emacs.c (abort, shut_down_emacs, fixup_locale)
173 (synchronize_system_time_locale)
174 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
175 * floatfns.c (extract_float, matherr, init_floatfns)
176 (syms_of_floatfns): Likewise.
177 * fns.c (make_hash_table): Likewise.
178 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
179 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
180 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
181 (ftfont_variation_glyphs): Likewise.
182 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
183 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
184 * lread.c (read_filtered_event): Likewise.
185 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
186 * process.c (wait_reading_process_output): Likewise.
187 * scroll.c (do_line_insertion_deletion_costs): Likewise.
188 * search.c (search_buffer, boyer_moore): Likewise.
189 * syntax.c (scan_sexps_forward): Likewise.
190 * xdisp.c (try_scrolling): Likewise.
191 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
192 (face_at_string_position): Likewise.
193 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
194 * xselect.c (x_get_window_property, receive_incremental_selection)
195 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
196 Likewise.
197 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
198
199 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
200
201 * callproc.c (child_setup): Remove subprocesses conditional.
202 Remove code dealing with SET_EMACS_PRIORITY, unused.
203
204 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
205 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
206
207 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
208 (__do_global_dtors, __main): Use void in definition.
209 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
210 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
211 the only users from ...
212 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
213 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
214 (HAVE_VOLATILE): Remove, unused.
215
216 Convert more function definitions to standard C.
217 * xdisp.c (window_box_edges, handle_single_display_spec)
218 (display_string): Convert definition to standard C.
219 * scroll.c (do_direct_scrolling, scrolling_1):
220 * dispnew.c (allocate_matrices_for_frame_redisplay)
221 (mirrored_line_dance):
222 * coding.c (code_convert_string):
223 * charset.c (map_charset_chars):
224 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
225 (Fregister_ccl_program, Fregister_code_conversion_map):
226 * keyboard.c (kbd_buffer_nr_stored): Likewise.
227 (head_table): Make static and const.
228
229 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
230
231 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
232 (PROFILING_LDFLAGS): Set from substitution.
233 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
234 CFLAGS last.
235
236 2010-07-12 Kenichi Handa <handa@m17n.org>
237
238 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
239 (shortlisp): Likewise.
240
241 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
242
243 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
244 of FONT_ENTITY_INDEX.
245 (Ffont_get): If KEY is :otf and the font-object doesn't have the
246 property, get the property value dynamically.
247 (Ffont_put): Accept font-entity and font-object too.
248 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
249 return value changed.
250 (syms_of_font): Adjusted for the above change.
251
252 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
253
254 * blockinput.h: Remove obsolete comment.
255
256 * lisp.h: Include <stddef.h>.
257 (OFFSETOF): Don't define.
258 (VECSIZE): Use offsetof instead of OFFSETOF.
259 (PSEUDOVECSIZE): Likewise.
260 * process.c (conv_sockaddr_to_lisp): Likewise.
261 * alloc.c: Don't include <stddef.h>.
262 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
263
264 * process.c: Remove obsolete comment.
265
266 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
267
268 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
269
270 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
271
272 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
273 index, rindex.
274 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
275 * editfns.c (Fuser_full_name, Fformat): Likewise.
276 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
277 * fileio.c (Ffile_symlink_p): Likewise.
278 * filelock.c (current_lock_owner): Likewise.
279 * font.c (font_parse_name, font_parse_family_registry): Likewise.
280 * fontset.c (fontset_pattern_regexp): Likewise.
281 * lread.c (read1): Likewise.
282 * sysdep.c (init_system_name): Likewise.
283 * xfns.c (select_visual): Likewise.
284 * s/hpux10-20.h (index, rindex): Don't define.
285 * s/ms-w32.h (index): Likewise.
286 * s/usg5-4.h: Likewise.
287
288 * callproc.c (relocate_fd): Use F_DUPFD if defined.
289
290 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
291 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
292 (egetenv): Likewise.
293 * doprnt.c (doprnt): Likewise.
294 * editfns.c (set_time_zone_rule, format2): Likewise.
295 * emacs.c (decode_env_path): Likewise.
296 * eval.c (signal_error, error): Likewise.
297 * insdel.c (replace_range_2): Likewise.
298 * keyboard.c (cmd_error_internal): Likewise.
299 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
300 * print.c (write_string, write_string_1, print_error_message):
301 Likewise.
302 * vm-limit.c (warn_function, memory_warnings): Likewise.
303 * xdisp.c (message1, message1_nolog, message_with_string)
304 (vmessage, message, message_nolog): Likewise.
305 * emacs.c: Remove duplicate declaration.
306 * keyboard.h: Likewise.
307 * lisp.h: Update prototypes.
308
309 * eval.c: Fix indentation problem.
310
311 * keyboard.c: Include "process.h"
312
313 * eval.c: Remove obsolete noinline declaration.
314 * fns.c: Likewise.
315
316 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
317
318 * doprnt.c (doprnt): Take a va_list argument instead of count and
319 pointer.
320 * eval.c (error): Change to a standard-C variadic function.
321 * xdisp.c (vmessage): Renamed from message, made static, and
322 changed to take a va_list argument.
323 (message): New variadic wrapper.
324 (message_nolog): Now a variadic function, calling vmessage.
325 * lisp.h: Include stdarg.h for va_list.
326 (doprnt, error, message, message_nolog): Decls updated.
327
328 2010-07-11 Eli Zaretskii <eliz@gnu.org>
329
330 * process.c (syms_of_process) <delete-exited-processes>: Define
331 even if !subprocesses.
332 (delete_exited_processes): Ditto.
333
334 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
335 (delete_exited_processes): Don't define.
336
337 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
338
339 * frame.c (make_frame): Initialize menu_bar_lines and
340 tool_bar_lines members.
341 (make_initial_frame, make_terminal_frame): Initialize
342 menu_bar_lines using value of menu-bar-mode.
343
344 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
345
346 2010-07-10 Eli Zaretskii <eliz@gnu.org>
347
348 * process.c: Reshuffle #include's. Condition some of the global
349 and static variables on `subprocesses'.
350 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
351 Leave only one implementation.
352 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
353 (kill_buffer_processes, Flist_system_processes)
354 (Fprocess_attributes, init_process, syms_of_process): Unify the
355 implementations for with subprocesses and without them.
356
357 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
358
359 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
360 correct size for Motif.
361 (free_frame_menubar): Call x_set_window_size to update frame size.
362
363 * xfns.c (x_window): Set borderWidth to 0 for pane and
364 EmacsFrame. Frame size calculation is wrong otherwise.
365
366 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
367
368 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
369 allows to suppress errors when polling in Emacs' main loop.
370 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
371 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
372 (Fdbus_method_error_internal, Fdbus_send_signal)
373 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
374 (Fdbus_register_method): Use it. (Bug#6579)
375
376 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
377
378 * alloc.c: Convert DEFUNs to standard C.
379 * buffer.c:
380 * bytecode.c:
381 * callint.c:
382 * callproc.c:
383 * casefiddle.c:
384 * casetab.c:
385 * category.c:
386 * character.c:
387 * charset.c:
388 * chartab.c:
389 * cmds.c:
390 * coding.c:
391 * composite.c:
392 * data.c:
393 * dbusbind.c:
394 * dired.c:
395 * dispnew.c:
396 * doc.c:
397 * dosfns.c:
398 * editfns.c:
399 * emacs.c:
400 * eval.c:
401 * fileio.c:
402 * filelock.c:
403 * floatfns.c:
404 * fns.c:
405 * font.c:
406 * fontset.c:
407 * frame.c:
408 * fringe.c:
409 * image.c:
410 * indent.c:
411 * insdel.c:
412 * keyboard.c:
413 * keymap.c:
414 * lread.c:
415 * macros.c:
416 * marker.c:
417 * menu.c:
418 * minibuf.c:
419 * msdos.c:
420 * nsfns.m:
421 * nsmenu.m:
422 * nsselect.m:
423 * print.c:
424 * process.c:
425 * search.c:
426 * sound.c:
427 * syntax.c:
428 * term.c:
429 * terminal.c:
430 * textprop.c:
431 * undo.c:
432 * w16select.c:
433 * w32console.c:
434 * w32fns.c:
435 * w32font.c:
436 * w32menu.c:
437 * w32proc.c:
438 * w32select.c:
439 * window.c:
440 * xdisp.c:
441 * xfaces.c:
442 * xfns.c:
443 * xmenu.c:
444 * xselect.c:
445 * xsettings.c:
446 * xsmfns.c: Likewise.
447
448
449 2010-07-08 Eli Zaretskii <eliz@gnu.org>
450
451 * process.c (kbd_is_on_hold, hold_keyboard_input)
452 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
453
454 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
455
456 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
457 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
458 unless USE_LUCID.
459
460 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
461
462 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
463
464 Clean up include guards.
465 * tparam.c: Remove include guards for config.h, string.h and code
466 that assumes #ifndef emacs.
467 * termcap.c:
468 * unexalpha.c:
469 * sysdep.c:
470 * filemode.c:
471 * filelock.c:
472 * bidi.c: Likewise.
473
474 Remove prefix-args.c
475 * prefix-args.c: Remove file.
476 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
477 * Makefile.in (temacs${EXEEXT}): Remove references to
478 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
479 (mostlyclean): Remove reference to prefix-args.
480 (prefix-args): Remove.
481
482 Simplify cstart_of_data, start_of_code and related code.
483 * mem-limits.h: Remove !emacs and _LIBC conditional code.
484 (start_of_data): Merge into start_of_data function.
485 * sysdep.c (start_of_text): Remove. Move simplified versions of
486 it in the only users: unexaix.c and unexec.c.
487 (read_input_waiting): Remove local declaration of quit_char.
488 (start, etext): Remove declarations.
489 (start_of_data): Merge with the version in mem-limits.h and move
490 to vm-limits.c.
491 * vm-limit.c (start_of_data): Merged and simplified version of the
492 code formerly in mem-limits.h and sysdep.c.
493 * unexec.c (start): New declaration, moved from sysdep.c.
494 (start_of_text): Simplified version of the code formerly in sysdep.c.
495 * unexaix.c (start_of_text): Simplified version of the code
496 formerly in sysdep.c.
497 * m/alpha.h (HAVE_TEXT_START): Remove.
498 (TEXT_START): Move ...
499 * unexalpha.c (TEXT_START): ... here.
500 * s/hpux10-20.h (TEXT_START): Remove.
501 * s/darwin.h (TEXT_START):
502 * m/mips.h (TEXT_START):
503 * m/macppc.h (HAVE_TEXT_START):
504 * m/m68k.h (TEXT_START):
505 * m/iris4d.h (TEXT_START):
506 * m/intel386.h (TEXT_START):
507 * m/ibmrs6000.h (TEXT_START):
508 * m/ia64.h (HAVE_TEXT_START):
509 * s/msdos.h (TEXT_START): Likewise.
510
511 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
512
513 * alloc.c (overrun_check_malloc, overrun_check_realloc)
514 (overrun_check_free, xstrdup, allocate_string)
515 (allocate_string_data, compact_small_strings, Fmake_string)
516 (make_unibyte_string, make_multibyte_string)
517 (make_string_from_bytes, make_specified_string, make_float)
518 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
519 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
520 memcpy, memmove, memset, memcmp.
521 * atimer.c (start_atimer, set_alarm): Likewise.
522 * buffer.c (clone_per_buffer_values, report_overlay_modification)
523 (mmap_realloc, init_buffer_once): Likewise.
524 * callint.c (Fcall_interactively): Likewise.
525 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
526 (getenv_internal_1): Likewise.
527 * casefiddle.c (casify_object): Likewise.
528 * ccl.c (ccl_driver): Likewise.
529 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
530 * charset.c (load_charset_map_from_file)
531 (load_charset_map_from_file, load_charset_map_from_vector)
532 (Fdefine_charset_internal): Likewise.
533 * cm.c (Wcm_clear): Likewise.
534 * coding.c (decode_eol, decode_coding_object)
535 (Fset_coding_system_priority, make_subsidiaries): Likewise.
536 * data.c (Faset): Likewise.
537 * dired.c (directory_files_internal, file_name_completion_stat):
538 Likewise.
539 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
540 (clear_glyph_row, copy_row_except_pointers)
541 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
542 (save_current_matrix, restore_current_matrix)
543 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
544 (mirror_line_dance, scrolling_window): Likewise.
545 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
546 Likewise.
547 * doprnt.c (doprnt): Likewise.
548 * editfns.c (Fuser_full_name, make_buffer_string_both)
549 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
550 * emacs.c (sort_args): Likewise.
551 * eval.c (Fapply, Ffuncall): Likewise.
552 * fileio.c (Ffile_name_directory, make_temp_name)
553 (Fexpand_file_name, search_embedded_absfilename)
554 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
555 (auto_save_error): Likewise.
556 * fns.c (Fstring_equal, Fcopy_sequence, concat)
557 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
558 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
559 (Fmake_hash_table): Likewise.
560 * fringe.c (Fdefine_fringe_bitmap): Likewise.
561 * ftfont.c (ftfont_text_extents): Likewise.
562 * getloadavg.c (getloadavg): Likewise.
563 * image.c (define_image_type, make_image, make_image_cache)
564 (x_create_x_image_and_pixmap, xbm_image_p)
565 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
566 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
567 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
568 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
569 (tiff_image_p, tiff_read_from_memory, gif_image_p)
570 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
571 Likewise.
572 * indent.c (scan_for_column, compute_motion): Likewise.
573 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
574 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
575 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
576 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
577 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
578 (store_user_signal_events, menu_bar_items, tool_bar_items)
579 (process_tool_bar_item, append_tool_bar_item)
580 (read_char_minibuf_menu_prompt, read_key_sequence)
581 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
582 Likewise.
583 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
584 Likewise.
585 * lisp.h (STRING_COPYIN): Likewise.
586 * lread.c (Fload, read1, oblookup): Likewise.
587 * msdos.c (Frecent_doskeys): Likewise.
588 * nsfns.m (Fx_create_frame): Likewise.
589 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
590 Likewise.
591 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
592 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
593 Likewise.
594 * nsmenu.m (ns_update_menubar): Likewise.
595 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
596 * print.c (print_unwind, printchar, strout, print_string)
597 (print_error_message): Likewise.
598 * process.c (conv_lisp_to_sockaddr, set_socket_option)
599 (Fmake_network_process, Fnetwork_interface_list)
600 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
601 (init_process): Likewise.
602 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
603 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
604 Likewise.
605 * scroll.c (do_scrolling, do_direct_scrolling)
606 (scrolling_max_lines_saved): Likewise.
607 * search.c (search_buffer, wordify, Freplace_match): Likewise.
608 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
609 * syntax.c (skip_chars, skip_syntaxes): Likewise.
610 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
611 (emacs_set_tty): Likewise.
612 * term.c (encode_terminal_code, calculate_costs)
613 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
614 Likewise.
615 * termcap.c (tgetst1, gobble_line): Likewise.
616 * termhooks.h (EVENT_INIT): Likewise.
617 * tparam.c (tparam1): Likewise.
618 * unexalpha.c (unexec): Likewise.
619 * unexec.c (write_segment): Likewise.
620 * unexmacosx.c (unexec_write_zero): Likewise.
621 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
622 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
623 * w32font.c (w32font_list_family, w32font_text_extents)
624 (w32font_list_internal, w32font_match_internal)
625 (w32font_open_internal, compute_metrics, Fx_select_font):
626 Likewise.
627 * w32menu.c (set_frame_menubar, add_menu_item)
628 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
629 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
630 * w32uniscribe.c (uniscribe_list_family): Likewise.
631 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
632 * window.c (make_window, replace_window, set_window_buffer)
633 (Fsplit_window): Likewise.
634 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
635 (add_to_log, message3, x_consider_frame_title)
636 (append_space_for_newline, extend_face_to_end_of_line)
637 (decode_mode_spec_coding, init_glyph_string): Likewise.
638 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
639 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
640 (face_attr_equal_p, make_realized_face, make_face_cache)
641 (free_realized_faces, lookup_named_face, smaller_face)
642 (face_with_height, lookup_derived_face)
643 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
644 (Finternal_set_font_selection_order, realize_default_face)
645 (compute_char_face, face_at_buffer_position)
646 (face_for_overlay_string, face_at_string_position, merge_faces):
647 Likewise.
648 * xfns.c (xic_create_fontsetname, Fx_create_frame)
649 (Fx_window_property, x_create_tip_frame)
650 (Fx_backspace_delete_keys_p): Likewise.
651 * xfont.c (xfont_list, xfont_match, xfont_list_family)
652 (xfont_text_extents): Likewise.
653 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
654 * xrdb.c (magic_file_p, x_get_resource): Likewise.
655 * xselect.c (x_queue_event, x_get_window_property)
656 (receive_incremental_selection): Likewise.
657 * xsmfns.c (x_session_check_input): Likewise.
658 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
659 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
660 Likewise.
661 * character.h (BCOPY_SHORT): Removed.
662 * config.in: Regenerate.
663 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
664 * emacs.c (main) [PROFILING]: Don't declare
665 dump_opcode_frequencies.
666 * lisp.h (safe_bcopy): Remove declaration.
667 (memset) [!HAVE_MEMSET]: Declare.
668 (memcpy) [!HAVE_MEMCPY]: Likewise.
669 (memmove) [!HAVE_MEMMOVE]: Likewise.
670 (memcmp) [!HAVE_MEMCMP]: Likewise.
671 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
672 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
673 Don't define.
674 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
675 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
676 (BCOPY_DOWNWARD_SAFE): Don't define.
677 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
678 (memcpy) [!HAVE_MEMCPY]: Define.
679 (memmove) [!HAVE_MEMMOVE]: Define.
680 (memcmp) [!HAVE_MEMCMP]: Define.
681
682 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
683
684 * process.c (kbd_is_on_hold): New variable.
685 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
686 functions.
687 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
688 select on empty input mask.
689 (init_process): Initialize kbd_is_on_hold to 0.
690
691 * process.h (hold_keyboard_input, unhold_keyboard_input)
692 (kbd_on_hold_p): Declare.
693
694 * keyboard.c (input_available_signal): Declare.
695 (kbd_buffer_nr_stored): New function.
696 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
697 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
698 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
699 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
700 (tty_read_avail_input): If input is on hold, return.
701 Don't read more that free slots in kbd_buffer (Bug#6571).
702
703 2010-07-07 Eli Zaretskii <eliz@gnu.org>
704
705 * msdos.h:
706 * msdos.c:
707 * dosfns.c:
708 * w16select.c: Convert function definitions to ANSI C.
709
710 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
711 unused prototypes.
712
713 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
714
715 * coding.c, sysdep.c: Convert some more functions to standard C.
716
717 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
718
719 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
720 (encode_coding_object): Use SPECPDL_INDEX.
721 (syms_of_coding): Use DOS_NT.
722
723 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
724
725 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
726
727 Make the function member of Lisp_Subr use standard C prototypes.
728 * lisp.h (struct Lisp_Subr): Use a union for the function member.
729 (DECL_ALIGN): Add a cast for the function.
730 * eval.c (Feval, Ffuncall): Use the proper type for each type
731 function call.
732
733 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
734
735 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
736 fringe face id, so face-remapping-alist works (Bug#6091).
737
738 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
739
740 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
741 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
742 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
743
744 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
745
746 * xterm.c (x_get_keysym_name): Change type of parameter to int.
747 * lisp.h: Declare x_get_keysym_name.
748 * keyboard.c (modify_event_symbol): Don't declare
749 x_get_keysym_name here.
750
751 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
752
753 * ecrt0.c: Revert conversion to standard C.
754
755 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
756
757 * vm-limit.c (memory_warnings):
758 * keyboard.c (modify_event_symbol):
759 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
760 (round2, emacs_rint):
761 * process.c (send_process, old_sigpipe): Convert function
762 definitions and declarations to standard C.
763
764 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
765
766 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
767 * xdisp.c: Convert function definitions to standard C.
768
769 * cm.c (cmputc): Arg C is now int, not char.
770 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
771
772 2010-07-05 James Cloos <cloos@jhcloos.com>
773
774 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
775
776 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
777 _NET_WM_ICON_NAME atoms.
778
779 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
780 and _NET_WM_ICON_NAME properties, too, matching what is
781 done in the Gtk+ case.
782
783 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
784
785 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
786
787 * xsmfns.c (SSDATA): New macro.
788 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
789 passed to strlen/strcpy/strcat.
790 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
791 7:th arg to XChangeProperty to (unsigned char *)
792
793 * xsettings.c (something_changedCB, parse_settings)
794 (apply_xft_settings): Reformat prototype.
795 (something_changedCB, init_gconf): Remove unused variable i.
796 (read_settings): Remove unused variable long_len.
797
798 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
799 (xg_get_image_for_pixmap, create_dialog)
800 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
801 (menuitem_highlight_callback, make_menu_item)
802 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
803 (xg_create_scroll_bar, xg_update_scrollbar_pos)
804 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
805 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
806 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
807 (xg_tool_bar_item_expose_callback): Reformat prototype.
808 (xg_update_menubar): GList *group => GSList *group.
809 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
810 before use.
811 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
812 to GTK_IMAGE (wimage).
813
814 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
815
816 * atimer.c: Use "" instead of <> for local includes for
817 consistency with the rest of the code.
818
819 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
820 * xrdb.c (get_system_name):
821 * window.c (shrink_windows):
822 * syntax.c (forw_comment):
823 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
824 (ins_del_costs):
825 * mem-limits.h (start_of_data):
826 * lread.c (readevalloop):
827 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
828 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
829 * frame.c (x_get_focus_frame):
830 * floatfns.c (fmod_float):
831 * fileio.c (choose_write_coding_system):
832 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
833 (malloc_initialize_hook, sort_args, synchronize_locale):
834 * doprnt.c (doprnt):
835 * dired.c (compile_pattern):
836 * data.c (fmod_float):
837 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
838 (map_char_table_for_charset):
839 * charset.c (define_charset_internal):
840 * alloc.c (Fgarbage_collect): Convert declarations or definitions
841 to standard C.
842
843 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
844 Stefan Monnier <monnier@iro.umontreal.ca>
845
846 * lread.c (read1): Fix up last change to not mess up `c'.
847
848 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
849
850 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
851
852 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
853
854 Fix prototypes.
855
856 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
857 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
858 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
859 arg, as required by internal_condition_case_1.
860 * print.c (strout): Use const char* for arg PTR.
861 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
862 (analyse_first): Fix "const const".
863 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
864 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
865 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
866
867 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
868
869 * alloc.c: Convert function definitions to standard C.
870 * atimer.c:
871 * bidi.c:
872 * bytecode.c:
873 * callint.c:
874 * callproc.c:
875 * casefiddle.c:
876 * casetab.c:
877 * category.c:
878 * ccl.c:
879 * character.c:
880 * charset.c:
881 * chartab.c:
882 * cmds.c:
883 * coding.c:
884 * composite.c:
885 * data.c:
886 * dbusbind.c:
887 * dired.c:
888 * dispnew.c:
889 * doc.c:
890 * doprnt.c:
891 * ecrt0.c:
892 * editfns.c:
893 * fileio.c:
894 * filelock.c:
895 * filemode.c:
896 * fns.c:
897 * font.c:
898 * fontset.c:
899 * frame.c:
900 * fringe.c:
901 * ftfont.c:
902 * ftxfont.c:
903 * gtkutil.c:
904 * indent.c:
905 * insdel.c:
906 * intervals.c:
907 * keymap.c:
908 * lread.c:
909 * macros.c:
910 * marker.c:
911 * md5.c:
912 * menu.c:
913 * minibuf.c:
914 * prefix-args.c:
915 * print.c:
916 * ralloc.c:
917 * regex.c:
918 * region-cache.c:
919 * scroll.c:
920 * search.c:
921 * sound.c:
922 * strftime.c:
923 * syntax.c:
924 * sysdep.c:
925 * termcap.c:
926 * terminal.c:
927 * terminfo.c:
928 * textprop.c:
929 * tparam.c:
930 * undo.c:
931 * unexelf.c:
932 * window.c:
933 * xfaces.c:
934 * xfns.c:
935 * xfont.c:
936 * xftfont.c:
937 * xgselect.c:
938 * xmenu.c:
939 * xrdb.c:
940 * xselect.c:
941 * xsettings.c:
942 * xsmfns.c:
943 * xterm.c: Likewise.
944
945 2010-07-03 Eli Zaretskii <eliz@gnu.org>
946
947 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
948 frames other than the initial one. Fix reversal of colors when
949 `reverse' is specified in the frame parameters. Call
950 update_face_from_frame_parameter instead of
951 internal-set-lisp-face-attribute. Initialize screen colors from
952 initial_screen_colors[] when f->default_face_done_p is zero,
953 instead of depending on being called with default-frame-alist as
954 the alist argument.
955
956 * xfaces.c (update_face_from_frame_parameter): Move out of
957 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
958 with HAVE_WINDOW_SYSTEM.
959
960 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
961 to menu-bar-mode, if not set in the frame parameters or in
962 default-frame-alist.
963
964 * w32console.c (sys_tputs): Adjust argument list to prototype in
965 term.c.
966
967 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
968
969 * lisp.h (memory_warnings): Fix prototype.
970
971 * cm.h (evalcost): Fix prototype.
972
973 * cm.c (evalcost): Fix arg type.
974
975 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
976
977 * term.c (term_clear_mouse_face, Fidentity):
978 * syssignal.h (signal_handler_t):
979 * lisp.h (memory_warnings):
980 * coding.h (preferred_coding_system):
981 * cm.h (evalcost):
982 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
983
984 2010-07-02 Eli Zaretskii <eliz@gnu.org>
985
986 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
987 from prototypes.
988
989 * msdos.h (load_pixmap): Don't define away.
990
991 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
992
993 * lisp.h:
994 * atimer.h: Remove define for P_.
995
996 * alloc.c: Remove __P and P_ from .c and .m files.
997 * atimer.c:
998 * buffer.c:
999 * callint.c:
1000 * category.c:
1001 * charset.c:
1002 * chartab.c:
1003 * cm.c:
1004 * coding.c:
1005 * composite.c:
1006 * data.c:
1007 * dired.c:
1008 * dispnew.c:
1009 * doc.c:
1010 * editfns.c:
1011 * emacs.c:
1012 * eval.c:
1013 * fileio.c:
1014 * filelock.c:
1015 * fns.c:
1016 * font.c:
1017 * fontset.c:
1018 * frame.c:
1019 * ftfont.c:
1020 * ftxfont.c:
1021 * gmalloc.c:
1022 * gtkutil.c:
1023 * image.c:
1024 * indent.c:
1025 * intervals.c:
1026 * keyboard.c:
1027 * keymap.c:
1028 * lread.c:
1029 * marker.c:
1030 * menu.c:
1031 * minibuf.c:
1032 * print.c:
1033 * process.c:
1034 * scroll.c:
1035 * search.c:
1036 * sound.c:
1037 * strftime.c:
1038 * syntax.c:
1039 * sysdep.c:
1040 * term.c:
1041 * terminal.c:
1042 * textprop.c:
1043 * unexalpha.c:
1044 * w32console.c:
1045 * w32fns.c:
1046 * w32font.c:
1047 * w32menu.c:
1048 * w32term.c:
1049 * w32uniscribe.c:
1050 * window.c:
1051 * xdisp.c:
1052 * xfaces.c:
1053 * xfns.c:
1054 * xfont.c:
1055 * xftfont.c:
1056 * xmenu.c:
1057 * xselect.c:
1058 * xterm.c: Likewise.
1059
1060 Remove P_ and __P macros.
1061 * atimer.h: Remove P_ and __P macros.
1062 * buffer.h:
1063 * category.h:
1064 * ccl.h:
1065 * character.h:
1066 * charset.h:
1067 * cm.h:
1068 * coding.h:
1069 * composite.h:
1070 * dispextern.h:
1071 * disptab.h:
1072 * dosfns.h:
1073 * font.h:
1074 * fontset.h:
1075 * frame.h:
1076 * gtkutil.h:
1077 * indent.h:
1078 * intervals.h:
1079 * keyboard.h:
1080 * keymap.h:
1081 * lisp.h:
1082 * macros.h:
1083 * md5.h:
1084 * menu.h:
1085 * msdos.h:
1086 * nsterm.h:
1087 * puresize.h:
1088 * region-cache.h:
1089 * syntax.h:
1090 * syssignal.h:
1091 * systime.h:
1092 * termhooks.h:
1093 * w32font.h:
1094 * w32term.h:
1095 * widget.h:
1096 * window.h:
1097 * xgselect.h:
1098 * xsettings.h:
1099 * xterm.h: Likewise.
1100
1101 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1102
1103 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1104
1105 Cleanup old code.
1106 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1107 * syssignal.h: Remove code for Lynx, not supported anymore.
1108 * vm-limit.c: Remove unused code the depends on emacs not being
1109 defined and NO_LIM_DATA being defined.
1110 * mem-limits.h: Remove dead code.
1111
1112 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1113
1114 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1115
1116 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1117 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1118
1119 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1120 parameters, they are already absolute.
1121
1122 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
1123 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1124
1125 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
1126
1127 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
1128 FRAME_TOOLBAR_HEIGHT.
1129
1130 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
1131 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1132
1133 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
1134
1135 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1136 check default-frame-alist.
1137
1138 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1139
1140 * process.c (create_process): Avoid using invalid file descriptors.
1141
1142 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1143
1144 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1145
1146 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1147 Improve documentation. Return font regardless of use_system_font.
1148 (syms_of_xsettings): Improve documentation for font-use-system-font.
1149
1150 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1151
1152 * xfaces.c (realize_face): Garbage the frame if a face is removed
1153 (Bug#6593).
1154
1155 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1156
1157 * keyboard.c: Remove duplicate <setjmp.h>.
1158 (read_key_sequence): Remove volatile qualifiers.
1159
1160 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1161
1162 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1163 (struct glyph_row): New members left_fringe_offset and
1164 right_fringe_offset.
1165
1166 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1167 specially.
1168 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1169 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1170
1171 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1172 Take account of bitmap offset.
1173 (draw_window_fringes): Take account of window vscroll.
1174 (update_window_fringes): Likewise. Extend top-aligned top indicator
1175 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1176 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1177 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1178
1179 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1180
1181 * w32fns.c (Qtooltip): Declare.
1182 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1183
1184 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1185
1186 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1187 grab on just Press (Bug#6499).
1188
1189 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
1190
1191 * frame.c (Qtooltip): New var.
1192 (delete_frame): Use it. Fix faulty if statement. Don't update
1193 mode line for tooltip frames. Suggested by Martin Rudalics.
1194
1195 * xfns.c (x_create_tip_frame):
1196 * w32fns.c (x_create_tip_frame): Use it.
1197
1198 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1199
1200 * xftfont.c (xftfont_open): Check font width one by one also when
1201 spacing is dual.
1202
1203 * ftfont.c (ftfont_open): Ditto.
1204
1205 2010-06-30 Glenn Morris <rgm@gnu.org>
1206
1207 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1208
1209 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1210
1211 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1212 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1213 * s/darwin.h (SYSTEM_MALLOC):
1214 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1215
1216 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1217
1218 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1219 (ns_get_screen): Don't assign integer to f.
1220 (Fx_display_color_cells): Declarations before statements.
1221
1222 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1223
1224 * xfns.c (x_default_font_parameter): Remove got_from_system
1225 (Bug#6526).
1226
1227 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1228 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1229 defines based on what configure finds.
1230
1231 * xterm.c (XTflash): Use gtk_widget_get_window.
1232 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1233 gtk_adjustment_get_page_size.
1234 (handle_one_xevent): Use gtk_widget_get_mapped.
1235 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1236 messages.
1237
1238 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1239
1240 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1241 HAVE_GTK_FILE_SELECTION_NEW.
1242
1243 * gtkutil.c (xg_display_open, xg_display_close): Remove
1244 HAVE_GTK_MULTIDISPLAY, it is always defined.
1245 (xg_display_open): Return type is void.
1246 (gtk_widget_set_has_window)
1247 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1248 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1249 (gtk_adjustment_set_page_increment)
1250 (gtk_adjustment_get_step_increment): #define these if not found
1251 by configure.
1252 (remove_submenu): New define based on Gtk+ version.
1253 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1254 gtk_widget_get_window.
1255 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1256 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1257 (create_dialog): Use gtk_dialog_get_action_area and
1258 gtk_dialog_get_content_area.
1259 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1260 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1261 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1262 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1263 g_object_ref and g_object_unref.
1264 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1265 gtk_widget_get_sensitive.
1266 (xg_update_submenu): Use remove_submenu.
1267 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1268 properties instead to get old x and y position.
1269 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1270 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
1271 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
1272 (xg_get_tool_bar_widgets): New function.
1273 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1274 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1275 (toolbar_set_orientation): New #define based on if configure
1276 finds gtk_orientable_set_orientation.
1277 (xg_create_tool_bar): Call toolbar_set_orientation.
1278 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1279 instead of gtk_box_pack_start_defaults.
1280
1281 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
1282
1283 * cmds.c (Fdelete_backward_char): Move into Lisp.
1284
1285 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1286
1287 * s/freebsd.h (BSD4_2): Remove redundant definition.
1288 bsd-common.h defines it already.
1289
1290 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
1291
1292 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1293 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1294 tool-bar-mode, which are now set using these X resources at
1295 startup, to determine the defaults (Bug#2249).
1296
1297 * w32fns.c (Fx_create_frame):
1298 * nsfns.m (Fx_create_frame): Likewise.
1299
1300 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1301
1302 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
1303
1304 * gtkutil.c (xg_update_scrollbar_pos):
1305 Avoid C99 mid-block variable declaration.
1306
1307 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1308
1309 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1310
1311 * gtkutil.h (xg_show_scroll_bar): Remove.
1312
1313 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1314 if height is less than scroll bar min size.
1315 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1316
1317 * xfns.c (x_default_font_parameter): Try to open font from system
1318 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1319
1320 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1321
1322 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1323
1324 2010-06-20 Eli Zaretskii <eliz@gnu.org>
1325
1326 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1327 most-positive-fixnum, be extra accurate when scrolling window
1328 start, to avoid missing the cursor line.
1329
1330 2010-06-19 Eli Zaretskii <eliz@gnu.org>
1331
1332 * xdisp.c (try_scrolling): Compute the limit for searching point
1333 in forward scroll from scroll_max, instead of an arbitrary limit
1334 of 10 screen lines. See
1335 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1336 and
1337 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1338 for details.
1339
1340 2010-06-16 Glenn Morris <rgm@gnu.org>
1341
1342 * editfns.c (Fbyte_to_string): Pacify compiler.
1343
1344 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1345
1346 * lread.c (read1): Phase out old-style backquotes a bit more.
1347
1348 2010-06-12 Eli Zaretskii <eliz@gnu.org>
1349
1350 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1351 bidimirror.h.
1352
1353 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1354
1355 * bidi.c (bidi_initialize): Remove explicit initialization of
1356 bidi_type_table; include biditype.h instead. Don't support
1357 entries whose second codepoint is zero. Initialize bidi_mirror_table.
1358 (bidi_mirror_char): Use bidi_mirror_table.
1359
1360 * biditype.h: New file.
1361
1362 * bidimirror.h: New file.
1363
1364 * window.c (syms_of_window): Doc fix (bug#6409).
1365
1366 2010-06-12 Romain Francoise <romain@orebokech.com>
1367
1368 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1369 ediff-hook.
1370
1371 2010-06-10 Glenn Morris <rgm@gnu.org>
1372
1373 * editfns.c (Fbyte_to_string): Pacify compiler.
1374
1375 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1376
1377 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1378
1379 * alloc.c (Fmake_byte_code): Don't access undefined argument
1380 (Bug#6517).
1381
1382 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
1383
1384 * xdisp.c (next_element_from_image): Ensure that after-strings are
1385 read the next time we hit handle_stop (Bug#1336).
1386
1387 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1388
1389 * lread.c (read1): Signal error if #s is not followed by paren.
1390
1391 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
1392
1393 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1394
1395 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1396
1397 2010-06-15 Glenn Morris <rgm@gnu.org>
1398
1399 * editfns.c (Fbyte_to_string): Pacify compiler.
1400
1401 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1402
1403 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1404 Check `object's type before accessing its guts.
1405
1406 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1407
1408 * s/usg5-4.h: Fix previous change.
1409 Suggested by Lawrence Mitchell <wence@gmx.li>
1410
1411 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1412
1413 * minibuf.c (Fall_completions): Add more checks.
1414
1415 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
1416
1417 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1418
1419 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1420
1421 * lread.c (X_OK): Remove, unused.
1422
1423 * dispnew.c: Remove obsolete comment.
1424
1425 Remove INCLUDED_FCNTL.
1426 * xterm.c (INCLUDED_FCNTL):
1427 * callproc.c (INCLUDED_FCNTL):
1428 * alloc.c (INCLUDED_FCNTL):
1429 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1430 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1431
1432 2010-06-07 Martin Rudalics <rudalics@gmx.at>
1433
1434 * window.c (Fselect_window): Move `record_buffer' up to the
1435 beginning of this function, so the buffer gets recorded
1436 even if the selected window does not change.
1437 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1438
1439 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
1440
1441 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1442 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1443
1444 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1445
1446 Remove BSTRING related code, all platforms define it.
1447 * s/usg5-4.h (BSTRING): Remove definition.
1448 * s/template.h (BSTRING):
1449 * s/msdos.h (BSTRING):
1450 * s/ms-w32.h (BSTRING):
1451 * s/hpux10-20.h (BSTRING):
1452 * s/gnu-linux.h (BSTRING):
1453 * s/darwin.h (BSTRING):
1454 * s/cygwin.h (BSTRING):
1455 * s/bsd-common.h (BSTRING):
1456 * s/aix4-2.h (BSTRING): Likewise.
1457 * sysdep.c: Remove code depending on BSTRING not being defined.
1458
1459 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
1460
1461 Remove obsolete macro BASE_LEADING_CODE_P.
1462 * character.h (BASE_LEADING_CODE_P): Remove.
1463 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1464 * buffer.c (Fset_buffer_multibyte):
1465 * indent.c (scan_for_column, compute_motion):
1466 * insdel.c (count_combining_before, count_combining_after):
1467 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1468
1469 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
1470
1471 Turn `directory-sep-char' into a noop.
1472
1473 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1474 (DIRECTORY_SEP): Define unconditionally.
1475
1476 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1477
1478 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1479 call dostounix_filename directly.
1480
1481 * fileio.c (CORRECT_DIR_SEPS): Remove.
1482 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1483 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1484 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1485 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1486
1487 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1488 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1489
1490 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1491
1492 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
1493 address. (Bug#6346)
1494
1495 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1496
1497 * ccl.c (Fccl_program_p): Fix typo in docstring.
1498
1499 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1500
1501 Move UNEXEC definition to autoconf.
1502 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1503 * s/sol2-10.h (UNEXEC):
1504 * s/irix6-5.h (UNEXEC):
1505 * s/hpux10-20.h (UNEXEC):
1506 * s/gnu-linux.h (UNEXEC):
1507 * s/darwin.h (UNEXEC):
1508 * s/cygwin.h (UNEXEC):
1509 * s/bsd-common.h (UNEXEC):
1510 * s/aix4-2.h (UNEXEC):
1511 * m/alpha.h (UNEXEC): Likewise.
1512 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1513
1514 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1515
1516 Remove obsolete pre-unicode2 macros.
1517 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1518 * composite.c (composition_reseat_it):
1519 * data.c (Faset):
1520 * fns.c (Ffillarray):
1521 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1522 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1523
1524 2010-06-03 Juri Linkov <juri@jurta.org>
1525
1526 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1527 (Fswitch_to_buffer): Remove unused variable `err'.
1528
1529 2010-06-03 Glenn Morris <rgm@gnu.org>
1530
1531 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1532
1533 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1534 now that AH_BOTTOM does it.
1535
1536 * m/hp800.h (HAVE_ALLOCA):
1537 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1538
1539 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1540 Remove NOT_C_CODE tests, it is always true now.
1541
1542 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1543
1544 Fix config.h includes.
1545 * xsettings.c:
1546 * xgselect.c:
1547 * nsterm.m:
1548 * nsselect.m:
1549 * nsimage.m:
1550 * nsfont.m:
1551 * nsfns.m:
1552 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1553 other files do.
1554
1555 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1556
1557 * s/sol2-6.h: Remove obsolete comments.
1558
1559 Remove unnecessary alloca.h includes.
1560 * keymap.c: Do not include alloca.h, config.h does that.
1561 * sysdep.c: Likewise. Do not define fwrite, not used.
1562
1563 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1564
1565 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1566 the HAVE_TERMIO where it belongs (bug#6149).
1567
1568 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1569
1570 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1571 of bug#6305).
1572
1573 2010-05-30 Eli Zaretskii <eliz@gnu.org>
1574
1575 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1576 state is always cached (bug#6306).
1577
1578 2010-05-29 Eli Zaretskii <eliz@gnu.org>
1579
1580 Fix cursor motion in bidi-reordered continued lines.
1581 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1582 only after finding point's row. Fix the logic. Rewrite the loop
1583 over continuation lines in bidi-reordered buffers. Return
1584 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1585 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1586
1587 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
1588
1589 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1590
1591 2010-05-28 Kenichi Handa <handa@m17n.org>
1592
1593 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1594 Don't sheck SPEC if it is nil.
1595 (font_list_entities): Call font_delete_unmatched if
1596 Vface_ignored_fonts is non-nil. (Bug#6287)
1597
1598 2010-05-28 Glenn Morris <rgm@gnu.org>
1599
1600 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1601
1602 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1603
1604 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1605 whether to trash.
1606 (internal_delete_file, Frename_file): Callers changed.
1607 (delete_by_moving_to_trash): Doc fix.
1608 (Fdelete_directory_internal): Don't move to trash.
1609
1610 * callproc.c (delete_temp_file):
1611 * buffer.c (Fkill_buffer): Callers changed.
1612
1613 * lisp.h: Update prototype.
1614
1615 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1616
1617 * xdisp.c (redisplay_window): After redisplay, check if point is
1618 still valid before setting it (Bug#6177).
1619
1620 2010-05-27 Glenn Morris <rgm@gnu.org>
1621
1622 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1623 Convert comments to Makefile format.
1624
1625 * Makefile.in (bootstrap-clean): No more Makefile.c.
1626
1627 2010-05-26 Glenn Morris <rgm@gnu.org>
1628
1629 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1630 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1631
1632 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1633 Remove.
1634 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1635
1636 2010-05-26 Kenichi Handa <handa@m17n.org>
1637
1638 * composite.c (composition_compute_stop_pos): Fix condition for
1639 backward scanning.
1640
1641 2010-05-25 Glenn Morris <rgm@gnu.org>
1642
1643 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1644 Move before TEMACS_LDFLAGS.
1645 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1646 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1647
1648 * Makefile.in (NOT_C_CODE): No longer define.
1649 (config.h): No longer include.
1650
1651 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1652 variables it may reference.
1653
1654 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1655 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1656
1657 2010-05-25 Kenichi Handa <handa@m17n.org>
1658
1659 * dispextern.h (struct composition_it): New members rule_idx and
1660 charpos.
1661
1662 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1663 that the character positions of IT point the last character of the
1664 current grapheme cluster.
1665 (next_element_from_composition): Don't change character positions
1666 of IT.
1667 (append_composite_glyph): Set glyph->charpos to
1668 it->cmp_it.charpos.
1669
1670 * composite.c (autocmp_chars): Change the first argument to RULE,
1671 and try composition with RULE only.
1672 (composition_compute_stop_pos): Record the index number of the
1673 composition rule in CMP_IT->rule_idx.
1674 (composition_reseat_it): Call autocmp_chars repeatedly until the
1675 correct rule of the composition is found.
1676 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1677 is at the last character of the current grapheme cluster when
1678 CMP_IT->reversed_p is nonzero.
1679
1680 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1681
1682 * editfns.c (Fbyte_to_string): New function.
1683
1684 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1685
1686 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1687 Suggested by Masatake YAMATO <yamato@redhat.com>.
1688
1689 2010-05-23 Eli Zaretskii <eliz@gnu.org>
1690
1691 * dispextern.h (init_iterator): Sync prototype with changed definition.
1692
1693 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1694
1695 * s/netbsd.h: If terminfo is found, use it in preference to
1696 termcap. (Bug#6190) [Backport from trunk]
1697
1698 2010-05-19 Eli Zaretskii <eliz@gnu.org>
1699
1700 Redesign and reimplement bidi-aware edge positions of glyph rows.
1701
1702 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1703 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1704 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1705 and maxpos members instead of start.pos and end.pos, respectively.
1706
1707 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1708 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1709 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
1710 (try_window_reusing_current_matrix, try_window_id):
1711 Use ROW->minpos rather than ROW->start.pos.
1712 (init_from_display_pos, init_iterator): Use EMACS_INT for
1713 character and byte positions.
1714 (find_row_edges): Rename from find_row_end. Accept additional
1715 arguments for minimum and maximum buffer positions seen by
1716 display_line for this row. Don't use iterator to find the
1717 position following the maximum one; instead, increment the
1718 position found by display_line directly. Fix logic; eol_pos
1719 should be tested before the rest. Handle the case of characters
1720 delivered from display vector (bug#6036). Fix tests related to
1721 it->method. Handle the truncated_on_right_p rows.
1722 (RECORD_MAX_MIN_POS): New macro.
1723 (display_line): Use it to record the minimum and maximum buffer
1724 positions for glyphs in the row being assembled. Record the
1725 position of the newline that terminates the line. If word wrap is
1726 in effect, restore minimum and maximum positions seen up to the
1727 wrap point, when iterator returns to it.
1728 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1729 row and cursor not already at point. Restore original pre-bidi
1730 code for unidirectional buffers.
1731
1732 * dispnew.c (increment_row_positions, check_matrix_invariants):
1733 Increment and check row->start.pos and row->end.pos, in addition
1734 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1735
1736 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1737 Display truncated_on_left_p and truncated_on_right_p flags.
1738 Formatting fixes.
1739 (pmtxrows): Display the ordinal number of each row. Don't display
1740 rows beyond the last one.
1741
1742 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1743 it is not copied by bidi_copy_it.
1744
1745 2010-05-22 Eli Zaretskii <eliz@gnu.org>
1746
1747 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1748 (Bug#6237)
1749
1750 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
1751
1752 * image.c (Fimage_flush): Rename from image-refresh.
1753
1754 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
1755
1756 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1757 just one window.
1758
1759 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1760 (clear_image_cache): If the number of cached images is unusually
1761 large, decrease the cache eviction delay (Bug#6230).
1762
1763 2010-05-21 Glenn Morris <rgm@gnu.org>
1764
1765 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1766 Move these rules to ns.mk.
1767 * ns.mk: New file.
1768
1769 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1770
1771 * Makefile.in (CANNOT_DUMP): New, set by configure.
1772 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1773
1774 2010-05-20 Juri Linkov <juri@jurta.org>
1775
1776 * fileio.c (Fdelete_file): Change interative spec to use
1777 `read-file-name' like in `find-file-read-args' where the default
1778 value is `default-directory' instead of `buffer-file-name'.
1779 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1780
1781 2010-05-20 Kevin Ryde <user42@zip.com.au>
1782
1783 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1784 (Voverriding_terminal_local_map, Vsystem_key_alist)
1785 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1786
1787 2010-05-20 Glenn Morris <rgm@gnu.org>
1788
1789 * Makefile.in (DEPDIR): New constant.
1790 (DEPFLAGS): Set with configure, not cpp.
1791 (MKDEPDIR): New, set by configure.
1792 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1793 (clean): Use $DEPDIR.
1794 (deps_frag): Include from configure.
1795 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1796 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1797
1798 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1799 reallocation of the cache. (Bug#6210)
1800
1801 2010-05-19 Glenn Morris <rgm@gnu.org>
1802
1803 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1804
1805 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1806 (GNULIB_VAR): Remove.
1807 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1808
1809 * m/ibms390x.h (LINKER):
1810 * m/macppc.h (LINKER) [GNU_LINUX]:
1811 * s/aix4-2.h (ORDINARY_LINK):
1812 * s/cygwin.h (LINKER):
1813 * s/darwin.h (ORDINARY_LINK):
1814 * s/gnu.h (ORDINARY_LINK):
1815 * s/netbsd.h (LINKER):
1816 * s/usg5-4.h (ORDINARY_LINK):
1817 Move to configure.
1818
1819 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1820
1821 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
1822
1823 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1824 prevent stack overflow if number of arguments is too large
1825 (Bug#6214).
1826
1827 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
1828
1829 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1830
1831 2010-05-18 Glenn Morris <rgm@gnu.org>
1832
1833 * s/gnu-linux.h: Combine two conditionals.
1834
1835 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
1836 $(POST_ALLOC_OBJ).
1837
1838 * Makefile.in (RALLOC_OBJ): New, set by configure.
1839 (rallocobj): Replace with the previous variable.
1840 (otherobj): Use $RALLOC_OBJ.
1841
1842 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1843 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1844
1845 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1846 (gmallocobj, vmlimitobj): Replace with previous two variables.
1847 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1848
1849 2010-05-17 Glenn Morris <rgm@gnu.org>
1850
1851 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1852 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1853
1854 2010-05-16 Glenn Morris <rgm@gnu.org>
1855
1856 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1857
1858 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1859
1860 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1861 trailing "/".
1862
1863 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1864 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1865
1866 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1867 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1868 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1869 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1870 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1871
1872 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1873 Remove ${STARTFLAGS}, nothing ever sets it.
1874
1875 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1876
1877 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1878
1879 2010-05-16 Glenn Morris <rgm@gnu.org>
1880
1881 * Makefile.in (LIBX_BASE): Always define.
1882
1883 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1884
1885 * Makefile.in (LIBXT): Always define.
1886
1887 2010-05-15 Glenn Morris <rgm@gnu.org>
1888
1889 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
1890
1891 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1892 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1893
1894 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
1895
1896 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
1897 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1898
1899 * emacs.c (main): Initialize initial-environment and
1900 process-environment before generating from env, not after.
1901
1902 Handle --version reasonably in CANNOT_DUMP configuration.
1903 * emacs.c (emacs_version, emacs_copyright): New string variables.
1904 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1905 (syms_of_emacs): Defvar them, and initialize them from the C
1906 string variables.
1907 (main): If initialization hasn't been done, print initial version
1908 info from the C strings, instead of starting an interactive session.
1909
1910 2010-05-15 Eli Zaretskii <eliz@gnu.org>
1911
1912 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1913 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
1914 (bidi_paragraph_init): Remove redundant assertion that we are at
1915 the beginning of a line after call to bidi_find_paragraph_start.
1916
1917 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1918 (syms_of_xdisp): Defsubr it.
1919
1920 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1921
1922 * Makefile.in: Fix MSDOS-related comments.
1923
1924 2010-05-15 Glenn Morris <rgm@gnu.org>
1925
1926 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1927 (really-lwlib, really-oldXMenu): Always define.
1928 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1929
1930 * Makefile.in: Simplify cpp conditional.
1931
1932 * Makefile.in (${ns_appdir}): Simplify using umask.
1933
1934 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1935
1936 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1937
1938 * eval.c (specbind): Remove left-over duplicate test.
1939 Disallow let-binding frame-local vars. Add comment.
1940
1941 2010-05-14 Eli Zaretskii <eliz@gnu.org>
1942
1943 Make the cache of bidi iterator states dynamically allocated.
1944 * bidi.c (bidi_cache_shrink): New function.
1945 (bidi_init_it): Call it.
1946 (bidi_cache_iterator_state): Enlarge the cache if needed.
1947
1948 * bidi.c (bidi_move_to_visually_next): Rename from
1949 bidi_get_next_char_visually. All callers changed.
1950
1951 2010-05-14 Kenichi Handa <handa@m17n.org>
1952
1953 * dispextern.h (struct composition_it): New member reversed_p.
1954
1955 * composite.c (composition_compute_stop_pos): Search backward if
1956 ENDPOS < CHARPOS.
1957 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1958 Set CMP_IT->reversed_p.
1959 (composition_update_it): Pay attention to CMP_IT->reversed_p.
1960
1961 * xdisp.c (set_iterator_to_next):
1962 Call composition_compute_stop_pos with negative ENDPOS if we are
1963 scanning backward. Call composition_compute_stop_pos if scan
1964 direction is changed.
1965 (next_element_from_buffer): Call composition_compute_stop_pos with
1966 negative ENDPOS if we are scanning backward.
1967 (next_element_from_composition): Pay attention to
1968 IT->cmp_it.reversed_p.
1969
1970 2010-05-14 Kenichi Handa <handa@m17n.org>
1971
1972 * font.c (font_range): Return the range for the font found at first.
1973
1974 2010-05-14 Glenn Morris <rgm@gnu.org>
1975
1976 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1977
1978 * Makefile.in (mktime, X11, register): Move undefs to configure.
1979
1980 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1981 (MSDOS_X_OBJ): New variable.
1982 (MSDOS_SUPPORT_REAL): New constant.
1983 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1984 (obj): Use MSDOS_X_OBJ.
1985 (lisp): Use MSDOS_SUPPORT as a variable.
1986
1987 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1988 (GPM_MOUSE_SUPPORT): Now it's a constant.
1989 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1990 not cpp.
1991
1992 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
1993 (ns_appresdir): Remove, unused.
1994
1995 * Makefile.in (SHELL): Move outside cpp section.
1996
1997 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1998
1999 2010-05-13 Glenn Morris <rgm@gnu.org>
2000
2001 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2002 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2003
2004 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2005 HAVE_WINDOW_SYSTEM must be too.
2006
2007 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2008 (lisp): Remove WINNT_SUPPORT.
2009
2010 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2011 Let configure set these variables (to empty) in this case as well.
2012
2013 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2014 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2015
2016 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2017 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2018 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2019 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2020 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2021 the values output by configure.
2022 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2023
2024 2010-05-12 Glenn Morris <rgm@gnu.org>
2025
2026 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2027 (LINKER_WAS_SPECIFIED): Remove.
2028
2029 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2030 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2031 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2032 * s/cygwin.h (LIB_GCC):
2033 * s/freebsd.h (LIB_GCC):
2034 * s/gnu-linux.h (LIB_GCC):
2035 * s/msdos.h (LIB_GCC):
2036 * s/netbsd.h (LIB_GCC):
2037 Move to configure.
2038
2039 2010-05-11 Karel Klic <kklic@redhat.com>
2040
2041 * ftfont.c: Fix incorrect parentheses of #if condition for
2042 definining M17N_FLT_USE_NEW_FEATURE.
2043
2044 2010-05-11 Glenn Morris <rgm@gnu.org>
2045
2046 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2047 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2048
2049 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2050
2051 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2052 unibyte buffers. See
2053 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2054
2055 2010-05-10 Glenn Morris <rgm@gnu.org>
2056
2057 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2058 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2059 (LIBES): Use LIBS_SYSTEM as a variable.
2060 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2061 * s/aix4-2.h (LIBS_SYSTEM):
2062 * s/freebsd.h (LIBS_SYSTEM):
2063 * s/hpux10-20.h (LIBS_SYSTEM):
2064 * s/sol2-6.h (LIBS_SYSTEM):
2065 * s/unixware.h (LIBS_SYSTEM):
2066 Move to configure.
2067
2068 * s/aix4-2.h (MAIL_USE_LOCKF):
2069 * s/bsd-common.h (MAIL_USE_FLOCK):
2070 * s/darwin.h (MAIL_USE_FLOCK):
2071 * s/gnu-linux.h (MAIL_USE_FLOCK):
2072 * s/irix6-5.h (MAIL_USE_FLOCK):
2073 * s/template.h (MAIL_USE_FLOCK):
2074 Move to configure.
2075
2076 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2077
2078 * Version 23.2 released.
2079
2080 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2081
2082 * composite.c (autocmp_chars): Save point as marker before calling
2083 auto-composition-function (Bug#5984).
2084
2085 * lisp.h (restore_point_unwind): Add prototype.
2086
2087 * fileio.c (restore_point_unwind): Remove static attribute.
2088
2089 2010-05-08 Kenichi Handa <handa@m17n.org>
2090
2091 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2092 new feature of libotf and m17n-flt.
2093 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2094 Call OTF_check_features even if no specific feature is given.
2095 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2096 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2097 that OUT is NULL. Use OTF_drive_gsub_with_log and
2098 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2099 OTF_drive_gpos.
2100 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2101 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2102 Setup mflt_enable_new_feature and mflt_try_otf.
2103
2104 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2105
2106 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2107
2108 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2109 box and toolbar (Bug #6139).
2110 (xg_create_tool_bar): Remove comment (Bug #6139).
2111 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2112 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2113
2114 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
2115
2116 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2117 Update dependencies.
2118
2119 2010-05-08 Eli Zaretskii <eliz@gnu.org>
2120
2121 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2122 R2L lines.
2123
2124 2010-05-08 Glenn Morris <rgm@gnu.org>
2125
2126 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2127
2128 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2129 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2130 (termcapobj): Replace with TERMCAP_OBJ.
2131 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2132 (LIBES): Use LIBS_TERMCAP as a variable.
2133
2134 * s/freebsd.h (osreldate.h): No longer include, since this file
2135 does not use __FreeBSD_version any more.
2136
2137 * s/aix4-2.h (TERMINFO):
2138 * s/cygwin.h (TERMINFO):
2139 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2140 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2141 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2142 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2143 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2144 * s/irix6-5.h (TERMINFO):
2145 * s/netbsd.h (LIBS_TERMCAP):
2146 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2147 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2148 * s/usg5-4.h (TERMINFO):
2149 Move to configure.
2150
2151 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2152
2153 * eval.c (unbind_to): Don't unbind a local binding into the global
2154 binding when the local binding disappeared. Inversely, don't unbind
2155 a global binding into a newly created local binding.
2156 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2157 can specify the frame to use, when applicable. Adjust callers.
2158
2159 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
2160 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2163
2164 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2165
2166 * w32fns.c: Include w32.h.
2167 (Fw32_shell_execute): Decode the error message before passing it
2168 to `error'. (Bug#6126)
2169
2170 * msdos.c (dos_set_window_size):
2171 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2172 instead of `XSYMBOL (foo)->value'.
2173
2174 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2175
2176 Fix the MS-DOS build, broken by autoconfiscation.
2177
2178 * Makefile.in: Don't use Make-style comments past the "start of
2179 cpp stuff" line.
2180 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2181
2182 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2183 edited directly by msdos/sed1v2.inp).
2184
2185 2010-05-07 Glenn Morris <rgm@gnu.org>
2186
2187 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2188 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2189 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2190 move out of cpp section.
2191 * s/freebsd.h (LD_SWITCH_SYSTEM):
2192 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2193 * s/netbsd.h (LD_SWITCH_SYSTEM):
2194 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2195
2196 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2197
2198 Define LIB_STANDARD and START_FILES using autoconf.
2199 * s/usg5-4.h (LIB_STANDARD):
2200 * s/netbsd.h (START_FILES):
2201 * s/irix6-5.h (LIB_STANDARD):
2202 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2203 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2204 * s/freebsd.h (START_FILES):
2205 * s/darwin.h (START_FILES):
2206 * s/cygwin.h (START_FILES):
2207 * s/aix4-2.h (LIB_STANDARD):
2208 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2209 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2210 autoconf, not cpp.
2211
2212 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2213
2214 Remove NEED_BSDTTY and NEED_UNISTD_H.
2215 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2216 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2217 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2218 <sys/ptyio.h> and <unistd.h>.
2219
2220 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2221
2222 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2223 * s/gnu.h (START_FILES): Remove empty definition.
2224
2225 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2226
2227 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2228
2229 2010-05-06 Glenn Morris <rgm@gnu.org>
2230
2231 * Makefile.in (CPP, LN_S): Remove unused variables.
2232
2233 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2234
2235 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2236
2237 2010-05-05 Lawrence Mitchell <wence@gmx.li>
2238
2239 * m/sparc.h: Fix typo in earlier change.
2240
2241 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2242
2243 Misc tweaks.
2244 * eval.c (Fdefvaralias): Remove unintended nested if.
2245 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2246
2247 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
2248
2249 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2250
2251 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2252
2253 Remove BSD_PGRPS.
2254 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2255 * s/gnu-linux.h (BSD_PGRPS): Remove.
2256 * term.c (dissociate_if_controlling_tty):
2257 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2258 (init_sys_modes, reset_sys_modes):
2259 * emacs.c (main):
2260 * callproc.c (Fcall_process, child_setup): Remove code depending
2261 on BSD_PGRPS.
2262
2263 Remove POSIX_SIGNALS.
2264 * s/usg5-4.h (POSIX_SIGNALS):
2265 * s/netbsd.h (POSIX_SIGNALS):
2266 * s/msdos.h (POSIX_SIGNALS):
2267 * s/ms-w32.h (POSIX_SIGNALS):
2268 * s/hpux11.h (POSIX_SIGNALS):
2269 * s/gnu.h (POSIX_SIGNALS):
2270 * s/gnu-linux.h (POSIX_SIGNALS):
2271 * s/freebsd.h (POSIX_SIGNALS):
2272 * s/darwin.h (POSIX_SIGNALS):
2273 * s/cygwin.h (POSIX_SIGNALS):
2274 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2275 * s/unixware.h:
2276 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2277 * process.c (create_process):
2278 * syssignal.h:
2279 * sysdep.c (wait_for_termination, init_signals):
2280 * process.c (create_process):
2281 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2282 remove all code that assumes the contrary.
2283
2284 2010-05-04 Glenn Morris <rgm@gnu.org>
2285
2286 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2287 variable.
2288 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2289 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2290 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2291 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2292 LD_SWITCH_SYSTEM_tmp.
2293 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2294 New variables, set by configure.
2295
2296 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2297 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2298 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2299 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2300 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2301
2302 * s/aix4-2.h (C_SWITCH_SYSTEM):
2303 * m/alpha.h (C_SWITCH_MACHINE):
2304 Move to configure.in.
2305 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2306 New variables, set by configure.
2307 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2308 $c_switch_machine and $c_switch_system.
2309
2310 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2311
2312 * s/hpux10-20.h (LIB_STANDARD): New definition.
2313 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2314 on it, not used anymore.
2315
2316 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * eval.c (internal_condition_case_n): Rename from
2319 internal_condition_case_2.
2320 (internal_condition_case_2): New function.
2321
2322 * xdisp.c (safe_call): Use internal_condition_case_n.
2323
2324 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2325 (internal_delete_file, Frename_file): Callers changed.
2326
2327 * buffer.c (Fkill_buffer):
2328 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2329
2330 * lisp.h: Update prototypes.
2331
2332 2010-05-03 Glenn Morris <rgm@gnu.org>
2333
2334 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2335 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2336 (LIBXT): Set with configure, not cpp.
2337 (LIBX): Remove.
2338 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2339
2340 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2341
2342 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2343 The FreeBSD is not needed, the default works, Solaris version is
2344 not needed, and the remaining case is not supported by configure.
2345
2346 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2347
2348 * xsmfns.c (CHDIR_OPT): New define.
2349 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2350 restarting emacs.
2351
2352 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2353 shut_down_emacs.
2354
2355 * emacs.c (USAGE1): Mention --chdir.
2356 (main): Handle --chdir.
2357 (standard_args): Add --chdir.
2358 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2359 #5552).
2360
2361 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2362
2363 Remove LD_SWITCH_MACHINE.
2364 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2365 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2366
2367 Clean up IRIX code.
2368 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2369 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2370
2371 Clean up AIX code.
2372 * m/ibmrs6000.inp: Remove file, unused.
2373 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2374 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2375 definition ...
2376 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2377
2378 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2379 unused.
2380
2381 2010-05-01 Eli Zaretskii <eliz@gnu.org>
2382
2383 Emulate POSIX_SIGNALS on MS-Windows.
2384
2385 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2386 (SIG_SETMASK, SIG_UNBLOCK): Define.
2387
2388 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2389 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2390 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2391
2392 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2393 New stubs.
2394
2395 Miscellaneous fixes of bidi display.
2396
2397 * xdisp.c (find_row_end): New function, refactored from display_line.
2398 (display_line): Use it.
2399 (extend_face_to_end_of_line): In almost-filled rows, extend only
2400 if the row is R2L and not continued.
2401 (display_line): Fix prepending of truncation glyphs to R2L rows.
2402 Preserve overlay and string info in row->end.
2403 (insert_left_trunc_glyphs): Support addition of left truncation
2404 glyphs to R2L rows.
2405 (set_cursor_from_row): Don't place cursor on the vertical border
2406 glyph between adjacent windows. Fix a crash when a display string
2407 is continued to the next line. Don't return zero if cursor was
2408 found by `cursor' property of a display string.
2409 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2410 test for that explicitly.
2411
2412 2010-05-01 Glenn Morris <rgm@gnu.org>
2413
2414 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2415 for clarity.
2416 (OTHER_OBJ): Remove.
2417 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2418 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2419
2420 2010-05-01 Karel Klíč <kklic@redhat.com>
2421
2422 * fileio.c (Ffile_selinux_context): Context functions may return null.
2423
2424 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2425
2426 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
2427
2428 2010-04-30 Glenn Morris <rgm@gnu.org>
2429
2430 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2431 (OTHER_OBJ): Define as a separate variable, for clarity.
2432
2433 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2434
2435 * xsettings.c: include limits.h and update file comment.
2436
2437 2010-04-30 Glenn Morris <rgm@gnu.org>
2438
2439 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2440 Set with configure, not cpp.
2441 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2442
2443 * Makefile.in (mallocobj): Remove.
2444 (otherobj): Simplify using @OTHER_OBJ@.
2445
2446 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2447 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2448 Don't bother making nsgui.h dependency platform-specific.
2449
2450 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2451
2452 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2453
2454 * process.c (read_process_output, exec_sentinel): Don't burp if the
2455 sentinel/filter kills the current buffer (bug#6060).
2456
2457 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
2458 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2459 Remove unused var `args'.
2460 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2461 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2462 * doc.c (store_function_docstring): Use XSETCAR.
2463
2464 2010-04-28 Glenn Morris <rgm@gnu.org>
2465
2466 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2467 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2468
2469 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2470
2471 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2472 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2473
2474 * Makefile.in (FONT_OBJ): New, set by configure.
2475 (FONT_DRIVERS): Use $FONT_OBJ.
2476
2477 * Makefile.in (LIBXMU): Set with configure, not cpp.
2478 * s/aix4-2.h (LIBXMU):
2479 * s/hpux10-20.h (LIBXMU):
2480 Remove definition, now set in configure.
2481
2482 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2483
2484 * m/amdx86-64.h [i386]: Move this test to configure.in.
2485
2486 2010-04-27 Glenn Morris <rgm@gnu.org>
2487
2488 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2489 * s/unixware.h (NEED_LIBW): Remove definition.
2490
2491 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2492 (TOOLKIT_LIBW): New, set by configure.
2493 (@X_TOOLKIT_TYPE@): No longer define it.
2494
2495 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2496 (MOTIF_LIBW): Set with configure, not cpp.
2497 * s/aix4-2.h (LIB_MOTIF):
2498 * s/gnu-linux.h (LIB_MOTIF):
2499 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2500
2501 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2502
2503 Reduce CPP usage.
2504 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2505 (obj): Use autoconf for unexec instead of cpp.
2506 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2507 definitions and undefs. Inline definitions in the only user.
2508 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
2509
2510 2010-04-27 Glenn Morris <rgm@gnu.org>
2511
2512 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2513 since the defaults (set by the system file) are fine in most cases.
2514 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2515 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2516 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2517 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2518 Remove definitions, since they are set correctly in s/gnu-linux.h.
2519 * s/freebsd.h (START_FILES, LIB_STANDARD):
2520 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2521 * s/hpux10-20.h (START_FILES):
2522 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2523 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2524
2525 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2526 (MOTIF_LIBW): Use $LIBXP.
2527 (otherobj): Use $WIDGET_OBJ.
2528
2529 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2530
2531 * Makefile.in (LIBS_MACHINE): Remove, unused.
2532
2533 Use autoconf instead of cpp for LIB_MATH.
2534 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2535 * s/cygwin.h (LIB_MATH): Likewise.
2536 * Makefile.in (LIB_MATH): Do not define with cpp.
2537 (LIBES): Use autoconf for LIB_MATH.
2538
2539 2010-04-26 Kenichi Handa <handa@m17n.org>
2540
2541 * composite.c (Ffind_composition_internal): Fix the return value
2542 for an automatic composition.
2543
2544 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2545
2546 Remove all NO_ARG_ARRAY uses.
2547 * fns.c (concat2, concat3, nconc2):
2548 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2549 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2550 * m/xtensa.h (NO_ARG_ARRAY):
2551 * m/template.h (NO_ARG_ARRAY):
2552 * m/sparc.h (NO_ARG_ARRAY):
2553 * m/sh3.h (NO_ARG_ARRAY):
2554 * m/mips.h (NO_ARG_ARRAY):
2555 * m/macppc.h (NO_ARG_ARRAY):
2556 * m/iris4d.h (NO_ARG_ARRAY):
2557 * m/intel386.h (NO_ARG_ARRAY):
2558 * m/ibms390x.h (NO_ARG_ARRAY):
2559 * m/ibms390.h (NO_ARG_ARRAY):
2560 * m/ibmrs6000.h (NO_ARG_ARRAY):
2561 * m/ia64.h (NO_ARG_ARRAY):
2562 * m/hp800.h (NO_ARG_ARRAY):
2563 * m/arm.h (NO_ARG_ARRAY):
2564 * m/amdx86-64.h (NO_ARG_ARRAY):
2565 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2566
2567 2010-04-25 Eli Zaretskii <eliz@gnu.org>
2568
2569 * xdisp.c (display_line): Don't assume 2nd call to
2570 get_next_display_element cannot return zero. (Bug#6030)
2571 (iterate_out_of_display_property): New function, body from pop_it.
2572 (pop_it): Use it.
2573
2574 2010-04-24 Glenn Morris <rgm@gnu.org>
2575
2576 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2577 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2578 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2579 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2580
2581 2010-04-24 Eli Zaretskii <eliz@gnu.org>
2582
2583 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2584 use `get_next_display_element' and `set_iterator_to_next' to
2585 advance to the next character, when looking for the character that
2586 begins the next row.
2587
2588 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2589 definition of "struct Lisp_Symbol".
2590
2591 2010-04-24 Glenn Morris <rgm@gnu.org>
2592
2593 * Makefile.in (CRT_DIR): New variable, set by configure.
2594 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2595 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2596
2597 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2598
2599 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2600
2601 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2602
2603 Remove redundant flags.
2604 * s/freebsd.h (C_SWITCH_SYSTEM):
2605 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2606 * s/netbsd.h (C_SWITCH_SYSTEM):
2607 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2608 of these.
2609
2610 Simplify m/intel386.h.
2611 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2612 user: ecrt0.c.
2613 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2614 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2615 the only user: s/unixware.h.
2616 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2617 from m/intel386.h.
2618 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2619 moved here from m/intel386.h.
2620
2621 * m/mips.h: Remove #if 0 code.
2622
2623 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2624
2625 Fix display of composed characters from L2R scripts in bidi buffers.
2626 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2627 After advancing IT past the composition, resync the bidi iterator
2628 with IT's position. (Bug#5977)
2629
2630 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2631
2632 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2633 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2634
2635 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2636
2637 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2638
2639 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2640
2641 Support `display' text properties and overlay strings in bidi buffers.
2642 * xdisp.c (pop_it): When the stack is popped after displaying
2643 from a string, bidi-iterate to exit from the text portion covered
2644 by the `display' property or overlay. (Bug#5988, bug#5920)
2645
2646 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2647
2648 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2649 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2650
2651 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2652 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2653
2654 Simplify STARTFILES definition.
2655 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2656 relying on Makefile.in to define it.
2657 * s/cygwin.h (START_FILES): Likewise.
2658 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2659
2660 Clean up Solaris code.
2661 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2662 (LIB_MOTIF): Remove, configure takes care of this.
2663 (NOT_USING_MOTIF): Remove, unused.
2664 * xrdb.c: Remove #if 0-ed #include.
2665 (SYSV): Remove conditional for old SysV.
2666 * sysdep.c (closedir): Remove conditional code for Solaris,
2667 Solaris has closedir.
2668
2669 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2670
2671 * xsettings.c (read_and_apply_settings): Check if current_font is
2672 NULL before strcmp (Bug#6001).
2673
2674 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2675
2676 Clean up HP-UX files.
2677 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2678 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2679 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2680 * s/hpux10-20.h: ... to the only user, here.
2681
2682 2010-04-21 Eli Zaretskii <eliz@gnu.org>
2683
2684 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2685 use buffer-local values of paragraph-start and paragraph-separate.
2686 <paragraph_start_re, paragraph_separate_re>: Rename from
2687 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2688 (Bug#5992)
2689
2690 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2691
2692 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2693 current_tool_bar_style are new.
2694 (store_config_changed_event): Rename from store_font_changed_event.
2695 (XSETTINGS_TOOL_BAR_STYLE): New define.
2696 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2697 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2698 HAVE_XFT.
2699 (something_changedCB): store_font_changed_event is now
2700 store_config_changed_event
2701 (parse_settings): Rename from parse_xft_settings. Read
2702 non-xft xsettings outside #ifdef HAVE_XFT.
2703 (read_settings): Renamed from read_xft_settings.
2704 (apply_xft_settings): Take current settings as parameter. Do not
2705 call read_(xft)_settings.
2706 (read_and_apply_settings): New function.
2707 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2708 read_and_apply_settings if there are settings to be read.
2709 (init_xsettings): Renamed from init_xfd_settings.
2710 Call read_and_apply_settings unconditionally.
2711 (xsettings_initialize): Call init_xsettings.
2712 (Ftool_bar_get_system_style): New function.
2713 (syms_of_xsettings): Define Qmonospace_font_name and
2714 Qtool_bar_style. Initialize current_tool_bar_style to nil.
2715 defsubr Stool_bar_get_system_style. Fprovide on
2716 dynamic-setting.
2717 Move misplaced HAVE_GCONF
2718
2719 * xsettings.h (Ftool_bar_get_system_style): Declare.
2720
2721 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2722 Qtext, Qboth, Qboth_horiz are new.
2723 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2724 Vtool_bar_style, tool_bar_max_label_size.
2725
2726 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2727
2728 * keyboard.c: QClabel is new.
2729 (parse_tool_bar_item): Take out QClabel from tool bar items.
2730 Try to construct a label if ther is no QClabel.
2731 (syms_of_keyboard): Intern :label as QClabel.
2732
2733 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2734 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2735 New.
2736
2737 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2738 dynamic-setting.el.
2739
2740 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2741 (xg_make_tool_item, xg_show_toolbar_item): New function.
2742 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2743 Call xg_make_tool_item to make a tool bar item.
2744 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2745
2746 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2747 into account for toolbars.
2748
2749 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2750
2751 * data.c (make_blv): Declarations before code (Bug#5993).
2752
2753 2010-04-21 Glenn Morris <rgm@gnu.org>
2754
2755 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2756 Define using autoconf, not cpp.
2757 (LIBXSM): New variable, set by autoconf.
2758 (LIBXT): Use $LIBXSM.
2759
2760 2010-04-21 Dan Nicolaescu <local_user@dannlt>
2761
2762 Remove NOMULTIPLEJOBS, unused.
2763 * s/template.h (NOMULTIPLEJOBS):
2764 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2765
2766 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2767 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2768 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2769 detects -znocombreloc and passes it to the linker
2770 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2771
2772 2010-04-21 Glenn Morris <rgm@gnu.org>
2773
2774 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2775
2776 2010-04-21 Karel Klíč <kklic@redhat.com>
2777
2778 * Makefile.in (LIBSELINUX_LIBS): New.
2779 (LIBES): Add $LIBSELINUX_LIBS.
2780 * eval.c, lisp.h (call7): New function.
2781 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2782 (Ffile_selinux_context, Fset_file_selinux_context):
2783 New functions.
2784 (Fcopy_file): New parameter preserve-selinux-context.
2785 (Frename_file): Preserve selinux context when renaming by copy-file.
2786
2787 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
2788 Eli Zaretskii <eliz@gnu.org>
2789
2790 Don't depend on cm.c or termcap.c on Windows, use stubs.
2791 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2792 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2793 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2794 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2795 (sys_tputs, sys_tgetstr): New stubs.
2796 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2797 (tputs, tgetstr): New; define to sys_*.
2798
2799 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
2800
2801 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2802
2803 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2804
2805 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2806 Just signal a warning rather than an error when inside a let.
2807 (Fmake_variable_frame_local): Add the same test.
2808
2809 * font.c (syms_of_font): Make the style table vars read-only.
2810
2811 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2812 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2813
2814 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2815
2816 2010-04-20 Eli Zaretskii <eliz@gnu.org>
2817
2818 Fix R2L paragraph display on TTY.
2819
2820 * xdisp.c (unproduce_glyphs): New function.
2821 (display_line): Use it when produced glyphs are discarded from R2L
2822 glyph rows.
2823 (append_composite_glyph): In R2L rows, prepend the glyph rather
2824 than appending it.
2825
2826 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2827 rather than append it. Set up the resolved_level and bidi_type
2828 attributes of the appended glyph.
2829 (produce_special_glyphs): Mirror the backslash continuation
2830 character in R2L lines.
2831
2832 Implement display of R2L paragraphs in GUI sessions.
2833
2834 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2835 append_stretch_glyph.
2836 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2837 off-by-one error in computing x at end of text in the row.
2838 (append_stretch_glyph): In reversed row, prepend the glyph rather
2839 than append it. Set resolved_level and bidi_type of the glyph.
2840 (extend_face_to_end_of_line): If the row is reversed, prepend a
2841 stretch glyph whose width is such that the rightmost glyph will be
2842 drawn at the right margin of the window. Fix off-by-one error on
2843 TTY frames in testing whether a line needs face extension. Fix
2844 face extension at ZV. If this is the last glyph row, use
2845 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2846 region face.
2847 (set_cursor_from_row, display_line): Use
2848 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2849 row->continuation_lines_width.
2850 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2851 are at ZV. Fixes a crash when reseated to ZV by
2852 try_window_reusing_current_matrix.
2853 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2854 which happens with R2L glyph rows. Fixes a crash when inserting a
2855 character at end of an R2L line.
2856 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2857 treat them as having zero-width characters. Improve comments.
2858 Don't reverse pos_before and pos_after for reversed glyph rows.
2859 Set cursor.x to negative value when the cursor might be on the
2860 left fringe.
2861 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2862 left fringe, not the right one.
2863 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2864 (erase_phys_cursor): For reversed cursor_row, support cursor on
2865 the left fringe.
2866
2867 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2868 of continuation indicators on the fringes.
2869 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2870 left fringe.
2871
2872 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2873 draw cursor on the left fringe.
2874
2875 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2876 cursor on the left fringe.
2877
2878 * dispnew.c (update_text_area): Handle reversed desired rows when
2879 the cursor is on the left fringe.
2880 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2881 below, not by 0, for when the cursor is on the left fringe.
2882
2883 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2884
2885 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2886 widget is a scrollbar.
2887
2888 2010-04-20 Kenichi Handa <handa@m17n.org>
2889
2890 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2891 only when the arg CHARSET_LIST is nil.
2892
2893 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2894
2895 Make variable forwarding explicit rather the using special values.
2896 Basically, this makes the structure of buffer-local values and object
2897 forwarding explicit in the type of Lisp_Symbols rather than use
2898 special Lisp_Objects for that. This tends to lead to slightly more
2899 verbose code, but is more C-like, simpler, and makes it easier to make
2900 sure we handled all cases, among other things by letting the compiler
2901 help us check it.
2902 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2903 Removing forwarding objects.
2904 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2905 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2906 explicit rather than hiding them inside Lisp_Object "values".
2907 (XFWDTYPE): New macro.
2908 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2909 (XBUFFER_LOCAL_VALUE): Remove.
2910 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2911 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2912 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2913 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2914 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2915 Remove the Lisp_Misc_* header.
2916 (struct Lisp_Buffer_Local_Value): Redefine.
2917 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2918 (struct Lisp_Misc_Any): Add filler to get the right size.
2919 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2920 Lisp_Intfwd.
2921 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2922 (DEFVAR_KBOARD): Allocate a forwarding object.
2923 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2924 (let_shadows_global_binding_p): New function.
2925 (union Lisp_Val_Fwd): New type.
2926 (make_blv): New function.
2927 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2928 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2929 (swap_in_symval_forwarding, find_symbol_value, Fset)
2930 (let_shadows_buffer_binding_p, set_internal, default_value)
2931 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2932 (Fkill_local_variable, Fmake_variable_frame_local)
2933 (Flocal_variable_p, Flocal_variable_if_set_p)
2934 (Fvariable_binding_locus):
2935 * xdisp.c (select_frame_for_redisplay):
2936 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2937 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2938 * frame.c (store_frame_param):
2939 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2940 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2941 value structure.
2942 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2943 (clone_per_buffer_values): Only adjust markers into the current buffer.
2944 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2945 (Fbuffer_local_value, set_buffer_internal_1)
2946 (swap_out_buffer_local_variables):
2947 Adapt to the new symbol value structure.
2948 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2949 (defvar_per_buffer): Take a new arg for the fwd object.
2950 (buffer_lisp_local_variables): Return a proper alist (different fix
2951 for bug#4138).
2952 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2953 (Fgarbage_collect): Don't handle buffer_defaults specially.
2954 (mark_object): Handle new symbol value structure rather than the old
2955 special Lisp_Misc_* objects.
2956 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2957 * term.c (set_tty_color_mode):
2958 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2959 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2960 a buffer_local_flags.
2961 * print.c (print_object): Get rid of impossible forwarding objects.
2962
2963 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2964
2965 * bidi.c (bidi_get_type, bidi_get_category)
2966 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
2967 (bidi_type_of_next_char, bidi_level_of_next_char):
2968 Declare static. Use `INLINE' rather than `inline'.
2969
2970 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
2971
2972 * dired.c (Ffile_attributes): Fix typo in docstring.
2973
2974 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2975
2976 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2977 NSInteger (Bug#5811).
2978
2979 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2980
2981 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2982 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2983
2984 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2985
2986 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2987
2988 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
2989
2990 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2991 terminal frames (Bug#5837).
2992
2993 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2994
2995 * .gdbinit (xsubchartable): New command.
2996
2997 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2998
2999 * xdisp.c (display_line): Don't write beyond the last glyph row in
3000 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3001 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3002 and
3003 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3004
3005 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3006
3007 * alloc.c (Fpurecopy): Hash-cons if requested.
3008 (syms_of_alloc): Update purify-flag docstring.
3009
3010 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3011
3012 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3013 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3014
3015 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3016
3017 Fix a crash when an NSM character is inserted at BEGV.
3018
3019 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3020 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3021 NEUTRAL_B or UNKNOWN_BT.
3022
3023 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3024
3025 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3026 other rows with cursor unless they are different from this row and
3027 this row is part of a continued line. (Bug#5943)
3028
3029 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3030
3031 * s/freebsd.h: Restore osreldate.h include.
3032 Suggested by Naohiro Aota.
3033
3034 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3037
3038 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3039
3040 * s/cygwin.h: Avoid linking against static libgcc.
3041
3042 2010-04-15 Juri Linkov <juri@jurta.org>
3043
3044 * window.c: Add Qscroll_command.
3045 Remove Vscroll_preserve_screen_position_commands.
3046 (window_scroll_pixel_based, window_scroll_line_based): Check the
3047 `scroll-command' property on the last command instead of searching
3048 the last command in Vscroll_preserve_screen_position_commands.
3049 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3050 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3051 (scroll-preserve-screen-position): Doc fix.
3052 (Vscroll_preserve_screen_position_commands): Remove variable.
3053
3054 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3055
3056 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3057
3058 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3059
3060 Reduce cpp use in Makefile.in.
3061 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3062 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3063 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3064 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3065 (CRT0_COMPILE): Remove, inline it in the only user.
3066
3067 2010-04-14 Juri Linkov <juri@jurta.org>
3068
3069 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3070 `scroll-up-command' and `M-v' from `scroll-down' to
3071 `scroll-down-command'.
3072
3073 2010-04-14 Juri Linkov <juri@jurta.org>
3074
3075 * window.c (Vscroll_preserve_screen_position_commands): New variable
3076 with the default value as the list of Qscroll_down and Qscroll_up.
3077 (window_scroll_pixel_based, window_scroll_line_based): Search the
3078 last command in the list Vscroll_preserve_screen_position_commands
3079 instead of comparing with Qscroll_up and Qscroll_down.
3080
3081 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3082
3083 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3084 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3085 does that.
3086
3087 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3088 to zero.
3089
3090 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3091
3092 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3093
3094 Try to solve the problem of spurious EOF chars in long lines of text
3095 sent to interactive subprocesses.
3096 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3097 (system_process_attributes): Remove unused var `ttotal'.
3098 * process.c (send_process): Don't bother breaking long line with EOF
3099 chars when talking to ttys any more.
3100 (wait_reading_process_output): Output a warning when called in such
3101 a way that it could block without being interruptible.
3102
3103 Try to detect file modification within the same second.
3104 * buffer.h (struct buffer): New field modtime_size.
3105 * buffer.c (reset_buffer): Initialize it.
3106 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3107 (Fverify_visited_file_modtime): Check it.
3108 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3109 (Fset_visited_file_modtime): Set (or clear) it.
3110
3111 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3112
3113 * process.c (status_notify): Remove unused var `ro'.
3114
3115 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3116
3117 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3118 more than one visual (Bug#5938).
3119
3120 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3121
3122 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3123 Undefine.
3124
3125 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3126
3127 Remove C_SWITCH_SYSTEM_TEMACS.
3128 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3129 (malloc, realloc, free): Use emacs, not temacs for conditional
3130 definition.
3131
3132 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3133 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3134
3135 Use autoconf, not cpp for some variables.
3136 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3137 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3138 (ALL_CFLAGS): Use them as make variables.
3139 (really-lwlib, really-oldXMenu): Do not pass them.
3140
3141 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3142
3143 * xmenu.c (apply_systemfont_to_dialog): New.
3144 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3145
3146 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3147
3148 * process.c (exec_sentinel): Preserve current-buffer.
3149
3150 * process.c (read_process_output): Move the save-current-buffer to
3151 apply to both the filter and the non-filter branches.
3152
3153 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3154
3155 * s/msdos.h (UNEXEC): New definition.
3156
3157 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3158
3159 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3160 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3161
3162 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3163 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3164 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3165 TRY_WINDOW_CHECK_MARGINS.
3166
3167 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
3168 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3169 width only when it is for padding.
3170
3171 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3172
3173 * xfns.c (Fx_show_tip): Call try_window in a loop until
3174 fonts_changed_p is zero (Bug#2423).
3175
3176 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3177
3178 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3179 the end of TEXT_AREA. (Bug#5856)
3180
3181 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3182
3183 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3184 HAVE_GCONF.
3185
3186 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3187
3188 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3189 prev.orig_type, for resolving type of NSM. (Bug#5858)
3190
3191 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3192
3193 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3194 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3195 in current_font.
3196 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3197 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3198 New functions.
3199 (syms_of_xsettings): Initialize current_font.
3200 defsubr Sfont_get_system_normal_font.
3201
3202 * xsettings.h (Ffont_get_system_normal_font,
3203 xsettings_get_system_normal_font): Declare.
3204
3205 * xfns.c (extern xlwmenu_default_font): Remove.
3206 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3207 to xlwmenu.c.
3208
3209 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3210 menu items in UTF-8.
3211
3212 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3213 (apply_systemfont_to_menu): New function.
3214 (set_frame_menubar, create_and_show_popup_menu): Call
3215 apply_systemfont_to_menu.
3216
3217 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3218
3219 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3220 FRAME_LINE_TO_PIXEL_Y.
3221
3222 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3223 pixelwidth/height.
3224
3225 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3226
3227 Simplify code for HP machines.
3228 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3229 for GNU_LINUX, not needed.
3230 (UNEXEC, NEED_BSDTTY): Move definitions...
3231 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3232
3233 * m/iris4d.h (UNEXEC): Move definition ...
3234 * s/irix6-5.h (UNEXEC): ... here.
3235
3236 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3237
3238 * xfns.c (set_machine_and_pid_properties): New function.
3239 (Fx_create_frame): Call set_machine_and_pid_properties.
3240
3241 2010-04-03 Eli Zaretskii <eliz@gnu.org>
3242
3243 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3244 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3245 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3246
3247 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3248 in this function. (Bug#5703)
3249
3250 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
3251
3252 * nsterm.h: Fix last change.
3253
3254 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3255
3256 * m/intel386.h (NO_REMAP): Move definition ...
3257 * s/msdos.h (NO_REMAP): ... here.
3258
3259 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3260
3261 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3262 used on those platforms.
3263
3264 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3265
3266 Remove extern errno declarations.
3267 * xterm.c:
3268 * xrdb.c:
3269 * w32term.c:
3270 * unexec.c:
3271 * unexaix.c:
3272 * sysdep.c:
3273 * process.c:
3274 * lread.c:
3275 * keyboard.c:
3276 * floatfns.c:
3277 * filelock.c:
3278 * fileio.c:
3279 * emacs.c (main):
3280 * ecrt0.c:
3281 * dispnew.c:
3282 * callproc.c:
3283 * buffer.c: Remove errno extern declarations.
3284 * s/netbsd.h (NEED_ERRNO): Remove.
3285
3286 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3287
3288 Remove all uses of LIBX11_SYSTEM.
3289 * Makefile.in (LIBX11_SYSTEM): Remove.
3290 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3291 instead.
3292
3293 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3294
3295 Remove support for DJGPP v1.x (bug#5813).
3296
3297 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
3298 * s/msdos.h:
3299 * unexec.c (make_hdr, copy_text_and_data):
3300 * sysdep.c (wait_for_termination, sys_subshell):
3301 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
3302 (IT_set_terminal_modes, __write, _rename, gethostname)
3303 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3304 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3305 the value of __DJGPP__.
3306 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3307 compatibility code.
3308 * lread.c:
3309 * gmalloc.c (memalign):
3310 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3311 * emacs.c (main):
3312 * dosfns.c (init_dosfns):
3313 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3314
3315 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3316
3317 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3318 string with `cursor' property comes from an `after-string'
3319 overlay. (Bug#5816)
3320
3321 2010-04-01 Glenn Morris <rgm@gnu.org>
3322
3323 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3324 Define as Makefile variables.
3325 (LIBX): Use above variables rather than directly using autoconf.
3326
3327 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3328
3329 Clean up BSD_SYSTEM use.
3330 * xterm.c:
3331 * process.c:
3332 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3333 for including <sys/ioctl.h>.
3334 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3335 code is only used for MSDOS.
3336
3337 2010-03-31 Juri Linkov <juri@jurta.org>
3338
3339 * image.c: Add `Qextension_data'.
3340 (syms_of_image): Initialize and staticpro `Qextension_data'.
3341 (Fimage_metadata): Rename from `Fimage_extension_data'.
3342 (gif_load): Put GIF extension data to the property
3343 `Qextension_data'.
3344
3345 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3346
3347 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3348 * nsterm.h: Fix prototype.
3349
3350 2010-03-31 Eli Zaretskii <eliz@gnu.org>
3351
3352 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3353 trailing whitespace in right-to-left rows.
3354
3355 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3356
3357 Get rid of the direct_output optimizations.
3358 * keyboard.c (nonundocount): Remove extern declaration.
3359 (command_loop_1): Remove brittle optimisation for cheap and
3360 common operations.
3361 * xdisp.c (redisplay_internal): Don't bother checking
3362 redisplay_performed_directly_p any more.
3363 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3364 any more.
3365 * dispnew.c (redisplay_performed_directly_p)
3366 (direct_output_for_insert, direct_output_forward_char):
3367 * dispextern.h (redisplay_performed_directly_p)
3368 (direct_output_for_insert, direct_output_forward_char): Remove.
3369 * cmds.c (nonundocount): Make it static.
3370
3371 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
3372
3373 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3374
3375 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
3376
3377 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3378 invisible (Bug#5766).
3379
3380 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
3381
3382 * xdisp.c (x_consider_frame_title, update_window_cursor):
3383 Remove HAVE_NS conditionals.
3384 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
3385
3386 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3387 filename for the title.
3388 (ns_set_doc_edited): Do nothing if the selected window is a
3389 minibuffer window.
3390
3391 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3392 ns_set_doc_edited.
3393
3394 * nsterm.m: Remove unneeded prototype.
3395
3396 2010-03-31 Glenn Morris <rgm@gnu.org>
3397
3398 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3399 in the DOC file. (Bug#5336)
3400
3401 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3402
3403 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3404
3405 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3406
3407 * window.c (keys_of_window): Remove redundant/overridden bindings.
3408
3409 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3410
3411 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3412 Restore original behavior when the iterator is not bidi_p.
3413
3414 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3415
3416 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3417
3418 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3419
3420 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3421 are outside the range of cached character positions.
3422
3423 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
3424
3425 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3426
3427 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3428
3429 Initial support for bidirectional editing.
3430
3431 * Makefile.in (obj): Include bidi.o.
3432 (bidi.o): New target.
3433
3434 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3435 ($(BLD)/bidi.$(O)): New target.
3436
3437 * bidi.c: New file.
3438
3439 * buffer.h (struct buffer): New members bidi_display_reordering
3440 and bidi_paragraph_direction.
3441
3442 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3443 and bidi_paragraph_direction.
3444 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3445 and bidi-paragraph-direction.
3446 (Fbuffer_swap_text): Swap the values of
3447 bidi_display_reordering and bidi_paragraph_direction.
3448
3449 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3450 (bidi_type_t, bidi_dir_t): New types.
3451 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3452 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3453 prev_stop, base_level_stop, and eol_pos.
3454 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3455 (IT_STACK_SIZE): Enlarge to 5.
3456 (struct glyph_row): New member reversed_p.
3457 <string_buffer_position>: Update prototype.
3458 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3459 glyph_row if bidi_it.paragraph_dir == R2L.
3460 (struct glyph): New members resolved_level and bidi_type.
3461
3462 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3463 processing or buffer's direction is right-to-left.
3464 (prepare_desired_row): Preserve the reversed_p flag.
3465 (row_equal_p): Compare the reversed_p attributes as well.
3466
3467 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3468 bidi_init_it and set it->paragraph_embedding from the current
3469 buffer's value of bidi_paragraph_direction.
3470 (reseat_1): Initialize bidi_it.first_elt.
3471 (set_iterator_to_next, next_element_from_buffer): Use the value of
3472 paragraph_embedding to determine the paragraph direction.
3473 (set_iterator_to_next): Under bidi reordering, call
3474 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3475 new_paragraph flag is set in the bidi iterator.
3476 (next_element_from_buffer): If bidi_it.first_elt is set,
3477 initialize paragraph direction and find the first character to
3478 display in the visual order. If reseated to a middle of a line,
3479 prime the bidi iterator starting at the line's beginning. Handle
3480 the situation where we overstepped stop_charpos due to
3481 non-linearity of the bidi iteration. Likewise for when we back up
3482 beyond the previous stop_charpos. When moving across stop_charpos,
3483 record it in prev_stop.
3484 (display_line): Set row->end and it->start for the next row to the
3485 next character in logical order. Always extend reversed_p rows to
3486 the end of line, even if they end at ZV. Copy the reversed_p flag
3487 to the next glyph row. Keep calling set_cursor_from_row for
3488 bidi-reordered rows even if we already have a possible candidate
3489 for cursor position. Set row_end after all the row's glyphs have
3490 been produced, by looping over the glyphs. Record the position
3491 after EOL in it->eol_pos, and use it to set end_pos of the last
3492 row produced for a continued line.
3493 <Qright_to_left, Qleft_to_right>: New variables.
3494 (syms_of_xdisp): Initialize and staticpro them.
3495 (string_buffer_position_lim): New function.
3496 (string_buffer_position): Most of code moved to
3497 string_buffer_position_lim. Last argument and return value are
3498 now EMACS_INT; all callers changed.
3499 (set_cursor_from_row): Rewritten to support bidirectional text and
3500 reversed glyph rows.
3501 (text_outside_line_unchanged_p, try_window_id): Disable
3502 optimizations if we are reordering bidirectional text and the
3503 paragraph direction can be affected by the change.
3504 (append_glyph, append_composite_glyph)
3505 (produce_image_glyph, append_stretch_glyph): Set the
3506 resolved_level and bidi_type members of each glyph.
3507 (append_glyph): If the glyph row is reversed, prepend the glyph
3508 rather than appending it.
3509 (handle_stop_backwards): New function.
3510 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3511 (reseat): call handle_stop_backwards to recompute prev_stop and
3512 base_level_stop for the new position.
3513 (handle_invisible_prop): Under bidi iteration, skip invisible text
3514 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3515 paragraph direction. Update IT->prev_stop after skipping
3516 invisible text.
3517 (move_it_in_display_line_to): New variables prev_method
3518 and prev_pos. Compare for strict equality in
3519 BUFFER_POS_REACHED_P.
3520 (try_cursor_movement): Examine all the candidate rows that occlude
3521 point, to return the best match. If rows are bidi-reordered
3522 and point moved backwards, back up to the row that is not a
3523 continuation line, and start looking for a suitable row from
3524 there.
3525
3526 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3527 rather than appending, if the glyph_row's reversed_p flag is set.
3528 Set the resolved_level and bidi_type members of each glyph.
3529
3530 * .gdbinit (pbiditype): New command.
3531 (pgx): Use it to display bidi level and type of the glyph.
3532 (pitx): Display some bidi information about the iterator.
3533 (prowlims, pmtxrows): New commands.
3534
3535 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3536
3537 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3538 * s/usg5-4.h (LIBS_DEBUG):
3539 * s/irix6-5.h (C_DEBUG_SWITCH):
3540 * s/gnu-linux.h (LIBS_DEBUG):
3541 * s/darwin.h (LIBS_DEBUG):
3542 * s/bsd-common.h (LIBS_DEBUG):
3543 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3544 * m/iris4d.h (LIBS_DEBUG):
3545 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3546
3547 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3548 (LIBS_DEBUG): Remove definition.
3549
3550 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3553 Windows.
3554
3555 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3556
3557 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3558 `connect' (Bug#5723).
3559
3560 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
3561
3562 * process.c (Fmake_network_process): Call `select' for interrupted
3563 `connect' rather than creating new socket (Bug#5173).
3564
3565 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
3566
3567 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3568
3569 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3570
3571 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3572
3573 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3574
3575 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3576 XLoadQueryFont.
3577
3578 2010-03-24 Kenichi Handa <handa@m17n.org>
3579
3580 * coding.c (decode_coding_ccl): Fix previous change for the
3581 multibyte case.
3582 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3583 case that the output buffer is fullfilled.
3584 (encode_coding): Setup ccl program here.
3585
3586 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3587
3588 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3589
3590 Simplify LIBS_MACHINE definitions.
3591 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3592 * m/iris4d.h (LIBS_MACHINE): Likewise.
3593 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3594 * s/aix4-2.h (LIBS_SYSTEM): ... here.
3595 * s/netbsd.h: Remove commented out code.
3596
3597 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3598
3599 Remove dead code dealing with POSIX_SIGNALS.
3600 * atimer.c (set_alarm): Remove dead code, all USG systems define
3601 POSIX_SIGNALS.
3602 * data.c (arith_error): Likewise.
3603 * keyboard.c (input_available_signal, handle_user_signal)
3604 (interrupt_signal): Likewise.
3605 * process.c (sigchld_handler): Likewise.
3606 (create_process): Remove if 0 code. Remove HPUX conditional when
3607 !defined (POSIX_SIGNALS), it cannot be true.
3608 * syssignal.h: Remove USG5_4 and USG conditionals when
3609 !POSIX_SIGNALS, they cannot be true.
3610
3611 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3612 NO_SOCK_SIGIO, not used anymore.
3613
3614 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3615
3616 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3617 support vax on BSDs.
3618
3619 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3620 * s/aix4-2.h (ORDINARY_LINK): ... here.
3621
3622 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3623
3624 * Makefile.in (abs_builddir): Define.
3625 (bootstrap_exe): Use it.
3626 (VPATH): Use $(srcdir) instead of @srcdir@.
3627
3628 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3629
3630 * Makefile.in (bootstrap_exe): Use an absolute name.
3631
3632 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3633
3634 Remove support for old GNU/Linux using libc version 5.
3635 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3636 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3637
3638 Consolidate redundant definitions in s/bsd-common.h.
3639 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3640 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3641 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3642 doing it in all files that include this one.
3643 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3644 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3645 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3646 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3647 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3648 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3649 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3650 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3651 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3652
3653 Consolidate redundant definitions.
3654 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3655 it's undefined in all files that include this one.
3656 (POSIX_SIGNALS): Define here instead of doing it in all files that
3657 include this one.
3658 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3659 (POSIX_SIGNALS): Do not define.
3660 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3661 (POSIX_SIGNALS): Do not define.
3662 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3663 (POSIX_SIGNALS): Do not define.
3664
3665 Remove support for old UNIX System V systems.
3666 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3667 * s/usg-5-4-2.h: Remove.
3668
3669 Remove support for Solaris on PPC and for old versions.
3670 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3671 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3672 that cancel each other.
3673 * s/sol2-3.h:
3674 * s/sol2-4.h:
3675 * s/sol2-5.h: Remove.
3676 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3677 (NO_REMAP): Remove, unused.
3678 (UNEXEC): Move definition ...
3679 * s/aix4-2.h (UNEXEC): ... here.
3680
3681 * s/openbsd.h: Remove support for non-ELF and for systems that do
3682 not support shared libraries.
3683 * s/netbsd.h:
3684 * s/freebsd.h: Likewise.
3685
3686 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3687
3688 Remove non-working support for lynxos 3.0.
3689 * s/lynxos.h: Remove file.
3690
3691 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3692 COFF_BSD_SYMBOLS, nothing defines it anymore.
3693
3694 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3695
3696 Remove obsolete uses of HAVE_SHM.
3697 * emacs.c (standard_args):
3698 (Fdump_emacs):
3699 (syms_of_emacs): Remove code depending on HAVE_SHM.
3700
3701 * alloc.c: Remove HAVE_SHM dependent definition.
3702
3703 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3704
3705 2010-03-18 Glenn Morris <rgm@gnu.org>
3706
3707 * emacs.c (USAGE4): Hard-code bug address.
3708 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3709 (bug_reporting_address): Remove.
3710 (main): Don't call bug_reporting_address.
3711
3712 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3713 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3714
3715 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * xfns.c (Fx_create_frame):
3718 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3719 on left.
3720
3721 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3722
3723 * editfns.c (Fformat): Account for string precision when computing
3724 field width (Bug#5710).
3725
3726 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
3727
3728 * xfns.c (Fx_create_frame): Set default to Qright.
3729
3730 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3731 all window systems.
3732
3733 2010-03-12 Eli Zaretskii <eliz@gnu.org>
3734
3735 These changes remove termcap.c from the build on Posix platforms.
3736 * Makefile.in (termcapobj): Move termcap.o from here...
3737 (MSDOS_OBJ): ...to here.
3738 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3739 now identical to when LIBS_TERMCAP is defined.
3740
3741 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3742
3743 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3744
3745 * config.in: Regenerated. (See top-level ChangeLog.)
3746
3747 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
3748
3749 * Branch for 23.2.
3750
3751 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3752
3753 Cleanup setup of gl_state in various parts of the code.
3754 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3755 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3756 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3757 (skip_chars):
3758 * regex.c (regex_compile): Use it.
3759 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3760 it's now set in regex_compile when/if we need it.
3761
3762 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3765 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3766 (QUIT): Use it to consolidate code and remove redundancy.
3767 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3768
3769 * regex.c (regex_compile): Setup gl_state as well.
3770
3771 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3772 (in_classes): Use CONSP before XCAR/XCDR.
3773
3774 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
3775
3776 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3777 definitions, so that keyboard macros are correctly handled
3778 (Bug#5481).
3779
3780 2010-03-02 Eli Zaretskii <eliz@gnu.org>
3781
3782 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3783 text that could be relocated inside the call to emacs_mule_char.
3784 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3785 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3786
3787 2010-03-02 Kenichi Handa <handa@m17n.org>
3788
3789 * character.c (parse_str_as_multibyte): Fix handling of the
3790 multibyte form of raw-bytes.
3791 (str_as_multibyte): Likewise.
3792
3793 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3794 form of raw-bytes.
3795
3796 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
3797
3798 * charset.c (load_charset_map_from_file)
3799 (load_charset_map_from_vector): Zero out allocated
3800 charset_map_entries before using them.
3801
3802 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3803
3804 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3805
3806 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
3807
3808 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3809 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
3810
3811 2010-02-26 Kenichi Handa <handa@m17n.org>
3812
3813 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3814
3815 * xdisp.c (reseat_to_string): Fix previous change.
3816
3817 2010-02-26 David Reitter <david.reitter@gmail.com>
3818
3819 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3820 Lisp_Object (Bug#4736).
3821
3822 2010-02-25 Kenichi Handa <handa@m17n.org>
3823
3824 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3825
3826 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3827
3828 * xterm.c (XTflash): Move declarations before statements.
3829
3830 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3831 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3832 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3833 (xg_create_tool_bar): Remove unused variables.
3834 (x_wm_set_size_hint): Move declarations before statements.
3835 (xg_create_frame_widgets): Remove variable grav.
3836
3837 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
3838
3839 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3840
3841 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3842
3843 * term.c (fatal): Add a final \n if needed (bug#5596).
3844
3845 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
3846
3847 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3848
3849 2010-02-18 Glenn Morris <rgm@gnu.org>
3850
3851 * callint.c (Finteractive): Doc fix.
3852
3853 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3854
3855 * coding.c (record_conversion_result):
3856 Handle CODING_RESULT_INSUFFICIENT_DST.
3857 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3858 memory allocation error.
3859
3860 2010-02-17 Kenichi Handa <handa@m17n.org>
3861
3862 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3863 Fix for the case that the output buffer is fullfilled.
3864 (decode_coding): Setup ccl program here. Keep looping when the
3865 decoder stopped because the output buffer is
3866 fullfilled (bug#5534).
3867
3868 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3869
3870 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3871
3872 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
3873 bug #5571.
3874 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
3875 overdrawn.
3876
3877 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3878
3879 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3880 doing_interact here.
3881 (ice_connection_closed): New function.
3882 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3883 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3884 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3885 returns I/O error.
3886 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3887 bug #5512.
3888
3889 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
3890
3891 * nsfont.m (nsfont_open): The system's value for the font descent
3892 is negative, so round it down to avoid clipping.
3893
3894 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
3895
3896 * charset.c (load_charset_map_from_file)
3897 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
3898 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
3899
3900 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
3901
3902 * charset.c (load_charset_map_from_file): Allocate large
3903 charset_map_entries structure on the heap rather than the stack.
3904 (Bug#5526).
3905
3906 2010-01-31 Kenichi Handa <handa@m17n.org>
3907
3908 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
3909 size in NAME is invalid, return -1 (Bug#5396).
3910
3911 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
3912
3913 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3914 <deactivated@gmail.com> (Bug#3605).
3915
3916 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
3917
3918 * fileio.c (Frename_file): Correctly rename symlinks to
3919 directories (Bug#5496).
3920
3921 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3922
3923 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3924
3925 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3926
3927 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3928
3929 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
3930
3931 * frame.c (DEFAULT_ROWS): Change default to 35.
3932
3933 * xfns.c (x_default_font_parameter): Change default XFT font to
3934 monospace-10 (Bug#3643).
3935
3936 2010-01-29 Eli Zaretskii <eliz@gnu.org>
3937
3938 * w32inevt.c (key_event): Remove unnecessary comparison of
3939 event->uChar.AsciiChar with 128.
3940
3941 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
3942
3943 * fileio.c (Frename_file): Fix last change (Bug#5487).
3944
3945 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3946
3947 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3948
3949 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3950
3951 * xfns.c (Fx_create_frame): Remove window size matching code from
3952 2010-01-15.
3953 (x_get_current_desktop, x_get_desktop_workarea): Remove.
3954
3955 2010-01-27 Jason Rumney <jasonr@gnu.org>
3956
3957 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
3958 (key_event): Use unicode for characters 128 and higher (Bug#4567).
3959
3960 2010-01-27 Kenichi Handa <handa@m17n.org>
3961
3962 * regex.c (analyse_first): Fix setting of fastmap for unibyte
3963 pattern string (Bug#4209).
3964
3965 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
3966
3967 * fileio.c (Frename_file): Call copy-directory and
3968 delete-directory for directories, in order to handle cross-device
3969 renaming (Bug#3353).
3970
3971 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3972
3973 * xfns.c (Fx_create_frame): If frame height is too big, try
3974 sizes 24 and 10. Bug #3643.
3975
3976 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3977
3978 Try and fix bug#788, hopefully for real this time.
3979 * keymap.c (shadow_lookup): Add `remap' arg.
3980 (describe_map, describe_vector): Update calls to shadow_lookup.
3981 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3982 `remapped' so this flag is applicable to `sequence'. Be careful to
3983 perform remapping during shadow_lookup check of remapped_sequences.
3984
3985 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3986
3987 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3988 png_check_sig, which has been removed in libpng 1.4.
3989
3990 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3991
3992 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3993 lacks this header file).
3994
3995 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3996
3997 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3998 as in Emacs 22.
3999
4000 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4001
4002 * lisp.h (make_pure_string): String pointer arg now points to const.
4003
4004 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4005 args now point to const.
4006
4007 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4008
4009 * lread.c (Fload): Don't treat files without .elc extension as
4010 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4011 them. (bug#5303)
4012
4013 2010-01-20 Kenichi Handa <handa@m17n.org>
4014
4015 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4016 treat the source as actual byte sequence.
4017
4018 2010-01-19 Alan Mackenzie <acm@muc.de>
4019
4020 Fix spurious before-change-functions invocation from (insert ?\n).
4021 * textprop.c (set_text_properties): Rename parameter
4022 `signal_after_change_p' to `coherent_change_p', and make the
4023 invocation of `modify_region' conditional on it.
4024
4025 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4026
4027 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4028 for debug purpose.
4029 (syms_of_xsettings): Declare xft-settings.
4030
4031 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4032
4033 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4034
4035 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4036
4037 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4038
4039 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4040
4041 * emacs.c (standard_args): Adjust arg priorities to reflect how
4042 they are processed in startup.el.
4043
4044 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4045
4046 * Makefile.in (lisp, shortlisp): Update.
4047
4048 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4049
4050 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4051 code, link the new kboard into all_kboard before running Lisp code,
4052 and protect the new terminal with GCPRO (Bug#5365).
4053 (x_term_init): Remove unused var `atom'.
4054 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4055
4056 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4057
4058 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4059 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4060 to find out usable size of the desktop. Don't make frames larger than
4061 this. Bug #3643.
4062
4063 2010-01-15 Kenichi Handa <handa@m17n.org>
4064
4065 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4066
4067 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4068
4069 * nsterm.m (Qnone): Define.
4070
4071 * nsfns.m (Qnone): Move definition to nsterm.m.
4072
4073 2010-01-14 Kenichi Handa <handa@m17n.org>
4074
4075 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4076 systems.
4077
4078 2010-01-14 Kenichi Handa <handa@m17n.org>
4079
4080 Make auto-composition work on all buffers even if they are
4081 fundamental mode.
4082
4083 * composite.c (Vauto_composition_mode): New variable.
4084 (composition_compute_stop_pos): Check Vauto_composition_mode
4085 instead of Vauto_composition_function.
4086 (composition_adjust_point, Ffind_composition_internal): Likewise.
4087 (syms_of_composite): Declare Lisp variable
4088 "auto-composition-mode" here.
4089
4090 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4093 during call to vendor-specific-keysyms (Bug#5365).
4094
4095 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4096
4097 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4098 Call SIGNAL_THREAD_CHECK (Bug#5333).
4099
4100 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4101 Call SIGNAL_THREAD_CHECK.
4102
4103 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4104
4105 Try to fix bug#5314. This is probably not the final word, tho.
4106 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4107 recent-auto-save-p as a side-effect.
4108 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4109 * buffer.c (Fkill_buffer, reset_buffer):
4110 * editfns.c (Fsubst_char_in_region):
4111 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4112 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4113
4114 2010-01-13 Kenichi Handa <handa@m17n.org>
4115
4116 Display buffer name, etc. in mode line by composing correctly.
4117
4118 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4119 STRING is not nil.
4120 (display_mode_element): Adjust for the change of
4121 decode_mode_spec and display_line.
4122 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4123 (display_string): Handle the case that STRING is non-null and
4124 LISP_STRING is not nil.
4125
4126 * xterm.c (x_draw_composite_glyph_string_foreground):
4127 Pay attention to s->face->overstrike.
4128
4129 * composite.c (composition_reseat_it): Don't check PT if STRING is
4130 non nil.
4131
4132 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4133
4134 * keyboard.c (read_char): Don't apply previous change when current
4135 buffer is unchanged by command execution.
4136
4137 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4138
4139 * keyboard.c (read_char): Return after executing from special map.
4140
4141 2010-01-12 Glenn Morris <rgm@gnu.org>
4142
4143 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4144 bug-gnu-emacs rather than emacs-pretest-bug.
4145
4146 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
4147
4148 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4149 initializing the Lisp variables that depend on them.
4150
4151 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4152
4153 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4154 Clear areas that will not be updated after change of menu bar lines.
4155 Clear the menu bar window's current matrix when the window gets empty.
4156
4157 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * intervals.h, textprop.c (extend_property_ranges): Return value
4160 and args changed. Discard properties that begin at or after the
4161 new end (Bug#5306).
4162
4163 * editfns.c (Fformat): Caller changed.
4164
4165 * nsterm.m (ns_set_default_prefs): Delete function.
4166 (syms_of_nsterm): Initialize ns_command_modifier,
4167 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4168 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4169
4170 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4171 position (Bug#4040).
4172
4173 2010-01-09 Eli Zaretskii <eliz@gnu.org>
4174
4175 * editfns.c (Ffloat_time): Doc fix.
4176
4177 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4178
4179 * xfns.c (Fx_create_frame): Don't create frame larger than display
4180 by default bug#3643.
4181
4182 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4183
4184 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4185 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4186 windows above internal border.
4187
4188 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4189 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4190 windows above internal border.
4191
4192 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4193 tool bar windows specially.
4194
4195 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4196
4197 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4198 specially.
4199 (XTflash): Take account of menu bar height.
4200
4201 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4202 specially.
4203
4204 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4205
4206 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4207 also be true before we can return early (bug #5339).
4208
4209 2010-01-06 David Reitter <david.reitter@gmail.com>
4210
4211 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4212 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4213 (Bug#3233).
4214
4215 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4216
4217 * font.c (font_open_entity): Enable chache and call cached_font_ok
4218 for the driver if defined.
4219 (QCuser_spec): New symbol.
4220 (font_spec_from_name): Save name as user-spec.
4221 (font_load_for_lface): Keep user-spec instead of name.
4222 (font_open_by_name): Save name as user-spec.
4223 (syms_of_font): Initialize QCuser_spec.
4224 (font_clear_prop): Clear name if it exists in font (bug#5157).
4225
4226 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4227 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4228 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4229
4230 * font.h (struct font_driver): Add cached_font_ok.
4231
4232 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4233
4234 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4235
4236 * xterm.c (x_new_font): Move code for setting rows/cols before
4237 resizing ...
4238 (x_set_window_size): ... to here. Bug #2568.
4239
4240 * gtkutil.c (xg_clear_under_internal_border): New function.
4241 (xg_frame_resized, xg_frame_set_char_size):
4242 Call xg_clear_under_internal_border.
4243 (xg_update_scrollbar_pos): Clear under old scroll bar position.
4244
4245 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
4246
4247 * keyboard.c (read_key_sequence): Catch keyboard switch after
4248 making a new tty frame (Bug#5095).
4249
4250 2010-01-05 Kenichi Handa <handa@m17n.org>
4251
4252 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4253
4254 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4255
4256 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4257 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4258 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4259
4260 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
4261
4262 * dbusbind.c (xd_add_watch): Improve debug message.
4263 (xd_remove_watch): Improve debug message. If DATA is the session
4264 bus, unset D-Bus session environment.
4265 (Fdbus_init_bus): Pass the bus as argument to
4266 dbus_connection_set_watch_functions. (Bug#5283)
4267
4268 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
4269
4270 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4271
4272 * lread.c (syms_of_lread): Make it clearer that these are the
4273 names of loaded files (Bug#5068).
4274
4275 * eval.c (run_hook_with_args): Handle the case where the global
4276 value has the obsolete single-function form (Bug#5026).
4277
4278 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
4279
4280 * minibuf.c (Fall_completions): Minor optimization.
4281
4282 2009-12-26 Eli Zaretskii <eliz@gnu.org>
4283
4284 * .gdbinit (pgx): Fix display of composite glyphs.
4285 Display cmp.from and cmp.to as well.
4286 (pitx): Fix last change.
4287
4288 2009-12-25 Kenichi Handa <handa@m17n.org>
4289
4290 * composite.h (composition_adjust_point): Update prototype.
4291
4292 * composite.c (composition_reseat_it): Don't make a composition
4293 spanning over point.
4294 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4295 composable characters.
4296 (composition_adjust_point): New arg NEW_PT. Callers changed.
4297
4298 * keyboard.c (command_loop_1): Force redisplay if the last point
4299 was within a composition.
4300 (adjust_point_for_property): Don't adjust point for automatic
4301 composition when called after buffer modification.
4302
4303 2009-12-19 Eli Zaretskii <eliz@gnu.org>
4304
4305 * .gdbinit (pitx): Don't use enum names, use their values.
4306 Remove reference to non-existing value GET_FROM_COMPOSITION.
4307 (pgx): Don't use enum names, use their values.
4308 (pitmethod): New helper command.
4309 (pitx): Use it to display iteration method.
4310 (pgrowit): New command.
4311
4312 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4313
4314 Update dependencies in Makefile.in.
4315
4316 * Makefile.in (alloc.o): Depend on termhooks.h.
4317 (atimer.o): Depend on blockinput.h.
4318 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4319 and frame.h.
4320 (callint.o): Depend on systime.h, coding.h, and composite.h.
4321 (callproc.o): Depend on buffer.h.
4322 (casefiddle.o): Don't depend on charset.h.
4323 (casetab.o): Depend on character.h.
4324 (ccl.o): Depend on composite.h.
4325 (chartab.o): Depend on ccl.h.
4326 (cm.o): Depend on dispextern.h.
4327 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4328 (coding.o): Don't depend on $(INTERVALS_H).
4329 (composite.o): Don't depend on dispextern.h explicitly (it's in
4330 $(INTERVALS_H)). Depend on ccl.h.
4331 (data.o): Depend on systime.h, coding.h, composite.h,
4332 dispextern.h, font.h, and ccl.h.
4333 (dired.o): Depend on composite.h.
4334 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4335 composite.h (it's in $(INTERVALS_H)).
4336 (doc.o): Depend on systime.h, coding.h, and composite.h.
4337 (editfns.o): Don't depend explicitly on dispextern.h.
4338 (emacs.o): Depend on frame.h and coding.h.
4339 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4340 (fileio.o): Depend on frame.h and commands.h. Don't depend
4341 explicitly on dispextern.h.
4342 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4343 composite.h.
4344 (fns.o): Don't depend on termhooks.h.
4345 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4346 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4347 coding.h, $(INTERVALS_H), window.h, xterm.h.
4348 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4349 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4350 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4351 fontset.h, ccl.h, and ftfont.h.
4352 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4353 (gtkutil.o): Depend on dispextern.h and composite.h.
4354 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4355 termhooks.h, and ccl.h.
4356 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4357 (intervals.o): Depend on systime.h and coding.h.
4358 (keyboard.o): Depend on composite.h and coding.h.
4359 (keymap.o): Depend on coding.h and frame.h.
4360 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4361 (macros.o): Depend on systime.h, coding.h, and composite.h.
4362 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4363 and atimer.h.
4364 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4365 dispextern.h explicitly.
4366 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4367 Don't depend explicitly on dispextern.h and composite.h.
4368 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4369 (regex.o): Don't depend on charset.h.
4370 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4371 (search.o): Don't depend explicitly on composite.h.
4372 (sound.o): Depend on atimer.h and systime.h.
4373 (syntax.o): Don't depend explicitly on composite.h.
4374 (sysdep.o): Depend on coding.h and composite.h.
4375 (term.o): Depend on xterm.h and buffer.h.
4376 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4377 (textprop.o): Don't depend on dispextern.h explicitly.
4378 (undo.o): Depend on dispextern.h.
4379 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4380 dispextern.h and composite.h explicitly.
4381 (xdisp.o): Depend on ccl.h.
4382 (xfaces.o): Depend on coding.h and ccl.h.
4383 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4384 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4385 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4386 ftfont.h.
4387 (xgselect.o): New dependency.
4388 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4389 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4390 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4391 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4392 (xsmfns.o): Depend on frame.h and dispextern.h.
4393 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4394 sysselect.h.
4395
4396 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4397
4398 * font.c (Fclear_font_cache): Pass correct cache argument to
4399 font_clear_cache.
4400
4401 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4402
4403 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4404 twice.
4405
4406 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
4407
4408 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4409 calling file-remote-p. Reported by Jim Meyering.
4410
4411 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
4412
4413 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
4414 avoid compiler warnings. (Bug #5217)
4415
4416 2009-12-14 Kenichi Handa <handa@m17n.org>
4417
4418 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4419 in 8-bit encoding.
4420
4421 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
4422
4423 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4424 tooltip windows.
4425
4426 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4427
4428 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4429 Xatom_net_window_type.
4430
4431 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4432 Xatom_net_window_type.
4433
4434 * xterm.c (my_log_handler): New function.
4435 (x_term_init): Set my_log_handler as log handler during gtk_init
4436 so we can filter out buggy messages. (Bug #5120).
4437
4438 * xterm.c (xg_scroll_callback): Parameter list changed,
4439 use parameter GtkScrollType to determine scroll/line/page.
4440 Only allow dragging if a button < 4 is grabbed (bug #5177).
4441 (xg_end_scroll_callback): New function.
4442 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4443 xg_create_scroll_bar.
4444
4445 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4446 (scroll_end_callback): Remove.
4447 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4448 button-release-event. Replace value-changed event with change-value,
4449 bug #5177,
4450 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4451 bug #5177.
4452
4453 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4454 (xg_create_scroll_bar): Add GCallback end_callback.
4455
4456 * xftfont.c (QClcdfilter): New variable.
4457 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4458 (syms_of_xftfont): Initialize QClcdfilter.
4459
4460 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4461
4462 * xsettings.c (struct xsettings): Add member seen.
4463 (parse_xft_settings): Update member seen with what we have read.
4464 Return non-zero if Xft-settings have been parsed, 0 otherwise.
4465 (apply_xft_settings): Only update Xft settings with what member seen
4466 indicates as new.
4467
4468 2009-12-12 Eli Zaretskii <eliz@gnu.org>
4469
4470 * dispextern.h (struct text_pos): Use EMACS_INT;
4471 (struct glyph): Use EMACS_INT for charpos.
4472 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4473 region_beg_charpos, region_end_charpos,
4474 redisplay_end_trigger_charpos, and also for
4475 iterator_stack_entry.end_charpos and
4476 iterator_stack_entry.stop_charpos.
4477
4478 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4479
4480 * gtkutil.c (scroll_end_callback): New function (bug #5177).
4481 (xg_create_scroll_bar): Call scroll_end_callback on button release
4482 event (bug #5177).
4483 (xg_event_is_for_scrollbar): != replaced with ==.
4484
4485 2009-12-12 Kenichi Handa <handa@m17n.org>
4486
4487 * ftfont.c (struct ftfont_info): New member matrix.
4488 (ftfont_open): Setup xftfont_info->matrix.
4489 (MFLTFontFT): New member matrix.
4490 (FLOOR, CEIL, ROUND): New macros.
4491 (ftfont_get_metrics): Handle matrix transformation.
4492 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4493
4494 * xftfont.c (struct xftfont_info): New member matrix.
4495 (xftfont_open): Setup xftfont_info->matrix.
4496
4497 2009-12-10 Kenichi Handa <handa@m17n.org>
4498
4499 * xdisp.c (append_space_for_newline): Consider face-remapping.
4500
4501 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4502
4503 * xsettings.c: Include "keyboard.h".
4504
4505 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4506
4507 Fix implicit function declarations.
4508 * cmds.c: Include "frame.h".
4509 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4510 * frame.h: Move declaration of delete_frame outside of
4511 HAVE_WINDOW_SYSTEM.
4512
4513 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4514
4515 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4516
4517 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4518 GTK builds.
4519
4520 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4521
4522 * unexelf.c (unexec): Don't search for .data twice.
4523
4524 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
4525
4526 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4527 if push failed.
4528 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4529 of push_display_prop (Bug#5000).
4530
4531 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4532 value of font_list_entities (Bug#5085).
4533
4534 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
4535
4536 Fix `string-to-number' to deal consistently with integers and floats.
4537 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4538 trailing characters, not just whitespace.
4539 (read1): Pass new arg 0 to keep old behavior.
4540 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4541 trailing chars, as it is already done for integers. Doc fixes.
4542 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4543
4544 2009-12-04 Eli Zaretskii <eliz@gnu.org>
4545
4546 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4547 Delete unused enumeration value.
4548
4549 2009-12-03 Eli Zaretskii <eliz@gnu.org>
4550
4551 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4552
4553 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4554
4555 * process.c (Fmake_network_process): Fix up the tests for
4556 "connectionless socket", so they DTRT for seqpacket sockets as well.
4557
4558 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4559
4560 * process.c (Qseqpacket): New symbol.
4561 (HAVE_SEQPACKET): New macro.
4562 (Fmake_network_process): Accept new :type `seqpacket'.
4563 (init_process): Add `seqpacket' feature when applicable.
4564 (syms_of_process): Initialize Qseqpacket.
4565
4566 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4567
4568 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4569 if entity is Qnil.
4570
4571 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4572
4573 * print.c (print_preprocess): Preprocess the key_and_value table of
4574 hashtables, even tho they're "hidden" (bug#5082).
4575
4576 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4577
4578 * frame.c (frame_make_pointer_invisible)
4579 (frame_make_pointer_visible): Declare f before statements.
4580
4581 2009-11-28 Eli Zaretskii <eliz@gnu.org>
4582
4583 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4584 omitted dependencies on lisp.h.
4585
4586 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4587
4588 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4589 is NULL.
4590
4591 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4592
4593 * frame.c (frame_make_pointer_invisible)
4594 (frame_make_pointer_visible): Just return if there isn't any selected
4595 frame.
4596
4597 * search.c (simple_search): Remove warning by making *p const.
4598
4599 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4600
4601 * xdisp.c (power_letter): Remove duplicate const.
4602
4603 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4604
4605 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4606
4607 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
4608 defaults (bug #5025).
4609
4610 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4611
4612 * insdel.c (adjust_markers_for_delete): Move it in the
4613 right direction! (bug#4803)
4614
4615 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4616
4617 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4618
4619 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4620
4621 2009-11-24 Glenn Morris <rgm@gnu.org>
4622
4623 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4624
4625 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4626
4627 * Makefile.in: Must create deps for ecrt0.o in its rule.
4628
4629 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4630 because that is what Gtk+ font dialog understands.
4631
4632 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4633 of Fcopy_sequence.
4634 (font_open_by_name): Put name given into QCname for font-object returned.
4635
4636 * frame.c (x_set_font): Save original font name as frame parameter
4637 font-parameter.
4638
4639 * xsettings.c (set_default_xft_settings): New function.
4640 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4641 is found.
4642
4643 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4644
4645 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4646 searching backwards through multibyte buffer.
4647
4648 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4649
4650 * xterm.c: #include xgselect.h.
4651 (x_initialize): Call xgselect_initialize.
4652
4653 * xsettings.c (something_changedCB): C++ comments => C comments.
4654 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4655 does that now.
4656
4657 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4658 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4659 (scroll_bar_button_cb): Remove.
4660 (create_menus): C++ comments => C comments. Don't bind grab-notify
4661 event.
4662 (xg_create_scroll_bar): Don't bind button-press-event and
4663 button-release-event.
4664
4665 * process.c: Include xgselect.h if defined (USE_GTK) ||
4666 defined (HAVE_GCONF).
4667 (wait_reading_process_output): Call xg_select for the same condition.
4668
4669 * xgselect.c (xg_select): New function to better integrate with
4670 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4671
4672 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4673
4674 * Makefile.in (XOBJ): Add xgselect.o.
4675
4676 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4677
4678 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4679 Remove ignored second argument. All callers changed.
4680 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4681 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4682 * xdisp.c (string_char_and_length): Likewise.
4683
4684 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4685
4686 * xterm.c (x_new_font):
4687 * print.c (print_object):
4688 * cmds.c (Fself_insert_command): Move declarations before statements.
4689
4690 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4691
4692 * s/cygwin.h: Remove unneeded linker flags.
4693
4694 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4695
4696 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4697
4698 * xsettings.h: Declare xsettings_get_system_font.
4699
4700 * xsettings.c (xsettings_get_system_font): New function.
4701 (init_gconf): No use initiating gconf unless we have Xft also.
4702 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4703 HAVE_GCONF.
4704
4705 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4706 add a blank entry so it doesn't collapse into nothing.
4707
4708 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4709
4710 * lread.c (Funintern): Comment out last change.
4711
4712 2009-11-19 Richard Stallman <rms@gnu.org>
4713
4714 * lread.c (Funintern): Error if symbol is t or nil.
4715
4716 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4717
4718 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4719 representation of Lisp integers.
4720 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4721
4722 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4723
4724 * lisp.h: Remove declaration of Ffont_get_system_font.
4725 * xfns.c: Move include of "xsettings.h".
4726 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4727
4728 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4729
4730 * xsettings.c (something_changedCB, Ffont_get_system_font):
4731 Check use_system_font.
4732 (syms_of_xsettings): DEFVAR font-use-system-font.
4733
4734 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4735
4736 * xfns.c (x_default_font_parameter): Remove dead assignment.
4737
4738 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4739
4740 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4741
4742 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
4743 not have FC_LCD_*. #define them if not there.
4744
4745 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
4746
4747 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4748
4749 * xterm.c (handle_one_xevent): Call xft_settings_event for
4750 ClientMessage, PropertyNotify and DestroyNotify.
4751 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4752 Call xsettings_initialize.
4753
4754 * xftfont.c (xftfont_fix_match): New function.
4755 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4756 Call xftfont_fix_match after XftFontMatch.
4757
4758 * xfont.c (xfont_driver): Initialize all members.
4759
4760 * xfns.c (x_default_font_parameter):
4761 Try font from Ffont_get_system_font.
4762 Do not get font from x_default_parameter if we got one from
4763 Ffont_get_system_font.
4764 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
4765
4766 * w32font.c (w32font_driver): Initialize all members.
4767
4768 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4769
4770 * lisp.h: Declare syms_of_xsettings.
4771
4772 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4773 Handle CONFIG_CHANGED_EVENT.
4774
4775 * ftfont.c (ftfont_filter_properties): New function.
4776
4777 * frame.c (x_set_font): Remove unused variable lval.
4778
4779 * font.h (struct font_driver): Add filter_properties.
4780
4781 * font.c (font_put_extra): Don't return if val is nil, it means
4782 boolean option is off.
4783 (font_parse_fcname): Collect all extra properties in extra_props
4784 and call filter_properties for all drivers with extra_props and
4785 font as parameter.
4786 (font_open_entity): Do not use cache, it does not pick up new
4787 fontconfig settings like hinting.
4788 (font_load_for_lface): If spec had a name in it, store it in entity.
4789
4790 * emacs.c (main): Call syms_of_xsettings.
4791
4792 * config.in: HAVE_GCONF is new.
4793
4794 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4795 xsettings.o is new.
4796
4797 2009-11-17 Kenichi Handa <handa@m17n.org>
4798
4799 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4800 back to the default font in case that no suitable font is found.
4801
4802 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4803
4804 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4805 Suggested by Chad Brown <yandros@mit.edu>.
4806 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4807
4808 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4809
4810 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4811
4812 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4813
4814 * Makefile.in: Ignore errors from mkdir when creating deps directory.
4815
4816 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4817
4818 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4819 has a parent.
4820
4821 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
4822 dependency files in deps/. Include those files into Makefile.
4823
4824 * config.in: Generated (AUTO_DEPEND).
4825
4826 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
4827
4828 * dbusbind.c (Vdbus_registered_objects_table): Rename from
4829 Vdbus_registered_functions_table, because it contains also
4830 properties. Fix docstring.
4831 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
4832
4833 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4834
4835 * alloc.c (mark_object): Don't reprocess marked strings.
4836 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4837 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4838
4839 2009-11-13 Kenichi Handa <handa@m17n.org>
4840
4841 * category.c (word_boundary_p): Adjust for the change of the
4842 semantics of Vword_combining_categories.
4843 (Vword_combining_categories): Describe the slight change of the
4844 semantics.
4845
4846 2009-11-13 Eli Zaretskii <eliz@gnu.org>
4847
4848 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4849
4850 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4851
4852 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4853
4854 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4855
4856 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
4857
4858 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4859
4860 2009-11-11 David Reitter <david.reitter@gmail.com>
4861
4862 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4863 variables to fix 2009-11-09 change.
4864
4865 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4866
4867 * process.c (ifflag_def): Make flag_sym constant.
4868 (Fnetwork_interface_info): Use a constant pointer.
4869 (ifflag_table):
4870 * xfns.c (cursor_bits):
4871 * xdisp.c (power_letter):
4872 * termcap.c (speeds, esctab):
4873 * sysdep.c (baud_convert):
4874 * keyboard.c (lispy_accent_codes, modifier_names):
4875 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4876 (jpeg_format, tiff_format, gif_format, svg_format)
4877 (interlace_start, interlace_increment, gs_format):
4878 * gtkutil.c (separator_names):
4879 * fringe.c (swap_nibble):
4880 * fns.c (base64_value_to_char, base64_char_to_value):
4881 * fileio.c (make_temp_name_tbl):
4882 * coding.c (suffixes): Make constant.
4883
4884 * frame.c (make_initial_frame):
4885 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4886 build_string.
4887 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4888
4889 * s/freebsd.h:
4890 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4891
4892 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4893 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4894
4895 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4896 * xterm.c (syms_of_xterm):
4897 * xfaces.c (syms_of_xfaces):
4898 * xdisp.c (syms_of_xdisp):
4899 * lread.c (syms_of_lread):
4900 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4901 build_string.
4902
4903 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4904
4905 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4906
4907 * fns.c (Fplist_get): Merge the active and the commented out code.
4908
4909 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4910
4911 * keyboard.h: Declare timer_check.
4912
4913 * keyboard.c (timer_check_2): New function that does what the old
4914 timer_check did.
4915 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4916 returned, i.e. don't return -1 with timers pending.
4917
4918 * process.c: Remove extern declaration of timer_check.
4919
4920 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4921 even if timer_check returned -1.
4922
4923 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4924 xg_dialog_data.
4925 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4926 the event loop.
4927 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4928 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4929 Destroy the dialog after xg_dialog_run.
4930
4931 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4932
4933 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4934
4935 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4936
4937 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4938
4939 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
4940
4941 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4942
4943 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4944
4945 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4946 w32menu.c, and nsmenu.m.
4947 Simplify the obsolete case where position is nil.
4948 (cleanup_popup_menu): New function, moved from nsmenu.m.
4949 (struct skp): Remove slot `notreal'.
4950 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4951 adjust callers.
4952 (single_menu_item): Adjust call to parse_menu_item.
4953 (syms_of_menu): Defsubr x-popup-menu.
4954 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4955 (keymap_panes): Don't export any more.
4956 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4957 (xmenu_show): Declare.
4958 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4959 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4960 * keyboard.h (parse_menu_item): Update declaration.
4961 * xmenu.c (Fx_popup_menu): Remove.
4962 (syms_of_xmenu): Don't defsubr x-popup-menu.
4963 * w32menu.c (Fx_popup_menu): Remove.
4964 (syms_of_w32menu): Don't defsubr x-popup-menu.
4965 * nsmenu.m (cleanup_popup_menu): Remove.
4966 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4967 moved to menu.c's Fx_popup_menu.
4968 (Fx_popup_menu): Remove.
4969 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4970 menu_items (it's done in menu.c already).
4971
4972 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4973
4974 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4975 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4976
4977 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
4978
4979 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
4980 xmenu_show. Hide any tooltip before opening a menu.
4981 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4982 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4983
4984 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4985
4986 Let integers use up 2 tags to give them one extra bit and thus double
4987 their range.
4988 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4989 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4990 New macros.
4991 (enum Lisp_Type): Use them. Give explicit values.
4992 (Lisp_Type_Limit): Remove.
4993 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4994 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4995 Pay attention to USE_2_TAGS_FOR_INTS.
4996 (INTEGERP): Use LISP_INT_TAG_P.
4997 * fns.c (internal_equal): Simplify the default case.
4998 (sxhash): Use case_Lisp_Int.
4999 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5000 any more.
5001 (Ftype_of): Use case_Lisp_Int.
5002 (store_symval_forwarding): Take into account the fact that Ints can
5003 now have more than one tag.
5004 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5005 buffer_slot_type_mismatch):
5006 * xfaces.c (face_attr_equal_p):
5007 * print.c (print_object):
5008 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5009 Use case_Lisp_Int.
5010
5011 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5012
5013 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5014
5015 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5016 warning.
5017
5018 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5019
5020 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5021
5022 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5023
5024 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5025 ButtonPressRelease and MotionNotify (bug#4870).
5026
5027 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5028
5029 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5030
5031 * xterm.c (syms_of_xterm):
5032 * xselect.c (syms_of_xselect):
5033 * xmenu.c (syms_of_xmenu):
5034 * xfns.c (syms_of_xfns):
5035 * xfaces.c (syms_of_xfaces):
5036 * xdisp.c (syms_of_xdisp):
5037 * window.c (syms_of_window):
5038 * w32fns.c (syms_of_w32fns):
5039 * undo.c (syms_of_undo):
5040 * textprop.c (syms_of_textprop):
5041 * terminal.c (syms_of_terminal):
5042 * syntax.c (syms_of_syntax):
5043 * sound.c (syms_of_sound):
5044 * search.c (syms_of_search):
5045 * print.c (syms_of_print):
5046 * minibuf.c (syms_of_minibuf):
5047 * macros.c (syms_of_macros):
5048 * keymap.c (syms_of_keymap, initial_define_key)
5049 (initial_define_lispy_key):
5050 * keyboard.c (syms_of_keyboard):
5051 * insdel.c (syms_of_insdel):
5052 * image.c (syms_of_image):
5053 * fringe.c (syms_of_fringe):
5054 * frame.c (syms_of_frame):
5055 * fontset.c (syms_of_fontset):
5056 * fns.c (syms_of_fns):
5057 * fns.c (syms_of_fns):
5058 * fileio.c (syms_of_fileio):
5059 * fileio.c (syms_of_fileio):
5060 * eval.c (syms_of_eval):
5061 * doc.c (syms_of_doc):
5062 * dispnew.c (syms_of_display):
5063 * dired.c (syms_of_dired):
5064 * dbusbind.c (syms_of_dbusbind):
5065 * data.c (syms_of_data):
5066 * composite.c (syms_of_composite):
5067 * coding.c (syms_of_coding):
5068 * cmds.c (syms_of_cmds):
5069 * charset.c (define_charset_internal, syms_of_character):
5070 * ccl.c (syms_of_ccl):
5071 * category.c (syms_of_category, init_category_once):
5072 * casetab.c (syms_of_casetab):
5073 * casefiddle.c (syms_of_casefiddle):
5074 * callint.c (syms_of_callint):
5075 * bytecode.c (syms_of_bytecode):
5076 * buffer.c (keys_of_buffer, syms_of_buffer):
5077 * alloc.c (syms_of_alloc):
5078 * process.c (syms_of_process, init_process):
5079 * lread.c (syms_of_lread, init_obarray):
5080 * font.c (build_style_table):
5081 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5082 intern_c_string, calls to make_pure_string with
5083 make_pure_c_string. Use pure_cons instead of Fcons.
5084
5085 * process.c (socket_options): Make it const.
5086 (set_socket_option, init_process): Use a const pointer.
5087
5088 * lread.c (intern_c_string): New function.
5089 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5090 (defvar_int): Uset it. Make the name const char*.
5091
5092 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5093 (defvar_int): Update prototypes.
5094 (DEFUN, EXFUN): Support for prototypes is now required.
5095 (intern_c_string): New prototype.
5096 (struct Lisp_Subr): Make symbol_name constant.
5097
5098 * font.c (struct table_entry): Remove unused member. Make NAMES
5099 constant.
5100 (weight_table, slant_table, width_table): Make constant.
5101
5102 * emacs.c (struct standard_args): Make name and longname constant.
5103
5104 * character.h (DEFSYM): Use intern_c_string.
5105
5106 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5107
5108 * alloc.c (make_pure_c_string): New function.
5109
5110 * eval.c (Fautoload): Purecopy all arguments.
5111
5112 2009-11-05 Kenichi Handa <handa@m17n.org>
5113
5114 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5115 the buffer in case of replace.
5116
5117 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5118
5119 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5120
5121 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5122
5123 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5124 when applicable (bug#4851).
5125
5126 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5127 (P_): Support for prototypes is now required.
5128
5129 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
5130
5131 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5132 (Bug#4827).
5133
5134 2009-10-30 Eli Zaretskii <eliz@gnu.org>
5135
5136 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5137
5138 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5139
5140 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5141
5142 * lread.c (Fload): Purecopy the file name when building
5143 Vpreloaded_file_list.
5144
5145 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5146
5147 * w32fns.c (syms_of_w32fns): Change default value of
5148 w32-scroll-lock-modifier to nil. (Bug#2827)
5149
5150 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5151
5152 * minibuf.c (Fall_completions): Fix typos in docstring.
5153
5154 2009-10-26 Andreas Schwab <schwab@redhat.com>
5155
5156 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5157
5158 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5159
5160 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5161 For delta < 0, skip check that only makes sense when the mini-window
5162 is going to be enlarged. (Bug#4534)
5163
5164 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5167 string in menu maps (Bug#4471).
5168
5169 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
5170
5171 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5172 FRAME_NS_VIEW on terminal frames (Bug#4765).
5173
5174 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5175
5176 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5177 DBUS_TYPE_UINTnn separately to get proper sign extension.
5178
5179 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5180 can properly handle unsigned types.
5181 (make_uid, make_gid): Remove.
5182
5183 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5184 types again.
5185
5186 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5187 (system_process_attributes): Likewise.
5188
5189 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5190
5191 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5192
5193 * eval.c (Fautoload): Purecopy the filename. Simplify.
5194
5195 * category.c (Fdefine_category): Purecopy docstring.
5196
5197 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5198
5199 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5200
5201 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5202
5203 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5204
5205 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5206 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5207 (Bug#4775).
5208
5209 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5210
5211 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5212 (init_fileio_once):
5213 * lisp.h (init_fileio_once): Remove.
5214 * emacs.c (main): Don't call init_fileio_once.
5215
5216 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5217
5218 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5219
5220 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5221
5222 * doprnt.c (doprnt): Fix overflow check.
5223
5224 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5225
5226 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5227
5228 * xterm.h (x_wait_for_event): Declare it.
5229
5230 * xterm.c (pending_event_wait): New variable.
5231 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5232 see pending_event_wait.eventtype.
5233 (handle_one_xevent): Don't change gravity when parent changes.
5234 (x_new_font): Call change_frame_size with new rows/columns before we
5235 try to resize the frame.
5236 (x_wait_for_event): New function.
5237 (x_set_window_size_1): Don't change gravity unless change_gravity
5238 is set.
5239 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5240 don't change frame size, instead wait for the ConfigureNotify.
5241 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5242 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5243 (x_initialize): Initialize pending_event_wait.
5244
5245 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5246 size.
5247
5248 * widget.c (EmacsFrameSetValues): Add comment.
5249 (EmacsFrameSetCharSize): Just call x_set_window_size.
5250
5251 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5252 x_wait_for_event.
5253 (flush_and_sync): Remove again.
5254 (xg_get_font_name): Suggest monospace if no previous font is known.
5255
5256 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5257
5258 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5259 8th bit, since that only made sense in the ASCII world (bug#4751).
5260
5261 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5262
5263 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5264 processing pending events when event is filtered for input method.
5265 (Bug#3681)
5266
5267 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
5268
5269 * fns.c: Add #endif accidentally removed in previous change.
5270
5271 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5272
5273 * fns.c: Remove code for unsupported system: MAC_OS.
5274 * image.c: Likewise. Include setjmp.h.
5275
5276 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5277
5278 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5279 pixel -1 (bug #4742).
5280
5281 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5282
5283 * process.c (create_pty): Remove conditionals for no longer
5284 supported systems: UNIPLUS and RTU.
5285
5286 * xterm.c:
5287 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5288
5289 * alloc.c: Do not define struct catchtag.
5290 * eval.c: Move struct catchtag definition ...
5291 * lisp.h: ... here.
5292
5293 * image.c: Move png.h #include earlier to avoid warnings.
5294
5295 * xterm.c:
5296 * xsmfns.c:
5297 * xselect.c:
5298 * xrdb.c:
5299 * xmenu.c:
5300 * xftfont.c:
5301 * xfont.c:
5302 * xfns.c:
5303 * xfaces.c:
5304 * xdisp.c:
5305 * window.c:
5306 * widget.c:
5307 * w32xfns.c:
5308 * w32uniscribe.c:
5309 * w32term.c:
5310 * w32select.c:
5311 * w32reg.c:
5312 * w32proc.c:
5313 * w32menu.c:
5314 * w32inevt.c:
5315 * w32heap.c:
5316 * w32font.c:
5317 * w32fns.c:
5318 * w32console.c:
5319 * w32.c:
5320 * w16select.c:
5321 * vm-limit.c:
5322 * unexsol.c:
5323 * unexec.c:
5324 * unexcw.c:
5325 * unexaix.c:
5326 * undo.c:
5327 * tparam.c:
5328 * textprop.c:
5329 * terminfo.c:
5330 * terminal.c:
5331 * termcap.c:
5332 * term.c:
5333 * syntax.c:
5334 * sound.c:
5335 * sheap.c:
5336 * search.c:
5337 * scroll.c:
5338 * region-cache.c:
5339 * regex.c:
5340 * ralloc.c:
5341 * process.c:
5342 * print.c:
5343 * nsterm.m:
5344 * nsselect.m:
5345 * nsmenu.m:
5346 * nsimage.m:
5347 * nsfont.m:
5348 * nsfns.m:
5349 * msdos.c:
5350 * minibuf.c:
5351 * menu.c:
5352 * marker.c:
5353 * macros.c:
5354 * keymap.c:
5355 * keyboard.c:
5356 * intervals.c:
5357 * insdel.c:
5358 * indent.c:
5359 * gtkutil.c:
5360 * ftxfont.c:
5361 * ftfont.c:
5362 * fringe.c:
5363 * frame.c:
5364 * fontset.c:
5365 * font.c:
5366 * fns.c:
5367 * floatfns.c:
5368 * filelock.c:
5369 * fileio.c:
5370 * emacs.c:
5371 * editfns.c:
5372 * dosfns.c:
5373 * doprnt.c:
5374 * doc.c:
5375 * dispnew.c:
5376 * dired.c:
5377 * dbusbind.c:
5378 * data.c:
5379 * composite.c:
5380 * coding.c:
5381 * cmds.c:
5382 * cm.c:
5383 * chartab.c:
5384 * charset.c:
5385 * character.c:
5386 * ccl.c:
5387 * category.c:
5388 * casetab.c:
5389 * casefiddle.c:
5390 * callproc.c:
5391 * callint.c:
5392 * bytecode.c:
5393 * buffer.c:
5394 * atimer.c: Include setjmp.h. (Bug#4643)
5395
5396 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5397
5398 Remove leftover table unibyte_to_multibyte_table.
5399 * character.c (unibyte_to_multibyte_table): Remove.
5400 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5401 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5402 * character.h (UNIBYTE_TO_CHAR): New macro.
5403 (MAKE_CHAR_MULTIBYTE): Use it.
5404 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5405 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5406 (message_dolog, set_message_1):
5407 * search.c (Freplace_match):
5408 * editfns.c (Fcompare_buffer_substrings):
5409 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5410 (concat):
5411 * insdel.c (copy_text, count_size_as_multibyte):
5412 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5413 * term.c (produce_glyphs):
5414 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5415 * regex.c (RE_CHAR_TO_MULTIBYTE):
5416 * cmds.c (internal_self_insert):
5417 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5418
5419 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5420
5421 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5422
5423 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5424
5425 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
5426
5427 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5428
5429 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5430
5431 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5432 still needed under Tiger.
5433
5434 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5435
5436 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5437 __Apple__.
5438
5439 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5440
5441 2009-10-15 Kenichi Handa <handa@m17n.org>
5442
5443 * print.c (print_object): Escape a symbol like "2E10" too.
5444
5445 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
5446
5447 Cleanups and changes for 64-bit compile under Snow Leopard.
5448 Based on suggestions by Erik Charlebois.
5449
5450 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5451
5452 * nsfont.m (ns_char_width): Replace deprecated call.
5453 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5454 cast argument.
5455 (nsfont_open): Use ns_char_width() everywhere.
5456 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
5457
5458 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5459
5460 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5461 where appropriate.
5462
5463 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5464 where appropriate.
5465 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5466 Use stringWithUTF8String.
5467 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5468
5469 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5470 Add formal protocol mention to inheritance.
5471 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5472
5473 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5474 Fix printf format.
5475 (ns_query_color): Use CGFloat where appropriate.
5476 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
5477 (EmacsScroller-mouseDown:): Use long format in printf, and cast
5478 argument.
5479
5480 * config.in (NS_HAVE_NSINTEGER): Drop.
5481
5482 * dbusbind.c (dbus-method-return-internal)
5483 (dbus-method-error-internal): Use long format in printf, and cast
5484 argument.
5485
5486 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5487 in printf, and cast argument.
5488
5489 * process.c (list_processes_1): Use long format in printf, and
5490 cast argument.
5491
5492 2009-10-11 Glenn Morris <rgm@gnu.org>
5493
5494 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5495
5496 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5497
5498 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5499 menu bar with a small width so it doesn't enlarge the frame.
5500
5501 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
5502
5503 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5504
5505 2009-10-06 Glenn Morris <rgm@gnu.org>
5506
5507 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5508 SOME_MACHINE_LISP (this enters indirectly via DOC).
5509
5510 2009-10-05 Eli Zaretskii <eliz@gnu.org>
5511
5512 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5513
5514 2009-10-04 Eli Zaretskii <eliz@gnu.org>
5515
5516 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5517 Doc fix.
5518
5519 2009-10-03 Martin Rudalics <rudalics@gmx.at>
5520
5521 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5522
5523 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
5524
5525 * lisp.h (Qdelete_directory_internal): Remove, because it is not
5526 used anymore outside fileio.c.
5527
5528 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5529
5530 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
5531
5532 * lisp.h (Qdelete_directory_internal):
5533 Declare, instead of Qdelete_directory.
5534
5535 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5536
5537 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5538
5539 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5540
5541 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
5542
5543 * fileio.c (Fdelete_directory_internal): Rename from
5544 Fdelete_directory. It is not a command anymore. It has no file
5545 name handler.
5546
5547 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5548
5549 * xdisp.c (get_next_display_element): Use an enum in last change.
5550
5551 2009-09-28 Kenichi Handa <handa@m17n.org>
5552
5553 * xdisp.c (get_next_display_element): Pay attention to
5554 unibyte_display_via_language_environment in handling
5555 Vnobreak_char_display.
5556
5557 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5558
5559 * nsterm.h (ns_app_name): New extern variable.
5560
5561 * nsterm.m (ns_app_name): New variable.
5562 (ns_term_init): Set and use it.
5563 (ns_term_shutdown): Use it.
5564
5565 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5566 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5567
5568 * nsfns.m (ns_set_name_iconic, ns_set_name)
5569 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5570 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5571
5572 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5573 Remove double-casting in client_data comparison.
5574
5575 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5576
5577 * keyboard.c (make_lispy_event): Remember last wheel direction.
5578 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5579
5580 2009-09-26 Glenn Morris <rgm@gnu.org>
5581
5582 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5583 internal.elc. Add term/pc-win.elc.
5584 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5585 term/x-win.elc.
5586 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5587 term/w32-win.elc.
5588 (NS_SUPPORT): New.
5589 (lisp): Add NS_SUPPORT.
5590 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5591
5592 2009-09-25 David Reitter <david.reitter@gmail.com>
5593
5594 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5595 on Mac OS X 10.6+ (bug#4513).
5596
5597 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5598
5599 * frame.c (xrdb_get_resource): Return nil for empty string resources;
5600 some parts of Emacs code (like font selection) don't grok them.
5601 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
5602
5603 2009-09-24 Andreas Schwab <schwab@redhat.com>
5604
5605 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5606
5607 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5608
5609 * dired.c (Fdirectory_files): Fix typo in docstring.
5610
5611 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5612
5613 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5614 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5615 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5616 under GNUstep.
5617 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5618
5619 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5620 glyph advancement.
5621
5622 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5623
5624 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
5625 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
5626
5627 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5628 deleted (bug #4492).
5629
5630 * nsfont.m (Vns_reg_to_script): New lisp variable.
5631 (syms_of_nsfont): Declare it.
5632 (ns_registry_to_script): New function.
5633 (ns_get_req_script): Call it.
5634 (ns_findfonts): Don't give up on non-unicode registry.
5635
5636 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5637
5638 2009-09-20 Tom Tromey <tromey@redhat.com>
5639
5640 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5641 batch mode (bug#4228).
5642
5643 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
5644
5645 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
5646 carefully. (Bug #4339)
5647
5648 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
5651
5652 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5653
5654 * emacs.c (inhibit_x_resources): Update doc string for NS.
5655 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
5656 legacy code for -NXHost. Fix error printf in daemon case.
5657
5658 * nsterm.h (ns_no_defaults): Remove.
5659
5660 * nsterm.m (ns_no_defaults): Remove.
5661 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5662 (ns_use_qd_smoothing): Remove legacy variable.
5663 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5664 don't update the NSWindow itself.
5665 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
5666 state detection and store user rect ourselves. (Bug #3581)
5667
5668 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5669 ns_use_qd_smoothing.
5670
5671 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5672 platform versions. Drop support for emacs-20-style face specs.
5673 (x-close-connection): Drop PSFlush() under OS X.
5674 (x-focus-frame): Activate the app first. (Bug #4180)
5675
5676 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
5677
5678 * emacs.c (inhibit_x_resources): New variable.
5679 (main) [HAVE_NS]: Don't process --quick command line option.
5680 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5681
5682 * lisp.h (inhibit_x_resources): Declare it extern.
5683
5684 * w32reg.c (x_get_string_resource):
5685 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5686
5687 2009-09-17 Eli Zaretskii <eliz@gnu.org>
5688
5689 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5690 Add lisp/term/internal.elc.
5691
5692 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5693
5694 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5695 (bug#4461).
5696
5697 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5698
5699 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5700
5701 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5702 (OBJECTS_MACHINE): Remove, unused.
5703
5704 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5705
5706 * frame.c (x_get_resource_string): Remove unused.
5707
5708 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5709
5710 * xterm.c (x_new_font): Call change_frame_size before calling
5711 x_set_window_size, in case frame size won't change.
5712
5713 * frame.c (x_set_font): Remove dead code.
5714
5715 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5716
5717 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5718
5719 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5720
5721 * lread.c (Fload): Don't output a message after loading an obsolete
5722 package any more (done in Lisp now).
5723
5724 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
5725
5726 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5727
5728 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5729
5730 * keymap.c (Fwhere_is_internal): Use nconc2.
5731
5732 2009-09-11 Alan Mackenzie <acm@muc.de>
5733
5734 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5735 batch mode.
5736
5737 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5738
5739 * xdisp.c (display_mode_element): Detect cycles.
5740
5741 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5742
5743 * keymap.c (where_is_internal): Don't erroneously return nil right after
5744 filling the cache.
5745 (where_is_internal_1): Fix up typo.
5746
5747 2009-09-11 Glenn Morris <rgm@gnu.org>
5748
5749 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5750 share a common doc-string.
5751
5752 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5753
5754 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5755 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5756
5757 * keymap.c (QCadvertised_binding): New constant.
5758 (syms_of_keymap): Initialize it.
5759 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5760 if applicable.
5761
5762 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5763
5764 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5765 (parse_menu_item): Streamline since bindings are recomputed all the
5766 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5767 more and don't support lmenu's menu-alias any more either.
5768
5769 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5770 (where_is_internal): Strip it down to only traverse the keymaps.
5771 Move the cache handling from Fwhere_is_internal to here.
5772 (Fwhere_is_internal): Move the handling of remapping and the choice of
5773 the best binding from where_is_internal to here.
5774 Unify the cached/noncached paths, so remapping is also handled
5775 correctly when the cache is used, and so the cache can be used to
5776 speed up remap-handling when applicable.
5777 Give preference to non-remapped bindings.
5778 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5779 non-remapped bindings.
5780 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5781 command remapping.
5782
5783 * xdisp.c (display_mode_element): Move list length limit from 50 to
5784 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5785
5786 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
5787
5788 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5789
5790 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5791
5792 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5793 (Bug#4334)
5794
5795 * keymap.c (where_is_internal): Filter out shadowed remappings.
5796 Assume that where_is_internal returns unshadowed bindings to simplify
5797 the code and get rid of the gotos. Use ASIZE.
5798
5799 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5800
5801 * xterm.c (x_focus_changed): If we get a focusout and pointer
5802 is invisible, make it visible.
5803
5804 * xterm.h: Remove condition for declaration of
5805 x_*_window_to_frame.
5806
5807 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5808
5809 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5810 initial terminal as well.
5811
5812 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5813
5814 * xterm.h: Rename x_non_menubar_window_to_frame to
5815 x_menubar_window_to_frame.
5816
5817 * xterm.c: Remove declarations also in xterm.h.
5818 (XTmouse_position): Do not return valid positions
5819 for clicks in the menubar and the toolbar for Gtk+.
5820
5821 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5822 if the widget for the event has the same top level as a frame,
5823 return the frame.
5824 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5825 internal windows, bug #4122.
5826 (x_non_menubar_window_to_frame): Remove.
5827
5828 2009-09-02 Glenn Morris <rgm@gnu.org>
5829
5830 * buffer.c (default-major-mode): Move most of the doc from here...
5831 (major-mode): ... to here.
5832
5833 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
5834
5835 * process.c (wait_reading_process_output): Keep the descriptor
5836 when pty is used by a non-child process, e.g., in I/O buffer of
5837 GDB this allows inferior to be restarted.
5838
5839 2009-08-29 Eli Zaretskii <eliz@gnu.org>
5840
5841 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5842 both branches into one.
5843
5844 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5845
5846 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5847 (main): Use enable-multibyte-characters rather than
5848 default-enable-multibyte-characters. Output a warning message when
5849 running a unibyte session.
5850
5851 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5852
5853 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5854 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5855 (copy_data_segment): Also copy __program_vars section.
5856 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5857 (dump_it) [LC_DYLD_INFO]: Use it.
5858
5859 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5860
5861 2009-08-28 Eli Zaretskii <eliz@gnu.org>
5862
5863 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5864 $(SRC)/buildobj.h.
5865 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5866 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5867 $(SRC)/buildobj.h.
5868 (clean): Add buildobj.h.
5869
5870 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5871
5872 * print.c (print_object): Set escapeflag to 1 when printing
5873 hashtable keys and values.
5874
5875 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5876
5877 * lread.c (read_integer): Use doubles (and potentially return a float
5878 number) as we do in string-to-number.
5879 (read1): Use strtol to read integers, signal errors on strtol's
5880 overflow and use floats if strtol's output is too large for
5881 Elisp integers.
5882
5883 2009-08-27 Eli Zaretskii <eliz@gnu.org>
5884
5885 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5886 (make-buildobj-SH): Fix last change.
5887 (SRC): Move to before where it's first used.
5888
5889 2009-08-27 Kenichi Handa <handa@m17n.org>
5890
5891 * process.c (send_process): Use encode_coding_object instead of
5892 encode_coding_string to perform eol-conversion even if the string
5893 is unibyte.
5894
5895 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5896 character.
5897
5898 * cmds.c (Fself_insert_command): Avoid unnecessay
5899 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
5900
5901 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5902
5903 * callproc.c (Fcall_process): Remove always true #if.
5904
5905 * lisp.h: Replace #if 0 code for checking with text pointing to
5906 the --enable-checking configure flag.
5907
5908 * emacs.c (main): Mention the --enable-profiling configure flag
5909 instead of using CFLAGS.
5910
5911 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
5912
5913 * Makefile.in (buildobj.h): New target.
5914 (doc.o): Depend on it.
5915 (temacs${EXEEXT}): Don't generate buildobj.lst.
5916 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5917 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5918 ($(BLD)/doc.$(O)): Depend on it.
5919 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5920 provided by Eli Zaretskii.)
5921 ($(TEMACS)): Don't generate buildobj.lst.
5922 * doc.c: Include buildobj.h.
5923 (buildobj): New static variable.
5924 (Fsnarf_documentation): Use it, instead of opening and reading
5925 buildobj.lst.
5926
5927 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
5928
5929 * dbusbind.c (Fdbus_call_method)
5930 (Fdbus_call_method_asynchronously): Use English numeric format for
5931 timeout values in doc string.
5932
5933 2009-08-25 Kenichi Handa <handa@m17n.org>
5934
5935 * alloc.c (mark_char_table): New function.
5936 (mark_object): Use mark_char_table for a char-table.
5937
5938 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5939 (CHAR_TABLE_REF): Use it.
5940
5941 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
5942
5943 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5944 before invoking the newly build emacs to check for load-path
5945 shadowing.
5946
5947 2009-08-22 Glenn Morris <rgm@gnu.org>
5948
5949 * Makefile.in (bootstrap_exe): New variable.
5950 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5951 Use ${bootstrap_exe}.
5952
5953 2009-08-22 Eli Zaretskii <eliz@gnu.org>
5954
5955 * coding.h (encode_coding_string): Don't encode unibyte strings.
5956 (Bug#4047)
5957
5958 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
5959
5960 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5961
5962 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5963 intended as hotfix only.
5964 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5965
5966 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5967
5968 * nsterm.m (ns_get_color): Update documentation properly for last
5969 change, and clean up loose ends in the code left by it. Fix
5970 longstanding bug with 16-bit hex parsing, and add support for
5971 yet another X11 format (rgb:r/g/b) for compatibility.
5972 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5973 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5974
5975 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5976
5977 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5978
5979 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
5980
5981 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5982 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5983 (xd_initialize, xd_pending_messages): Check, whether
5984 $DBUS_SESSION_BUS_ADDRESS is set.
5985
5986 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5987
5988 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5989
5990 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5991
5992 2009-08-20 Glenn Morris <rgm@gnu.org>
5993
5994 * emacs.c (system-type): Doc fix.
5995
5996 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5997
5998 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5999 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6000
6001 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6002
6003 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6004 New functions.
6005 (xd_initialize): Revert change from 2009-08-16.
6006
6007 2009-08-18 Kenichi Handa <handa@m17n.org>
6008
6009 * fontset.c (Ffontset_font): If a nil element is found in a
6010 font-group vector, return nil.
6011
6012 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * process.c (status_notify): Don't perform redisplay.
6015 (Fdelete_process, list_processes_1, process_send_signal):
6016 Expliticly perform redisplay.
6017 (wait_reading_process_output): Always check process status, but
6018 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6019
6020 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6021
6022 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6023 (XFLOAT_INIT): New macro for storing a float value.
6024 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6025 * fns.c (sxhash): Copy out the value of a float in order to
6026 examine its bytes.
6027 * dbusbind.c (xd_append_arg): Likewise.
6028
6029 * emacs.c (main): Don't call syms_of_data twice.
6030
6031 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6032
6033 * dbusbind.c (xd_initialize): Add connection file descriptor to
6034 input_wait_mask, in order to let select() detect, whether a new
6035 message has been arrived.
6036 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6037
6038 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6039
6040 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6041 New functions.
6042
6043 * lisp.h (xd_pending_messages): Declare.
6044
6045 * keyboard.c (readable_events): Call xd_pending_messages.
6046
6047 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6050
6051 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6052
6053 * buffer.c (set_buffer_internal_1)
6054 (swap_out_buffer_local_variables): Check for unbound local
6055 variables (Bug#4138).
6056
6057 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6058
6059 * process.c (create_pty): Fix last change.
6060
6061 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6064 (xbm_load_image): Caller changed.
6065 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6066
6067 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6068
6069 * process.c (create_pty): New function.
6070 (Fstart_process): Use it to allow Emacs to just associate a pty
6071 with the buffer. See associated change in gdb-mi.el.
6072 (list_processes_1): Deal with no program name.
6073 (start_process_unwind): Use pid == -2 to mean no process.
6074
6075 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6076
6077 * cmds.c (nonundocount): New global variable.
6078 (keys_of_cmds): Initialize it.
6079 (Fself_insert_command): Use it to combine upto 20 sequential chars
6080 into a single undo entry, just like the Qself_insert_command code in
6081 keyboard.c does.
6082 Call frame_make_pointer_invisible, also like the Qself_insert_command
6083 code in keyboard.c does.
6084 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6085 than its own local replacement for it.
6086
6087 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
6088
6089 * fns.c (concat): Don't re-set string length to its current value.
6090
6091 * coding.h (decode_coding_string, encode_coding_string):
6092 Use SBYTES macro.
6093
6094 * doprnt.c (doprnt_lisp): Delete unused function.
6095 (doprnt): Merge with doprnt1, discarding lispstrings code.
6096 * lisp.h (doprnt_lisp): Don't declare.
6097
6098 2009-08-07 Juri Linkov <juri@jurta.org>
6099
6100 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6101
6102 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6103
6104 * print.c (syms_of_print): Undo previous change.
6105
6106 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6107
6108 * lread.c (read1, syms_of_lread): Read hashtables back from the
6109 readable format.
6110
6111 * print.c (print_preprocess, print_object): Print hashtables fully
6112 and readably.
6113 (syms_of_print): Provide 'hashtable-print-readable.
6114
6115 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6116
6117 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6118 no family set.
6119 (nsfont_open): Handle case when entity has no family.
6120
6121 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6122
6123 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6124 element, not a list, for match case.
6125
6126 2009-07-28 Kenichi Handa <handa@m17n.org>
6127
6128 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6129 rigidly.
6130
6131 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6132 font_parse_xlfd. Check font properties more rigidly.
6133
6134 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6135
6136 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6137 bsd-common.h.
6138
6139 2009-07-27 Kenichi Handa <handa@m17n.org>
6140
6141 * xfaces.c (face_with_height): Call font_clear_prop.
6142
6143 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
6144
6145 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6146
6147 * xterm.c (x_term_init): Use Qx.
6148
6149 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6150
6151 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6152 (ns_get_color): Revert 2009-07-16 change.
6153
6154 2009-07-25 Eli Zaretskii <eliz@gnu.org>
6155
6156 * lread.c (syms_of_lread) <force_load_messages>: New variable.
6157 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6158
6159 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
6160
6161 * coding.h (decode_coding_string, encode_coding_string):
6162 Use SCHARS macro.
6163
6164 * lread.c: Rewrite 2009-07-21 changes.
6165 (load_depth): Delete.
6166 (Qload_in_progress): New variable.
6167 (load_unwind): Don't reference load_depth or load_in_progress.
6168 (Fload): Likewise; specbind Qload_in_progress instead.
6169 (init_lread): Don't initialize load_depth.
6170 (syms_of_lread): Initialize and protect Qload_in_progress.
6171
6172 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6173
6174 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6175
6176 2009-07-23 Yavor Doganov <yavor@gnu.org>
6177
6178 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6179
6180 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6181
6182 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6183 Bugs 3792, 3720, 2402.
6184 (ns_lookup_indexed_color): Check for bad index.
6185 (ns_index_color): Init unused slot to 0.
6186 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6187 Bug 3714, possibly 3082.
6188
6189 2009-07-22 Jason Rumney <jasonr@gnu.org>
6190
6191 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6192 Position IME window at cursor (Bug#2570).
6193 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6194 (globals_of_w32fns): Dynamically load functions required above.
6195
6196 * w32term.c (w32_draw_window_cursor): Send message to reposition
6197 any IME window.
6198
6199 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6200
6201 * fileio.c: Revert 2009-07-16 changes.
6202 (Vauto_save_include_big_deletions): New variable.
6203 (Fdo_auto_save): Disable auto-save only if
6204 auto-save-include-big-deletions is nil.
6205
6206 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6207
6208 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6209 the overflowed pixels into account (Bug#3879).
6210
6211 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
6212
6213 * lread.c (load_depth): New variable.
6214 (Fload, load_unwind, init_lread): Set it to the load recursion
6215 depth; set load_in_progress as a simple boolean based on the
6216 current load_depth. (Bug#3892)
6217
6218 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6219
6220 * nsfont.m (ns_has_attribute): Remove.
6221 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6222
6223 2009-07-18 Juri Linkov <juri@jurta.org>
6224
6225 * process.c (Fset_process_query_on_exit_flag): Mention killing
6226 a buffer in docstring.
6227
6228 2009-07-17 Kenichi Handa <handa@m17n.org>
6229
6230 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6231
6232 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6233
6234 * nsfns.m (Fns_set_alpha): Remove function.
6235 (syms_of_nsfns): Don't defsubr it.
6236
6237 * nsterm.m (ns_get_color): Remove incompatible color formats.
6238 (ns_color_to_lisp): Generate #rrggbb color format string.
6239
6240 2009-07-16 Richard Stallman <rms@gnu.org>
6241
6242 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6243 (Fset_buffer_auto_saved): Handle save_length = -2.
6244
6245 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
6246
6247 * xterm.c (Qx_gtk_map_stock): New var.
6248
6249 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6250 of calling intern each time.
6251
6252 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6253
6254 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6255 does tiling.
6256
6257 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6258
6259 2009-07-14 Kenichi Handa <handa@m17n.org>
6260
6261 * font.c (font_vconcat_entity_vectors): New function.
6262 (struct font_sort_data): New member font_driver_preference.
6263 (font_compare): Check font_driver_preference.
6264 (font_sort_entities): The format of the first argument changed.
6265 (font_delete_unmatched): Likewise.
6266 (font_list_entities): The return type changed.
6267 (font_select_entity): The format of the second argument changed.
6268 (font_find_for_lface): Adjuste for the above changes.
6269 Don't suppress the checking of C even if the repertory supports it.
6270 (Flist_fonts): Adjust for the above changes.
6271
6272 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6273 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
6274 Reject a font who has adstyle property that is different from a
6275 langname derived from registry property.
6276 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
6277
6278 2009-07-13 Eli Zaretskii <eliz@gnu.org>
6279
6280 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6281 local copy of dirfilename.
6282
6283 2009-07-13 Kenichi Handa <handa@m17n.org>
6284
6285 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6286 against max_char.
6287
6288 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6289 calling XSYMBOL (sym).
6290
6291 2009-07-11 Eli Zaretskii <eliz@gnu.org>
6292
6293 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6294 New function.
6295 (directory_files_internal) [WINDOWSNT]:
6296 Bind w32-get-true-file-attributes to either t or nil, depending whether
6297 the filesystem of the directory is fast or slow.
6298
6299 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6300 file name.
6301 (is_slow_fs): New function.
6302 (stat): Use it to determine whether to issue more system calls to
6303 get accurate file attributes, when w32-get-true-file-attributes is
6304 `local'.
6305
6306 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6307
6308 * xfns.c (Fx_select_font): Remember last font selected in
6309 x_last_font_name and use that the next time. Also try the frame
6310 parameter font-parameter as default to the font dialog.
6311
6312 2009-07-10 Kenichi Handa <handa@m17n.org>
6313
6314 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6315
6316 2009-07-09 Eli Zaretskii <eliz@gnu.org>
6317
6318 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6319
6320 * w32.c (stat): Treat UNC file names as residing on remote
6321 drives. (Bug#3542)
6322
6323 2009-07-09 Kenichi Handa <handa@m17n.org>
6324
6325 * fontset.c (fontset_find_font): Fix previous change.
6326
6327 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
6328
6329 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6330 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6331 error flag.
6332
6333 2009-07-08 Kenichi Handa <handa@m17n.org>
6334
6335 * fontset.c (fontset_find_font): Fix the logic of handling
6336 charset_matched.
6337 (font_for_char): Delete unused var.
6338 (generate_ascii_font_name): Delete it.
6339
6340 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6341
6342 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6343 (encode_coding_sjis): Fix the code range check.
6344
6345 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6348 (Fexpand_file_name): Copy string data properly (Bug#3772).
6349
6350 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6351
6352 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6353 first MapNotify.
6354
6355 2009-07-07 Kenichi Handa <handa@m17n.org>
6356
6357 * character.h (unibyte_has_multibyte_table): Delete extern.
6358 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6359
6360 * charset.c (Fset_charset_priority): Update charset_unibyte.
6361 (syms_of_charset): Initialize charset_unibyte.
6362
6363 * character.c (unibyte_has_multibyte_table): Delete it.
6364 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6365 charset_unibyte.
6366 (multibyte_char_to_unibyte_safe): Likewise.
6367 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6368
6369 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6370 (x_produce_glyphs): Likewise.
6371
6372 * .gdbinit (xcharset): Fix the treating $arg0.
6373
6374 2009-07-04 Eli Zaretskii <eliz@gnu.org>
6375
6376 Emulation of `getloadavg' on MS-Windows.
6377 * w32.c: Include float.h.
6378 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6379 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6380 (get_native_system_info, get_system_times): New functions.
6381 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6382 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6383 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6384 g_b_init_get_system_times, and num_of_processors.
6385
6386 2009-07-03 Jason Rumney <jasonr@gnu.org>
6387
6388 * w32term.c (w32_initialize): Use standard types.
6389
6390 2009-07-03 Eli Zaretskii <eliz@gnu.org>
6391
6392 * dired.c (Ffile_attributes): Decode user and group names by the
6393 locale's encoding. (Bug#3443)
6394
6395 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6396
6397 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6398 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6399
6400 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6401
6402 * term.c (init_tty): Remove spurious #ifdef.
6403
6404 * m/mips.h: Mention this file is also used for netbsd.
6405 * m/pmax.h: Remove file.
6406
6407 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6408
6409 * xterm.h (struct x_display_info): Add invisible_cursor.
6410 (struct x_output): Add current_cursor.
6411
6412 * xterm.c (XTtoggle_invisible_pointer): New function.
6413 (x_define_frame_cursor): Don't define cursor if invisible or the
6414 same as before. Set current_cursor.
6415 (x_create_terminal): Set toggle_invisible_pointer_hook.
6416
6417 * xfns.c (make_invisible_cursor): New function.
6418 (x_set_mouse_color): Call make_invisible_cursor.
6419 Set current_cursor.
6420 (x_window): Set current_cursor.
6421
6422 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6423
6424 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6425 inserting a character.
6426 (read_avail_input): Call frame_make_pointer_visible.
6427
6428 * frame.c (Vmake_pointer_invisible): New variable.
6429 (frame_make_pointer_invisible, frame_make_pointer_visible):
6430 New functions.
6431 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6432
6433 * frame.h: Declare frame_make_pointer_invisible and
6434 frame_make_pointer_visible.
6435 (struct frame): Add pointer_invisible.
6436
6437 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6438
6439 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6440 frame isn't visible.
6441 (xg_frame_resized): If width/height is -1, get size of window
6442 from X server.
6443
6444 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6445 for MapNotify.
6446
6447 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
6448 here or call change_frame_size. Just call flush_and_sync.
6449 (flush_and_sync): Reintroduce.
6450
6451 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
6452
6453 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
6454
6455 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6456 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6457
6458 * frame.h: Declare Qsticky.
6459
6460 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6461
6462 * nsfns.m (ns_frame_parm_handlers): Ditto.
6463
6464 * frame.c: Declare Qsticky.
6465 (frame_parms): Add sticky.
6466
6467 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6468
6469 * xterm.h: Declare x_set_sticky.
6470
6471 * xterm.c (x_set_sticky): New function.
6472
6473 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6474 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6475 xg_tool_bar_proxy_help_callback.
6476
6477 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6478
6479 * frame.c: Qmaximized is new.
6480 (x_set_frame_parameters): Do not handle fullscreen specially.
6481 Only set width and height if explicitly set.
6482 (x_set_fullscreen): Handle Qmaximized.
6483 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6484 (syms_of_frame): Initialize Qmaximized.
6485
6486 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6487 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
6488
6489 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
6490 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6491 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
6492 set gravity to NorthWestGravity when USE_GTK.
6493 (set_wm_state): New function.
6494 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
6495 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6496 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
6497 or the case when no window manager is running. That means remove calls
6498 to x_real_positions and x_fullscreen_adjust.
6499
6500 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6501 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6502 flush_and_sync.
6503 (xg_height_changed): New function.
6504 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
6505 and gtk_window_set_policy. Set frame gravity after parsing the
6506 geometry string.
6507 (xg_update_frame_menubar, free_frame_menubar)
6508 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6509 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6510 Remove calls to xg_frame_set_char_size.
6511
6512 2009-07-01 Kenichi Handa <handa@m17n.org>
6513
6514 * keyboard.c (decode_keyboard_code): New function.
6515 (tty_read_avail_input): Decode the input bytes if necessary.
6516
6517 * coding.c (setup_coding_system):
6518 Initialize coding->carryover_bytes to 0.
6519 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6520 use Qno_conversion.
6521
6522 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6523
6524 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6525
6526 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
6527
6528 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
6529
6530 2009-06-30 Jason Rumney <jasonr@gnu.org>
6531
6532 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6533 is already loaded.
6534 Set user model ID if supported (bug#1849).
6535
6536 2009-06-29 Jim Meyering <meyering@redhat.com>
6537
6538 Remove useless if-before-xfree test.
6539 * nsfont.m (nsfont_close): Remove useless test.
6540 * term.c (delete_tty): Likewise.
6541 * w32.c (system_process_attributes): Likewise.
6542 * w32font.c (w32font_close): Likewise.
6543 * xfaces.c (x_free_gc): Likewise.
6544 * xselect.c (buffer): Likewise.
6545
6546 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6547
6548 * process.c (send_process): Keep decoded string in a local
6549 variable and protect it from GC. (Bug#3521)
6550
6551 2009-06-28 Eli Zaretskii <eliz@gnu.org>
6552
6553 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6554 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6555
6556 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
6557
6558 * xdisp.c (start_display, handle_face_prop)
6559 (move_it_vertically_backward, cursor_row_fully_visible_p)
6560 (redisplay_window, try_window_id, produce_image_glyph):
6561 Delete some #ifdef-ed out code chunks that are now obsolete.
6562
6563 * xterm.c (x_update_window_begin, x_new_focus_frame)
6564 (x_scroll_bar_handle_click, handle_one_xevent)
6565 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6566 (x_make_frame_visible, x_make_frame_invisible)
6567 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6568 code chunks that are now obsolete.
6569
6570 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
6571
6572 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6573 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6574 for hours, when optimzation is enabled.
6575 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6576 (xd_read_message): Make them static.
6577
6578 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6579
6580 * term.c (turn_on_face): Allow simultaneously bold and dim
6581 terminal faces (Bug#3530).
6582
6583 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
6584
6585 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6586
6587 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6588 truncation glyphs (Bug#3686).
6589
6590 2009-06-27 Glenn Morris <rgm@gnu.org>
6591
6592 * m/pmax.h: Restore file, with only netbsd portions.
6593
6594 2009-06-26 David Reitter <david.reitter@gmail.com>
6595
6596 * nsterm.m (keydown): Avoid infinite loop.
6597
6598 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6599
6600 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6601 the arg FORCE_SYMBOL.
6602
6603 2009-06-25 Kenichi Handa <handa@m17n.org>
6604
6605 * fontset.c (fontset_find_font): When a usable rfont_def is found
6606 in a fallback font-group, make it the first element of the group.
6607
6608 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
6609
6610 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6611
6612 2009-06-24 Kenichi Handa <handa@m17n.org>
6613
6614 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6615 set for C.
6616 (fontset_font): Record the availability of a font for C both in
6617 the realized fontsets of the current one and the default one.
6618
6619 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6620
6621 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6622 conditional, it is always defined on AIX.
6623
6624 2009-06-23 Miles Bader <miles@gnu.org>
6625
6626 * window.c (Vrecenter_redisplay): New variable.
6627 (syms_of_window): Initialize it.
6628 (Qtty): New extern declaration.
6629 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6630
6631 2009-06-23 Jim Meyering <meyering@redhat.com>
6632
6633 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6634 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
6635 pointer dereferences are guaranteed to be valid.
6636
6637 2009-06-23 Kenichi Handa <handa@m17n.org>
6638
6639 * emacs.c (main): Call init_font ().
6640
6641 * font.h (Vfont_log): Extern it.
6642 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6643
6644 * font.c (font_sort_entities, font_list_entities)
6645 (font_matching_entity, font_open_entity)
6646 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6647 (Vfont_log): Delete static.
6648 (font_log_env_checked): Delete this variable.
6649 (font_add_log): Don't check font_log_env_checked.
6650 (font_deferred_log): Check Vfont_log.
6651 (init_font): New function.
6652
6653 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6654
6655 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6656
6657 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6658
6659 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6660
6661 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6662 (face_for_char): Don't call font_deferred_log here.
6663 (font_for_char): Likewise.
6664
6665 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
6666
6667 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6668 rather than its background_width for drawing the overline and
6669 underline (Bug#489).
6670
6671 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6672 rather than its background_width for drawing the overline and
6673 underline (Bug#489).
6674 (xg_default_icon_file): New variable.
6675 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6676 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
6677
6678 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6679 (load_overlay_strings): Remove externs.
6680 (fast_find_position): Function deleted.
6681 (mouse_face_from_buffer_pos): New function, based on
6682 fast_find_position. Correctly handle before-strings,
6683 display-strings, and after-strings (Bug#1220).
6684 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6685
6686 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6687
6688 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
6689 (move_it_in_display_line_to, move_it_in_display_line_to)
6690 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6691
6692 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6693
6694 * Branch for 23.1.
6695
6696 2009-06-21 Jason Rumney <jasonr@gnu.org>
6697
6698 * w32term.c (keyboard_codepage): New static variable.
6699 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6700 (w32_read_socket) [WM_CHAR]: Use it to decode character
6701 input (bug#3237).
6702 (w32_initialize): Initialize it.
6703 (codepage_for_locale): New function.
6704
6705 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
6706
6707 * process.c (status_message): Pass Faset index argument as a lisp
6708 object, so as to work with USE_LISP_UNION_TYPE.
6709
6710 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6711
6712 * coding.c (Ffind_coding_systems_region_internal):
6713 Cache checked characters.
6714
6715 2009-06-18 Kenichi Handa <handa@m17n.org>
6716
6717 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
6718
6719 2009-06-18 Andreas Schwab <aschwab@redhat.com>
6720
6721 * xdisp.c (redisplay_internal): Check that the frame is still
6722 live after redisplay of its windows.
6723 (redisplay_windows): Check that the window is still live.
6724
6725 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6726
6727 * coding.c (detect_coding_utf_16): Fix previous change.
6728
6729 2009-06-16 Kenichi Handa <handa@m17n.org>
6730
6731 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6732 UTF-16 by checking the dispersion of Eth and Oth bytes.
6733
6734 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6735
6736 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6737
6738 2009-06-15 Kenichi Handa <handa@m17n.org>
6739
6740 * process.c (status_message): Fix previous change. Be sure to
6741 decode a localized string.
6742
6743 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6744
6745 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6746 add comment explaining why.
6747
6748 2009-06-14 Sidney Markowitz <sidney@sidney.com>
6749
6750 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
6751
6752 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6753
6754 * nsfont.m (ns_attribute_value): Remove.
6755 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6756 (ns_has_attribute): Shrink the normal range.
6757 (ns_findfonts): Don't worry about requested spec in determining
6758 need for synthItal.
6759 (ns_get_covering_families): Retain scriptToFamilies.
6760
6761 2009-06-14 Seiji Zenitani <zenitani@mac.com>
6762
6763 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6764
6765 2009-06-11 Kenichi Handa <handa@m17n.org>
6766
6767 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6768 overhang for the static composition case.
6769
6770 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6771
6772 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6773 overhang for the automatic composition case.
6774
6775 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6776 composition case.
6777
6778 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
6779
6780 * xdisp.c (get_next_display_element): When handling wrap-prefix
6781 and line-prefix, treat \n as a control character (bug#3502).
6782
6783 2009-06-10 Kenichi Handa <handa@m17n.org>
6784
6785 * font.c (font_parse_family_registry): Fix for one-char foundry.
6786 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6787
6788 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6789
6790 * process.c (status_message): Fix handling of multibyte signal
6791 string (Bug#3499).
6792
6793 2009-06-09 Jim Meyering <meyering@redhat.com>
6794
6795 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6796 color name is missing.
6797
6798 2009-06-09 Kenichi Handa <handa@m17n.org>
6799
6800 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6801 FROM-CODE and TO-CODE are codepoints of CHARSET.
6802
6803 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6804
6805 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6806
6807 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6808
6809 Changes to support :script/:lang/:otf in NS font driver.
6810 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6811 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6812 indicate not part of font driver interface, and change callers.
6813 (ns_get_family): Remove pointless null check.
6814 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6815 ns_spec_to_descriptor, ns_descriptor_to_entity.
6816 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6817 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6818 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6819 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6820 (ns_get_req_script, ns_accumulate_script_ranges)
6821 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6822 New functions.
6823 (nsfont_list, nsfont_match): Use ns_findfonts.
6824 (nsfont_open): Use font descriptor instead of traits.
6825 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6826 (dump_glyphstring): Rename to ns_dump_glyphstring.
6827
6828 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6829
6830 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6831
6832 * fontset.c (fontset_from_font): Remove NS-specific code.
6833
6834 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
6835
6836 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6837 nonactive windows.
6838
6839 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
6840
6841 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
6842
6843 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6844
6845 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6846
6847 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
6848
6849 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6850 account for the overflowing of newlines into the last glyph on the
6851 display line (Bug#3482).
6852
6853 2009-06-05 David Reitter <david.reitter@gmail.com>
6854
6855 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6856 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
6857 Fns_selection_exists_p, Fns_selection_owner_p.
6858
6859 2009-06-03 Jason Rumney <jasonr@gnu.org>
6860
6861 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6862 available. (Bug#3379)
6863
6864 2009-05-29 Kenichi Handa <handa@m17n.org>
6865
6866 * coding.c (get_translation_table):
6867 Check Venable_character_translation.
6868
6869 2009-05-26 David Reitter <david.reitter@gmail.com>
6870
6871 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6872 (x_make_frame_visible): Move frame to front rather than calling
6873 ns_raise_frame().
6874 (keyDown:): Do not swallow events that aren't re-sent if frame
6875 isn't key window.
6876 (drawRect:): Do not set visibility/iconified flags because
6877 drawRect may be called by NSView even if the frame is hidden.
6878
6879 * nsfns.m (Fx_create_frame): Follow other ports in
6880 determining visibility; default to t. Ensure async_visible is set.
6881
6882 2009-05-23 Eli Zaretskii <eliz@gnu.org>
6883
6884 * dired.c (Ffile_attributes): Doc fix.
6885
6886 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
6887
6888 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6889
6890 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6891
6892 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6893 and xfont_scratch_props.
6894 (syms_of_xfont): Do it here instead.
6895 (xfont_find_ccl_program): Delete, unused.
6896 (xfont_open): Delete unused var `i'.
6897
6898 2009-05-21 Kenichi Handa <handa@m17n.org>
6899
6900 * fontset.c (Qlatin): Don't make it static.
6901
6902 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6903 New functions.
6904 (xfont_scripts_cache, xfont_scratch_props): New variables.
6905 (Qlatin, Vscalable_fonts_allowed): Extern it.
6906 (xfont_list_pattern): Argument changed. Callers changed.
6907 Check Vscalable_fonts_allowed. Check the support of a script.
6908 (xfont_list): Don't reject a font spec with :script property.
6909 (xfont_has_char): Fix setting of encoding.
6910 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6911 xfont_scratch_props.
6912
6913 2009-05-19 Kenichi Handa <handa@m17n.org>
6914
6915 * font.c (font_sort_entities): Rename from font_sort_entites.
6916 Callers changed.
6917
6918 2009-05-18 Kenichi Handa <handa@m17n.org>
6919
6920 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6921
6922 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6923
6924 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6925 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6926
6927 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6928
6929 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6930 (x_delete_terminal): Dissociate resource database from display and
6931 then call XrmDestroyDatabase before closing display.
6932
6933 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6934
6935 * nsterm.m (ns_read_socket): Remove unused variable.
6936 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6937 whether selected frame is viable before raising it (based on patch
6938 by David Reitter), and improve commentary.
6939 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
6940
6941 2009-05-15 Kenichi Handa <handa@m17n.org>
6942
6943 * font.c (Ffont_spec): Check arguments.
6944
6945 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
6946
6947 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6948 weight when testing attributes (Bug#3282).
6949
6950 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6951
6952 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6953 what we expect to get in the next ConfigureNotify event.
6954
6955 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6956 before Xft one (Bug#1696).
6957
6958 2009-05-07 David Reitter <david.reitter@gmail.com>
6959
6960 * nsfns.m (Fx_display_planes): Compute bitplanes using
6961 NSBitsPerPixelFromDepth (Bug#3207).
6962
6963 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6966
6967 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
6968
6969 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6970
6971 2009-05-07 David Reitter <david.reitter@gmail.com>
6972
6973 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6974 Respect mouse face background.
6975
6976 2009-05-07 David Reitter <david.reitter@gmail.com>
6977
6978 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6979 Mouse movement/highlight: bracket drawing operations
6980 in ns_update_begin and ns_update_end.
6981
6982 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6983
6984 * nsfns.m (ns_get_screen): Rewrite.
6985 Don't presume selected-frame is of type `ns'.
6986
6987 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6988 all drivers.
6989
6990 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6991
6992 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6993
6994 * keyboard.h (add_user_signal): Fix typo in extern.
6995
6996 * lisp.h (add_user_signal): Remove extern.
6997
6998 * unexelf.c (unexec): Consider a section to precede the .bss section
6999 if its addresses overlap that of .bss.
7000 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7001 instead of dumping process.
7002
7003 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7004
7005 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7006
7007 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7008
7009 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7010
7011 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7012
7013 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7014 any statements.
7015
7016 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7017
7018 * process.c (read_process_output): Make sure the current buffer is
7019 always restored.
7020
7021 * coding.c (record_conversion_result): Don't modify
7022 Vlast_code_conversion_error for successful result.
7023 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7024
7025 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7026
7027 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7028 (load_charset_map): Remove unnecessary code.
7029
7030 2009-04-30 David Reitter <david.reitter@gmail.com>
7031
7032 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7033 through f24.
7034
7035 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7036
7037 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7038
7039 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7040 face_at_buffer_position.
7041 (face_before_or_after_it_pos, get_next_display_element)
7042 (note_mouse_highlight): Update face_at_buffer_position call.
7043
7044 * term.c (term_mouse_highlight):
7045 * msdos.c (IT_note_mouse_highlight):
7046 * fontset.c (Finternal_char_font):
7047 * font.c (font_at, font_range): Update face_at_buffer_position call.
7048
7049 * dispextern.h (face_at_buffer_position): Update prototype.
7050
7051 2009-04-30 Kenichi Handa <handa@m17n.org>
7052
7053 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7054
7055 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7056
7057 * callproc.c (Fcall_process): Fix GC protection. Make sure
7058 current buffer is always restored.
7059
7060 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7061
7062 * atimer.c (init_atimer): Also clear stopped_atimers.
7063
7064 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7065
7066 * process.c (create_process): Clean up merger residues of
7067 2008-07-17 change.
7068
7069 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7070
7071 * lread.c (Vread_circle): New variable.
7072 (read1): Disable recursive read if Vread_circle is nil.
7073
7074 2009-04-29 Kenichi Handa <handa@m17n.org>
7075
7076 * fontset.h (set_default_ascii_font): Delete extern.
7077
7078 * fontset.c (set_default_ascii_font): Delete this unused function.
7079
7080 * frame.c (x_set_font): When ARG is a font-object, check if the
7081 font-object matches with the ASCII font-spec of the frame's
7082 fontset. If not, create a new fontset for the frame. (Bug #3075)
7083
7084 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7085
7086 * fns.c (Flocale_info): Protect vector from GC during decoding.
7087
7088 * process.c (Fstart_process): Protect argv strings from GC during
7089 encoding.
7090
7091 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7092
7093 * sysdep.c: Include <ctype.h>.
7094
7095 2009-04-27 David Reitter <david.reitter@gmail.com>
7096
7097 * nsfont.m (nsfont_open): Remove unused variable shrink.
7098 Remove commented-out code.
7099
7100 2009-04-26 Johan Bockgård <bojohan@gnu.org>
7101
7102 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7103
7104 2009-04-25 Jason Rumney <jasonr@gnu.org>
7105
7106 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7107
7108 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7109
7110 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7111 Swap bytes in short integer if fringe bitmap width > 8.
7112
7113 2009-04-23 Kenichi Handa <handa@m17n.org>
7114
7115 * xfaces.c (Fx_list_fonts): If a font size is specified in
7116 PATTERN, set it in returned scalable fonts.
7117
7118 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
7119
7120 * keyboard.c (Fset_input_meta_mode): Doc fix.
7121
7122 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7123
7124 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7125
7126 * coding.c (Fterminal_coding_system): Doc fix.
7127
7128 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7129 (Fx_display_pixel_height, Fx_display_planes)
7130 (Fx_display_color_cells, Fx_server_max_request_size)
7131 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7132 (Fx_display_mm_height, Fx_display_mm_width)
7133 (Fx_display_backing_store, Fx_display_visual_class)
7134 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7135 Doc fixes, replacing "terminal id" with "terminal object".
7136 (check_x_display_info): Handle terminal objects instead of
7137 terminal ids.
7138
7139 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7140 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7141 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7142 Doc fixes, replacing "terminal id" with "terminal object".
7143
7144 2009-04-21 Kenichi Handa <handa@m17n.org>
7145
7146 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7147 (font_score): Check AVGWIDTH too.
7148
7149 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7150 worst case.
7151 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7152 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7153
7154 2009-04-19 Jason Rumney <jasonr@gnu.org>
7155
7156 The following changes fix Bug#3005 for wide glyphs on each platform,
7157 without reintroducing Bug#1258 for stretch glyphs.
7158
7159 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7160 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7161 get_phys_cursor_geometry.
7162
7163 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7164 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7165 using get_phys_cursor_geometry.
7166
7167 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7168 correctly calculated.
7169
7170 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7171
7172 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7173 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7174 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7175 is deprecated.
7176
7177 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7178
7179 * font.c (font_put_frame_data): Use xfree instead of free.
7180
7181 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
7182
7183 * w32font.c (Qja, Qko): Remove declarations.
7184 (syms_of_w32font): Don't DEFSYM them.
7185
7186 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
7187
7188 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7189
7190 * font.h (Qja, Qko): Extern them.
7191
7192 * ftfont.c (Qja, Qko): Remove declarations.
7193
7194 * xfont.c (Qja, Qko): Remove declarations.
7195
7196 2009-04-17 Kenichi Handa <handa@m17n.org>
7197
7198 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7199 string from a vector to handle Latin-1 characters correctly.
7200
7201 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7202 entity even if the cache hits.
7203
7204 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7205
7206 * search.c (boyer_moore): Use zero as marker value for a possible
7207 match instead of depending on overflow behavior. (Bug#2844)
7208
7209 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7210 * lisp.h: Adjust prototypes.
7211
7212 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
7213
7214 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7215 change (Bug#3003).
7216
7217 2009-04-16 Kenichi Handa <handa@m17n.org>
7218
7219 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7220
7221 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7222 adstyle.
7223
7224 * ftfont.c (Qja, Qko): Don't make them static.
7225 (enum ftfont_cache_for): New enum.
7226 (fc_charset_table): Undo the previous change.
7227 (ftfont_get_latin1_charset): Delete it.
7228 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7229 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
7230 non-scarable font, try to get AVERAGE_WIDTH.
7231 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7232 Change ft_face_cache from a list of a hash-table. Don't check
7233 `ja' and `ko' adstyle here.
7234 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7235 FTFONT_CACHE_FOR_CHARET.
7236 (ftfont_get_charset): Undo the previous change.
7237 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7238 (ftfont_close): Likewise.
7239 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7240
7241 * font.c (font_sort_entites): Change the meaning of the arg
7242 BEST-ONLY. Don't optimize for VEC of lenght 1.
7243 (font_select_entity): Just return the value of font_sort_entites.
7244
7245 * xfaces.c (merge_face_vectors): Reflect font properties in
7246 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7247 font_clear_prop if a face attribute doesn't change.
7248
7249 * charset.h (charset_ksc5601): Extern it.
7250
7251 * charset.c (charset_ksc5601): New variable.
7252 (Fdefine_charset_internal): Set charset_ksc5601.
7253 (init_charset_once): Initialize charset_ksc5601 to -1.
7254
7255 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7256
7257 * fileio.c (history_delete_duplicates): Remove unused declaration.
7258
7259 * callint.c (history_delete_duplicates): New declaration.
7260 (Fcall_interactively): Remove command history duplicates when
7261 history_delete_duplicates is true.
7262
7263 2009-04-14 Eli Zaretskii <eliz@gnu.org>
7264
7265 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7266
7267 2009-04-14 Kenichi Handa <handa@m17n.org>
7268
7269 * font.c (Ffont_info): Fix docstring. Fix the second element of
7270 the returned value (bug#2949).
7271
7272 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7275
7276 2009-04-14 Kenichi Handa <handa@m17n.org>
7277
7278 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7279 encoding charset is ascii_compatible.
7280
7281 * charset.c (Fdefine_charset_internal): Make charset
7282 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7283 code_offset is 0, and covers all ASCII characters.
7284
7285 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7286
7287 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7288 (ns_string_to_pasteboard_internal):
7289 * nsmenu.m (process_dialog):
7290 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7291 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7292 * lisp.h (Fx_load_color_file): Declare.
7293
7294 2009-04-13 Kenichi Handa <handa@m17n.org>
7295
7296 * font.c (font_delete_unmatched): Preserve the order of list elements.
7297 (font_select_entity): Suppress the code to optimize for the same
7298 kind of fonts.
7299 (font_load_for_lface): Get a font that supports at least ASCII
7300 characters.
7301
7302 * ftfont.c (Qja, Qko): New variables.
7303 (fc_charset_table): Delete uniquifier data for iso8859-1.
7304 (ftfont_get_latin1_charset): New function.
7305 (get_adstyle_property): New function.
7306 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7307 bitmap fonts.
7308 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7309 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7310 `ko' or `ja'.
7311 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
7312 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
7313 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7314 property.
7315 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7316 (syms_of_ftfont): DEFSYM Qja and Qko.
7317
7318 2009-04-09 Kenichi Handa <handa@m17n.org>
7319
7320 * charset.c (map_charset_chars): For a charset of `superset'
7321 method, fix calculation of code range.
7322
7323 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7324 from the list of extra properties.
7325 (font_clear_prop): Be sure to delete `:name' font property.
7326
7327 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7328
7329 * dispnew.c (redraw_overlapping_rows): Fix detection of
7330 overlapping for topmost and bottommost rows.
7331
7332 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
7333
7334 2009-04-06 Jason Rumney <jasonr@gnu.org>
7335
7336 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7337
7338 2009-04-06 Kenichi Handa <handa@m17n.org>
7339
7340 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7341
7342 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7343
7344 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7345
7346 * ftfont.c (ftfont_open): Fix checking of the return value of
7347 FT_Load_Char. Fix setting font->underline_thickness.
7348
7349 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
7350
7351 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7352 (Fterminal_parameters, Fterminal_parameter)
7353 (Fset_terminal_parameter): In doc string, refer to terminal
7354 objects rather than terminal ids.
7355
7356 2009-04-04 Eli Zaretskii <eliz@gnu.org>
7357
7358 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7359 ret_lim_data. (Bug#2867)
7360
7361 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
7362
7363 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7364 so they don't get wider than the window, matching 2006-01-23
7365 change to the partner function in xdisp.c (Bug#2800).
7366
7367 2009-04-03 Kenichi Handa <handa@m17n.org>
7368
7369 * print.c (print_object): Make each lowest sub_char_table start a
7370 new line (Bug#2866).
7371
7372 2009-04-02 Kenichi Handa <handa@m17n.org>
7373
7374 * fontset.c (fontset_font): Record no-font when a fontset
7375 explicitly tells not to try another font-specs.
7376
7377 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7378
7379 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7380
7381 2009-03-30 Kenichi Handa <handa@m17n.org>
7382
7383 * fontset.c (fontset_from_font): Specify only registry in a
7384 font-spec for all characters supported by that registry.
7385
7386 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7387 even if HAVE_M17N_FLT is not defined.
7388
7389 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7390
7391 * ftfont.c: Conditionalize prototyping and use of
7392 ftfont_variation_glyphs.
7393
7394 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7395
7396 * frame.c (delete_frame): Work around compiler bug.
7397
7398 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7399 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7400 Some more EMACS_INT.
7401 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7402
7403 * xdisp.c (dump_glyph): Fix typo.
7404
7405 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7406 (adjust_markers_gap_motion, adjust_markers_for_delete)
7407 (adjust_markers_for_insert, adjust_point)
7408 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7409 (make_gap, copy_text, count_size_as_multibyte, insert)
7410 (insert_and_inherit, insert_before_markers)
7411 (insert_before_markers_and_inherit, insert_1)
7412 (count_combining_before, count_combining_after, insert_1_both)
7413 (insert_from_string, insert_from_string_before_markers)
7414 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7415 (insert_from_buffer_1, adjust_after_replace)
7416 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7417 (replace_range_2, del_range, del_range_1, del_range_byte)
7418 (del_range_both, del_range_2, modify_region)
7419 (prepare_to_modify_buffer, signal_before_change)
7420 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7421 for buffer positions and sizes.
7422 * lisp.h: Adjust prototypes accordingly.
7423
7424 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7425 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7426 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7427
7428 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7429
7430 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7431
7432 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7433 lines and columns so we keep the same pixel height and width.
7434
7435 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7436 the property _NET_WM_STATE has changed.
7437 (x_handle_net_wm_state): New function to update frame parameter
7438 fullscreen.
7439 (x_term_init): Initialize atoms for _NET_WM_STATE.
7440
7441 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7442
7443 2009-03-27 Kevin Ryde <user42@zip.com.au>
7444
7445 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7446 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7447 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7448 (Fgpm_mouse_stop): Pass that new parameter.
7449 * termhooks.h (close_gpm): Adjust prototype.
7450
7451 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7452
7453 * lisp.h (Fx_focus_frame): Declare.
7454
7455 * callint.c (Fcall_interactively): For '^' just delegate the work to
7456 handle-shift-selection.
7457 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7458
7459 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7462
7463 * data.c (Qinteractive_form): New variable.
7464 (Finteractive_form): Use it.
7465
7466 * eval.c (Fcommandp): Use Qinteractive_form.
7467
7468 2009-03-24 Jason Rumney <jasonr@gnu.org>
7469
7470 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7471 Calculate total size precisely. Decode environment variables
7472 before substituting. (Bug#38)
7473
7474 2009-03-24 Kenichi Handa <handa@m17n.org>
7475
7476 * font.c (find_font_encoding): Return Qnil for unsupported
7477 encoding (Bug#2722).
7478
7479 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7480
7481 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7482 that gdpy is set.
7483
7484 2009-03-22 Alan Mackenzie <acm@muc.de>
7485
7486 * callint.c (Finteractive): Clarify the doc string - even
7487 promptless elements need \n separators.
7488
7489 2009-03-22 Jason Rumney <jasonr@gnu.org>
7490
7491 * w32term.c (syms_of_w32term): Doc fix for
7492 x-use-underline-position-properties.
7493
7494 2009-03-21 Eli Zaretskii <eliz@gnu.org>
7495
7496 * w32.c (getpwuid): Change argument type to unsigned.
7497 (struct w32_id): Change type of `rid' member to unsigned.
7498 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7499 argument ID to unsigned. All callers changed.
7500 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7501
7502 2009-03-20 Eli Zaretskii <eliz@gnu.org>
7503
7504 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7505 negative, produce a float value.
7506
7507 * dired.c (make_uid, make_gid): New functions.
7508 (Ffile_attributes): Use them to avoid negative UID and GID.
7509
7510 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
7511
7512 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7513 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7514 Fix typos in docstrings.
7515
7516 2009-03-19 Kenichi Handa <handa@m17n.org>
7517
7518 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
7519 changed, use font_load_for_lface to get a new font object.
7520 Call free_realized_fontset after handling ASCII font change.
7521
7522 * frame.c (x_set_font): Handle the case that ARG is a cons.
7523
7524 2009-03-19 Glenn Morris <rgm@gnu.org>
7525
7526 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7527
7528 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
7529
7530 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7531
7532 2009-03-19 Kenichi Handa <handa@m17n.org>
7533
7534 * charset.c (load_charset_map_from_file): When a mapfile can't be
7535 loaded, signal an error.
7536
7537 2009-03-18 Eli Zaretskii <eliz@gnu.org>
7538
7539 * dired.c (Ffile_attributes): Make sure UID and GID are always
7540 positive, even if the value is too large for a positive EMACS_INT.
7541 Doc fix.
7542
7543 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7544
7545 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7546
7547 * xmenu.c (xdialog_show): Move Fredisplay call ...
7548 (Fx_popup_dialog): ... here.
7549
7550 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7551
7552 * dired.c (file_name_completion): Disable the first optimization just
7553 installed, since it is not implemented correctly.
7554
7555 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7556
7557 * dired.c (file_name_completion): Check completion-ignored-extensions
7558 only if the entry can affect bestmatch.
7559 Stop the search early, as Ftry_completion already does.
7560
7561 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
7562
7563 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
7564
7565 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
7566
7567 * keyboard.c (parse_menu_item): Don't display remappings as menu
7568 equivalent bindings (Bug#788).
7569
7570 2009-03-15 Jason Rumney <jasonr@gnu.org>
7571
7572 * w32term.h (WM_EMACS_PAINT): New message.
7573 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7574 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7575 before passing to lisp thread. (Bug#950)
7576
7577 2009-03-14 David Reitter <david.reitter@gmail.com>
7578
7579 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7580 variable as it was never reset.
7581 (ns_term_init): Remove initialization of Lisp-settable defaults
7582 and ns_expand_space.
7583 (-setPanelFromDefaultValues): Remove ns_expand_space.
7584 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7585 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
7586 i.e. no additional spacing, similar to Carbon port.
7587
7588 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7589 * nsfns.m (ns-popup-prefs-panel): Remove.
7590
7591 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7592
7593 * sound.c (alsa_configure): Remove call to deprecated
7594 snd_pcm_sw_params_set_xfer_align.
7595
7596 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
7597
7598 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7599 after clicking in a detached tool bar.
7600 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7601
7602 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7603
7604 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7605 int/Lisp_Object mixup).
7606
7607 2009-03-13 Kenichi Handa <handa@m17n.org>
7608
7609 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
7610 Handle NAME nil and t correctly. Callers changed.
7611 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7612 (set_fontset_font): Change ARG to a vector. Handle range_list in
7613 ARG correctly.
7614 (Fset_fontset_font): Fix the case that TARGET is both a script
7615 name and charset name. Adjust the arg to set_fontset_font for
7616 the above change.
7617 (fontset_from_font): Fix previous change.
7618 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
7619 entry. If FONTSET is the default fontset, don't set the extra
7620 slot of the returning char-table.
7621
7622 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
7623
7624 * nsfns.m (Fx_close_connection): Doc fix.
7625 (Fns_do_applescript): Reflow docstring.
7626 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7627 (Fx_display_pixel_width, Fx_display_pixel_height)
7628 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7629 Fix typos in docstrings.
7630 (Fns_set_alpha): Fix typos in error messages.
7631
7632 2009-03-12 David Reitter <david.reitter@gmail.com>
7633
7634 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
7635 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7636 were used for such events.
7637
7638 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7639 (toggleToolbar, performDragOperation, runHelp): Use it.
7640
7641 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
7642 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7643
7644 2009-03-11 Kenichi Handa <handa@m17n.org>
7645
7646 * font.h (font_open_by_spec): Extern it.
7647
7648 * font.c (font_open_by_spec): New function.
7649 (font_open_by_name): Use font_open_by_spec.
7650
7651 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7652 fontset of the frame.
7653
7654 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7655 modify the default font of frames that use this fontset.
7656 (num_auto_fontsets): New variable.
7657 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7658 name. Be sure to set FONTSET_ASCII to the correct font name.
7659 (update_auto_fontset_alist): New function.
7660
7661 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
7662
7663 * makefile.w32-in: Update dependencies.
7664
7665 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7666
7667 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7668
7669 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7672
7673 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
7674
7675 * lread.c (Feval_buffer): Doc fix.
7676
7677 2009-03-09 Kenichi Handa <handa@m17n.org>
7678
7679 * charset.c (Qfile_name_handler_alist): Extern it.
7680 (load_charset_map_from_file): Temporarily bind
7681 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7682
7683 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
7684
7685 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7686 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
7687
7688 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7689
7690 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7691 (x_set_window_size): Change back to calculated method of setting
7692 toolbar height under Cocoa. (Bug#2546)
7693 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7694 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7695
7696 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7697
7698 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7699 accelerator in parens under GNUstep.
7700
7701 2009-03-06 Kenichi Handa <handa@m17n.org>
7702
7703 These changes are to detect incorrect composition sequence without
7704 looking ahead the source. (Bug#2370)
7705
7706 * coding.h: Include "composite.h".
7707 (enum compisition_state): New enum.
7708 (struct compisition_status): New struct.
7709 (struct iso_2022_spec): New member cmp_status.
7710 (struct emacs_mule_spec): New struct.
7711 (struct coding_system): New members ctext_extended_segment_len and
7712 embedded_utf_8. Change the union member
7713 spec.emacs_mule_full_support to spec.emacs_mule.
7714
7715 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7716 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
7717 (MAX_ANNOTATION_LENGTH): Define to 5.
7718 (ADD_COMPOSITION_DATA): New arg nbytes.
7719 (emacs_mule_char): New arg cmp_status.
7720 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7721 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7722 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7723 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7724 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7725 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7726 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7727 (EMACS_MULE_COMPOSITION_END): New macro.
7728 (emacs_mule_finish_composition): New function.
7729 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7730 (decode_coding_emacs_mule): Avoid long looking ahead while
7731 handling composition.
7732 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7733 (ENCODE_COMPOSITION_RULE): New macro.
7734 (finish_composition): New function.
7735 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7736 (DECODE_COMPOSITION_START): New implementation.
7737 (DECODE_COMPOSITION_END): Likewise.
7738 (STORE_COMPOSITION_RULE): New macro.
7739 (decode_coding_iso_2022): Avoid long looking ahead while handling
7740 composition, CTEXT extended segment, and embedded UTF-8.
7741 (setup_coding_system): For a coding of type iso-2022, reset
7742 CODING_ISO_EXTSEGMENT_LEN (coding) and
7743 CODING_ISO_EMBEDDED_UTF_8 (coding).
7744 (get_translation): Delete arguments last_block, from_nchars,
7745 to_nchars. Callers changed.
7746 (produce_chars): Don't modify charbuf. Adjusted for the change of
7747 get_translation.
7748 (produce_composition): Adjust for the new annotation sequence.
7749 (handle_composition_annotation): Likewise.
7750 (consume_chars): Adjust for the change of get_translation.
7751
7752 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7753
7754 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
7755
7756 2009-03-05 Kenichi Handa <handa@m17n.org>
7757
7758 * font.c (font_select_entity): New function.
7759 (font_find_for_lface): Use font_select_entity to select a font.
7760
7761 * fontset.c (fontset_find_font): If a font found without
7762 restricting to the characters C doesn't support C, try to find a
7763 font with C restriction.
7764
7765 2009-03-04 Nikolaj Schumacher <me@nschum.de>
7766
7767 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
7768
7769 2009-03-04 Jason Rumney <jasonr@gnu.org>
7770
7771 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
7772 characters that have already been read. (Bug#2569)
7773
7774 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7775 Log an error message if check_image_size failed.
7776 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
7777 (gs_load): Mention max-image-size in size error message. (Bug#2560)
7778
7779 2009-03-02 Eli Zaretskii <eliz@gnu.org>
7780
7781 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7782 when decoding process output.
7783
7784 2009-03-01 Richard M Stallman <rms@gnu.org>
7785
7786 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7787
7788 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7789
7790 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7791
7792 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7793 (decode_coding_emacs_mule, decode_coding_iso_2022)
7794 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7795 (decode_coding_raw_text, decode_coding_charset)
7796 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7797 Honor inhibit-eol-conversion. (Bug #2186)
7798
7799 2009-02-28 Jason Rumney <jasonr@gnu.org>
7800
7801 * coding.c (detect_coding_charset): If not checking latin extra,
7802 fail on characters between 0x80 and 0xA0. (Bug#2354)
7803
7804 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7805
7806 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
7807 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
7808
7809 2009-02-27 Glenn Morris <rgm@gnu.org>
7810
7811 * callint.c (Finteractive): Doc fix.
7812
7813 2009-02-27 Kenichi Handa <handa@m17n.org>
7814
7815 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7816
7817 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
7818
7819 * font.c (font_style_to_value): Set value for unknown symbols to
7820 100 instead of 255.
7821 (weight_table, slant_table, width_table): Treat "unspecified" as
7822 the default value.
7823
7824 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
7825
7826 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7827
7828 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
7829
7830 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7831 error as soon as a recursive load is detected.
7832
7833 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7834
7835 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7836 before caching.
7837
7838 2009-02-24 Kenichi Handa <handa@m17n.org>
7839
7840 * fontset.c (fontset_find_font): Fix the condition for checking
7841 unavailable font.
7842
7843 2009-02-24 Glenn Morris <rgm@gnu.org>
7844
7845 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7846 whitespace that confuses documentation.
7847
7848 2009-02-23 Miles Bader <miles@gnu.org>
7849
7850 * process.c (Flist_system_processes, Fprocess_attributes)
7851 (syms_of_process): Rename `system-process-attributes' to
7852 `process-attributes'.
7853
7854 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7855
7856 * coding.h (struct coding_system): Make safe_charsets a pointer to
7857 unsigned char.
7858 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7859 being 255.
7860 (SAFE_CHARSET_P): Likewise.
7861 (setup_iso_safe_charsets): Properly setup safe_charsets.
7862 (Fdefine_coding_system_internal): Likewise.
7863 (setup_coding_system): Likewise. Remove unneeded casts.
7864 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7865 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7866 unneeded casts.
7867
7868 * insdel.c (del_range_2): Don't modify gap contents when called
7869 from decode_coding_object. (Bug#1809)
7870
7871 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
7872
7873 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7874 Qfont_object.
7875 (Ftype_of): Recognize font objects.
7876
7877 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7878
7879 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7880 moved to data.c.
7881
7882 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7883
7884 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7885 async_iconified. Based on a patch by Christian Lynbech
7886 <christian.lynbech@tieto.com>.
7887 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7888
7889 2009-02-20 Glenn Morris <rgm@gnu.org>
7890
7891 * syntax.c (Fskip_chars_forward): Fix doc typo.
7892
7893 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
7894
7895 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7896
7897 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
7898
7899 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7900
7901 2009-02-19 Kenichi Handa <handa@m17n.org>
7902
7903 * coding.c (detect_coding): Preserve coding->mode.
7904 Don't overflow coding->carryover. (Bug#2370)
7905
7906 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7907
7908 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7909
7910 2009-02-18 Kenichi Handa <handa@m17n.org>
7911
7912 * font.c (font_check_otf_features): Fix handling of `nil' element.
7913 (Ffont_spec): Describe :lang and :otf in the docstring.
7914
7915 2009-02-16 Andreas Schwab <schwab@suse.de>
7916
7917 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7918 string.
7919
7920 2009-02-16 Kenichi Handa <handa@m17n.org>
7921
7922 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
7923 (Bug#1723)
7924
7925 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
7926
7927 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
7928
7929 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7930 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7931
7932 2009-02-14 Eli Zaretskii <eliz@gnu.org>
7933
7934 * msdos.c (MAX_SCREEN_BUF): New macro.
7935 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7936 Encode the entire run of glyphs sharing the same face, instead of
7937 doing that one glyph at a time (fixes a bug with displaying
7938 double-size characters).
7939
7940 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7941
7942 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7943
7944 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7945 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
7946 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
7947
7948 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
7949 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
7950
7951 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7952
7953 * keyboard.c (adjust_point_for_property): Allow stopping between two
7954 invisible areas.
7955
7956 2009-02-12 Jason Rumney <jasonr@gnu.org>
7957
7958 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7959 (add_font_entity_to_list): Call check_face_name even when family
7960 is unspecified.
7961
7962 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7963 Release DC when finished. Use NULL window to refer to desktop.
7964 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
7965
7966 * w32font.c (add_font_entity_to_list): Fix check for substituted
7967 raster fonts. (Bug#2219)
7968
7969 2009-02-12 Kenichi Handa <handa@m17n.org>
7970
7971 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7972 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7973 (autocmp_chars): Use fast_looking_at. Don't compose more
7974 characters than MAX_COMPOSITION_COMPONENTS.
7975 (find_automatic_composition): While looking forward and backward,
7976 check static composition. Fix where to stop looking forward.
7977 (composition_adjust_point): Fix checking of static composition.
7978 (Fcomposition_get_gstring): Pay attention to
7979 MAX_COMPOSITION_COMPONENTS.
7980
7981 * lisp.h (fast_looking_at): Extern it.
7982
7983 * search.c (fast_looking_at): New function.
7984
7985 * term.c (encode_terminal_code): Adjust for the change of
7986 <struct glyph>.u.cmp.to.
7987 (append_composite_glyph): Likewise.
7988
7989 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
7990 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7991 composition.
7992 (append_composite_glyph): Adjust for the change of
7993 <strcut glyph>.u.cmp.to.
7994
7995 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
7996
7997 * casetab.c (init_casetab_once):
7998 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7999 * font.c (font_update_lface):
8000 * fontset.c (Fnew_fontset):
8001 * ftfont.c (ftfont_drive_otf):
8002 * xfont.c (xfont_open):
8003 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8004
8005 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8006
8007 * fileio.c (Fwrite_region): !NILP -> CONSP.
8008
8009 2009-02-10 Andreas Schwab <schwab@suse.de>
8010
8011 * process.c (send_process): Properly relocate pointer into data
8012 when using encoded data. (Bug#2272)
8013
8014 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8015
8016 * coding.c (detect_coding_charset): Fix previous change.
8017
8018 2009-02-08 Jason Rumney <jasonr@gnu.org>
8019
8020 * w32fns.c (w32_hide_hourglass): Handle case where frame
8021 disappeared while hourglass was displayed. (Bug #2193)
8022
8023 2009-02-07 Andreas Schwab <schwab@suse.de>
8024
8025 * unexelf.c (unexec): Fix error message.
8026
8027 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8028
8029 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8030 when modal window is active. (Bug #2152)
8031 (applicationShouldTerminate:): Remove now-unneeded while loop
8032 around NSRunAlertPanel.
8033
8034 * nsmenu.m (popupSession): New file-global variable.
8035 (pop_down_menu): End the popupSession before closing dialog.
8036 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8037 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8038 don't query NSApp for events (just sleep instead).
8039
8040 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8041
8042 * coding.c (syms_of_coding) <translation-table-for-input>:
8043 Modify doc string to discourage use for character code unification.
8044
8045 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8046
8047 * atimer.c (run_timers): Update pending_atimers.
8048
8049 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8050
8051 * image.c (svg_load_image): Fix last change.
8052
8053 * xfns.c (Fx_create_frame): Signal an error if no font is
8054 found (Bug#2147).
8055
8056 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8057
8058 * character.c (syms_of_character) <script-representative-chars>:
8059 Fix typo in docstring.
8060
8061 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8062
8063 * nsmenu.m (pop_down_menu): New function.
8064 (ns_popup_dialog): Call it on unwind.
8065 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8066 call timer_check() (Bug#2154).
8067 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8068 handling_signal is set.
8069 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8070
8071 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8072
8073 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8074
8075 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8076
8077 * keyboard.c (poll_for_input_1, handle_async_input):
8078 Set handling_signal under HAVE_NS.
8079
8080 2009-02-04 Glenn Morris <rgm@gnu.org>
8081
8082 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8083
8084 2009-02-04 Kenichi Handa <handa@m17n.org>
8085
8086 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8087
8088 * charset.c (Fchar_charset): New optional arg restriction.
8089
8090 * coding.h (coding_system_charset_list): Extern it.
8091
8092 * coding.c (coding_system_charset_list): New function.
8093
8094 * composite.c: Include coding.h and termhooks.h.
8095 (composition_gstring_p): Fix for the terminal case.
8096 (composition_gstring_width): Likewise.
8097 (fill_gstring_body): Likewise.
8098 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8099 the frame.
8100 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8101 is within a composition.
8102 (Fcomposition_get_gstring): Fix the terminal case.
8103
8104 * term.c (encode_terminal_code): Fix handling of composition.
8105 (produce_composite_glyph): For static composition, get pixel_width
8106 from struct composition.
8107
8108 2009-02-02 Andreas Schwab <schwab@suse.de>
8109
8110 * unexelf.c (unexec): Handle unaligned bss offset.
8111
8112 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8113
8114 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8115 XT,w32read_socket changes to ns_read_socket.
8116
8117 * keyboard.c (handle_interrupt): Don't call
8118 quit_throw_to_read_char() under NS.
8119
8120 * blockinput.h: Remove NS-specific code.
8121
8122 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8123
8124 * dispnew.c (window_change_signal): Don't try to get the size of a
8125 suspended tty frame.
8126 * term.c (Fresume_tty): Resize if the size has changed while the
8127 tty was suspended.
8128
8129 * alloc.c (mark_stack): Properly conditionalize previous change.
8130
8131 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8132
8133 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8134 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8135 Remove; this code is not used on Windows.
8136
8137 2009-01-30 Eli Zaretskii <eliz@gnu.org>
8138
8139 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8140 EOLs that also has stray ^M characters.
8141
8142 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8143
8144 * atimer.c (run_timers, alarm_signal_handler):
8145 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8146 * w32inevt.c (w32_console_read_socket):
8147 * w32term.c (w32_read_socket):
8148 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8149
8150 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
8151
8152 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8153 Initialize it as a relative filename pattern.
8154 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8155 (Fcall_process_region): Simplify temp file creation using
8156 temporary-file-directory.
8157
8158 2009-01-29 Eli Zaretskii <eliz@gnu.org>
8159
8160 * msdos.c: Rename pending_signals to msdos_pending_signals.
8161 (sig_suspender, sigprocmask): Adjust.
8162
8163 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
8164
8165 * keyboard.c (pending_signals): New var.
8166 (poll_for_input, input_available_signal, init_keyboard): Set it.
8167 (process_pending_signals): New function.
8168
8169 * lisp.h (QUIT): Check pending_signals instead of
8170 interrupt_input_pending. Use process_pending_signals.
8171
8172 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8173
8174 * process.c (wait_reading_process_output): Use process_pending_signals.
8175
8176 * sysdep.c (emacs_write): Use process_pending_signals.
8177
8178 * xterm.c (XTread_socket): Update pending_signals.
8179
8180 * w32term.c (w32_read_socket): Update pending_signals.
8181
8182 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8183
8184 2009-01-29 Kenichi Handa <handa@m17n.org>
8185
8186 * xftfont.c (xftfont_has_char): New function.
8187 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8188
8189 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8190
8191 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8192 under GNUstep.
8193 (ns_query_color): New declaration.
8194
8195 * nsterm.m (ns_confirm_quit): New variable.
8196 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8197 (EmacsApp-applicationShouldTerminate:): Use it.
8198 (EmacsPrefsController): Let user set it.
8199 (ns_query_color): New function.
8200 (ns_defined_color): Use it.
8201 (ns_initialize): Drop.
8202 (ns_term_init): Add two lines from ns_initialize(), and set
8203 input_interrupt_mode to nil.
8204
8205 * image.c (svg_load_image): Don't right-shift background RGB when
8206 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
8207
8208 2009-01-28 Kenichi Handa <handa@m17n.org>
8209
8210 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8211 (fontset_get_font_group): Remember that no font-group is specified
8212 for C.
8213
8214 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
8215
8216 * fns.c (concat): Check for string overflow (bug#1787).
8217
8218 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8219 Quadruple undo limits (bug#1501).
8220
8221 2009-01-27 Kenichi Handa <handa@m17n.org>
8222
8223 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8224 directly use GT_Get_Char_index.
8225
8226 * xftfont.c (struct xftfont_info): New member `index'.
8227
8228 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8229 (Ffontset_font): Adjust for the change of fontset entry.
8230
8231 2009-01-26 Kenichi Handa <handa@m17n.org>
8232
8233 * fontset.c (fontset_find_font): Fix handling of non-cons return
8234 value of fontset_get_font_group.
8235 (fontset_font): Revert last change.
8236
8237 2009-01-26 Jason Rumney <jasonr@gnu.org>
8238
8239 * w32font.c (w32font_list_internal): Return quickly if registry is
8240 unknown. Simplify final return.
8241 (add_font_entity_to_list): Break complex logic down into more
8242 manageable chunks. Move unknown registry check to
8243 w32font_list_internal.
8244
8245 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8246
8247 Changes to remove Feval calls from GUI under NS.
8248
8249 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8250 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8251 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8252
8253 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8254 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8255 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8256 instead of NON_ASCII_KEYSTROKE_EVENT.
8257 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8258 (EmacsApp-applicationShouldTerminate:): Query user.
8259 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8260 instead of Feval.
8261
8262 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8263
8264 * keyboard.c (kbd_buffer_get_event): Check for it.
8265 (keys_of_keyboard): Define lispy keys for
8266 ns-put/unput-working-text.
8267
8268 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8269 versions.
8270 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8271
8272 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
8273
8274 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
8275 setting current_buffer directly. (Bug#2044)
8276
8277 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
8278
8279 * fontset.c (fontset_font): If we know there is no font, don't do
8280 any work. (Bug#1952, bug#1990).
8281
8282 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
8283
8284 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8285
8286 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
8287 (ns_no_defaults): New declaration.
8288 (main): Use it.
8289
8290 * nsterm.h (ns_no_defaults): New declaration.
8291
8292 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8293
8294 * nsterm.m (ns_no_defaults): New variable.
8295 (ns_initialize): Don't read defaults when ns_no_defaults.
8296 (EmacsView-readSelectionFromPasteboard:)
8297 (writeSelectionToPasteboard:types:): New stubbed-out methods for
8298 NSServicesRequests protocol. (Bug#1435)
8299 (ns_dumpglyphs_stretch): New function.
8300 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
8301 of 2008-11-15 to other terms. (Bug#615)
8302
8303 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8304
8305 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8306
8307 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8308 call for Sparc64.
8309
8310 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8311
8312 * nsfns.m:
8313 * nsgui.h:
8314 * nsmenu.m:
8315 * nsselect.m:
8316 * nsterm.h:
8317 * nsterm.m: Remove '23' comments that indicated code added during
8318 update from emacs-20 -> emacs-23.
8319
8320 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8321
8322 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
8323 ns_alternate_modifier. (Bug#1217)
8324
8325 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8326 Display all shortcuts, including those w/o super modifier.
8327
8328 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8329
8330 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * fileio.c (Vwrite_region_post_annotation_function)
8333 (Vwrite_region_annotation_buffers): New vars.
8334 (build_annotations_unwind): Just reset
8335 Vwrite_region_annotation_buffers.
8336 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8337 Call write-region-post-annotation-function.
8338 (build_annotations): Add to Vwrite_region_annotation_buffers if
8339 buffer changes.
8340
8341 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8342
8343 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8344 Tiger.
8345 * nsfns.m (ns_do_applescript):
8346 Conditionalize typeUTF16ExternalRepresentation on Tiger.
8347
8348 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8349
8350 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8351
8352 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8353
8354 * nsmenu.m (NSMENUPROFILE): Change #if style.
8355
8356 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8357
8358 * nsterm.m (x_set_frame_alpha): Add prototype.
8359 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8360 handle Ctrl-tab. (Bug#1841)
8361 (ns_get_color): Use unsigned long long for scanned hex string value.
8362 (ns_term_shutdown): Abort on non SIGTERM signals.
8363 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
8364 (EmacsPrefsController-setPanelFromDefaultValues): New function.
8365 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
8366 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
8367 (ns_defined_color): Fix settings of the XColor variable fields:
8368 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
8369
8370 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
8371 DPI. (Bug#1316)
8372 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8373 values in onTiger section.
8374
8375 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8378 Check return value of font_spec_from_name.
8379 (Fx_list_fonts): Doc fix. (Bug#1951)
8380
8381 * font.c (font_spec_from_name): Return Qnil if font name could not
8382 be parsed.
8383 (font_parse_name): Treat a `?' character as part of an XLFD.
8384
8385 * fns.c (Fsubstring): Doc fix.
8386
8387 2009-01-19 Kenichi Handa <handa@m17n.org>
8388
8389 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
8390 (ftfont_list): Likewise.
8391
8392 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
8393
8394 * dbusbind.c (Fdbus_register_signal):
8395 * process.c (conv_sockaddr_to_lisp):
8396 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8397
8398 * callproc.c (Fgetenv_internal): Doc fix.
8399
8400 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
8401
8402 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8403 it is not even used.
8404
8405 2009-01-16 Glenn Morris <rgm@gnu.org>
8406
8407 * font.c (Ffont_variation_glyphs): Silence compiler.
8408
8409 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
8410
8411 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8412 Reported by David Robinow <drobinow@gmail.com>.
8413
8414 2009-01-15 Kenichi Handa <handa@m17n.org>
8415
8416 * coding.c (detect_coding_system): Fix handling of null_byte_found.
8417
8418 2009-01-14 Jason Rumney <jasonr@gnu.org>
8419
8420 * frame.c (x_set_font): Always store a font to the font parameter,
8421 never a fontset. (Bug#1562)
8422
8423 2009-01-14 Kenichi Handa <handa@m17n.org>
8424
8425 * coding.c (TWO_MORE_BYTES): New macro.
8426 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
8427
8428 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
8429
8430 * font.c (font_clear_prop): If clearing the family, clear the font
8431 width index too.
8432
8433 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
8434
8435 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
8436
8437 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8438 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8439 functions, use sizeof.
8440
8441 2009-01-12 Martin Rudalics <rudalics@gmx.at>
8442
8443 * keyboard.c (read_char): Fix case where last_nonmenu_event
8444 returned a bad value with submenus. (Bug#447)
8445
8446 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
8447
8448 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8449 family, clear the font width index too.
8450
8451 2009-01-11 Jason Rumney <jasonr@gnu.org>
8452
8453 * keyboard.c (cmd_error_internal): Exit when errors occur before
8454 frame creation and not in daemon mode. (Bug#1836)
8455
8456 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
8457
8458 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8459 of a display vector, backtrack.
8460 (try_window_reusing_current_matrix): Check glyph type before
8461 referencing charpos member.
8462
8463 2009-01-10 Eli Zaretskii <eliz@gnu.org>
8464
8465 Fix Bug #876:
8466
8467 * coding.c (inhibit_null_byte_detection): New variable.
8468 (detect_coding, detect_coding_system): Don't pay attention to null
8469 bytes if inhibit_null_byte_detection is non-zero.
8470 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
8471 <inhibit-iso-escape-detection>: Doc fix.
8472
8473 2009-01-09 Jason Rumney <jasonr@gnu.org>
8474
8475 * w32font.c (add_font_entity_to_list): Don't report unknown
8476 Windows charset as any unrecognized registry. (Bug#1548)
8477 Only report Unicode Plane 2 fonts as unicode-sip.
8478
8479 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
8480
8481 * xfaces.c (Fx_font_family_list): Delete function.
8482 Move compatibility version to faces.el.
8483
8484 * font.c (Ffont_family_list): Return a list of strings, not symbols.
8485
8486 2009-01-09 Martin Rudalics <rudalics@gmx.at>
8487
8488 * frame.c (x_set_frame_parameters): Remember requested value for
8489 fullscreen before it's reset by the parameter handler.
8490
8491 2009-01-09 Glenn Morris <rgm@gnu.org>
8492
8493 * keyboard.c (last_command_char): For clarity, rename to...
8494 (last_command_event): ... and update all users.
8495 (last_input_char): For clarity, rename to...
8496 (last_input_event): ... and update all users.
8497 (last-command-char, last-input-char): Move to subr.el as aliases.
8498 * cmds.c, commands.h: Update for last_command_char rename.
8499
8500 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
8501
8502 * font.c (font_open_for_lface): Handle unspecified height attribute.
8503
8504 2009-01-08 Jason Rumney <jasonr@gnu.org>
8505
8506 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8507 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8508 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8509 Don't declare.
8510 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
8511 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8512
8513 2009-01-07 Kenichi Handa <handa@m17n.org>
8514
8515 * fileio.c (Finsert_file_contents): In the case of replace,
8516 remember the coding system used for decoding in
8517 coding_system (Bug#1039).
8518
8519 * coding.c (decode_coding_utf_8): Check byte_after_cr before
8520 breaking the loop. (Bug#870)
8521 (decode_coding_utf_16, decode_coding_emacs_mule)
8522 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8523 (decode_coding_charset): Likewise.
8524
8525 2009-01-05 Martin Rudalics <rudalics@gmx.at>
8526
8527 * frame.c (x_set_frame_parameters): Make sure height (width) get
8528 applied when fullwidth (fullheight) is set. (Bug#1522)
8529
8530 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
8531
8532 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8533 (utc_base): Declare as ULONGLONG, not long double.
8534 (convert_time_raw): Delete.
8535 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8536 (initialize_utc_base): New function.
8537 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8538 (convert_from_time_t): Use initialize_utc_base; compute result with
8539 64-bit arithmetic.
8540 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8541
8542 2009-01-03 Eli Zaretskii <eliz@gnu.org>
8543
8544 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
8545 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8546 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8547 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8548 [!subprocesses]: Define.
8549 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8550 (Flist_system_processes, Fsystem_process_attributes)
8551 [!subprocesses]: Call list_system_processes and
8552 system_process_attributes instead of returning Qnil.
8553
8554 * dosfns.c (system_process_attributes, list_system_processes):
8555 New functions.
8556
8557 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8558
8559 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8560 Don't use the default (no-op) implementation.
8561
8562 2009-01-03 Jason Rumney <jasonr@gnu.org>
8563
8564 * keyboard.c (parse_modifiers_uncached): Wheel events are
8565 clicks (bug#687).
8566
8567 * w32term.c (x_query_colors, x_query_color): New functions.
8568
8569 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8570 (svg_load_image): Cast returned pointers from dynamically loaded
8571 functions. Eliminate W32 specific code.
8572
8573 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8574
8575 * nsfns.m (x_set_foreground_color, x_set_background_color)
8576 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8577 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8578 x_ prefix instead of ns_. Update references.
8579 (syms_of_nsfns): Add a FIXME comment.
8580
8581 * nsterm.m (x_set_cursor_type): New prototype.
8582 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8583
8584 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8585 for Solaris instead of incorrectly providing Qutime and Qcutime.
8586
8587 2009-01-02 Eli Zaretskii <eliz@gnu.org>
8588
8589 * w32.c (process_times): Compute sum of utime and stime.
8590 (system_process_attributes): Add Qtime to the alist.
8591
8592 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8593 and add them to the alist.
8594
8595 * process.c (top level) <Qtime, Qctime>: New variables.
8596 (syms_of_process): staticpro them.
8597 (Fsystem_process_attributes): Add their documentation to the doc
8598 string.
8599
8600 * process.h: Declare Qtime and Qctime.
8601
8602 2009-01-02 Jason Rumney <jasonr@gnu.org>
8603
8604 * image.c (Qgobject): New symbol.
8605 (syms_of_image): Initialize it.
8606 (init_svg_functions): Load some functions from gobject library.
8607
8608 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8609
8610 * frame.c (make_terminal_frame): Remove redundant code and useless
8611 block.
8612
8613 2009-01-01 Andreas Schwab <schwab@suse.de>
8614
8615 * process.c (conv_sockaddr_to_lisp): Add workaround for
8616 getsockname bug on BSD.
8617
8618 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
8619
8620 * xfns.c (x_create_tip_frame): Set border width of the X window.
8621
8622 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
8623
8624 2009-01-01 Jason Rumney <jasonr@gnu.org>
8625
8626 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
8627 Don't block input, as per earlier xterm.c changes.
8628
8629 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8630
8631 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8632 (ns_appkit_version_int): New function.
8633 (x-server-version): Use ns_appkit_version_int and follow 21+
8634 convention of returning 3 integers.
8635
8636 2008-12-30 Kenichi Handa <handa@m17n.org>
8637
8638 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8639 (CHAR_SURROGATE_PAIR_P): New macro.
8640
8641 * font.h (struct font_driver): New member get_variation_glyphs.
8642
8643 * font.c (font_range): Don't require a font for a variation selector.
8644 (Ffont_variation_glyphs): New function.
8645 (syms_of_font): Defsubr it.
8646
8647 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8648 ftfont_variation_glyphs.
8649 (setup_otf_gstring): New function.
8650 (ftfont_drive_otf): Use it.
8651 (ftfont_shape_by_flt): Handle variation selector.
8652 (ftfont_variation_glyphs): New function.
8653
8654 2008-12-30 Martin Rudalics <rudalics@gmx.at>
8655
8656 * frame.c (Vemacs_iconified): Remove.
8657
8658 2008-12-30 Jason Rumney <jasonr@gnu.org>
8659
8660 * frame.c (store_frame_param, x_get_arg): Enable newer code on
8661 WINDOWSNT too, as related changes have already been synced. (Bug#117)
8662
8663 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * indent.c (Fvertical_motion): Don't advance iterator if we have
8666 reseated to the desired position.
8667
8668 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8669 checking for pos match.
8670
8671 2008-12-30 Kenichi Handa <handa@m17n.org>
8672
8673 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8674 just get the low 8-bit of the code.
8675
8676 * font.c (font_intern_prop): Validate str as multibyte.
8677
8678 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8679
8680 * dispextern.h (struct face): Move lface and hash from the middle
8681 of bitfields.
8682
8683 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8684
8685 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8686
8687 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8688 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8689 instead of intervals.h.
8690
8691 2008-12-26 Andreas Schwab <schwab@suse.de>
8692
8693 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8694 cons.
8695
8696 2008-12-26 Martin Rudalics <rudalics@gmx.at>
8697
8698 * textprop.c (Qminibuffer_prompt): New variable.
8699 (syms_of_textprop): Initialize it.
8700 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8701 in minibuffer-prompt face. (Bug#1662)
8702
8703 2008-12-25 Jason Rumney <jasonr@gnu.org>
8704
8705 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8706
8707 2008-12-24 Jason Rumney <jasonr@gnu.org>
8708
8709 * ralloc.c (r_alloc_reset_variable): New function.
8710
8711 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
8712 record of what points where. (Bug#716)
8713
8714 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8715
8716 * minibuf.c (read_minibuf): Follow the non-interactive case when
8717 running as a daemon, before detaching.
8718
8719 2008-12-22 Andreas Schwab <schwab@suse.de>
8720
8721 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8722 * gtkutil.c (free_widget_value): Use xfree instead of free.
8723
8724 2008-12-22 Martin Rudalics <rudalics@gmx.at>
8725
8726 * frame.c (delete_frame): New function derived from
8727 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8728 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8729 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8730 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8731 * frame.h: Extern delete_frame.
8732 * window.c (window_loop):
8733 * terminal.c (delete_terminal):
8734 * xterm.c (x_connection_closed):
8735 * xfns.c (Fx_hide_tip):
8736 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
8737
8738 2008-12-21 Jason Rumney <jasonr@gnu.org>
8739
8740 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8741 when character maps to .notdef character.
8742
8743 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8744
8745 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8746
8747 2008-12-20 Jason Rumney <jasonr@gnu.org>
8748
8749 * frame.c (Fmake_terminal_frame): Raise an error when called from
8750 a graphical frame on Windows. (Bug#1325)
8751
8752 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8753
8754 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8755
8756 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
8757
8758 * minibuf.c (Fread_buffer): Doc fix.
8759
8760 2008-12-20 Jason Rumney <jasonr@gnu.org>
8761
8762 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
8763 server name in UNC paths. (Bug#719)
8764
8765 * coding.c (decode_coding): Clear chars_at_source flag when using
8766 charbuf. (Bug#1035)
8767
8768 2008-12-19 Daniel Engeler <engeler@gmail.com>
8769
8770 * sysdep.c (serial_configure): Fix typo.
8771
8772 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8773
8774 * sysdep.c: Include alloca.h.
8775 (system_process_attributes): Add implementation for Solaris.
8776
8777 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
8778
8779 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8780
8781 Reorganize implementation of Flist_system_processes and
8782 Fsystem_process_attributes. No functional changes.
8783 * process.c: Don't #include pwd.h, grp.h and limits.h.
8784 (Flist_system_processes): Just call list_system_processes.
8785 (Fsystem_process_attributes): Just call system_process_attributes.
8786 (procfs_list_system_processes, time_from_jiffies)
8787 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8788 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8789
8790 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8791 (list_system_processes): Rename from
8792 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8793 Provide a do nothing implementation.
8794 (system_process_attributes): Rename from
8795 procfs_list_system_processes.
8796 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8797 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
8798
8799 * w32.c (list_system_processes): Rename from
8800 w32_list_system_processes.
8801 (system_process_attributes): Rename from
8802 w32_system_process_attributes.
8803
8804 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8805
8806 * process.h (w32_list_system_processes)
8807 (w32_system_process_attributes): Remove.
8808 (list_system_processes, system_process_attributes):
8809 New prototypes.
8810
8811 2008-12-19 Kenichi Handa <handa@m17n.org>
8812
8813 * xfont.c (xfont_decode_coding_xlfd): New function.
8814 (xfont_encode_coding_xlfd): New function.
8815 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8816 (xfont_list): Decode and encode XLFD by iso-8859-1.
8817 (xfont_match): Likewise.
8818 (xfont_list_family): Likewise.
8819 (xfont_open): Likewise.
8820
8821 * ftfont.c (ftfont_open): Generate a multibyte string if given
8822 names are utf-8.
8823
8824 * xftfont.c (xftfont_open): Generate a multibyte string if given
8825 names are utf-8.
8826
8827 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8828
8829 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8830 changed.
8831 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8832 clicked on a detached tool bar button.
8833
8834 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8835
8836 * emacs.c (main): Print and error and exit when no data is read
8837 from the pipe.
8838
8839 2008-12-17 Jason Rumney <jasonr@gnu.org>
8840
8841 * w32font.c (w32font_has_char): Always return -1.
8842
8843 2008-12-16 Kenichi Handa <handa@m17n.org>
8844
8845 * font.c (font_open_entity): Fix previous change.
8846
8847 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8848
8849 * process.c: Include <limits.h>.
8850
8851 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
8852
8853 * font.c (font_update_drivers): Fix mistake in reconstructing the
8854 driver list.
8855
8856 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
8857
8858 * font.c (font_clear_cache): Fix format of font cache data.
8859
8860 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
8861
8862 * xftfont.c (xftfont_open): Free Xft font pattern if
8863 XftFontOpenPattern fails.
8864
8865 * xterm.c (x_free_frame_resources): Remove extraneous call to
8866 free_frame_faces.
8867
8868 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8869
8870 * xterm.c (x_delete_display): Move xim_close_dpy call to
8871 x_delete_terminal.
8872 (x_delete_terminal): Call xim_close_dpy.
8873
8874 2008-12-13 Jason Rumney <jasonr@gnu.org>
8875
8876 * w32font.c (intern_font_name): New function.
8877 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8878 (w32font_open_internal, Fx_select_font): Decode font name.
8879 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8880
8881 * w32font.h (intern_font_name): Declare new function.
8882
8883 * w32uniscribe.c (add_opentype_font_name_to_list):
8884 Use intern_font_name.
8885
8886 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8887
8888 * frame.c (Fdelete_frame): Call free_font_driver_list.
8889
8890 * font.c (free_font_driver_list): Implement missing function.
8891
8892 * w32term.c (w32_term_init): Don't initialize the image cache
8893 here; it will be done in init_frame_faces.
8894
8895 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8896 (struct x_display_info): Remove unused member null_pixel. New
8897 member xim_callback_data.
8898
8899 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8900 (xim_initialize): Save pointer to callback function data.
8901 (xim_close_dpy): Free callback function data. Call XCloseIM,
8902 reverting 2008-11-04 change by David Smith.
8903 (x_term_init): Don't initialize the image cache here; it will be
8904 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8905 (x_delete_display): Free x_dnd_atoms member.
8906
8907 2008-12-13 Kenichi Handa <handa@m17n.org>
8908
8909 * font.c (font_rescale_ratio): Moved from xfaces.c.
8910 Argument type changed. Handle a font-spec too.
8911 (font_score): Check Vface_font_rescale_alist.
8912 (font_open_entity): Likewise. (Bug#1547)
8913
8914 * xfaces.c (font_rescale_ratio): Moved to font.c.
8915
8916 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8917
8918 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8919
8920 2008-12-12 Jason Rumney <jasonr@gnu.org>
8921
8922 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8923 Vwindow_system_version to the real w32 major version.
8924
8925 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8926
8927 * term.c (init_tty): Move setting the terminal name before the
8928 potential user: maybe_fatal.
8929
8930 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
8931
8932 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8933 all callers changed. Call free_frame_faces to free the face cache.
8934
8935 2008-12-11 Jason Rumney <jasonr@gnu.org>
8936
8937 * w32font.c (fill_in_logfont): Don't assume symbol script means
8938 SYMBOL_CHARSET. (Bug#547)
8939
8940 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
8941 size for surrogates. (Bug#1096, bug#872)
8942
8943 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8944
8945 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8946
8947 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8948
8949 * process.c (Fsystem_process_attributes, syms_of_process):
8950 Fix typo in name of Ssystem_process_attributes.
8951 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8952
8953 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8954
8955 * syntax.c (Fmodify_syntax_entry): Doc fix.
8956
8957 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8958
8959 * font.c (Ffont_spec): Move usage to end of docstring.
8960
8961 2008-12-10 Jason Rumney <jasonr@gnu.org>
8962
8963 * w32font.c (Qcham): New symbol.
8964 (font_supported_scripts): Add cham, and comments for other new
8965 scripts in bitfield from OpenType spec.
8966 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8967 contain characters beyond the bmp.
8968
8969 2008-12-10 Kenichi Handa <handa@m17n.org>
8970
8971 * ftfont.c (fc_charset_table): Add "unicode-sip".
8972 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
8973 Qunicode_sip.
8974
8975 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8976
8977 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8978 (Fcoding_system_put): Use QCdefault_char.
8979 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8980
8981 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
8982
8983 * xftfont.c (syms_of_xftfont): Fix typo.
8984
8985 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
8986
8987 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8988
8989 * emacs.c (main): Close daemon_pipe on exec.
8990
8991 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
8992
8993 * termchar.h (struct tty): New members termcap_term_buffer and
8994 termcap_strings_buffer.
8995
8996 * term.c (encode_terminal_code): Free any previous memory blocks
8997 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
8998 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8999 All callers changed.
9000 (init_tty): Store termcap data and string buffers in new struct
9001 tty members termcap_term_buffer and termcap_strings_buffer.
9002 (delete_tty): Free them.
9003 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9004
9005 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9006
9007 * nsfns.m (ns_set_background_color): Remove code duplication.
9008 It was a substitute for face-transparency on OS X 10.3.
9009
9010 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9011
9012 * coding.c (make_conversion_work_buffer): Disable buffer
9013 modification hooks in the work buffer.
9014
9015 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9016
9017 * process.c (procfs_system_process_attributes): If `nread' has a
9018 negative value, assign zero to it.
9019
9020 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * eval.c (Vdebug_on_error): Doc fix.
9023
9024 2008-12-05 Kenichi Handa <handa@m17n.org>
9025
9026 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9027 second character is a combining character.
9028
9029 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9030
9031 * process.c (procfs_system_process_attributes): Don't use cmd,
9032 cmdsize, and q without initializing them first.
9033
9034 2008-12-04 Jason Rumney <jasonr@gnu.org>
9035
9036 * w32font.c (w32font_draw): Initialize orig_clip before getting
9037 it, and delete it when finished.
9038
9039 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9040
9041 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9042 case when running as a daemon before detaching.
9043
9044 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9045
9046 * w32.c (init_environment): Don't unload library shell32.dll.
9047
9048 2008-12-03 Kenichi Handa <handa@m17n.org>
9049
9050 * font.c (font_at): Set `multibyte' at first.
9051
9052 * coding.c (decode_coding_charset): Check type of an element of
9053 vector VALIDS.
9054 (encode_coding_emacs_mule): Be sure to set `code'.
9055
9056 * fontset.c (face_for_char): Handle invalid charset property correctly.
9057 (font_for_char): Likewise.
9058
9059 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9060
9061 * font.c (Fopen_font): Compute pixel size correctly.
9062 (font_update_lface): Handle fonts with corrupted size specs,
9063 i.e. non-int and non-float.
9064
9065 * ftfont.c (ftfont_match): Initialize entity variable.
9066 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9067 (ftfont_list_family): Initialize list var earlier.
9068
9069 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9070
9071 * xterm.c (x_draw_glyph_string): Fall back on
9072 underline_minimum_offset for underline position.
9073
9074 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9075
9076 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9077
9078 * character.c (c_string_width): Specify the type for LEN.
9079
9080 2008-12-03 Kenichi Handa <handa@m17n.org>
9081
9082 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9083 (decode_coding_utf_8): Likewise.
9084 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9085 (produce_chars): Initialize consumed_chars to 0.
9086
9087 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * keyboard.c (make_lispy_position): Only use PT if the selected
9090 window is current.
9091
9092 2008-12-02 Andreas Schwab <schwab@suse.de>
9093
9094 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9095
9096 * doprnt.c (doprnt1): Fix size of charbuf.
9097
9098 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9099
9100 * keyboard.c (timer_check): Revert last change.
9101
9102 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
9103
9104 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9105
9106 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
9107
9108 * makefile.w32-in: Update dependencies.
9109 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9110
9111 2008-12-01 Andreas Schwab <schwab@suse.de>
9112
9113 * font.c (register_font_driver): Use xmalloc.
9114 (font_put_frame_data): Likewise.
9115
9116 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
9117
9118 * xfaces.c (realize_x_face): Make abort condition clearer.
9119
9120 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9121
9122 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
9123
9124 * keyboard.c (timer_check): After a timer runs, ensure that the
9125 selected window's buffer is current.
9126
9127 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
9128
9129 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9130 It was accidentally restored by the Unicode merge.
9131
9132 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9133
9134 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
9135
9136 * w32proc.c: Include "coding.h".
9137 (Fw32_short_file_name): Encode filename passed to Windows API.
9138 (Fw32_long_file_name): Encode filename passed to Windows API and
9139 decode back the result. (Bug#1433)
9140
9141 2008-11-29 Kenichi Handa <handa@m17n.org>
9142
9143 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9144 not before accessing it.
9145
9146 * charset.c (Fdefine_charset_internal): After calculating
9147 min_char, max_char, and fastmap, copy the charset structure again.
9148 (encode_char): Fix the previous change.
9149
9150 2008-11-28 Seiji Zenitani <zenitani@mac.com>
9151
9152 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9153
9154 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9155
9156 * nsterm.m (x_set_frame_alpha): New function.
9157
9158 2008-11-27 Eli Zaretskii <eliz@gnu.org>
9159
9160 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9161
9162 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
9163
9164 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9165 pointer to check_face_name.
9166
9167 2008-11-27 Kenichi Handa <handa@m17n.org>
9168
9169 * category.h (SET_CATEGORY_SET): Call set_category_set.
9170 (set_category_set): Extern it.
9171
9172 * category.c (hash_get_category_set): New function.
9173 (Fmodify_category_entry): Adjusted for the change of
9174 char_table_ref_and_range. Call hash_get_category_set to get a
9175 category set to store in the table.
9176
9177 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9178 Funify_charset.
9179
9180 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9181 (DECODE_CHAR): Check if the decoder vector is ready.
9182 (ENCODE_CHAR): Check if the encoder char-table is ready.
9183 (maybe_unify_char): Extern it.
9184
9185 * charset.c (Vchar_unified_charset_table): Delete it.
9186 (inhibit_load_charset_map): New variable.
9187 (temp_charset_work): New variable.
9188 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9189 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9190 New macros.
9191 (load_charset_map): Meaning of control_flag changed. If
9192 inhibit_load_charset_map is nonzero, setup a table in
9193 temp_charset_work.
9194 (load_charset): New argument control_flag.
9195 (map_charset_for_dump): New function.
9196 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9197 map_charset_for_dump.
9198 (Fdefine_charset_internal): If the charset method is MAP, load
9199 mapping tables by calling load_charset.
9200 (Funify_charset): Don't load a mapping table but directly set
9201 Vchar_unify_table.
9202 (maybe_unify_char): New function.
9203 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9204 Handle the case of inhibit_load_charset_map being nonzero.
9205 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9206 Handle the case of inhibit_load_charset_map being nonzero.
9207 (Fclear_charset_maps): Just free temp_charset_work.
9208 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9209 variable.
9210
9211 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9212 change of char_table_ref_and_range.
9213 (char_table_ref_and_range): Change the meaning of argument FROM
9214 and TO. Now the caller must provide initial values for *FROM
9215 and *TO.
9216
9217 * fontset.c (fontset_add): Adjusted for the change of
9218 char_table_ref_and_range.
9219 (fontset_get_font_group): Likewise.
9220 (Ffontset_info): Likewise.
9221
9222 * keymap.c (describe_vector): Adjusted for the change of
9223 char_table_ref_and_range. For char-table, put boundary between
9224 non-ASCII and 8-bit characters.
9225
9226 * print.c (print_object): For bool-vector, delete unnecessary
9227 check of ASCII_BYTE_P.
9228
9229 2008-11-26 Jason Rumney <jasonr@gnu.org>
9230
9231 * w32font.c (w32font_open_internal): Don't include external
9232 leading in font height. (Bug#879)
9233
9234 2008-11-26 Glenn Morris <rgm@gnu.org>
9235
9236 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9237 redefinition with ifdef. (Bug#1383)
9238
9239 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9240
9241 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9242
9243 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9244
9245 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9246 New EmacsView methods.
9247 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9248 Fixes bug #1048,1357,1414.
9249
9250 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9251
9252 Fix bug #1362.
9253 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9254 is not an indexed color.
9255 * nsterm.m (free_indexed_color): Add argument checking.
9256 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9257
9258 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
9259
9260 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9261 Document confirm-after-completion value for
9262 minibuffer-completion-confirm.
9263
9264 2008-11-24 Jason Rumney <jasonr@gnu.org>
9265
9266 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9267 warning.
9268
9269 2008-11-23 Jason Rumney <jasonr@gnu.org>
9270
9271 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9272 restored before returning.
9273
9274 * w32font.c (check_face_name): New function.
9275 (add_font_entity_to_list): Use it to filter out common substituted
9276 fonts. (Bug#642)
9277
9278 2008-11-22 Martin Rudalics <rudalics@gmx.at>
9279
9280 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9281 confirm-nonexistent-file-or-buffer in doc-string.
9282
9283 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9284
9285 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9286 Fix copy/paste typo. Add checks.
9287
9288 2008-11-21 Kenichi Handa <handa@m17n.org>
9289
9290 * coding.c (detect_coding_iso_2022): Reject invalid composition
9291 sequence.
9292 (DECODE_COMPOSITION_START): If the current source is the last
9293 block, and the current composition doesn't end, regard this
9294 sequence as invalid.
9295 (decode_coding_iso_2022): Handle invalid composition sequence.
9296
9297 2008-11-20 Martin Rudalics <rudalics@gmx.at>
9298
9299 * window.c (coordinates_in_window): Don't return
9300 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9301 line when the window is not the rightmost one. (Bug#1372)
9302
9303 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9304
9305 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9306
9307 2008-11-15 Eli Zaretskii <eliz@gnu.org>
9308
9309 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9310 and bright_bg if noninteractive is non-zero.
9311
9312 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9313
9314 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9315 x_draw_glyph_string_background.
9316
9317 * w32term.c (x_draw_glyph_string): Likewise.
9318
9319 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
9320
9321 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9322 the next glyph string once past the overhang width.
9323
9324 * nsterm.m (ns_draw_glyph_string): Likewise.
9325
9326 * w32term.c (x_draw_glyph_string): Likewise.
9327
9328 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9329
9330 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9331 double file close.
9332
9333 2008-11-14 Martin Rudalics <rudalics@gmx.at>
9334
9335 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9336 dedicated status of window before attempting to display another
9337 buffer in it.
9338
9339 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
9340
9341 * msdos.c (Fmsdos_long_file_names):
9342 (syms_of_msdos) <dos-unsupported-char-glyph>:
9343 * dosfns.c (Fint86): Fix typos in docstrings.
9344
9345 2008-11-14 Eli Zaretskii <eliz@gnu.org>
9346
9347 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9348
9349 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9350
9351 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9352
9353 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9354
9355 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9356
9357 * frame.h: Negative alpha means "don't touch".
9358
9359 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9360
9361 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9362
9363 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9364
9365 * hftctl.c:
9366 * chpdef.h:
9367 * acldef.h: Remove files used only for systems no longer supported.
9368
9369 * Makefile.in: Fix .o alphabetical ordering.
9370 (hftctl.o): Remove dependency, file removed.
9371 (keymap.o, print.o): Depend on charset.h.
9372
9373 2008-11-10 Kenichi Handa <handa@m17n.org>
9374
9375 * character.c (Fget_byte): Fix and make it faster for unibyte target.
9376
9377 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
9378
9379 * dired.c (file_name_completion): If completion_ignore_case is
9380 enabled, ignore case when checking completion-regexp-list.
9381
9382 2008-11-08 Eli Zaretskii <eliz@gnu.org>
9383
9384 * vm-limit.c (get_lim_data): Fix last change.
9385
9386 2008-11-08 Kenichi Handa <handa@m17n.org>
9387
9388 * character.c (Fget_byte): New function.
9389 (syms_of_character): Defsubr Fget_byte.
9390
9391 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
9392
9393 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9394 cursor position is valid after scrolling.
9395
9396 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
9397
9398 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9399
9400 2008-11-06 Glenn Morris <rgm@gnu.org>
9401
9402 * xterm.c (handle_one_xevent): Don't let popup menus cause
9403 mouse-autoselect-window related window switching. (Bug#1261)
9404
9405 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9406
9407 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9408
9409 2008-11-04 Andreas Schwab <schwab@suse.de>
9410
9411 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9412
9413 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
9414
9415 * xfns.c (Fx_wm_set_size_hint): New function.
9416
9417 2008-11-03 Martin Rudalics <rudalics@gmx.at>
9418
9419 * textprop.c (Fprevious_single_char_property_change): Return 0
9420 when there's no change in a string. (Bug#1301)
9421
9422 2008-11-02 Martin Rudalics <rudalics@gmx.at>
9423
9424 * frame.c (do_switch_frame): New argument NORECORD passed to
9425 Fselect_window.
9426 (Fselect_frame): New argument NORECORD passed to
9427 do_switch_frame.
9428 (Fset_frame_selected_window): New argument NORECORD passed to
9429 Fselect_frame.
9430 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9431 in call of do_switch_frame.
9432 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9433 Handle NORECORD argument in call of Fselect_frame.
9434 * lisp.h (do_switch_frame, Fselect_frame)
9435 (Fset_frame_selected_window): Adjust declarations.
9436 * window.c (select_frame_norecord): New function.
9437 (run_window_configuration_change_hook): Use it and call
9438 Fselect_frame with NORECORD set.
9439 (Fselect_window): Pass NORECORD to Fselect_frame.
9440 (Fset_window_configuration): Handle NORECORD argument in call of
9441 do_switch_frame.
9442 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9443 Fset_frame_selected_window.
9444 * keyboard.c (command_loop_1): Handle NORECORD in call of
9445 Fselect_frame (currently ifdefd).
9446
9447 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9448
9449 * emacs.c (USAGE2): Untabify.
9450
9451 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9452
9453 * composite.c (fill_gstring_header): Fix copy/paste typo.
9454
9455 2008-10-31 Martin Rudalics <rudalics@gmx.at>
9456
9457 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9458 (Fother_window): Rename argument and rewrite doc-string.
9459 (select_window_norecord): Fix return value. (Bug#1276)
9460
9461 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
9462
9463 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9464 new frames overriding foreground for tooltips. Based on similar patch
9465 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9466
9467 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
9468
9469 * emacs.c (Fdaemon_initialized): Initialize nfd.
9470
9471 2008-10-29 Martin Rudalics <rudalics@gmx.at>
9472
9473 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9474 (Fwindow_text_height): Clarify doc-strings.
9475 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9476 doc-string of window-scroll-functions.
9477
9478 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9479
9480 * category.c (syms_of_category): Fix typo in docstring.
9481
9482 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
9483
9484 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9485 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9486 Fix typos in docstrings.
9487
9488 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9489
9490 * emacs.c (daemon_pipe): Make non-static.
9491 (IS_DAEMON): Move definition ...
9492 * lisp.h (IS_DAEMON): ... here.
9493 (daemon_pipe): Declare.
9494 (is_daemon): Remove.
9495 * dispnew.c (init_display): Use IS_DAEMON.
9496
9497 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9498
9499 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9500 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9501
9502 * emacs.c (is_daemon): Remove.
9503 (main): Don't set is_daemon.
9504 (IS_DAEMON): New macro.
9505 (Fdaemonp, Fdaemon_initialized): Use it.
9506 (Fdaemon_initialized): Write a char into the pipe to make sure the
9507 parent exits.
9508 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9509
9510 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9513 over-sized glyph, draw it with the default glyph width.
9514
9515 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9516 glyph, draw it with the default glyph width.
9517
9518 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9519 glyph, draw it with the default glyph width.
9520
9521 * xdisp.c (try_scrolling): When computing the distance from the
9522 scroll margin to PT, try moving some distance past the window
9523 bottom before giving up.
9524
9525 2008-10-27 Martin Rudalics <rudalics@gmx.at>
9526
9527 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9528 (Fset_window_buffer): Explain in doc-string that a window can be
9529 "strongly" dedicated to its buffer.
9530
9531 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9532
9533 * emacs.c (daemon_name): New variable.
9534 (main): Deal with --daemon=SERVER_NAME.
9535 (Fdaemonp): Return a name if one was passed to --daemon.
9536
9537 2008-10-26 Romain Francoise <romain@orebokech.com>
9538
9539 * emacs.c (daemon_pipe): New variable.
9540 (main): Create a pipe before forking, make the parent exit only after
9541 the child has closed its end of the pipe. Move closing the
9542 descriptors ...
9543 (Fdaemon_initialized): ... here. New function.
9544
9545 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9546
9547 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9548 the previous unoptimized table.
9549
9550 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9551 the distinction between non-nil and non-t value of `dedicated'.
9552
9553 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
9554
9555 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
9556 read_char_minibuf_menu_text is large enough to hold the menu string.
9557
9558 2008-10-25 Martin Rudalics <rudalics@gmx.at>
9559
9560 * window.c (Fget_buffer_window, Fdelete_windows_on)
9561 (Freplace_buffer_in_windows): Make buffer argument optional and
9562 rename to buffer_or_name.
9563
9564 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
9565
9566 * xdisp.c (handle_single_display_spec, handle_display_prop):
9567 Undo 2005-05-16 change.
9568 (handle_stop): Pop iterator if it's loaded with an empty string.
9569 (get_overlay_strings_1): Don't save iterator if it's loaded with
9570 an empty string (bug#1201).
9571
9572 2008-10-24 Kenichi Handa <handa@m17n.org>
9573
9574 * ftfont.c (ftfont_otf_features): Fix previous change.
9575 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9576 calling ftfont_otf_features.
9577
9578 2008-10-24 Kenichi Handa <handa@m17n.org>
9579
9580 * font.c (font_match_p): Fix for the case that a vector of
9581 characters is in script-representative-chars.
9582
9583 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
9584
9585 * dbusbind.c (xd_in_read_queued_messages): New variable.
9586 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
9587 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9588 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
9589 macro. (Bug#1186)
9590
9591 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9592
9593 * s/sol2-10.h: New file.
9594
9595 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9596
9597 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9598 poor beast has survived 9+ years and the jump from xterm.c!).
9599
9600 2008-10-23 Martin Rudalics <rudalics@gmx.at>
9601
9602 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9603 Reword doc-string.
9604 (Fbury_buffer): In doc-string say what happens to the buffer's window.
9605
9606 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9607
9608 * character.c (syms_of_character) <script-representative-chars>:
9609 <unicode-category-table>: Doc fixes.
9610
9611 2008-10-23 Noah Friedman <friedman@splode.com>
9612
9613 * coding.c (make_conversion_work_buffer): Check that
9614 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9615 Fget_buffer_create.
9616
9617 2008-10-23 Kenichi Handa <handa@m17n.org>
9618
9619 * font.c (font_add_log): Check the values of extra properties.
9620
9621 2008-10-22 Martin Rudalics <rudalics@gmx.at>
9622
9623 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9624 Reword doc-string.
9625 (Fset_window_parameter): Use NILP.
9626 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
9627 (Frecenter): Use "selected" instead of "current" window in doc-strings.
9628
9629 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9630
9631 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9632
9633 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9634
9635 * nsfns.m (ns_appkit_version): New function.
9636 (x-server-version): Use it.
9637 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9638 (x-server-vendor): Don't check_ns().
9639
9640 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9641
9642 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9643
9644 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9645 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9646
9647 2008-10-22 Kenichi Handa <handa@m17n.org>
9648
9649 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9650 scripts.
9651
9652 * category.c (word_boundary_p): Check scripts instead of charset.
9653 Handle nil value in word-separating-categories and
9654 word-combining-categories.
9655 (syms_of_category): Fix docstrings of word-separating-categories
9656 and word-combining-categories.
9657
9658 2008-10-21 Eli Zaretskii <eliz@gnu.org>
9659
9660 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9661 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9662
9663 2008-10-21 Martin Rudalics <rudalics@gmx.at>
9664
9665 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9666 Rename arg "buffer" to "buffer_or_name".
9667 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9668 it optional.
9669 (no_switch_window): Remove since the return value is not used.
9670 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
9671 Consider window as dedicated when Fwindow_dedicated_p returns a
9672 non-nil value.
9673 * lisp.h: Remove prototype for no_switch_window.
9674
9675 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9676
9677 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
9678 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
9679
9680 2008-10-21 Kenichi Handa <handa@m17n.org>
9681
9682 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9683 check Vlatin_extra_code_table.
9684
9685 2008-10-20 Eli Zaretskii <eliz@gnu.org>
9686
9687 * fileio.c (Fset_file_modes): Doc fix.
9688
9689 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
9690
9691 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9692 in arrays.
9693
9694 2008-10-19 Martin Rudalics <rudalics@gmx.at>
9695
9696 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9697 Mention kill-buffer in doc-string.
9698 (Fset_window_buffer): Reinsert tem check removed in last commit.
9699 (Fenlarge_window, Fshrink_window): Have argument names and
9700 doc-string follow Elisp manual more closely.
9701
9702 2008-10-18 Eli Zaretskii <eliz@gnu.org>
9703
9704 * fileio.c (Fset_file_modes): Doc fix.
9705
9706 2008-10-18 Martin Rudalics <rudalics@gmx.at>
9707
9708 * window.c (Fwindow_width, Fset_window_start)
9709 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
9710 (Fdelete_windows_on, Freplace_buffer_in_windows):
9711 Make doc-strings follow code and Elisp manual more closely.
9712 (Fwindow_dedicated_p): Make window argument optional.
9713 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9714 (Fset_window_buffer): Respect any non-nil dedicated value for
9715 window. Rename "buffer" argument to "buffer_or_name".
9716
9717 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
9718
9719 * m/sh3.h: New file, machine description for SuperH.
9720
9721 2008-10-17 Martin Rudalics <rudalics@gmx.at>
9722
9723 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9724
9725 2008-10-17 Kenichi Handa <handa@m17n.org>
9726
9727 * ftfont.c (ftfont_otf_features): Fix indexing
9728 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9729
9730 2008-10-16 Magnus Henoch <mange@freemail.hu>
9731
9732 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9733 (Fdbus_call_method_asynchronously): Ditto.
9734 This change makes C-h f display the argument list.
9735
9736 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
9737
9738 * fileio.c (Fexpand_file_name): Doc fix.
9739
9740 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9741 of :foreground and :background equivalent to unspecified (20.x
9742 compatibility).
9743
9744 2008-10-15 Eli Zaretskii <eliz@gnu.org>
9745
9746 * buffer.c (syms_of_buffer): Doc fix.
9747
9748 2008-10-14 Kenichi Handa <handa@m17n.org>
9749
9750 * font.c (font_clear_prop): When clearing font width, clear the
9751 average width field too.
9752
9753 2008-10-12 Andreas Schwab <schwab@suse.de>
9754
9755 * ftfont.c (ftfont_shape_by_flt): Make static.
9756 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9757
9758 * font.c: Don't include <m17n-flt.h>.
9759
9760 2008-10-10 Eli Zaretskii <eliz@gnu.org>
9761
9762 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9763
9764 2008-10-09 Eli Zaretskii <eliz@gnu.org>
9765
9766 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9767 away code.
9768
9769 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
9770
9771 * dispnew.c (update_text_area): Avoid looping due to large glyph
9772 overhangs (bug#1070).
9773
9774 2008-10-09 Kenichi Handa <handa@m17n.org>
9775
9776 * fontset.c (face_for_char): If face->fontset is negative, just
9777 return ascii_face.
9778
9779 * font.c (font_delete_unmatched): Fix previous change.
9780 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
9781
9782 2008-10-09 Martin Rudalics <rudalics@gmx.at>
9783
9784 * frame.c (Fraise_frame): On text-only terminals select frame in
9785 order to make it visible. (Bug#1061)
9786
9787 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
9788
9789 * fontset.c (fontset_find_font): Check frame validity.
9790
9791 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
9792
9793 * gtkutil.c (xg_display_open): Reset default display if none exists.
9794 (xg_display_close): Allow Emacs to close all displays (bug#985).
9795
9796 2008-10-06 Andreas Schwab <schwab@suse.de>
9797
9798 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
9799
9800 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
9801
9802 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
9803
9804 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
9805
9806 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9807 during initialization.
9808
9809 2008-10-04 Eli Zaretskii <eliz@gnu.org>
9810
9811 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9812 whole thing on MSDOS frames as well as on a TTY.
9813
9814 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9815 well as for TTY.
9816 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9817 well as on a TTY.
9818
9819 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9820 as well as for TTY.
9821
9822 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9823
9824 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9825 MSDOS frames as well.
9826
9827 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9828
9829 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9830 correct arguments.
9831 * menu.c (find_and_return_menu_selection): Add cast.
9832
9833 2008-10-03 Glenn Morris <rgm@gnu.org>
9834
9835 * emacs.c (USAGE1): Add --daemon.
9836
9837 2008-10-02 Eli Zaretskii <eliz@gnu.org>
9838
9839 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9840 100, so it's in percents as advertised.
9841
9842 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9843
9844 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9845 (ns_output.current_cursor, ns_output.desired_cursor)
9846 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9847 (FRAME_NEW_CURSOR_COLOR): Remove.
9848
9849 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
9850 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
9851 enumeration (HOLLOW_BOX_CURSOR, etc.).
9852
9853 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9854 (draw_window_cursor): Simplify code.
9855 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9856 Don't change cursor type. In latter, call rehighlight instead of doing
9857 updates manually.
9858 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9859 Use core Emacs cursor types.
9860
9861 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
9862
9863 2008-10-02 Martin Rudalics <rudalics@gmx.at>
9864
9865 * process.c (Faccept_process_output): Fix doc-string.
9866
9867 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9868
9869 * gmalloc.c (__sbrk): Also define for uClibc.
9870
9871 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9872 for uClibc.
9873
9874 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9875
9876 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9877 styles.
9878 (nsfont_open): Reenable the cache.
9879
9880 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9881
9882 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9883 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9884
9885 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9886
9887 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9888 a suspended terminal.
9889
9890 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
9891
9892 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9893
9894 2008-09-30 Eli Zaretskii <eliz@gnu.org>
9895
9896 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9897
9898 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
9899
9900 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9901 in a continued line coincides with a line beginning.
9902
9903 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9904
9905 * nsfont.m (nsfont_trait_distance): Fix bug.
9906 (nsfont_list): Return a list rather than a vector (syncs with Handa
9907 changes of 2008-05-14).
9908 (nsfont_open): Improve logging.
9909
9910 2008-09-29 Andreas Schwab <schwab@suse.de>
9911
9912 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9913
9914 2008-09-28 Martin Rudalics <rudalics@gmx.at>
9915
9916 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9917 name as char-resolve-modifiers.
9918 Reported by: Markus Triska <markus.triska@gmx.at>
9919
9920 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9921
9922 * dispnew.c (init_display): Return earlier when running as a daemon.
9923
9924 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9925
9926 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9927
9928 2008-09-27 Eli Zaretskii <eliz@gnu.org>
9929
9930 * composite.c (Fcomposition_get_gstring)
9931 (Fcompose_region_internal, Fcompose_string_internal)
9932 (Ffind_composition_internal): Doc fix.
9933 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9934 (syms_of_composite) <auto-composition-function>: Doc fix.
9935 (syms_of_composite) <composition-function-table>: Doc fix.
9936
9937 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
9938
9939 * search.c (wordify): New argument for lax word-ends.
9940 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9941
9942 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9943
9944 * lisp.h (is_daemon): Declare.
9945 * dispnew.c (init_display): Do not try to initialize the terminal
9946 when running as a daemon.
9947
9948 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
9949
9950 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9951 x_display_pixel_height.
9952
9953 2008-09-22 Martin Rudalics <rudalics@gmx.at>
9954
9955 * undo.c (record_point): Don't call Fundo_boundary for first
9956 change. (Bug#731)
9957
9958 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
9959
9960 * emacs.c (Fdaemonp): Doc fix.
9961
9962 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9963
9964 * emacs.c (main): Place #ifdef in the proper place.
9965
9966 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9967
9968 * emacs.c (standard_args): Add --daemon.
9969 (main): Disconnect from the terminal when --daemon is passed.
9970 (is_daemon): New variable.
9971 (Fdaemonp): New function.
9972 (syms_of_emacs): Defsubr it.
9973
9974 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * xdisp.c (get_next_display_element): Handle string display
9977 correctly when checking for the end of a box run.
9978
9979 2008-09-20 Glenn Morris <rgm@gnu.org>
9980
9981 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9982 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9983 (Frename_file): Avoid copying to trash if a rename involves
9984 a delete. (Bug#964).
9985
9986 2008-09-20 Eli Zaretskii <eliz@gnu.org>
9987
9988 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9989 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9990 frames as well as termcap frames.
9991 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9992 get_named_tty.
9993
9994 2008-09-19 Eli Zaretskii <eliz@gnu.org>
9995
9996 * process.c (procfs_system_process_attributes): Fix cmdline in
9997 case /proc/PID/cmdline is empty.
9998
9999 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10000 x_display_pixel_height.
10001
10002 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10003
10004 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10005
10006 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10007 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10008
10009 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10010
10011 * dispextern.h (struct it): Move line_wrap away from the middle of
10012 bitfields. Move voffset in struct iterator_stack_entry after the
10013 bitfields. Move tab_width near after another short.
10014
10015 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10016
10017 * frame.h (struct frame): Move alpha from the middle of bitfields.
10018
10019 * window.h (struct window): Move frozen_window_start_p after the
10020 rest of the bitfields to reduce padding.
10021
10022 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10023
10024 * xterm.h (x_display_info): Remove `height' and `width' members.
10025
10026 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10027
10028 * w32term.h (w32_display_info): Remove `height', `width',
10029 `height_in', and `width_in' members.
10030
10031 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10032 New functions.
10033 (x_calc_absolute_position): Use them.
10034 (x_term_init): Omit removed `height' and `width' members.
10035
10036 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10037 New functions.
10038 (w32_read_socket, x_calc_absolute_position): Use them.
10039 (w32_initialize_display_info, w32_term_init): Omit removed members
10040 of w32_display_info.
10041
10042 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10043 New functions.
10044 (ns_initialize_display_info): Omit removed members of ns_display_info.
10045
10046 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10047 New functions.
10048 (x_calc_absolute_position): Use them.
10049 (x_term_init): Omit removed `height' and `width' members.
10050
10051 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10052 (compute_tip_xy):
10053 * frame.c (x_fullscreen_adjust):
10054 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10055 x_display_pixel_width.
10056
10057 2008-09-18 Kenichi Handa <handa@m17n.org>
10058
10059 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10060 (composition_compute_stop_pos): Fix handling of static composition.
10061 (Fcomposition_get_gstring): Check FROM and TO at first.
10062
10063 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10064
10065 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10066 mixup (YAILOM).
10067
10068 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10069
10070 * indent.c (Fvertical_motion): Use position reported by iterator
10071 instead of PT for determining screen motion (bug#943).
10072
10073 2008-09-17 Romain Francoise <romain@orebokech.com>
10074
10075 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10076
10077 2008-09-17 Kenichi Handa <handa@m17n.org>
10078
10079 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10080
10081 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10082 if necessary.
10083
10084 2008-09-16 Kenichi Handa <handa@m17n.org>
10085
10086 * coding.c (make_conversion_work_buffer): Avoid calling
10087 Fget_buffer_create if it is not necessary.
10088
10089 2008-09-15 Martin Rudalics <rudalics@gmx.at>
10090
10091 * window.c (Fselect_window): Don't update window_select_count and
10092 use_time when norecord is not nil.
10093
10094 2008-09-14 Kenichi Handa <handa@m17n.org>
10095
10096 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10097 specpdl_ptr.
10098
10099 2008-09-12 Kenichi Handa <handa@m17n.org>
10100
10101 * indent.c (scan_for_column): Don't handle automatic composition
10102 if the current buffer is not associated with a window.
10103
10104 * composite.c (composition_reseat_it): If the current buffer is
10105 not associated with a window, ignore the automatic composition.
10106 (find_automatic_composition): Likewise.
10107
10108 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10109
10110 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10111 (Fgpm_mouse_stop): Use it.
10112 * termhooks.h (close_gpm): Declare.
10113 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10114 connection if Gpm_GetEvent fails.
10115
10116 * window.c (set_window_buffer): Always preserve current-buffer.
10117
10118 2008-09-12 Glenn Morris <rgm@gnu.org>
10119
10120 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10121
10122 2008-09-11 Glenn Morris <rgm@gnu.org>
10123
10124 * charset.c (charset-map-path): Doc fix.
10125
10126 2008-09-10 Kenichi Handa <handa@m17n.org>
10127
10128 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10129
10130 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10131 compose a grapheme cluster with the preceding base glyph.
10132
10133 * composite.c (composition_compute_stop_pos): Fix previous change.
10134 Reset cmp_it->id to -1 at first.
10135
10136 2008-09-10 Glenn Morris <rgm@gnu.org>
10137
10138 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10139
10140 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
10141
10142 * keyboard.c (read_key_sequence): Reapply translation maps when
10143 switching keyboards.
10144
10145 2008-09-09 Kenichi Handa <handa@m17n.org>
10146
10147 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10148 characters.
10149
10150 * composite.c (FORWARD_CHAR): Fix calculation
10151 of (POSITION).pos_byte.
10152 (composition_compute_stop_pos): Limit the search of composition to
10153 at most 500 characters ahead. If we reach the limit or find a
10154 newline, set cmp_it->ch to -2 and return 0.
10155 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10156
10157 2008-09-08 Kenichi Handa <handa@m17n.org>
10158
10159 * indent.c (Fvertical_motion): Be sure to set
10160 it_overshoot_expected if it.cmp_it.id is non-negative.
10161
10162 2008-09-07 Andreas Schwab <schwab@suse.de>
10163
10164 * callproc.c (Fcall_process): Don't hold references to string data
10165 across garbage collection. Move initialisation of new_argv down
10166 to avoid compiler bug.
10167
10168 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10169
10170 * process.c (Fsystem_process_attributes): Doc fix.
10171
10172 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
10173
10174 * callproc.c (Fcall_process): Canonicalize current directory name.
10175
10176 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10177 iterator advances to the next line if the current line ends in a
10178 continued tab.
10179
10180 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10181
10182 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10183 member to point to cmp_from.
10184
10185 * xdisp.c: Doc fix for references to gidx data member.
10186
10187 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10188
10189 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10190
10191 2008-09-07 Kenichi Handa <handa@m17n.org>
10192
10193 * composite.c (FORWARD_CHAR): Check STOP after
10194 incrementing (POSITION).pos.
10195
10196 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10197
10198 * process.c (Fsystem_process_attributes): Doc fix.
10199
10200 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10201
10202 * keyboard.c (Ftop_level): Doc fix.
10203
10204 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10205
10206 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10207 minibuffer, don't let lower part of menu invade the echo area.
10208
10209 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10210 "char *q" to access menu text and advance through it. Revert the
10211 change that displayed ">" instead of ASCII character 0x10.
10212
10213 2008-09-05 Eli Zaretskii <eliz@gnu.org>
10214
10215 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10216 toggle boxes and radio buttons on MS-DOS as well.
10217
10218 2008-09-05 Kenichi Handa <handa@m17n.org>
10219
10220 * composite.c (autocmp_chars): Check lookback count.
10221 (composition_compute_stop_pos): Set cmp_it->lookback.
10222 (composition_reseat_it): Check lookback count.
10223 (struct position_record): New struct.
10224 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10225 (find_automatic_composition): New function.
10226 (composition_adjust_point): Use find_automatic_composition.
10227
10228 * dispextern.h (struct composition_it): New member lookback.
10229
10230 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
10231
10232 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10233 if moving by a single line.
10234
10235 2008-09-02 Andreas Schwab <schwab@suse.de>
10236
10237 * xterm.c (x_delete_display): Fix merge error.
10238
10239 * fileio.c (Fexpand_file_name): Remove unused variables.
10240
10241 2008-09-02 Eli Zaretskii <eliz@gnu.org>
10242
10243 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10244 storage on all platforms, not just on DOS_NT.
10245
10246 2008-09-02 Jason Rumney <jasonr@gnu.org>
10247
10248 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10249 Ensure mouse is not grabbed after menu is finished.
10250
10251 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * xfaces.c (Finternal_set_alternative_font_family_alist)
10254 (Finternal_set_alternative_font_registry_alist): Properly copy
10255 entire alist structure.
10256
10257 2008-09-01 Kenichi Handa <handa@m17n.org>
10258
10259 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10260 representative chars of the script is a vector.
10261 (ftfont_list): Handle the case where the representative chars of
10262 the script is a vector.
10263
10264 * character.c (syms_of_character): Docstring of
10265 script-representative-chars fixed.
10266
10267 2008-08-31 Eli Zaretskii <eliz@gnu.org>
10268
10269 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10270 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10271 the menu. Allocate larger buffer for `text', to account for
10272 possible ^C characters.
10273
10274 2008-08-31 Martin Rudalics <rudalics@gmx.at>
10275
10276 * xdisp.c (prepare_menu_bars): Don't call
10277 Vwindow_size_change_functions with arg Qt.
10278
10279 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10280
10281 * font.h (font_range):
10282 * fileio.c (report_file_error):
10283 * composite.c (composition_update_it): Yet another int/Lisp_Object
10284 mixup (YAILOM).
10285
10286 2008-08-30 Glenn Morris <rgm@gnu.org>
10287
10288 * data.c (Fmake_variable_frame_local): Doc fix.
10289
10290 * frame.c (Fmodify_frame_parameters): Doc fix.
10291
10292 2008-08-30 Eli Zaretskii <eliz@gnu.org>
10293
10294 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10295 needed by GetTokenInformation.
10296 (w32_system_process_attributes): Check return values of all system
10297 APIs.
10298
10299 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10300 only when the state changes.
10301 (IT_update_begin, IT_update_end): Add termscript trace.
10302
10303 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10304 clipboard is unavailable. Set dst to NULL if it doesn't point to
10305 malloc'ed data.
10306 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10307 passing random values to xfree.
10308
10309 * dispnew.c (init_display): Set `tty's association in frame's
10310 parameters alist to the name of the terminal device, if that is known.
10311
10312 2008-08-29 Jason Rumney <jasonr@gnu.org>
10313
10314 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10315
10316 2008-08-29 Eli Zaretskii <eliz@gnu.org>
10317
10318 * composite.c (fill_gstring_body): Avoid compiler warnings.
10319
10320 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10321 LGLYPH_SET_CODE to avoid compiler warnings.
10322
10323 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
10324
10325 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10326
10327 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10328 LGLYPH_SET_CODE.
10329
10330 2008-08-29 Kenichi Handa <handa@m17n.org>
10331
10332 * fileio.c (report_file_error): Don't downcase the first character
10333 of errstring if it is still unibyte.
10334
10335 2008-08-29 Kenichi Handa <handa@m17n.org>
10336
10337 These changes are to re-implement the automatic composition so
10338 that it doesn't use text properties.
10339
10340 * Makefile.in (ftfont.o): Depend on composite.h.
10341 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10342
10343 * character.h (Vunicode_category_table): Extern it.
10344
10345 * character.c (Vunicode_category_table): New variable.
10346 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10347
10348 * chartab.c (optimize_sub_char_table): Perform more greedy
10349 optimization.
10350
10351 * composite.h (enum composition_method):
10352 Delete COMPOSITION_WITH_GLYPH_STRING.
10353 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10354 (Vcomposition_function_table): Extern it.
10355 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10356 (composition_gstring_put_cache, composition_gstring_from_id)
10357 (composition_gstring_p, composition_gstring_width)
10358 (composition_compute_stop_pos, composition_reseat_it)
10359 (composition_update_it, composition_adjust_point): Extern them.
10360 (Fcomposition_get_gstring): EXFUN it.
10361
10362 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
10363 (Vcomposition_function_table)
10364 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
10365 (gstring_hash_table, gstring_work, gstring_work_headers):
10366 New variables.
10367 (gstring_lookup_cache, composition_gstring_put_cache)
10368 (composition_gstring_from_id, composition_gstring_p)
10369 (composition_gstring_width, fill_gstring_header)
10370 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10371 (composition_reseat_it, composition_update_it)
10372 (composition_adjust_point, Fcomposition_get_gstring): New functions.
10373 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10374 and gstring_work_headers. DEFVAR_LISP composition-function-table.
10375 Defsubr composition_get_gstring.
10376
10377 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10378 cmp_id.
10379 (struct glyph_string): Delete the member gidx. New members
10380 cmp_id, cmp_from, and cmp_to.
10381 (enum it_method): Delete GET_FROM_COMPOSITION.
10382 (struct composition_it): New struct.
10383 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10384 Delete c, len, cmp_id, cmp_len in u.comp.
10385
10386 * font.h (enum lgstring_indices): Delete it.
10387 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
10388 (enum lglyph_indices): Likewise.
10389 (font_range): Adjust extern.
10390 (font_fill_lglyph_metrics): Extern it.
10391
10392 * font.c (QCf): New variable.
10393 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10394 (font_prepare_composition): Delete this function.
10395 (font_range): Type and arguments changed.
10396 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10397 (font_fill_lglyph_metrics): New function.
10398 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
10399 (syms_of_font): DEFSYM QCf. Delete defsubr for
10400 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10401 Defsubr Sfont_shape_gstring.
10402
10403 * fontset.h (font_for_char): Extern it.
10404
10405 * fontset.c (font_for_char): New function.
10406
10407 * ftfont.c: Include composite.h.
10408 (ftfont_resolve_generic_family): Add langset "en" to pattern.
10409 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10410
10411 * indent.c: Include composite.h and dispextern.h.
10412 (check_composition): Delete this function.
10413 (scan_for_column): Handle composition by
10414 composition_compute_stop_pos, composition_reseat_it, and
10415 composition_update_it.
10416 (compute_motion): Likewise.
10417 (Fvertical_motion): Fix checking of composition.
10418
10419 * keyboard.c (adjust_point_for_property): Check composition by
10420 composition_adjust_point.
10421
10422 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
10423 struct glyph_string.
10424
10425 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10426 (append_composite_glyph): Adjust for the change of struct it and
10427 struct glyph.
10428 (produce_composite_glyph): Likewise.
10429
10430 * w32term.c (x_draw_composite_glyph_string_foreground):
10431 Adjust for the change of struct glyph_string.
10432 (x_draw_glyph_string): Likewise.
10433
10434 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10435 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10436
10437 * xdisp.c: Include font.h.
10438 (it_props): Delete the entry for Qauto_composed.
10439 (init_iterator): Initialize it->cmp_it.id to -1.
10440 (compute_stop_pos): Call composition_compute_stop_pos.
10441 (face_before_or_after_it_pos): Adjust for the change of struct it.
10442 (handle_auto_composed_prop): Delete it.
10443 (handle_composition_prop): Handle only static composition.
10444 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10445 from xassert. Initialize it->cmp_it.stop_pos.
10446 (push_it): Adjust for the change of struct it.
10447 (pop_it): Likewise.
10448 (get_next_element): Delete next_element_from_composition.
10449 (CHAR_COMPOSED_P): New macro.
10450 (get_next_display_element): For automatic composition, get a face
10451 from the font in the glyph-string.
10452 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
10453 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
10454 (next_element_from_string): Check if the character at the current
10455 position is composed by CHAR_COMPOSED_P.
10456 (next_element_from_buffer): Likewise.
10457 (next_element_from_composition): Adjust for the change of struct it.
10458 Update it->cmp_it.
10459 (dump_glyph): Adjust for the change of struct glyph.
10460 (fill_composite_glyph_string): Adjust for the change of struct
10461 it and struct glyph. Don't handle automatic composition here.
10462 (fill_gstring_glyph_string): New function.
10463 (x_get_glyph_overhangs): Handle automatic composition.
10464 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
10465 (BUILD_GSTRING_GLYPH_STRING): New macro.
10466 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10467 automatic composition.
10468 (append_composite_glyph): Adjust for the change of struct it and
10469 struct glyph.
10470 (x_produce_glyphs): Adjust for the change of struct it.
10471
10472 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10473 the change of struct glyph_string.
10474 (x_draw_glyph_string): Likewise.
10475
10476 2008-08-29 Glenn Morris <rgm@gnu.org>
10477
10478 * buffer.c (word-wrap): Doc fix.
10479 * xdisp.c (truncate-partial-width-windows): Doc fix.
10480 Increase default to 50.
10481
10482 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
10483
10484 * xdisp.c (update_tool_bar_unwind): New function.
10485 (update_tool_bar): Temporarily set selected frame before building
10486 tool-bar items.
10487
10488 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
10489
10490 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10491 snprintf, respectively.
10492 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10493
10494 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
10495
10496 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10497 LDFLAGS to GNUstep CC invocation.
10498
10499 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * indent.c (Fvertical_motion): Revert last change. Handle the
10502 general case where we are moving forward, and PT spans multiple
10503 screen lines.
10504
10505 * eval.c (find_handler_clause): Temporarily increase
10506 max-lisp-eval-depth while printing the backtrace buffer, to
10507 guarantee that help-mode code can run.
10508
10509 2008-08-27 Eli Zaretskii <eliz@gnu.org>
10510
10511 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10512 colors under -rv.
10513 (IT_set_frame_parameters): Don't swap foreground and background
10514 colors if `(reverse . t)' is present in the frame properties.
10515 (internal_terminal_init): Call init_frame_faces only for the
10516 initial frame.
10517
10518 2008-08-27 Andreas Schwab <schwab@suse.de>
10519
10520 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10521
10522 2008-08-27 Andreas Schwab <schwab@suse.de>
10523
10524 * search.c (search_buffer): Set char_base to zero only at the end.
10525
10526 2008-08-27 Kenichi Handa <handa@m17n.org>
10527
10528 * fileio.c (report_file_error): Fix handling of multibyte error string.
10529
10530 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10531
10532 * xterm.c (x_term_init): Temporarily hide the partially
10533 initialized terminal while calling vendor-specific-keysyms.
10534
10535 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10536
10537 * msdos.c (internal_terminal_init): Most initializations done only
10538 once, especially initial_screen_colors[] and termscript open.
10539
10540 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10541
10542 * eval.c (Fcondition_case): Doc fix.
10543
10544 * widgetprv.h (EmacsFramePart): Change font member to the new font
10545 struct.
10546
10547 * widget.c: Include character.h and font.h for XSETFONT.
10548 (setup_frame_gcs): Compute X font id from font struct, just once.
10549
10550 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10551
10552 * term.c (get_named_tty): Fix last change.
10553
10554 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * indent.c (Fvertical_motion): If moving forward starting from a
10557 multi-line string, move the iterator to the last line of that string.
10558
10559 2008-08-25 Eli Zaretskii <eliz@gnu.org>
10560
10561 * frame.c (do_switch_frame): Mark previously displayed frame as
10562 obscured for FRAME_MSDOS_P frames as well.
10563
10564 2008-08-24 Eli Zaretskii <eliz@gnu.org>
10565
10566 * frame.c (make_terminal_frame): Initialize f->terminal,
10567 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10568 Set the top frame to newly created frame.
10569 (Fmake_terminal_frame): Reuse the_only_display_info.
10570
10571 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10572 estimating available memory.
10573
10574 2008-08-23 David Reitter <david.reitter@gmail.com>
10575
10576 * nsterm.m (ns_draw_window_cursor): Don't call
10577 NSDisableScreenUpdates and NSEnableScreenUpdates on
10578 non-NS_IMPL_COCOA systems.
10579
10580 2008-08-23 Andreas Schwab <schwab@suse.de>
10581
10582 * process.c (procfs_system_process_attributes): Fix use of
10583 uninitialized variables.
10584
10585 2008-08-23 Eli Zaretskii <eliz@gnu.org>
10586
10587 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10588
10589 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10590 calling tty-set-up-initial-frame-faces.
10591
10592 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10593 Allow MSDOS frames along with X frames.
10594
10595 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10596 addition to output_termcap.
10597
10598 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10599
10600 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10601 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10602 highlight.
10603
10604 * process.c [!subprocesses]: Define QCname.
10605 (syms_of_process): Intern and staticpro it.
10606
10607 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
10608 Adjust for changes in encoding/decoding routines.
10609 Use encode_coding_object and decode_coding_object instead of
10610 encode_coding and decode_coding.
10611
10612 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
10613
10614 * dosfns.c: Include frame.h before termhooks.h.
10615 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10616 variable termscript.
10617
10618 * s/msdos.h (USER_FULL_NAME): Define.
10619 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10620
10621 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10622 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10623 pw->pw_gecos.
10624
10625 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10626 SELECTED_FRAME as additional (1st) argument.
10627 (tty_read_avail_input): Handle output_msdos_raw in
10628 addition to output_termcap.
10629
10630 * msdos.c: Include frame.h before termhooks.h.
10631 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10632 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10633 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10634 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10635 (IT_set_terminal_modes, IT_reset_terminal_modes)
10636 (IT_set_frame_parameters): Use tty->termscript instead of a global
10637 variable termscript.
10638 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10639 global variable terminal_coding. Don't refer to
10640 Vnonascii_translation_table.
10641 (internal_terminal_init): Set Vwindow_system in current_kboard.
10642 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10643 Announce date and time of session start, if termscript is open.
10644 Don't zero out the_only_display_info (it is done in
10645 term.c:init_tty). Open termscript only of not already open.
10646 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
10647 here instead of dos_ttraw. Don't initialize display if this is an
10648 initial tty. Don't set FRAME_FONT.
10649 (Vwindow_system_version): Bump to 23.
10650 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10651 is available, set up mouse_position_hook.
10652 (dos_ttraw, IT_set_terminal_modes): If called with initial
10653 terminal, do nothing.
10654 (IT_set_frame_parameters): Handle the Qtty_type frame
10655 parameter by calling internal_terminal_init.
10656 (dos_set_window_size, show_mouse_face)
10657 (clear_mouse_face, IT_note_mode_line_highlight)
10658 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10659 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10660 (initialize_msdos_display): New function.
10661 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10662 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10663 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10664 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
10665 Accept additional argument: a pointer to a frame. Update all callers.
10666 (request_sigio, unrequest_sigio): Don't define, now defined on
10667 sysdep.c.
10668 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10669
10670 * term.c [MSDOS]: Include msdos.h.
10671 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10672 conditional to DOS_NT. Allow only one call to this function in a
10673 session. Don't allocate a new struct tty_display_info; instead,
10674 reuse the_only_display_info. Call get_tty_size to get screen
10675 dimensions. Call init_baud_rate to set bad_rate.
10676 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10677 (Fsuspend_tty) [MSDOS]: Don't close input and output.
10678 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
10679 (get_tty_terminal, get_named_tty, Ftty_type)
10680 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10681 output_termcap.
10682 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10683 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
10684 only when subprocesses are supported.
10685
10686 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10687 f->output_data.x.
10688 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10689 terminal devices.
10690
10691 * msdos.h: Remove definition of struct x_display_info and struct
10692 x_output.
10693 (FRAME_FONT): Use output_data.tty.
10694 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
10695 (struct x_display_info): Rename from display_info. Update all users in
10696 msdos.c.
10697 (struct x_output): Remove background_pixel and foreground_pixel.
10698 (the_only_display_info): Rename from the_only_x_display.
10699 (dos_ttraw): Update prototype.
10700
10701 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10702 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10703
10704 2008-08-23 Jason Rumney <jasonr@gnu.org>
10705
10706 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10707 (fn_TIFFSetDirectory): New library function used.
10708 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10709 (tiff_load): Use :index to select among multiple images. Set count
10710 property when multiple images exist.
10711 (gif_format): Use :index, not :image.
10712
10713 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
10714
10715 * xdisp.c (try_scrolling): Check INT_MAX instead of
10716 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10717 to obtain INT_MAX.
10718
10719 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10720
10721 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10722
10723 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10724
10725 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10726 GNUstep library location.
10727
10728 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
10729
10730 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10731 before using it.
10732
10733 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10734
10735 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10736
10737 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10738 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10739 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10740 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10741 (EmacsApp-cursor_blink_handler): Remove declaration.
10742 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10743 match 01 Feb 2008 changes in xterm.c.
10744 (ns_read_socket): Add cast to avoid warning.
10745 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10746 GNUstep.
10747
10748 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
10749
10750 * xselect.c (x_get_foreign_selection): Return nil if desired
10751 selection could not be obtained, instead of signalling an error.
10752
10753 2008-08-20 David Reitter <david.reitter@gmail.com>
10754
10755 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10756 * nsterm.m: Remove ns-specific code for cursor blinking.
10757 (ns_draw_window_cursor): Clear cursor properly rather than
10758 redrawing the area. Respect width of bar cursors.
10759 These changes enable the use of generic blink-cursor-mode and
10760 generic cursor types in NS and support smooth cursor movements (do
10761 not blink off after command).
10762 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10763 Nextstep, too.
10764
10765 2008-08-19 Kenichi Handa <handa@m17n.org>
10766
10767 * font.c (Vfont_log_deferred): New variable.
10768 (font_add_log): Check Vfont_log_deferred.
10769 (font_deferred_log): New function.
10770
10771 * font.h (font_deferred_log): Extern it.
10772
10773 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10774 for sorting.
10775 (face_for_char): Use deferred log.
10776
10777 2008-08-18 Kenichi Handa <handa@m17n.org>
10778
10779 * fontset.c (face_for_char): Add font log.
10780
10781 * font.c (font_add_log): Add the font properties :script, :lang,
10782 and :otf in the log.
10783
10784 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
10785
10786 * xdisp.c: Remove dead code.
10787 (handle_invisible_prop, next_overlay_string): Defer call to
10788 setup_for_ellipsis.
10789 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10790
10791 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
10792
10793 * xfaces.c (lookup_derived_face): Properly handle possible zero
10794 return value of get_lface_attributes.
10795 (merge_faces): Don't tell lookup_derived_face to signal an error
10796 if face is not found.
10797
10798 * dired.c (Fdirectory_files): Doc fix.
10799
10800 * process.c (make_process): Initialize kill_without_query struct
10801 member.
10802
10803 2008-08-15 Eli Zaretskii <eliz@gnu.org>
10804
10805 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10806 Alternative calculation of totphys for Visual Studio 6.
10807
10808 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10809
10810 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10811 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10812 All users changed.
10813 (stat): Only root directory passed to GetDriveType. Allow RAM
10814 disk as well as local fixed disk when w32-get-true-file-attributes
10815 is set to `local'.
10816 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10817 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10818 (w32_cached_id, w32_add_to_cache): New functions.
10819 (get_name_and_id): Look account names in the cache before calling
10820 lookup_account_sid.
10821 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10822 New initialization flags.
10823 (globals_of_w32): Initialize them to zero.
10824 (w32_system_process_attributes): Use w32_cached_id and
10825 w32_add_to_cache.
10826
10827 2008-08-14 Lawrence Mitchell <wence@gmx.li>
10828
10829 * lread.c (Fread_char, Fread_char_exclusive): If no character
10830 event is read before timeout is reached, return nil, rather than
10831 converting to a number.
10832
10833 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
10834
10835 * fns.c (use_dialog_box): Doc fix.
10836
10837 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10838 on OS X.
10839
10840 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
10841
10842 * frame.c (Qns_parse_geometry): New var.
10843 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10844
10845 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10848 space character in calculating tabs.
10849
10850 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10851
10852 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10853
10854 2008-08-10 Glenn Morris <rgm@gnu.org>
10855
10856 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10857 silence gcc "limited range of data type" warnings in some
10858 make_fixnum_or_float calls.
10859
10860 2008-08-09 Eli Zaretskii <eliz@gnu.org>
10861
10862 * w32.c (w32_system_process_attributes): If the process does not
10863 exist, return nil.
10864
10865 * w32.c: Include thelp32.h, psapi.h and coding.h.
10866 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10867 declarations.
10868 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10869 (Process32Next_Proc): New typedefs.
10870 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10871 (g_b_init_process32_next, g_b_init_open_thread_token)
10872 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10873 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10874 (g_b_init_get_process_working_set_size)
10875 (g_b_init_global_memory_status_ex): New static variables.
10876 (globals_of_w32): Initialize them.
10877 (create_toolhelp32_snapshot, process32_first, process32_next)
10878 (open_thread_token, impersonate_self, revert_to_self)
10879 (get_process_memory_info, get_process_working_set_size)
10880 (global_memory_status, global_memory_status_ex): New wrapper
10881 functions.
10882 (w32_list_system_processes, w32_system_process_attributes)
10883 (enable_privilege, restore_privilege, ltime, process_times):
10884 New functions.
10885 (convert_time_raw): New function.
10886 (convert_time): Remove conversion of FILETIME into time in 100
10887 nsec units, call convert_time_raw instead.
10888
10889 * process.h (w32_list_system_processes, w32_system_process_attributes):
10890 Add prototypes.
10891 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10892 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10893 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10894 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10895
10896 * process.c (Fsystem_process_attributes): Doc fix.
10897
10898 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
10899
10900 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10901 a continued multi-char glyph; if so, advance to the actual glyph.
10902
10903 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10904
10905 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10906
10907 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10908 (.m.o): Use it.
10909 * config.in: Regenerate.
10910
10911 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
10912
10913 * xdisp.c (redisplay_window): Revert last change.
10914 (try_window): Check bottom scroll margin too.
10915
10916 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10917
10918 * config.in: Regenerate.
10919
10920 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10921 -list-load-path-shadows'.
10922 (nsgui.h): Reduce number of things depending on it.
10923
10924 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
10925
10926 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10927 instead of window-end which does the wrong thing at eob.
10928 (try_cursor_movement): Minor optimization.
10929 (redisplay_window): If scroll margin is defined, don't assume
10930 window doesn't need scrolling.
10931
10932 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10933
10934 * config.in: Regenerate.
10935
10936 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10937 (mostlyclean): Don't delete *.d under NS.
10938
10939 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10940
10941 2008-08-06 Kenichi Handa <handa@m17n.org>
10942
10943 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10944
10945 2008-08-06 Andreas Schwab <schwab@suse.de>
10946
10947 * config.in: Regenerate.
10948
10949 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
10950
10951 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10952 forcing a window start.
10953
10954 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10955 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10956
10957 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10958
10959 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10960 argument.
10961
10962 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
10963
10964 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10965 <scroll-down-aggressively, before-change-functions>:
10966 <after-change-functions>: Reflow docstrings.
10967
10968 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10969 Ken Raeburn <raeburn@gnu.org>
10970
10971 Dock menu customization, based on a patch by Ken Raeburn, plus some
10972 other fixes.
10973 * nsmenu.m (dockMenu): New variable.
10974 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10975
10976 * nsterm.h (dockMenu): Declare.
10977
10978 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10979 (ns_term_init): Initialize dockMenu.
10980 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10981 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10982 left.
10983
10984 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10985
10986 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10987
10988 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10989
10990 * config.in: Regenerate.
10991
10992 2008-08-04 Seiji Zenitani <zenitani@mac.com>
10993
10994 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10995
10996 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10997
10998 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10999
11000 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11001
11002 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11003
11004 * keyboard.h: Comment an #endif.
11005
11006 * lisp.h (have_menus_p): Adjust comment.
11007
11008 * menu.c (find_and_return_menu_selection): Fix comparison with
11009 client_data.
11010
11011 * nsmenu.m (popup_activated_flag): New variable.
11012 (popup_activated): New function.
11013 (menu-or-popup-active-p): New exported lisp definition.
11014 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11015 when popup done.
11016 (ns_popup_dialog): Set popup_activated_flag.
11017
11018 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11019 version for GNUstep (handled by conditional typedef in nsterm.m).
11020 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11021 in rgb.txt).
11022
11023 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11024
11025 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11026
11027 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11028
11029 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11030 shortcircuit if popup_activated like GTK and X toolkit.
11031
11032 * m/inter386.h: Change DARWIN to DARWIN_OS.
11033
11034 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11035 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11036 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11037 comment on NO_SOCK_SIGIO.
11038
11039 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11040
11041 * nsterm.m (windowDidResize): Remove stopModal call.
11042
11043 2008-08-03 Andreas Schwab <schwab@suse.de>
11044
11045 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11046 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11047
11048 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11049
11050 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11051 Don't use uninitialized pointer variable when using getrlimit.
11052
11053 2008-08-02 Jason Rumney <jasonr@gnu.org>
11054
11055 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11056
11057 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11058
11059 * alloc.c (NSTATICS): Bump to 0x640.
11060
11061 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11062
11063 * lisp.h: Add prototype for directory_files_internal.
11064
11065 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11066 New functions.
11067 (syms_of_process): Defsubr them. Add initializations for various
11068 Q* symbols used in procfs_system_process_attributes.
11069 (procfs_list_system_processes, procfs_system_process_attributes)
11070 [HAVE_PROCFS]: New functions.
11071 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11072 (procfs_get_total_memory): New functions.
11073
11074 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11075
11076 * xfaces.c (Fx_load_color_file): Fix previous change;
11077 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11078
11079 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11080
11081 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11082
11083 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11084
11085 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11086
11087 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
11088
11089 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11090
11091 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11092 define NSApplicationDelegateReplySuccess.
11093 (EmacsView -converstationIdentifier): Use long instead of
11094 NSInteger for GNUstep, since it doesn't have NSInteger.
11095
11096 * xmenu.c: Revert last change.
11097
11098 * keyboard.h: Fix last change.
11099
11100 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11101
11102 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11103 on Windows.
11104
11105 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11106
11107 Warning clearing and clean-up in NS port.
11108 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11109 Add prototypes.
11110 * nsgui.h (FACE_DEFAULT): Remove, unused.
11111 (XGCValues): Change colors to unsigned long.
11112 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11113 nsterm.m.
11114 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11115 (ns_list_fonts): Remove, unused.
11116 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11117 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11118 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11119 (nsfont_draw): Compare face colors to 0, not nil.
11120 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11121 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11122 (-addSubmenuWithTitle:): Use NSMenuItem class.
11123 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11124 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11125 (ns_clip_to_row): Make gc arg a BOOL.
11126 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11127 ns_clip_to_row() call.
11128 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11129 used). Cast FRAME_FONT assignments.
11130 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11131 (ns_string_to_lispmod): Change arg to const char.
11132 (ns_term_init): Use NSMenuItem class.
11133 (EmacsApp -openFile:): Move to different section of file.
11134 (EmacsApp -application:openFiles:): Don't return a value, call
11135 -replyToOpenOrPrint:.
11136 (EmacsView -keyDown:): Fix up cast.
11137 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11138 (EmacsView -menuDown:): Cast tag in call to
11139 find_and_call_menu_selection().
11140 (ns_list_fonts): Remove, unused.
11141 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11142 (ns_fontname_to_xlfd): Make static.
11143 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11144 Remove prototypes (now in keyboard.h).
11145 (next_menubar_widget_id): Remove, unused.
11146 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11147 Remove prototypes (now in keyboard.h).
11148 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11149
11150 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11151
11152 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11153 (floatfns.o): Depend on syssignal.h.
11154 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11155
11156 * systty.h: Fix previous change that removed BSD_TERMIOS.
11157 Add comments to #ifdefs.
11158
11159 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11160
11161 * w32fns.c (w32-load-color-file): Remove.
11162 (x-open-connection): Use renamed Fx_load_color_file.
11163 * xfaces.c (x-load-color-file): Add.
11164 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11165 Emacs.clr.
11166 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11167
11168 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
11169
11170 * dbusbind.c (Fdbus_call_method_asynchronously)
11171 (Fdbus_method_error_internal): New defuns.
11172 (xd_read_message): Handle also reply messages.
11173 (Vdbus_registered_functions_table): Extend docstring.
11174
11175 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
11176
11177 * keyboard.c (gobble_input): Fix previous change.
11178
11179 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11180
11181 * bitmaps/README:
11182 * xfns.c:
11183 * termcap.c:
11184 * term.c:
11185 * syswait.h:
11186 * systty.h:
11187 * systime.h:
11188 * syssignal.h:
11189 * sysdep.c:
11190 * process.h:
11191 * process.c:
11192 * print.c:
11193 * ndir.h:
11194 * lread.c:
11195 * keyboard.c:
11196 * getpagesize.h:
11197 * floatfns.c:
11198 * fileio.c:
11199 * emacs.c:
11200 * doc.c:
11201 * dispnew.c:
11202 * dired.c:
11203 * data.c:
11204 * callproc.c:
11205 * buffer.c:
11206 * README:
11207 * Makefile.in:
11208 * s/template.h:
11209 * s/msdos.h:
11210 * m/vax.h: Remove VMS support.
11211 * s/vms.h:
11212 * vlimit.h:
11213 * uaf.h:
11214 * temacs.opt:
11215 * param.h:
11216 * ioctl.h: Remove file.
11217
11218 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11219
11220 * s/ms-w32.h (MULTI_KBOARD): Remove.
11221 * xterm.c:
11222 * xselect.c:
11223 * xfns.c:
11224 * window.c:
11225 * w32term.c:
11226 * w32fns.c:
11227 * terminal.c:
11228 * termhooks.h:
11229 * term.c:
11230 * sysdep.c:
11231 * keyboard.h:
11232 * keyboard.c:
11233 * frame.h:
11234 * frame.c:
11235 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11236 * config.in: Regenerate.
11237
11238 2008-07-30 Jason Rumney <jasonr@gnu.org>
11239
11240 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11241
11242 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11243 (w32font_open_internal): Get unicode version of textmetrics.
11244 Don't enable or disable glyph indices here.
11245 (w32font_open): Disable use of glyph indices.
11246
11247 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11248
11249 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
11250
11251 * minibuf.c (Vread_buffer_function): Doc fix.
11252
11253 2008-07-30 John Paul Wallington <jpw@pobox.com>
11254
11255 * minibuf.c (read_buffer_completion_ignore_case): New var.
11256 (Fread_buffer): Use it.
11257
11258 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11259
11260 * systty.h (sensemode): Remove empty #if. Remove reference to
11261 BSD_TERMIOS, unused.
11262
11263 * sysdep.c: Remove reference to DGUX.
11264 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11265
11266 * config.in: Regenerate.
11267
11268 2008-07-30 Jason Rumney <jasonr@gnu.org>
11269
11270 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11271
11272 2008-07-29 Jason Rumney <jasonr@gnu.org>
11273
11274 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11275 is populated.
11276 (uniscribe_encode_char): Always use uniscribe.
11277 Avoid using context if cache is populated.
11278
11279 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11280
11281 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11282 open menu.
11283
11284 * gtkutil.c (menu_nav_ended): Remove.
11285 (create_menus): Remove signal connect for menu_nav_ended.
11286
11287 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
11288
11289 * xdisp.c (redisplay_window): Check return value of
11290 compute_window_start_on_continuation_line before forcing a window
11291 start.
11292
11293 2008-07-28 Jason Rumney <jasonr@gnu.org>
11294
11295 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11296
11297 * w32term.c (w32_enable_unicode_output, cleartype_active):
11298 Remove obsolete display options.
11299 (x_draw_glyph_string_background): Don't use old cleartype_active
11300 workaround.
11301 (w32_initialize): Remove cleartype_active initialization.
11302 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11303
11304 2008-07-28 Andreas Schwab <schwab@suse.de>
11305
11306 * lisp.h (init_weak_hash_tables, syms_of_font)
11307 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11308 (remove_hash_entry): Don't declare.
11309 * eval.c (maybe_call_debugger): Make static and move before use.
11310 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11311 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11312 * xterm.h (x_set_frame_alpha): Declare.
11313
11314 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11315
11316 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11317 (create_menus): Connect selection-done to menu_nav_ended.
11318
11319 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11320
11321 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11322 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11323 parameter with read of 'alpha' one.
11324 (Qns_frame_parameter): Remove.
11325 * nsselect.m (selection-coding-system)
11326 (next-selection-coding-system, Vselection_coding_system)
11327 (Vnext_selection_coding_system): Drop.
11328
11329 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11330
11331 * nsfns.m (do-applescript, do_applescript): Rename to
11332 ns-do-applescript, ns_do_applescript, and move within file.
11333
11334 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11335
11336 Remove support for Mac Carbon.
11337 * mactoolbox.c:
11338 * macterm.h:
11339 * macterm.c:
11340 * macselect.c:
11341 * macmenu.c:
11342 * macgui.h:
11343 * macfns.c:
11344 * mac.c: Remove file.
11345 * s/darwin.h:
11346 * m/intel386.h:
11347 * xfaces.c:
11348 * xdisp.c:
11349 * window.c:
11350 * tparam.c:
11351 * termhooks.h:
11352 * termcap.c:
11353 * term.c:
11354 * syssignal.h:
11355 * sysselect.h:
11356 * sysdep.c:
11357 * process.c:
11358 * lread.c:
11359 * lisp.h:
11360 * keyboard.c:
11361 * image.c:
11362 * fringe.c:
11363 * frame.h:
11364 * frame.c:
11365 * fontset.c:
11366 * font.h:
11367 * font.c:
11368 * fns.c:
11369 * fileio.c:
11370 * emacs.c:
11371 * dispnew.c:
11372 * dispextern.h:
11373 * config.in:
11374 * atimer.c:
11375 * Makefile.in: Remove code for Carbon.
11376
11377 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11378
11379 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11380
11381 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11382
11383 * macterm.h (kCGBitmapByteOrder32Host): New define for
11384 non-universal SDKs.
11385
11386 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11387 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11388
11389 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11390 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11391
11392 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11393
11394 * w32inevt.c: Include dispextern.h.
11395
11396 2008-07-26 Andreas Schwab <schwab@suse.de>
11397
11398 * print.c (print_object): Fix off-by-one in last change.
11399
11400 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
11401
11402 * term.c (syms_of_term): Don't initialize default_orig_pair,
11403 default_set_foreground and default_set_background on Windows.
11404
11405 2008-07-25 Jason Rumney <jasonr@gnu.org>
11406
11407 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11408 ScriptItemize. Clean up return value checking. Remove unused
11409 variables.
11410 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11411 shaping engine.
11412
11413 * w32font.c (w32font_has_char): Handle the case where we can't
11414 determine the script for a character.
11415
11416 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11417
11418 * term.c (syms_of_term): Initialize default_orig_pair,
11419 default_set_foreground, and default_set_background.
11420
11421 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11422 clash (bug#86).
11423 (getloadavg): Callers changed.
11424
11425 * image.c (svg_load_image): Fix last change.
11426 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11427 image size is valid. Use g_object_unref instead of deprecated
11428 rsvg_handle_free to free rsvg handle.
11429 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11430
11431 2008-07-25 Jason Rumney <jasonr@gnu.org>
11432
11433 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11434 surrogates before looking up glyph index.
11435 (w32font_text_extents): Encode as surrogates if falling back to
11436 functions that need UTF-16 wide chars.
11437
11438 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11439 BMP as surrogates before looking up glyph index.
11440
11441 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11442
11443 * image.c (svg_load_image): Check for failure in return value of
11444 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11445
11446 2008-07-25 Jason Rumney <jasonr@gnu.org>
11447
11448 * w32font.c (Fx_select_font): Reverse sense of second arg.
11449
11450 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11451
11452 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11453 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11454
11455 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11456 (PURESIZE): Use it.
11457
11458 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11459
11460 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11461 * m/alpha.h (TEXT_END):
11462 * m/ibmrs6000.h (TEXT_END):
11463 * m/macppc.h (TEXT_END):
11464 * s/darwin.h (TEXT_END):
11465 * s/msdos.h (TEXT_END): Remove, unused.
11466 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11467 * s/cygwin.h: Remove comment.
11468
11469 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11470 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11471 * m/intel386.h (DOT_GLOBAL_START):
11472 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11473 (USG): Remove, file not used on USG platforms.
11474
11475 * Makefile.in (HAVE_X11): Remove empty #else.
11476
11477 2008-07-24 Andreas Schwab <schwab@suse.de>
11478
11479 * fileio.c (Finsert_file_contents): Properly adjust undo list
11480 after format conversion.
11481
11482 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11483
11484 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11485 (menu_nav_ended): Remove.
11486 (create_menus): Remove signal connect for menu_nav_ended.
11487 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11488 create_menus.
11489 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11490
11491 2008-07-23 Jason Rumney <jasonr@gnu.org>
11492
11493 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11494 with opened font.
11495 (w32font_open): Set font type to gdi.
11496
11497 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11498
11499 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11500
11501 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11502 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11503 defines it.
11504 * unexec.c (ADDR_CORRECT): Define unconditionally.
11505
11506 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11507
11508 * unexec.c: Remove code depending on !COFF and USG, the file is
11509 not used for such systems.
11510
11511 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11512 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11513 (LD_SWITCH_SYSTEM_1): Remove, update users.
11514
11515 * s/darwin.h (DATA_END):
11516 * m/intel386.h (DATA_END):
11517 * m/ibmrs6000.h (DATA_END):
11518 * m/alpha.h (DATA_END): Remove, unused.
11519
11520 * config.in: Regenerate.
11521 * s/ms-w32.h (subprocesses): Define unconditionally.
11522 * s/template.h (subprocesses): Update comment.
11523 * s/vms.h (subprocesses):
11524 * s/usg5-4.h (subprocesses):
11525 * s/hpux10-20.h (subprocesses):
11526 * s/gnu-linux.h (subprocesses):
11527 * s/cygwin.h (subprocesses):
11528 * s/bsd-common.h (subprocesses):
11529 * s/aix4-2.h (subprocesses):
11530 * s/darwin.h (subprocesses): Do not define, defined by default now.
11531
11532 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11533 Remove all references.
11534 (temacs): Add GNUstep specific ld flags.
11535
11536 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11537 similarly to what X does.
11538
11539 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11540
11541 * nsfns.m (x-list-fonts): Remove.
11542 (syms_of_nsfns): Drop the x-list-fonts declaration.
11543 * nsterm.m: Get rid of remaining "//" comments.
11544
11545 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11548
11549 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11550 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11551 (Fns_own_selection_internal, Fx_disown_selection_internal)
11552 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11553
11554 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11555 ... */' style of docstrings. Doc fixes.
11556
11557 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11558
11559 * terminfo.c (UP, BC, PC): Undo previous change.
11560
11561 * nsfns.m: Rename ns prefixed functions/variables to the
11562 corresponding x versions. Update references.
11563
11564 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11565
11566 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11567
11568 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11569
11570 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11571 Remove forwarding functions.
11572 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11573 non-static.
11574 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11575 non-static.
11576 (ns_frame_parm_handlers): Use the new names.
11577 (syms_of_nsfns): Move to the end of file.
11578
11579 * nsterm.m (syms_of_nsterm): Move to the end of file.
11580
11581 * dispnew.c (init_display): Remove code for X10.
11582
11583 2008-07-22 Jason Rumney <jasonr@gnu.org>
11584
11585 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11586 bare drive.
11587
11588 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11589
11590 * nsterm.m (syms_of_nsterm): Remove debugging println.
11591
11592 2008-07-22 David Reitter <david.reitter@gmail.com>
11593
11594 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11595 Carbon implementation of the same functionality: execute arbitrary
11596 AppleScript code.
11597
11598 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11599
11600 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11601 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11602 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11603 (Fx_display_mm_height, Fx_display_mm_width)
11604 (Fx_display_backing_store, Fx_display_visual_class)
11605 (Fx_display_save_under, Fx_open_connection)
11606 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11607 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11608 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11609 (Fx_display_pixel_width, Fx_display_pixel_height)
11610 (Fx_display_usable_bounds, Fx_display_planes)
11611 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11612 ... */' style of docstrings.
11613
11614 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11615
11616 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11617 on this platform.
11618 (mips):
11619 * m/iris4d.h (mips): Do not define.
11620 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11621
11622 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11623
11624 * image.c:
11625 * nsfns.m:
11626 * nsselect.m:
11627 * nsterm.h:
11628 * nsterm.m: Rename ns prefixed functions/variables to the
11629 corresponding x versions. Update references.
11630
11631 * m/ibms390x.h (NO_REMAP): Do not undefine.
11632
11633 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11634
11635 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
11636
11637 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11638 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11639 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11640 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11641 (Fns_display_mm_height, Fns_display_mm_width)
11642 (Fns_display_backing_store, Fns_display_visual_class)
11643 (Fns_display_save_under, Fns_open_connection)
11644 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11645 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11646 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11647 (Fns_display_pixel_width, Fns_display_pixel_height)
11648 (Fns_display_usable_bounds, Fx_display_planes)
11649 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11650
11651 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11652
11653 * print.c (print_object): Check print_depth before searching for
11654 circularities.
11655
11656 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
11657
11658 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11659 only sprintf.
11660
11661 2008-07-21 Kenichi Handa <handa@m17n.org>
11662
11663 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11664
11665 2008-07-20 Andreas Schwab <schwab@suse.de>
11666
11667 * syntax.c (find_start_pos, find_start_value)
11668 (find_start_value_byte, find_start_begv, find_defun_start)
11669 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11670
11671 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11672
11673 * s/sol2-3.h: Insert contents of s/sol2.h.
11674 (LD_SWITCH_SYSTEM): Remove redundant definition.
11675 * s/sol2.h: Remove, unused.
11676
11677 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11678
11679 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11680
11681 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11682
11683 * Makefile.in (ns_appdir): Fix typo in find command.
11684
11685 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11686
11687 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11688
11689 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11690 added not supported anymore.
11691
11692 * s/usg5-4-2.h (LIBS_SYSTEM):
11693 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11694
11695 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11696 * s/lynxos.h (GETPGRP_NO_ARG):
11697 * s/hpux10-20.h (NO_SIOCTL_H):
11698 * s/gnu.h (GETPGRP_NO_ARG):
11699 * s/gnu-linux.h (NO_SIOCTL_H):
11700 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11701 * s/cygwin.h (GETPGRP_NO_ARG):
11702 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11703 (C_DEBUG_SWITCH): Remove duplicate definition.
11704
11705 * m/ibms390.h: Remove boilerplate comments.
11706
11707 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11708
11709 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11710 (wait_reading_process_output): Remove code for SunOS, platform not
11711 supported anymore. Use SOLARIS2 instead of sun.
11712
11713 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11714
11715 * font.c (font_open_by_name): Under NS, default lface height to zero.
11716 (font_open_for_lface): Under NS, set size based on frame fontsize.
11717 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11718 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11719
11720 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11721
11722 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11723 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11724 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11725 YES/NO.
11726 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11727 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11728 * Makefile.in (clean): Clear out build destination dir.
11729
11730 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11731
11732 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11733 xterm, xselect.
11734 * lisp.h: Remove declaration of hash_remove.
11735 * nsgui.h: Remove redefinitions of hash_remove.
11736 * fns.c (hash_remove): Rename to hash_remove_from_table.
11737
11738 2008-07-19 Seiji Zenitani <zenitani@mac.com>
11739
11740 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11741 strdup() the family UTF8String before modifying it.
11742
11743 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11744
11745 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11746 NS_FACE_BACKGROUND with 0 instead of nil.
11747 * nsfont.m (nsfont_draw): Same.
11748
11749 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * nsfns.m (ns_set_background_color): Fix crash.
11752
11753 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
11754
11755 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11756
11757 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11758
11759 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11760
11761 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11762
11763 * gtkutil.c: Include <config.h> instead of "config.h".
11764
11765 * lisp.h (Foverlay_buffer): Add EXFUN.
11766
11767 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11768 child process to complete child_setup. Undo 2005-09-21 change.
11769
11770 * s/darwin.h: Mention setsid after vfork.
11771
11772 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11773
11774 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11775 Depend on macgui.h.
11776
11777 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11778 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11779
11780 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11781 and f19.
11782 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11783
11784 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11785 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11786 Remove enumerators.
11787
11788 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11789 Check if FACE_FROM_ID returns NULL.
11790
11791 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11792
11793 * w32inevt.c (change_frame_size): Remove extern declaration.
11794 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11795 change_frame_size.
11796
11797 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11798
11799 * getloadavg.c: Revert last change (2008-07-15).
11800
11801 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11802
11803 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
11804 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
11805 from configure.
11806
11807 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11808
11809 * s/sol2.h:
11810 * s/sol2-4.h: Reorganize conditionals.
11811
11812 * ecrt0.c: Remove code depending on m68000, not used anymore.
11813
11814 * fns.c (hash_remove): Make static.
11815 * lisp.h (hash_remove): Don't prototype.
11816
11817 * m/ibmrs6000.h:
11818 * m/ibms390x.h:
11819 * m/macppc.h: Remove boilerplate comments.
11820
11821 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11822 Solaris, which does not need them.
11823
11824 * m/vax.h: Remove comments about unsupported systems.
11825
11826 * s/darwin.h: Reorganize ifdefs.
11827
11828 2008-07-17 Andreas Schwab <schwab@suse.de>
11829
11830 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11831
11832 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11833
11834 Use SDATA. Follow coding convention of placing operators at
11835 beginning of next line rather than end of previous line, and placing
11836 spaces around infix operators.
11837
11838 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11839 in case it was defined already.
11840 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11841 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11842 ns_default.
11843 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11844 Lisp_Objects.
11845 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11846 (ns_defined_color, ns_color_to_lisp): Declare.
11847 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11848 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11849 it's accepted even with USE_LISP_UNION_TYPE.
11850 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11851 (update_frame_tool_bar): Remove apparently obsolete tests for
11852 non-integerness of f->tool_bar_lines.
11853 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11854 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11855 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11856 (nsfont_open): Don't confuse NULL for Qnil.
11857 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11858 * menu.h (find_and_call_menu_selection):
11859 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11860 (find_and_return_menu_selection): Always return something.
11861 * frame.h: Include dispextern.h for Display_Info.
11862 (display_x_get_resource): Declare.
11863
11864 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11865
11866 * syntax.c: Remove stdio.h include accidentally introduced in
11867 Emacs.app commit.
11868 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11869 NS_IMPL_COCOA.
11870 * keyboard.c (handle_async_input, input_available_signal): Remove
11871 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11872
11873 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11874
11875 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11876 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11877 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11878 Use SDATA.
11879
11880 * keymap.c: Remove all NS-specific code.
11881 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11882 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11883 where_is_preferred_modifier, return a different value depending on how
11884 preferred is the binding.
11885 (where_is_internal): Adjust accordingly.
11886 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11887 Adjust to new preferred_sequence_p.
11888 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11889 * keyboard.c (parse_solitary_modifier): Not static any more.
11890 * keyboard.h (parse_solitary_modifier): Declare.
11891
11892 2008-07-16 Andreas Schwab <schwab@suse.de>
11893
11894 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11895 of easymenu.
11896
11897 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
11898
11899 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11900 that we don't move off the line.
11901
11902 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11903
11904 * keyboard.c (Qsuper): Remove.
11905 (parse_menu_item): Don't call where_is_internal specially for NS.
11906
11907 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11908
11909 * s/gnu-linux.h: Remove boilerplate comments.
11910
11911 * m/alpha.h (__ELF__): Consolidate conditions.
11912
11913 * m/m68k.h (linux): Use GNU_LINUX instead.
11914 Remove boilerplate comments.
11915
11916 * m/intel386.h: Undo refactoring from previous change.
11917 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11918 too, remove dead code.
11919 (linux): Use GNU_LINUX instead.
11920
11921 2008-07-16 Jason Rumney <jasonr@gnu.org>
11922
11923 * w32gui.h: Repeat 26 June changes lost by last change.
11924
11925 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11926
11927 * systty.h: Remove code for Aix on 386, unsupported platform.
11928
11929 * s/ms-w32.h: Remove boilerplate comments.
11930 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11931
11932 * s/gnu-linux.h (TERM): Remove support.
11933 (HAVE_SYSVIPC): Remove, unused.
11934 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11935 for this system.
11936
11937 * process.c: Remove support for IRIS, unused.
11938 Remove support for TERM, not relevant anymore.
11939
11940 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11941 used with the definition.
11942
11943 * s/aix4-2.h (static): Do not undef.
11944
11945 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11946 only used on Aix.
11947 (HAVE_SYSVIPC): Remove, unused.
11948
11949 * m/hp800.h (CANNOT_DUMP): Do not undef.
11950
11951 * m/alpha.h: Fix comment.
11952
11953 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11954 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11955 used by this configuration.
11956 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11957 * unexec.c: Remove code depending on HPUX and
11958 USG_SHARED_LIBRARIES, not used with this file. Remove code
11959 depending on IRIS, unused. Remove if 0-ed code.
11960
11961 * s/template.h: Remove comments about static.
11962
11963 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11964 Remove if 0-ed code.
11965 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11966 were the same as the default.
11967 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11968 Remove boilerplate comments.
11969 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11970 (HAVE_SYSVIPC): Remove, unused.
11971 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11972
11973 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11974 Remove boilerplate comments.
11975 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11976 Remove boilerplate comments.
11977 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11978 Remove boilerplate comments.
11979 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11980
11981 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11982 USG systems which do not use DATA_SEG_BITS.
11983 Refactor code. Remove boilerplate comments.
11984
11985 * m/ibms390.h:
11986 * m/m68k.h:
11987 * s/bsd-common.h:
11988 * s/cygwin.h:
11989 * s/darwin.h:
11990 * s/freebsd.h:
11991 * s/gnu.h:
11992 * s/msdos.h: Remove boilerplate comments.
11993
11994 * m/iris4d.h: Remove boilerplate comments and code for systems that
11995 do not use this file.
11996 (IRIS_4D): Remove, unused.
11997
11998 * m/mips.h: Remove boilerplate comments and code for systems that
11999 do not use this file.
12000 (SIGN_EXTEND_CHAR):
12001 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12002 * unexmips.c: Remove file, unused.
12003
12004 * editfns.c (Fuser_full_name): Replace the only use of
12005 USER_FULL_NAME with its value.
12006 * config.in: Regenerate.
12007
12008 2008-07-16 David Reitter <david.reitter@gmail.com>
12009
12010 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12011 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12012
12013 2008-07-16 Glenn Morris <rgm@gnu.org>
12014
12015 * emacs.c (system-type): Doc fix.
12016
12017 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12018
12019 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12020 If the cache doesn't work, let's fix it, rather than work around it.
12021
12022 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12023
12024 * Makefile.in: Correct additions for nsfont.o in last commit.
12025 * nsfont.m: New file (forgot last commit).
12026
12027 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12028
12029 * callproc.c (set_initial_environment): Initialize
12030 Vprocess_environment under CANNOT_DUMP (fixes crash when
12031 batch-compiling for bootstrap).
12032
12033 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12034 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12035
12036 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
12037 fix crash due to different init order.
12038
12039 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12040
12041 Changes and additions for NeXTstep windowing system (Cocoa and
12042 GNUstep) support.
12043
12044 * Makefile.in:
12045 * config.in: Support defines and build commands for NS port.
12046 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12047 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12048 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12049 windowing.
12050 (struct face): Add synth_ital field.
12051 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12052 (init_display): Initialize Vinitial_window_system to "ns" when so
12053 compiled.
12054 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12055 (display_arg): Use under NS.
12056 (main): Under NS, allocate autorelease pool and handle command line
12057 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12058 (standard_args): Add NS-specific args.
12059 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12060 * font.c (DEFAULT_ENCODING): New variable.
12061 (font_find_for_lface): Use it.
12062 (syms_of_font): Load syms_of_nsfont under NS.
12063 * font.h: Declare nsfont_driver when compiled under NS.
12064 * fontset.c: When compiling under NS, include nsterm.h.
12065 (fontset_from_font): Autoconstruct fontset under NS.
12066 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12067 symbol, document and use it.
12068 (do_switch_frame): When for_deletion under Cocoa, add
12069 Fraise_frame(Qnil).
12070 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12071 (x_get_arg): Allow "yes" and "no" as boolean values.
12072 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12073 Qright under Cocoa.
12074 (focus-follows-mouse): Default to 0 under NS.
12075 * frame.h (enum output_method): Add output_ns.
12076 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12077 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12078 (FRAME_WINDOW_P): NS-specific definition.
12079 * fringe.c (max_used_fringe_bitmap): Make public.
12080 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12081 (getloadavg): Use NeXT code under descendant OS's.
12082 * image.c (includes and header section, x_create_bitmap_from_data)
12083 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12084 (image_background_transparent, x_clear_image_1)
12085 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12086 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12087 (x_to_xcolors, x_from_xcolors, x_disable_image)
12088 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12089 other GUIs, including XPM support using code originally written for
12090 Carbon GUI.
12091 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12092 using NS API.
12093 (image_ascent): Use font metrics macros instead of direct struct field
12094 access.
12095 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12096 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12097 Also, handle NS as GTK for menu bar purposes.
12098 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12099 toolkit where they differ.
12100 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12101 use cachelist, still needed under NS.
12102 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12103 (struct widget_value): Define it here for menu.c.
12104 * keymap.c (includes): Include modifier internals.
12105 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12106 NS.
12107 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12108 support for preferring sequences using certain modifiers, specified by
12109 the FIRSTONLY argument.
12110 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12111 under NS GNUstep implementation.
12112 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12113 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12114 * menu.c: Include nsterm.h under NS.
12115 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12116 (free_menubar_widget_tree_value, update_submenu_strings)
12117 (find_and_call_menu_selection): Treat NS as X and NT.
12118 (find_and_return_menu_selection): New function, used for popup menus.
12119 * nsgui.h:
12120 * nsterm.h:
12121 * nsfns.m:
12122 * nsimage.m:
12123 * nsmenu.m:
12124 * nsselect.m:
12125 * nsterm.m: New files.
12126 * process.c (wait_reading_process_output): Under NS, call ns_select()
12127 instead of plain select().
12128 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12129 beginning of buffer.
12130 * sysselect.h (init_process): Rename when compiling under Cocoa to
12131 avoid name conflict.
12132 * termhooks.h (display_info): Add ns_display_info to union.
12133 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12134 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12135 COCOA environment.
12136 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12137 unexec() signature. (Note, this will dump, but the resulting file
12138 crashes; unexosx is used instead; keeping around for reference and
12139 possible aid in getting dump working under GNUstep.)
12140 * w32gui.h (button_type, widget_value): Remove definitions (now in
12141 keyboard.h).
12142 * window.c: Include nsterm.h when compiling under NS.
12143 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12144 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12145 other GUI windowing systems.
12146 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12147 GTK.
12148 (x_consider_frame_title): Under NS, set icon type and frame
12149 modified-state indicator; use ns_set_name_as_filename() when using
12150 formatted title.
12151 (update_window_cursor): Make public when compiling under NS.
12152 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12153 (hourglass_atimer, Vhourglass_delay
12154 * xfaces.c (header section, init_frame_faces, clear_font_table)
12155 (defined_color, unload_color, x_face_list_fonts)
12156 (prepare_face_for_display): Add NS support parallel to other GUIs.
12157 Emulate GCs like other non-X GUIs.
12158 (split_font_name): Don't lowercase font name under NS.
12159 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12160 under NS.
12161 * s/darwin.h: Add support for compilation under NS.
12162
12163 2008-07-15 Jason Rumney <jasonr@gnu.org>
12164
12165 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12166 (w32_show_hourglass): Rename from show_hourglass.
12167 (w32_hide_hourglass): Rename from hide_hourglass.
12168 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12169 (Vhourglass_delay): Declare extern.
12170 (hourglass_started): Remove.
12171
12172 * xdisp.c (Vhourglass_delay): Remove static.
12173 (hourglass_started, start_hourglass, cancel_hourglass):
12174 Don't include these versions on WINDOWSNT.
12175
12176 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12177
12178 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12179 variables (formerly in xfns.c).
12180 (show_hourglass, hide_hourglass): New prototypes (same).
12181 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12182 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12183 in xfns.c).
12184 (syms_of_xdisp): Declare/initialize display-hourglass,
12185 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12186 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12187 formerly in xfns.c.
12188 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12189 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12190 (start_hourglass, cancel_hourglass): Remove.
12191 (show_hourglass, hide_hourglass): Remove prototypes and static
12192 modifiers.
12193 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12194 hourglass_atimer, hourglass_shown_p declaration/initialization.
12195 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12196 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12197 (start_hourglass, cancel_hourglass): Remove.
12198 (show_hourglass, hide_hourglass): Remove prototypes and static
12199 modifiers.
12200 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12201 hourglass_atimer, hourglass_shown_p declaration/initialization.
12202 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12203 (DEFAULT_HOURGLASS_DELAY): Remove.
12204 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12205 hourglass_shown_p declaration/initialization.
12206
12207 2008-07-14 Jason Rumney <jasonr@gnu.org>
12208
12209 * w32fns.c (w32_get_arg): Remove wrapper function.
12210 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12211 directly.
12212 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12213
12214 2008-07-14 Kenichi Handa <handa@m17n.org>
12215
12216 * xfont.c (xfont_open): Add workaround for X's bug.
12217
12218 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12219
12220 * fontset.c: Include <stdio.h> unconditionally.
12221
12222 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
12223
12224 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12225 for filtering.
12226
12227 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12228
12229 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12230
12231 * m/macppc.h:
12232 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12233
12234 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12235 (SPECIAL_EMACS_INT):
12236 * m/ia64.h (SPECIAL_EMACS_INT):
12237 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12238 * s/gnu.h (NLIST_STRUCT):
12239 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12240 * s/gnu-linux.h (LINUX):
12241 * s/msdos.h (HAVE_FACES):
12242 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12243
12244 * systty.h:
12245 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12246 anymore.
12247
12248 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12249
12250 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12251 always defined as int.
12252
12253 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12254 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12255 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12256 * s/freebsd.h (HAVE_WAIT_HEADER):
12257 * s/bsd-common.h (HAVE_UNION_WAIT):
12258 * s/aix4-2.h (HAVE_WAIT_HEADER):
12259 * m/mips.h (HAVE_UNION_WAIT):
12260 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12261 (COFF, static): Do not define, they are undefined later in the file.
12262
12263 * process.c (update_status): Don't use a union.
12264 (status_convert):
12265 (sigchld_handler): Use int instead of WAITTYPE.
12266
12267 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
12268
12269 * indent.c (Fvertical_motion): Restore hscroll before moving to
12270 goal column.
12271
12272 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12273
12274 * lisp.h: Remove left over code.
12275
12276 2008-07-11 Andreas Schwab <schwab@suse.de>
12277
12278 * lisp.h: Fix logic in last change.
12279
12280 * menu.h: New file.
12281 * menu.c: Include it.
12282 * xmenu.c: Likewise.
12283 * Makefile.in: Update dependencies.
12284
12285 2008-07-11 Kenichi Handa <handa@m17n.org>
12286
12287 * fontset.c (fontset_from_font): Cancel the previous change.
12288
12289 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12290
12291 * lisp.h:
12292 * w32heap.c:
12293 * emacs.c:
12294 * alloc.c: Replace all references of NO_UNION_TYPE with
12295 USE_LISP_UNION_TYPE.
12296
12297 * m/xtensa.h (NO_UNION_TYPE):
12298 * m/vax.h (NO_UNION_TYPE):
12299 * m/template.h (NO_UNION_TYPE):
12300 * m/sparc.h (NO_UNION_TYPE):
12301 * m/mips.h (NO_UNION_TYPE):
12302 * m/macppc.h (NO_UNION_TYPE):
12303 * m/m68k.h (NO_UNION_TYPE):
12304 * m/iris4d.h (NO_UNION_TYPE):
12305 * m/intel386.h (NO_UNION_TYPE):
12306 * m/ibms390x.h (NO_UNION_TYPE):
12307 * m/ibms390.h (NO_UNION_TYPE):
12308 * m/ibmrs6000.h (NO_UNION_TYPE):
12309 * m/ia64.h (NO_UNION_TYPE):
12310 * m/hp800.h (NO_UNION_TYPE):
12311 * m/arm.h (NO_UNION_TYPE):
12312 * m/amdx86-64.h (NO_UNION_TYPE):
12313 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12314 defining it the same.
12315
12316 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
12317
12318 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12319
12320 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12321
12322 * fileio.c:
12323 * sysdep.c:
12324 * systty.h:
12325 * m/ibmrs6000.h:
12326 * m/iris4d.h:
12327 * s/aix4-2.h:
12328 * s/freebsd.h:
12329 * s/gnu-linux.h:
12330 * s/hpux10-20.h:
12331 * s/hpux11.h:
12332 * s/netbsd.h:
12333 * s/sol2-3.h:
12334 * s/sol2-4.h:
12335 * s/sol2.h:
12336 * s/usg5-4.h:
12337 * s/vms.h: Remove references to unused variables.
12338
12339 2008-07-10 Andreas Schwab <schwab@suse.de>
12340
12341 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12342 pattern before matching the generic family.
12343
12344 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12345
12346 * unexec.c:
12347 * s/vms.h:
12348 * s/usg5-4-2.h:
12349 * s/sol2-5.h:
12350 * s/freebsd.h:
12351 * s/darwin.h: Remove dead code.
12352
12353 * m/template.h:
12354 * m/sparc.h:
12355 * m/mips.h:
12356 * m/m68k.h:
12357 * m/iris4d.h:
12358 * m/intel386.h:
12359 * m/ibms390x.h:
12360 * m/ibms390.h:
12361 * m/ia64.h:
12362 * m/hp800.h:
12363 * m/arm.h:
12364 * m/amdx86-64.h: Remove dead code and references to unused
12365 and compiler defined symbols.
12366
12367 * unexmips.c:
12368 * unexelf.c: Remove references to desupported systems.
12369
12370 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12371
12372 * m/powermac.h: Remove boilerplate comments.
12373 (NO_REMAP): Remove unused definition.
12374
12375 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12376 define them.
12377
12378 2008-07-10 Kenichi Handa <handa@m17n.org>
12379
12380 * xfont.c (xfont_open): Log the reason of failure.
12381
12382 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12383
12384 * fontset.c (fontset_get_font_group):
12385 * font.c (font_check_otf): Specify argument types.
12386
12387 2008-07-09 Kenichi Handa <handa@m17n.org>
12388
12389 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12390 non-ASCII char is found.
12391
12392 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12393 (reorder_font_vector): Change the arg preferred_family to font.
12394 Prefer the spec matching with font.
12395 (fontset_get_font_group): New function.
12396 (fontset_find_font): Change the format of an element of a realized
12397 fontset. Use fontset_get_font_group.
12398 (fontset_font): Try the current fontset, the default fontset, the
12399 fallbacks of the current fontset, and the fallbacks of the default
12400 fontset in this order.
12401 (face_for_char): Delete the shortcut to use the current font.
12402 (fontset_from_font): Don't set fonts for Latin in the fontset.
12403
12404 * font.h (font_make_object, font_match_p): Adjust prototypes.
12405
12406 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12407
12408 * font.c (font_make_object): New arg entity and pixelsize.
12409 (font_check_otf_features, font_check_otf): New functions.
12410 (font_match_p): Check :lang, :script, and :otf properties.
12411
12412 * xfont.c (xfont_open): Adjust it for the change of
12413 font_make_object.
12414 (xfont_text_extents): Fix initial setting of metrics.
12415
12416 * ftfont.c (struct ftfont_info): New member index, delete member
12417 fc_charset_idx. Make the member order compatible with struct
12418 xftfont_info.
12419 (fc_charset_table): Change charset names to registry names.
12420 (ftfont_pattern_entity): Delete the args registry and
12421 fc_charset_idx. Change the value of :font-entity property
12422 to (FONTNAME . INDEX). Always set :registry property to
12423 `iso10646-1'.
12424 (struct ftfont_cache_data): New struct.
12425 (ftfont_lookup_cache): New arg for_face.
12426 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12427 (ftfont_driver): Set the member otf_capability.
12428 (ftfont_get_charset): Adjust it for the change of
12429 fc_charset_table.
12430 (OTF_TAG_SYM): New macro.
12431 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12432 for the change of fc_charset_table.
12433 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12434 ftfont_pattern_entity. Add FC_INDEX to objset.
12435 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12436 and ftfont_pattern_entity.
12437 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12438 font_make_object, struct ftfont_info.
12439 (ftfont_has_char): Use ftfont_get_fc_charset.
12440 (ftfont_otf_features, ftfont_otf_capability): New functions.
12441 (ftfont_shape): Use ftfont_get_otf.
12442 (ftfont_text_extents): Fix initial setting of metrics.
12443
12444 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12445 member order compatible with struct ftfont_info.
12446 (xftfont_open): Add FC_CHARSET to the pattern. Set
12447 xftfont_info->ft_size. Don't unlock the face. Check BDF
12448 properties if appropriate.
12449 (xftfont_close): Unlock the face.
12450 (xftfont_anchor_point, xftfont_shape): Deleted.
12451 (syms_of_xftfont): Don't set members anchor_point and shape of
12452 xftfont_driver.
12453
12454 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12455 font_make_object.
12456
12457 * w32font.c (w32font_open): Adjust it for the change of
12458 font_make_object.
12459 (w32font_open_internal): Don't set properties of font_object here.
12460
12461 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
12462
12463 * macfns.c (x_create_tip_frame):
12464 * w32fns.c (x_create_tip_frame):
12465 * xfns.c (x_create_tip_frame): Pass parameter argument to
12466 face-set-after-frame-default.
12467
12468 * xfaces.c (Finternal_merge_in_global_face): Save merged
12469 attributes for the default face back into the face vector.
12470
12471 2008-07-08 Andreas Schwab <schwab@suse.de>
12472
12473 * fontset.h: Declare fontset_from_font. Don't declare
12474 new_fontset_from_font and fontset_from_font_name.
12475 * xterm.c: Include "fontset.h".
12476 * Makefile.in (xterm.o): Update dependencies.
12477
12478 2008-07-08 Glenn Morris <rgm@gnu.org>
12479
12480 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12481 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12482
12483 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
12484
12485 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12486 (x_set_frame_parameters): Don't bind it.
12487
12488 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
12489
12490 * w32fns.c (map_w32_filename): Declare extern.
12491
12492 2008-07-07 Jason Rumney <jasonr@gnu.org>
12493
12494 * w32term.c (WS_EX_LAYERED): Define if not already.
12495
12496 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
12497
12498 * xfaces.c (set_font_frame_param): Don't try to set the font
12499 parameter if it is still unspecified in the lface.
12500
12501 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
12502
12503 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12504 face if it didn't already exist.
12505
12506 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12507
12508 2008-07-05 Andreas Schwab <schwab@suse.de>
12509
12510 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12511
12512 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
12513
12514 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12515 word-wrapping.
12516 (IT_DISPLAYING_WHITESPACE): New macro.
12517 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12518 when word-wrapping. Simplify word-wrapping logic. Use correct
12519 pixel positions when saving copies of the iterator.
12520 (display_line): Use proper wrap point if the last character on a
12521 line was preceded by whitespace.
12522
12523 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12524
12525 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12526
12527 2008-07-04 Kenichi Handa <handa@m17n.org>
12528
12529 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12530
12531 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12532
12533 2008-07-02 Jason Rumney <jasonr@gnu.org>
12534
12535 * xfns.c (syms_of_xfns): Only define x-select-font when both
12536 HAVE_FREETYPE and USE_GTK.
12537
12538 * xdisp.c (next_element_from_display_vector): Move assignment out
12539 of if statement.
12540
12541 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12542
12543 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12544
12545 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12546 (syms_of_fileio): Initialize and export them.
12547 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12548
12549 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12550 (Fsystem_move_file_to_trash): New function.
12551 (syms_of_w32fns): Export it to lisp.
12552
12553 2008-07-01 Jason Rumney <jasonr@gnu.org>
12554
12555 * w32font.c (w32font_text_extents): Don't count overhang as part
12556 of width.
12557
12558 2008-06-30 Miles Bader <miles@gnu.org>
12559
12560 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12561 Add `avoid_cursor_p' field.
12562
12563 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12564 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12565 (append_glyph, append_composite_glyph, produce_image_glyph)
12566 (append_stretch_glyph): Initialize avoid_cursor_p.
12567 (get_it_property): Rename from `get_line_height_property'.
12568 (x_produce_glyphs): Use get_it_property.
12569 (handle_line_prefix, push_display_prop): New functions.
12570 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12571 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12572 New variables.
12573 (syms_of_xdisp): Initialize them.
12574
12575 2008-06-30 Kenichi Handa <handa@m17n.org>
12576
12577 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12578 XftDefaultSubstitute (they are called in XftFontMatch).
12579 (xftfont_open): Fix args to ftfont_font_format.
12580
12581 * ftfont.c (fc_charset_table): New member lang.
12582 (ftfont_resolve_generic_family): New arg pattern.
12583 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
12584 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12585 (ftfont_open): Fix args to ftfont_font_format.
12586 (ftfont_font_format): New arg filename.
12587
12588 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
12589
12590 * xfaces.c (Finternal_merge_in_global_face): If default face was
12591 modified, realize it again. Update the font face attribute.
12592
12593 2008-06-29 Jason Rumney <jasonr@gnu.org>
12594
12595 * w32term.c (x_set_frame_alpha): Fix logic.
12596
12597 2008-06-29 Kenichi Handa <handa@m17n.org>
12598
12599 * fontset.c (Finternal_char_font): Return font-object instead of
12600 font-name.
12601
12602 * composite.c (get_composition_id): Fix the width calculation for TAB.
12603
12604 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12605
12606 * indent.c (Fvertical_motion): Properly handle float column arg.
12607
12608 2008-06-28 Jason Rumney <jasonr@gnu.org>
12609
12610 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12611 (pfnSetLayeredWindowAttributes): New function pointer.
12612 (w32_initialize): Initialize it when supported.
12613 (x_set_frame_alpha): New function.
12614
12615 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12616 (w32_frame_parm_handlers): Set alpha handler.
12617
12618 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12619
12620 2008-06-27 Jason Rumney <jasonr@gnu.org>
12621
12622 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12623 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12624 (w32_to_x_charset, x_to_w32_charset)
12625 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12626 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12627 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12628 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12629 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12630 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12631 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12632 (Qw32_charset_unicode): Remove.
12633 (syms_of_w32fns): Update for above changes.
12634
12635 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12636 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12637 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12638 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12639 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12640 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12641 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12642 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12643 (syms_of_w32font): Update for above changes.
12644
12645 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12646
12647 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12648 removed #if.
12649 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12650
12651 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12652 Eli Zaretskii <eliz@gnu.org>
12653
12654 * makefile.w32-in (LOCAL_FLAGS):
12655 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12656
12657 * sysdep.c (_spawnlp, _getpid):
12658 Declare with explicit _cdecl instead of _CRTAPI1.
12659
12660 * editfns.c (Fget_internal_run_time):
12661 Check for WINDOWSNT with #ifdef, not #if.
12662
12663 2008-06-26 Jason Rumney <jasonr@gnu.org>
12664
12665 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12666
12667 * w32term.c (x_draw_glyph_string_foreground)
12668 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12669 Use FONT_HANDLE macro.
12670 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12671
12672 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12673 (uniscribe_encode_char): Use FONT_HANDLE macro.
12674
12675 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12676 (w32font_text_extents): Use precast w32_font.
12677 (w32font_close): Free cached metrics.
12678 (w32font_open_internal): Allocate space for name on stack.
12679
12680 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
12681
12682 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12683
12684 2008-06-26 Jason Rumney <jasonr@gnu.org>
12685
12686 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12687 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12688
12689 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12690
12691 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12692
12693 2008-06-26 Jason Rumney <jasonr@gnu.org>
12694
12695 * w32bdf.c, w32bdf.h: Remove obsolete files.
12696
12697 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12698
12699 * w32gui.h: Don't include w32bdf.h.
12700 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12701 Remove obsolete font support.
12702
12703 * w32font.h (struct w32font_info): Remove compat_w32_font.
12704 Add hfont member.
12705 (FONT_COMPAT): Remove obsolete macro.
12706
12707 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12708 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12709 (w32font_open_internal): Remove compat code. Set new hfont member.
12710 (Fx_select_font): Use new hfont member.
12711
12712 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12713 (uniscribe_encode_char): Use new hfont member.
12714
12715 * w32term.c (x_draw_glyph_string_foreground)
12716 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12717 (x_draw_glyph_string): Use metrics in w32font_info.
12718
12719 2008-06-26 Kenichi Handa <handa@m17n.org>
12720
12721 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12722
12723 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12724
12725 * unexnext.c:
12726 * m/ews4800.h:
12727 * m/hp9000s300.h:
12728 * m/ibm370aix.h:
12729 * m/mips-siemens.h:
12730 * m/ncr386.h:
12731 * m/next.h:
12732 * m/pmax.h:
12733 * m/powerpcle.h:
12734 * m/tandem-s2.h:
12735 * s/386bsd.h:
12736 * s/bsd386.h:
12737 * s/bsd4-1.h:
12738 * s/bsd4-2.h:
12739 * s/bsdos2-1.h:
12740 * s/bsdos2.h:
12741 * s/bsdos3.h:
12742 * s/bsdos4.h:
12743 * s/nextstep.h:
12744 * s/ultrix4-3.h:
12745 * s/usg5-0.h:
12746 * s/usg5-2-2.h:
12747 * s/usg5-2.h:
12748 * s/usg5-4-3.h:
12749 * s/ux4800.h:
12750 * s/uxpds.h:
12751 * s/uxpv.h: Remove support for obsolete systems.
12752 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
12753 Remove, insert contents in s/hpux10-20.h.
12754 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12755 Remove, insert contents in s/aix4-2.h.
12756 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12757 * s/bsd4-3.h: Rename to ...
12758 * s/bsd-common.h: ... this.
12759 * data.c:
12760 * doc.c:
12761 * ecrt0.c:
12762 * emacs.c:
12763 * fileio.c:
12764 * floatfns.c:
12765 * keyboard.c:
12766 * mem-limits.h:
12767 * print.c:
12768 * process.c:
12769 * sysdep.c:
12770 * syssignal.h:
12771 * systty.h:
12772 * syswait.h:
12773 * term.c:
12774 * unexec.c:
12775 * unexelf.c:
12776 * unexhp9k800.c:
12777 * m/hp800.h:
12778 * m/ibmrs6000.h:
12779 * m/mips.h:
12780 * m/vax.h:
12781 * s/darwin.h:
12782 * s/freebsd.h:
12783 * s/gnu.h:
12784 * s/ms-w32.h:
12785 * s/msdos.h:
12786 * s/netbsd.h:
12787 * s/template.h: Remove references to obsolete variables.
12788
12789 * Makefile.in: Add dependencies for all unexec files.
12790 (admindir): Remove unused variable.
12791 (UNEXEC_SRC): Remove references.
12792
12793 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
12794
12795 * xfns.c (x_default_font_parameter): If Xft is available, first
12796 try Monospace-12 for the default font.
12797
12798 2008-06-25 Jason Rumney <jasonr@gnu.org>
12799
12800 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12801
12802 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12803
12804 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12805
12806 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12807
12808 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
12809
12810 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12811 <scroll-conservatively>: Fix typo in docstring.
12812
12813 * xselect.c (Fx_send_client_event): Doc fix.
12814
12815 2008-06-25 Kenichi Handa <handa@m17n.org>
12816
12817 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12818
12819 * font.c (font_parse_fcname): Remove unused variables.
12820 (font_sort_entites): Delete the arg SPEC. Caller changed.
12821 Fix for the case of ! best_only.
12822 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12823
12824 * lisp.h (Fstring_to_unibyte): EXFUN it.
12825
12826 * character.h (str_to_unibyte): Extern it.
12827
12828 * character.c (str_to_unibyte): New function.
12829
12830 * fns.c (Fstring_to_unibyte): New function.
12831 (syms_of_fns): Defsubr it.
12832
12833 2008-06-24 Kenichi Handa <handa@m17n.org>
12834
12835 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12836 DPI too.
12837 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12838
12839 2008-06-24 Andreas Schwab <schwab@suse.de>
12840
12841 * Makefile.in (${lispsource}loaddefs.el): Rename from
12842 ../lisp/loaddefs.el.
12843 (bootstrap-clean): Do what distclean does but don't remove
12844 Makefile.
12845 (distclean): Depend on bootstrap-clean and remove Makefile.
12846
12847 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
12848
12849 * buffer.h (struct buffer): New member word_wrap.
12850
12851 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12852 word-wrap.
12853 (init_buffer_once): Initialize them.
12854
12855 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12856 line_wrap enum possessing three possible values.
12857
12858 * termopts.h: Replace truncate_partial_width_windows with
12859 Vtruncate_partial_width_windows.
12860
12861 * dispnew.c (direct_output_for_insert): Avoid direct output when
12862 inserting a space with word wrap on.
12863
12864 * indent.c (compute_motion): Obey integer values of
12865 truncate-partial-width-windows.
12866
12867 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12868 replacing truncate_partial_width_windows.
12869 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12870 truncate only if the window width is below that integer.
12871 (start_display, resize_mini_window, produce_stretch_glyph)
12872 (display_string, move_it_in_display_line_to): Use line_wrap.
12873 (back_to_previous_visible_line_start, reseat_1): Reset
12874 string_from_display_prop_p.
12875 (display_line): Extend default face to end of line when wrapping.
12876
12877 2008-06-24 Kim F. Storm <storm@cua.dk>
12878
12879 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12880 to wrap continued lines at word boundaries.
12881
12882 2008-06-24 Jason Rumney <jasonr@gnu.org>
12883
12884 * font.c (Ffont_face_attributes): Multiply pixel size before point
12885 conversion to avoid multiplying rounding error.
12886
12887 2008-06-23 Jason Rumney <jasonr@gnu.org>
12888
12889 * w32term.c (x_draw_glyph_string_background)
12890 (x_draw_glyph_string): Remove old bdf font code.
12891
12892 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12893
12894 2008-06-22 Kenichi Handa <handa@m17n.org>
12895
12896 * font.c (font_find_for_lface): Try the adstyle specified in
12897 the property of LFACE_FONT of LFACE (if any).
12898
12899 2008-06-21 Seiji Zenitani <zenitani@mac.com>
12900 Ryo Yoshitake <ryo@shiftmode.net>
12901
12902 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12903
12904 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12905
12906 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12907 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12908 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12909 (witness-emacs): Remove.
12910 (lisp, shortlisp): Move loaddefs.el earlier.
12911 (mostlyclean): Forget about witness-emacs.
12912
12913 2008-06-22 Glenn Morris <rgm@gnu.org>
12914
12915 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12916 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12917
12918 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12919
12920 * Makefile.in (PRECOMP): Remove.
12921 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12922 (witness-emacs): Run `compile-first'.
12923 (.el.elc): Use the new compile-onefile target.
12924
12925 2008-06-21 Kenichi Handa <handa@m17n.org>
12926
12927 * xftfont.c (xftfont_open): Handle QCembolden only when
12928 FC_EMBOLDEN is defined.
12929
12930 2008-06-21 Andreas Schwab <schwab@suse.de>
12931
12932 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12933 (.el.elc): Likewise.
12934
12935 2008-06-21 Miles Bader <miles@gnu.org>
12936
12937 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12938 build dir, not the lisp source dir.
12939
12940 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12941
12942 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12943 (bootstrapclean): Remove.
12944 (.el.elc): New rule.
12945 (PRECOMP): New var.
12946 (../lisp/subdirs.el): Remove.
12947 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12948 (witness-emacs): New target.
12949 (mostlyclean): Remove witness-emacs as well.
12950 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12951 Add witness-emacs dependency.
12952
12953 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
12954
12955 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12956 defined by the font.
12957
12958 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12959
12960 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12961 (bootstrap-clean): New target that keeps TAGS around.
12962 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12963 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12964
12965 2008-06-20 Jason Rumney <jasonr@gnu.org>
12966
12967 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12968 Remove obsolete font code.
12969
12970 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12971 to determine language support.
12972
12973 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * sysdep.c (cfsetspeed): New fun extracted from the code.
12976 (cfmakeraw): Move before first use.
12977
12978 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12979
12980 * sysdep.c (cfmakeraw): Provide fallback implementation.
12981 (serial_configure): Provide fallback implementation of cfsetspeed.
12982
12983 2008-06-20 Kenichi Handa <handa@m17n.org>
12984
12985 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12986 the pattern.
12987
12988 * fontset.c (fontset_from_font): Copy font_spec before changing
12989 the elements.
12990
12991 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12992
12993 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12994
12995 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12996 for explicit `font' parameters.
12997
12998 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12999
13000 2008-06-19 Kenichi Handa <handa@m17n.org>
13001
13002 * frame.c: Include <ctype.h>.
13003 (x_set_font_backend): Allow spacing characters in the X resource
13004 for FontBackend.
13005
13006 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13007
13008 * w32fns.c, xfns.c (Qfont_param): New var.
13009 (syms_of_w32fns): Initialize it.
13010 (x_default_font_parameter): Record explicit `font' into
13011 `font-parameter'.
13012
13013 2008-06-18 Kenichi Handa <handa@m17n.org>
13014
13015 * font.c (font_parse_xlfd): Fix previous change.
13016 (font_parse_fcname): Don't use :fc-unknown-spec.
13017 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13018 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13019 (font_add_log): Prepend the driver name to the resulting fonts.
13020
13021 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13022 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13023 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13024
13025 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13026 (QCembolden): New variables.
13027 (syms_of_xftfont): DEFSYM them.
13028 (xftfont_open): Call XftFontMatch. Don't trust the result of
13029 XftTextExtents8 if the pixel_size is less than 5.
13030
13031 2008-06-18 Andreas Schwab <schwab@suse.de>
13032
13033 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13034 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13035
13036 2008-06-18 Jason Rumney <jasonr@gnu.org>
13037
13038 * w32font.c (w32font_list, w32font_match): Add logging.
13039
13040 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13041
13042 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13043
13044 * font.c (font_parse_fcname): Store divider characters for
13045 unknown-spec list. For known key symbols, intern using correct
13046 symbol name.
13047
13048 2008-06-17 Kenichi Handa <handa@m17n.org>
13049
13050 * xfaces.c (realize_default_face): If the frame is not on window
13051 system, set the fontset of face to nil.
13052
13053 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13054
13055 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13056
13057 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13058
13059 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13060 (build_font_name_from_vector): Delete externs.
13061
13062 * xfaces.c (struct font_name): Don't declare.
13063
13064 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13065
13066 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13067
13068 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13069
13070 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13071
13072 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13073
13074 * font.c (Ffont_spec): Fix usage in docstring.
13075 (Ffont_face_attributes): Doc fix.
13076
13077 2008-06-16 Andreas Schwab <schwab@suse.de>
13078
13079 * font.c (Ffont_face_attributes): Fix definition.
13080
13081 2008-06-16 Jason Rumney <jasonr@gnu.org>
13082
13083 * font.h (font_style_symbolic_from_value): Remove.
13084
13085 * font.c (font_style_symbolic_from_value): Remove.
13086 (font_style_symbolic): Revert to pre 2008-06-13 version.
13087
13088 * w32font.c (w32_to_fc_weight): New function.
13089 (w32font_full_name, logfont_to_fcname): Use it.
13090
13091 2008-06-16 Kenichi Handa <handa@m17n.org>
13092
13093 * font.c (font_check_object): Delete it.
13094 (font_clear_cache): Check if a font-object is alive.
13095 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13096 font-object to nil.
13097 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13098 (font_at): Don't call font_check_object.
13099 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13100
13101 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13102
13103 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13104
13105 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13106
13107 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13108
13109 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
13110
13111 * font.c (font_parse_fcname): Only one decimal point.
13112 (font_unparse_fcname): Handle data in family and foundry indices
13113 as symbols, not strings.
13114 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13115
13116 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13117
13118 * font.h (font_unparse_gtkname): Add prototype.
13119
13120 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13121
13122 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13123
13124 2008-06-15 Andreas Schwab <schwab@suse.de>
13125
13126 * font.c (font_update_drivers): Fix crash when no drivers match.
13127
13128 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13129
13130 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13131 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13132
13133 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13136
13137 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13138
13139 * process.c (Fserial_process_configure, Fprocess_send_eof):
13140 Use EQ to compare Lisp_Objects.
13141
13142 2008-06-13 Jason Rumney <jasonr@gnu.org>
13143
13144 * w32fns.c (Fw32_select_font): Remove old font API function.
13145
13146 * w32font.c (logfont_to_fcname): New function.
13147 (Fx_select_font): New font dialog function compatible with
13148 GTK/fontconfig version.
13149
13150 * font.c (font_style_symbolic_from_value): New function.
13151 (font_style_symbolic): Use it.
13152
13153 * font.h (font_style_symbolic_from_value): Declare new function.
13154
13155 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
13156
13157 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13158 <font-width-table>: Fix typos in docstrings.
13159
13160 2008-06-13 Daniel Engeler <engeler@gmail.com>
13161
13162 These changes add serial port access.
13163 * process.c: Add HAVE_SERIAL.
13164 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13165 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13166 (list_processes_1, select_wrapper, Fstop_process)
13167 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13168 (status_notify): Modify to handle serial processes.
13169 [HAVE_SERIAL] (Fserial_process_configure)
13170 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13171 New functions.
13172 * process.h (struct Lisp_Process): Add `type'.
13173 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13174 New functions.
13175 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13176 serial ports.
13177 (serial_open, serial_configure): New functions.
13178 * w32.h: Add FILE_SERIAL.
13179 (struct _child_process): Add ovl_read, ovl_write.
13180
13181 2008-06-13 Kenichi Handa <handa@m17n.org>
13182
13183 * dispextern.h (enum lface_attribute_index): New member
13184 LFACE_FOUNDRY_INDEX.
13185
13186 * font.c (font_score): Delete arg alternate_families. Check only
13187 weight, slant, width, and size. Ignore the difference of alias
13188 style symbols.
13189 (font_sort_entites): Adjust for the above change. Reflect the
13190 order of font-driver to scores.
13191 (font_list_entities): Don't check alternate_familes here.
13192 (font_clear_prop): Handle foundry.
13193 (font_update_lface): Don't parse "foundry-family" form here.
13194 Handle FONT_FOUNDRY_INDEX.
13195 (font_find_for_lface): Likewise. Handle alternate families here.
13196 If registry is nil, try iso8859-1 and ascii-0.
13197 (font_open_for_lface): Pay attention to size in ENTITY.
13198 (font_open_by_name): Simplify by calling font_load_for_lface.
13199 (free_font_driver_list): Delete it.
13200 (font_update_drivers): Preserve the order of backends.
13201 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13202 of font_score and font_sort_entites.
13203 (font_update_sort_order): Likewise.
13204
13205 * xfaces.c (LFACE_FOUNDRY): New macro.
13206 (check_lface_attrs): Check foundry.
13207 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13208 (merge_face_vectors): Check foundry.
13209 (merge_face_ref): Likewise.
13210 (Finternal_set_lisp_face_attribute): Likewise.
13211 (x_update_menu_appearance): Likewise.
13212 (Finternal_get_lisp_face_attribute): Likewise.
13213 (lface_hash): Likewise.
13214 (lface_same_font_attributes_p): Likewise.
13215 (x_supports_face_attributes_p): Likewise.
13216 (tty_supports_face_attributes_p): Likewise.
13217 (Finternal_set_alternative_font_family_alist): Intern strings.
13218 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13219 (realize_default_face): Set LFACE_FOUNDRY (lface).
13220
13221 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13222 font-driver at first.
13223
13224 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13225
13226 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13227
13228 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13229
13230 2008-06-12 Jim Meyering <meyering@redhat.com>
13231
13232 Make unexec_free handle NULL the same way free does.
13233 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13234
13235 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13236
13237 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13238 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13239 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13240 (WEAK_ALIAS): Simplify.
13241 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13242 when searching a unibyte buffer.
13243
13244 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
13245
13246 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13247
13248 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
13249
13250 * w32font.c: Include ctype.h.
13251
13252 2008-06-11 Jason Rumney <jasonr@gnu.org>
13253
13254 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13255 misreported as space.
13256 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13257 as aliases for registry iso10646-1.
13258
13259 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13260
13261 * buffer.c (clone_per_buffer_values): Skip `name'.
13262
13263 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
13264
13265 * font.c (font_parse_fcname): Fix last change; accept decimal
13266 points in font size.
13267
13268 2008-06-10 Jason Rumney <jasonr@gnu.org>
13269
13270 * w32uniscribe.c (add_opentype_font_name_to_list):
13271 Skip non unicode fonts.
13272
13273 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13274
13275 * xfns.c (Fx_font_dialog): New function.
13276
13277 * gtkutil.c (xg_dialog_response_cb): Rename from
13278 xg_file_response_callback.
13279 (pop_down_dialog): Rename from pop_down_file_dialog.
13280 (xg_get_file_name): Callers changed.
13281 (xg_get_font_name): New function.
13282
13283 * gtkutil.h (xg_get_font_name): Insert prototype.
13284
13285 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13286
13287 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13288 x_underline_minimum_display_offset.
13289 (syms_of_xdisp): Declare it here rather than in xterm.c.
13290 * dispextern.h (underline_minimum_offset): Declare it.
13291 * w32term.c (x_draw_glyph_string): Use it.
13292 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13293 (syms_of_xterm): Don't declare it any more.
13294 (x_draw_glyph_string): Adjust to the new name.
13295
13296 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
13297
13298 * xterm.c (x_underline_minimum_display_offset): New var.
13299 (x_draw_glyph_string): Use it.
13300 (syms_of_xterm): Declare it.
13301
13302 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13303
13304 * font.c (font_parse_fcname): Accept GTK-style font names too.
13305
13306 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13307
13308 * dired.c (file_name_completion): Don't return t if the match is exact
13309 but with different capitalization.
13310 * minibuf.c (Ftry_completion): Simplify.
13311
13312 * window.c (Vwindow_point_insertion_type): New var.
13313 (set_window_buffer): Use it.
13314 (syms_of_window): Init and export it to Lisp.
13315
13316 2008-06-10 Kenichi Handa <handa@m17n.org>
13317
13318 * font.h (font_intern_prop): Prototype adjusted.
13319
13320 * font.c (font_intern_prop): New arg force_symbol.
13321 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13322 Adjust for the change of font_intern_prop.
13323
13324 * ftfont.c (ftfont_pattern_entity):
13325 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13326 (w32_registry):
13327 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13328 the change of font_intern_prop.
13329
13330 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
13331
13332 * w32menu.c (digest_single_submenu): Declare extern.
13333
13334 2008-06-09 Jason Rumney <jasonr@gnu.org>
13335
13336 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13337
13338 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13339 (parse_single_submenu): Remove.
13340 (digest_single_submenu): Remove.
13341 (syms_of_w32menu): Don't initialise variables that have moved
13342 to menu.c.
13343 (set_frame_menubar): Sync with version in xmenu.c.
13344 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13345
13346 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13347 Make static again.
13348
13349 2008-06-09 Jason Rumney <jasonr@gnu.org>
13350
13351 Changes to w32 files related to the move of common menu code
13352 to menu.c on 2008-06-08 by Chong Yidong.
13353
13354 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13355 defs to w32gui.h.
13356 (single_keymap_panes, push_menu_item, push_menu_pane):
13357 Make globally visible.
13358
13359 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13360 (local_free, malloc_widget_value, free_widget_value)
13361 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13362 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13363 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13364 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13365 (menu_items, menu_items_allocated, menu_items_used)
13366 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13367 (init_menu_items, finish_menu_items, discard_menu_items)
13368 (grow_menu_items, push_submenu_start, push_submenu_end)
13369 (push_left_right_boundary, push_menu_pane, push_menu_item)
13370 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13371 (free_menubar_widget_tree_value, parse_single_submenu)
13372 (update_submenu_strings): Remove functions.
13373 (xmalloc_widget_value): Remove and declare extern.
13374
13375 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13376 (OBJ1): Build it.
13377
13378 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13379 (local_heap, local_alloc, local_free, malloc_widget_value)
13380 (free_widget_value): Define here.
13381
13382 2008-06-09 Kenichi Handa <handa@m17n.org>
13383
13384 * font.h (Qascii_0): Extern it.
13385
13386 * font.c (Qascii_0): New variable.
13387 (syms_of_font): DEFSYM it.
13388 (font_open_by_name): If the registry "iso8859-1" fails, try also
13389 "ascii-0".
13390
13391 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13392
13393 2008-06-08 Kenichi Handa <handa@m17n.org>
13394
13395 * .gdbinit (xfont): New command.
13396
13397 2008-06-08 Andreas Schwab <schwab@suse.de>
13398
13399 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13400 * Makefile.in (menu.o): Update dependencies.
13401
13402 * Makefile.in (obj): Always add menu.o.
13403 * emacs.c (main): Always call syms_of_menu.
13404 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13405
13406 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
13407
13408 * Makefile.in: Compile menu.c.
13409
13410 * lisp.h: Declare syms_of_menu.
13411
13412 * emacs.c (main): Call syms_of_menu.
13413
13414 * keyboard.h: Relocate platform-independent menu definitions from
13415 xmenu.c.
13416
13417 * menu.c: New file. Relocate platform-independent menu
13418 definitions from xmenu.c. Suggested by Adrian Robert.
13419
13420 * xmenu.c: Remove platform-independent menu definitions.
13421 (menu_items, menu_items_inuse, menu_items_allocated)
13422 (menu_items_used, menu_items_n_panes)
13423 (menu_items_submenu_depth): Move to keyboard.h.
13424 (init_menu_items, finish_menu_items, unuse_menu_items)
13425 (discard_menu_items, restore_menu_items, save_menu_items)
13426 (grow_menu_items, push_submenu_start, push_submenu_end)
13427 (push_left_right_boundary, push_menu_pane, push_menu_item)
13428 (keymap_panes, single_keymap_panes, single_menu_item)
13429 (list_of_panes, list_of_items, find_and_call_menu_selection)
13430 (xmalloc_widget_value, free_menubar_widget_value_tree)
13431 (parse_single_submenu, digest_single_submenu)
13432 (update_submenu_strings): Move to menu.c.
13433
13434 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13435
13436 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13437
13438 2008-06-06 Miles Bader <miles@gnu.org>
13439
13440 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13441 face, not frame default.
13442
13443 2008-06-05 Martin Rudalics <rudalics@gmx.at>
13444
13445 * window.c (pop_up_windows, pop_up_frames)
13446 (display_buffer_reuse_frames, Vpop_up_frame_function)
13447 (Vdisplay_buffer_function, Veven_window_heights)
13448 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13449 (Vspecial_display_function, Vsame_window_buffer_names)
13450 (Vsame_window_regexps, split_height_threshold)
13451 (Vsplit_window_preferred_function): Move those vars to window.el.
13452 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13453 (Fdisplay_buffer): Move those functions to window.el.
13454 (syms_of_window): Remove corresponding declarations.
13455 (display_buffer): New function.
13456 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13457 * dispnew.c (Flast_nonminibuf_frame): New function.
13458 * buffer.c (Fpop_to_buffer): Move to window.el.
13459
13460 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13461
13462 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13463
13464 2008-06-05 Kenichi Handa <handa@m17n.org>
13465
13466 * coding.c (detect_coding): Fix previous change.
13467 (detect_coding_system): Likewise.
13468
13469 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13470
13471 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13472
13473 * keymap.c (Vminibuffer_local_filename_must_match_map):
13474 Rename from Vminibuffer_local_must_match_filename_map.
13475 (syms_of_keymap):
13476 * minibuf.c (Fcompleting_read): Adjust accordingly.
13477 * commands.h: Rename declaration as well.
13478
13479 2008-06-05 Kenichi Handa <handa@m17n.org>
13480
13481 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13482 family name.
13483 (Ffont_put): Likewise.
13484
13485 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13486 current font-spec.
13487
13488 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13489 is unspecified.
13490
13491 * xfaces.c (realize_x_face): If the font-related face attributes
13492 are the same as those of default face, realize a new fontset from
13493 default->fontset.
13494 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13495
13496 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13497
13498 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13499 (move_it_in_display_line): New wrapper.
13500
13501 * window.c (window_scroll_pixel_based_preserve_x)
13502 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13503 (window_scroll_pixel_based, window_scroll_line_based):
13504 Use them to preserve column positions.
13505 (syms_of_window): Initialize them.
13506
13507 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13508 (HPOS . VPOS) pair.
13509
13510 * dispextern.h (move_it_in_display_line): Declare.
13511
13512 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
13513
13514 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13515 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13516 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13517
13518 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
13519
13520 * window.c (Fset_window_parameter): Doc fix.
13521 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13522
13523 2008-06-04 Joakim Verona <joakim@verona.se>
13524
13525 * window.h (struct window): Add new member window_parameters.
13526
13527 * window.c (Fwindow_parameters, Fwindow_parameter)
13528 (Fset_window_parameter): New defuns.
13529 (syms_of_window): Defsubr the new defuns.
13530 (make_window): Initialize window_parameters to nil.
13531
13532 2008-06-04 John Paul Wallington <jpw@pobox.com>
13533
13534 * eval.c (Fdefmacro): Doc fix.
13535
13536 2008-06-04 Kenichi Handa <handa@m17n.org>
13537
13538 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13539 Be sure to call setup_coding_system when we find a proper coding system.
13540 (detect_coding_system): Fix handling of coding->head_ascii.
13541
13542 2008-06-03 Andreas Schwab <schwab@suse.de>
13543
13544 * font.c (font_prop_validate_spacing): Fix last change.
13545
13546 2008-06-03 Kenichi Handa <handa@m17n.org>
13547
13548 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13549 (font_parse_fcname): Fix handling of unknown key.
13550
13551 * xfont.c (xfont_list): Try an alias.
13552
13553 * charset.c (char_charset): Return NULL if the arg charset_list is
13554 specified and C doesn't belong to any of them.
13555
13556 2008-06-02 Chip Coldwell <coldwell@redhat.com>
13557
13558 * font.c (font_pixel_size): Don't take cdr of an integer.
13559
13560 2008-06-02 Jim Meyering <meyering@redhat.com>
13561
13562 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13563 * alloc.c (xfree): Return right away for a NULL arg.
13564 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13565 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13566 * mac.c (create_apple_event_from_event_ref): Likewise.
13567 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13568 Likewise.
13569 * doprnt.c (doprnt1): Likewise.
13570 * frame.c (frame): Likewise.
13571 * keyboard.c (wipe_kboard): Likewise.
13572 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13573 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13574 * term.c (tty_default_color_capabilities, maybe_fatal)
13575 (delete_tty): Likewise.
13576 * w16select.c (string): Likewise.
13577 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13578 * w32bdf.c (w32_free_bdf_font): Likewise.
13579 * w32fns.c (w32_unload_font): Likewise.
13580 * w32font.c (w32font_close): Likewise.
13581 * window.c (size_window): Likewise.
13582 * xselect.c (receive_incremental_selection): Likewise.
13583 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13584 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13585 * w32.c (stat): Likewise.
13586
13587 Remove useless if-before-free tests.
13588 * editfns.c (Fset_time_zone_rule): Likewise.
13589 * lread.c (nosuffix): Likewise.
13590 * ralloc.c (get_bloc): Likewise.
13591 * regex.c (reg_free): Likewise.
13592 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13593 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13594 * xsmfns.c (smc_save_yourself_CB): Likewise.
13595
13596 2008-06-02 Kenichi Handa <handa@m17n.org>
13597
13598 * font.c (font_find_for_lface): Handle float font size.
13599 (font_open_for_lface): Likewise.
13600
13601 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13602 comparing the properties.
13603
13604 2008-06-01 Jason Rumney <jasonr@gnu.org>
13605
13606 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13607 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13608 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13609 Don't add empty script list.
13610 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13611
13612 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13613
13614 * Makefile.in (dot, dotdot): Remove, update users.
13615 ".." has been used elsewhere in the file for a long time.
13616 (LIBXT_STATIC): Remove conditional based on unused variable.
13617
13618 2008-06-01 Miles Bader <miles@gnu.org>
13619
13620 * xfaces.c (Vface_remapping_alist): New variable.
13621 (syms_of_xfaces): Initialize it.
13622 (enum named_merge_point_kind): New type.
13623 (struct named_merge_point): Add `named_merge_point_kind' field.
13624 (push_named_merge_point): Make cycle detection respect different
13625 named-merge-point kinds.
13626 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13627 Remove face-name alias resolution.
13628 (lface_from_face_name): New definition using
13629 `lface_from_face_name_no_resolve'.
13630 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13631 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13632 (get_lface_attributes): New definition that layers face-remapping on
13633 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13634 (lookup_basic_face): New function.
13635 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13636 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13637 `get_lface_attributes'.
13638 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13639 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13640 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13641
13642 * xdisp.c (init_iterator): Pass base_face_id through
13643 `lookup_basic_face' when we actually use it as a face-id.
13644 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13645 DEFAULT_FACE_ID.
13646
13647 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13648 lookup the initial face-id.
13649
13650 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13651
13652 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
13653
13654 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13655 (Fremove_text_properties): Fix typos in docstrings.
13656
13657 2008-05-31 Kenichi Handa <handa@m17n.org>
13658
13659 * font.c (font_list_entities): Fix the car part of data to be
13660 stored in the cache.
13661
13662 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13663
13664 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13665
13666 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13667 Add a `test' argument so another predicate than `equal' can be used.
13668 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13669 (map_char_table): Remove unused vars `c' and `i'.
13670 * lisp.h (Foptimize_char_table): Adjust declaration.
13671 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13672
13673 2008-05-30 Kenichi Handa <handa@m17n.org>
13674
13675 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13676 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13677 defined.
13678
13679 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13680
13681 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13682 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13683 frame-local settings for the same variable.
13684
13685 2008-05-30 Kenichi Handa <handa@m17n.org>
13686
13687 * fontset.c (Ffont_info): Move to font.c.
13688 (syms_of_fontset): Delete defsubr of Sfont_info.
13689
13690 * font.c (font_style_to_value, font_score): Delete casting of the
13691 args to xstcasecmp.
13692 (register_font_driver): Increment num_font_drivers only when
13693 registering the driver globally.
13694 (Ffont_info): Move from fontset.c. Handle a font object too.
13695 (syms_of_font): Defsubr Sfont_info.
13696
13697 2008-05-29 Kenichi Handa <handa@m17n.org>
13698
13699 * coding.h (enum define_coding_utf8_arg_index): New enum.
13700 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13701 coding_attr_utf_bom.
13702 (enum utf_bom_type): Rename from utf_16_bom_type.
13703 (struct utf_16_spec): Adjust for the above change.
13704 (struct coding_system): Add utf_8_bom in `spec' union.
13705
13706 * coding.c (CODING_UTF_8_BOM): New macro.
13707 (enum coding_category): Delete coding_category_utf_8, add
13708 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13709 coding_category_utf_8_sig.
13710 (CATEGORY_MASK_UTF_8): Delete it.
13711 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13712 (CATEGORY_MASK_UTF_8_SIG): New macros.
13713 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13714 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13715 CATEGORY_MASK_UTF_8_SIG.
13716 (CATEGORY_MASK_UTF_8): New macro.
13717 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13718 (detect_coding_utf_8): Check BOM.
13719 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13720 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13721 (encode_coding_utf_16): Likewise.
13722 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13723 (detect_coding, detect_coding_system): Handle utf-8-auto.
13724 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13725 (syms_of_coding): Fix setting up of Vcoding_category_table.
13726
13727 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13728
13729 * process.c (Faccept_process_output): If `millisec' is non-nil,
13730 `seconds' default to 0.
13731 (wait_reading_process_output): Also return non-nil if we read output
13732 from a non-running process.
13733
13734 2008-05-29 Jason Rumney <jasonr@gnu.org>
13735
13736 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13737 `raster' specified.
13738 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13739 in the uniscribe backend, but disallow any font that has no
13740 unicode subrange support.
13741
13742 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
13743
13744 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13745 Fix typos in docstrings.
13746
13747 2008-05-29 Kenichi Handa <handa@m17n.org>
13748
13749 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13750 (Fx_family_fonts): Set frame correctly.
13751
13752 2008-05-28 Jason Rumney <jasonr@gnu.org>
13753
13754 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13755
13756 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13757
13758 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13759 calling build_annotations.
13760
13761 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
13762
13763 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13764 (Fencode_coding_string):
13765 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13766 <latin-extra-code-table>: Fix typos in docstrings.
13767 (syms_of_coding) <coding-system-alist>: Doc fix.
13768 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13769
13770 2008-05-28 Kenichi Handa <handa@m17n.org>
13771
13772 * fontset.c (Ffont_info): Don't call font_close_object.
13773
13774 * font.c (font_parse_family_registry): Use Ffont_put to validate
13775 foundry and family.
13776 (font_delete_unmatched): Don't check spacing.
13777 (font_list_entities): Add spacing to the spec to list fonts.
13778
13779 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13780 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13781
13782 * coding.c (encode_coding_raw_text): Fix previous change.
13783 (encode_coding_object): When the dst_object is a buffer and is
13784 different from src_object, move gap to PT.
13785
13786 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13787
13788 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13789
13790 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13791
13792 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13793 all branches. Compute it differently.
13794
13795 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13796
13797 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
13798
13799 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13800 into "else if () ... else ...".
13801
13802 2008-05-27 Jason Rumney <jasonr@gnu.org>
13803
13804 * w32font.c (w32font_open_internal): Determine if glyph indices
13805 are likely to work here.
13806
13807 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13808
13809 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13810 draw overlap glyphs with appropriate highlighting.
13811
13812 2008-05-27 Kenichi Handa <handa@m17n.org>
13813
13814 * xfont.c (xfont_open): Fix calculation of font->average_width.
13815
13816 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13817
13818 * casefiddle.c (casify_object): Try to guess better whether the
13819 argument is a byte or a char.
13820
13821 2008-05-26 Andreas Schwab <schwab@suse.de>
13822
13823 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13824 Always send multiples of format size.
13825
13826 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13827
13828 2008-05-26 Jason Rumney <jasonr@gnu.org>
13829
13830 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13831 (compute_metrics): Don't set failure if we just cleared the cache.
13832 (w32_weight_table): Remove unused variable.
13833 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13834 backwards compatibility.
13835
13836 2008-05-25 Kenichi Handa <handa@m17n.org>
13837
13838 * w32term.c (x_draw_glyph_string):
13839 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13840
13841 * xfaces.c: Delete unused function prototypes.
13842 (xstrlwr, font_frame): Delete them.
13843 (clear_face_cache): Delete unused variable.
13844
13845 * xftfont.c (xftfont_open): Delete unused variable.
13846 If underline_thickness is not 1, adjust underline_position.
13847
13848 * ftxfont.c (ftxfont_open): Delete unused variable.
13849
13850 * fontset.c (face_for_char): Optimize for the case of no charset
13851 property.
13852
13853 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13854 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13855 (otf_open, font_otf_capability, generate_otf_features)
13856 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13857 Comment out by surrounding "#if 0" and "#endif" for the moment.
13858 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13859 (syms_of_font): Codes for accessing above commented out.
13860
13861 2008-05-24 Eli Zaretskii <eliz@gnu.org>
13862
13863 * w32proc.c: Include dispextern.h.
13864
13865 * w32.c: Include dispextern.h.
13866
13867 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
13868
13869 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13870 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13871 Fix typos in docstrings.
13872
13873 2008-05-23 Jason Rumney <jasonr@gnu.org>
13874
13875 * xsmfns.c: Remove includes that are already included by config.h.
13876
13877 2008-05-23 Kenichi Handa <handa@m17n.org>
13878
13879 * charset.c (Qemacs, charset_emacs): New variables.
13880 (char_charset): Fix for non-Unicode characters.
13881 (syms_of_charset): Define charset_emacs.
13882
13883 * w32term.c (x_draw_glyph_string): Be sure to update
13884 s->underline_thickness and s->underline_position. Be sure to draw
13885 underline within the current line area.
13886
13887 * xterm.c (x_draw_glyph_string): Be sure to update
13888 s->underline_thickness and s->underline_position. Be sure to draw
13889 underline within the current line area.
13890
13891 * fontset.c: Delete unused variables and add casting for char *
13892 throughout the file.
13893 (fontset_font): Try the fallback fonts of the current fontset
13894 before consulting the default fontset.
13895
13896 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13897
13898 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13899
13900 2008-05-22 Jason Rumney <jasonr@gnu.org>
13901
13902 * font.c: Don't include strings.h.
13903
13904 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13905
13906 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13907 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13908 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13909 to call xstrcasecmp.
13910
13911 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13912
13913 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13914
13915 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13916
13917 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13918
13919 2008-05-22 Kenichi Handa <handa@m17n.org>
13920
13921 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13922
13923 * font.c (font_prop_validate_style): Adjust for the format
13924 change of font_style_table.
13925
13926 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13927 two args.
13928
13929 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13930 two args.
13931
13932 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13933
13934 * minibuf.c (keys_of_minibuf): Delete.
13935 * lisp.h (keys_of_minibuf): Delete.
13936 * emacs.c (main): Don't call keys_of_minibuf.
13937
13938 2008-05-22 Kenichi Handa <handa@m17n.org>
13939
13940 * ftfont.c (ftfont_resolve_generic_family): Rename from
13941 ftfont_list_generic_family. Return a single family for each
13942 generic family.
13943 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13944 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13945 Call font_add_log.
13946 (ftfont_match): Call font_add_log.
13947
13948 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13949 (FONT_DEBUG): Define it.
13950 (font_add_log): Extern it.
13951 (font_assert): Rename from xassert.
13952
13953 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13954 (xfont_list_family): Call font_add_log.
13955 (xfont_match): Likewise.
13956 (memq_no_quit): Delete.
13957
13958 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13959 call of Ffont_xlfd_name.
13960
13961 * xfaces.c (struct table_entry, slant_table, weight_table)
13962 (swidth_table): Move to font.c.
13963
13964 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13965 xassert are changed to font_assert. Delete many unused variables.
13966 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13967 New variables.
13968 (struct table_entry): Move from xfaces.c and modified.
13969 (weight_table, slant_table, width_table): Move from xfaces.c and
13970 contents adjusted for the change of struct table_entry.
13971 (font_style_to_value, font_style_symbolic): Adjust for the
13972 format change of font_style_table.
13973 (font_parse_family_registry): Don't overwrite existing foundry and
13974 family of font_spec.
13975 (font_score): Fix calculation of diff for sizes.
13976 (font_sort_entites): Call font_add_log.
13977 (font_delete_unmatched): Return a newly created list.
13978 (font_list_entities): Fix previous change. Call font_add_log.
13979 (font_matching_entity, font_open_entity, font_close_entity):
13980 Call font_add_log.
13981 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13982 (Finternal_set_font_style_table): Delete.
13983 (BUILD_STYLE_TABLE): New macro.
13984 (build_style_table): New function.
13985 (Vfont_log, font_log_env_checked): New variables.
13986 (font_add_log): New function.
13987 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13988 Declare Lisp variables "font-weight-table", "font-slant-table",
13989 "font-width-table", and "font-log". Initialize font_style_table.
13990
13991 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13992
13993 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13994
13995 2008-05-21 Seiji Zenitani <zenitani@mac.com>
13996 Ryo Yoshitake <ryo@shiftmode.net>
13997
13998 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13999 (Vframe_alpha_lower_limit): New variable.
14000 (x_set_alpha): New function.
14001
14002 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14003
14004 * xfns.c (x-create-frame, Qalpha):
14005 Initialize the frame parameter `alpha'.
14006 * xterm.c (OPAQUE, OPACITY): New.
14007 (x_set_frame_alpha): New function.
14008 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14009
14010 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14011 * w32fns.c (w32_frame_parm_handlers): Likewise.
14012
14013 2008-05-20 Jason Rumney <jasonr@gnu.org>
14014
14015 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14016 truetype fonts to opentype list.
14017
14018 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14019
14020 * fontset.c (Ffontset_info): Doc fix.
14021 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14022 <ignore-relative-composition>: Fix typos in docstrings.
14023
14024 * font.c (syms-of-font) <font-encoding-alist>:
14025 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14026 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14027 (Ffont_otf_alternates): Doc fixes.
14028
14029 2008-05-20 Kenichi Handa <handa@m17n.org>
14030
14031 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14032 font.h through out the file.
14033 (FONT_DRIVERS): Rename from FONTOBJ.
14034 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14035 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14036
14037 * emacs.c (main): Call syms_of_font unconditionally.
14038
14039 * font.h (find_font_encoding): Extern it.
14040
14041 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14042 fontset.c.
14043 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14044 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14045 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14046 only when HAVE_WINDOW_SYSTEM is defined.
14047 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14048 when HAVE_WINDOW_SYSTEM is defined.
14049
14050 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14051 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14052
14053 * xfaces.c: Include font.h unconditionally.
14054 (merge_face_ref, merge_face_vectors)
14055 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14056
14057 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14058
14059 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14060 indirect_variable.
14061 * eval.c (lisp_indirect_variable): New fun.
14062 (Fuser_variable_p): Use it.
14063
14064 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14065
14066 * lisp.h (indirect_variable):
14067 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14068 Use Lisp_Symbol pointers rather than Lisp_Object.
14069 Adjust callers.
14070 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14071 To this end, change calling-convention.
14072
14073 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14074 if some non-hidden buffers are selected by string&pred.
14075
14076 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14077
14078 * process.c (wait_reading_process_output): Always check status
14079 when in batch mode.
14080
14081 2008-05-19 Kenichi Handa <handa@m17n.org>
14082
14083 * font.c (font_list_entities): Fix handling of cache.
14084 (font_matching_entity): Likewise.
14085
14086 * ftfont.c (cs_iso8859_1): Delete.
14087 (ft_face_cache): New variable.
14088 (struct ftfont_info): New member fc_charset_idx.
14089 (ftfont_build_basic_charsets): Delete.
14090 (fc_charset_table): New variable.
14091 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14092 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14093 Callers changed.
14094 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14095 (ftfont_spec_pattern): New argument fc_charset_idx.
14096 Check registry more rigidly. Change callers.
14097 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14098 change of :font-entity property of the font.
14099
14100 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14101 property of the font.
14102
14103 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
14104
14105 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14106 (Funencodable_char_position, Fcheck_coding_systems_region)
14107 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14108 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14109 (Ffind_operation_coding_system, Fset_coding_system_priority)
14110 (Fcoding_system_eol_type): Doc fixes.
14111
14112 2008-05-17 Glenn Morris <rgm@gnu.org>
14113
14114 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14115
14116 2008-05-16 Eli Zaretskii <eliz@gnu.org>
14117
14118 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14119 and st_gid.
14120
14121 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14122 HAVE_WINDOW_SYSTEM is not defined.
14123
14124 * xfaces.c (merge_face_ref, merge_face_vectors)
14125 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14126 HAVE_WINDOW_SYSTEM is defined.
14127 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14128
14129 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14130
14131 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14132
14133 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14134
14135 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14136
14137 2008-05-15 Kenichi Handa <handa@m17n.org>
14138
14139 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14140 preference.
14141
14142 2008-05-15 Glenn Morris <rgm@gnu.org>
14143
14144 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14145
14146 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
14147
14148 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14149 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14150
14151 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14152
14153 2008-05-15 Kenichi Handa <handa@m17n.org>
14154
14155 * ftfont.c (ftfont_list): Downcase family name to check generic
14156 families.
14157
14158 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14159 font-spec for QCfont value.
14160
14161 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14162 buffer. Check the return value of it.
14163
14164 2008-05-14 Jason Rumney <jasonr@gnu.org>
14165
14166 * w32term.c (w32_get_glyph_overhangs): Remove.
14167 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14168
14169 2008-05-14 Kenichi Handa <handa@m17n.org>
14170
14171 * font.c (font_prop_validate): Make nil a valid value.
14172 (font_clear_cache): Check if the cached vector of entities is nil
14173 or not.
14174
14175 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14176
14177 * emacs.c (main_thread): Conditionalize on
14178 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14179 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14180
14181 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14182 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14183 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14184
14185 2008-05-14 Kenichi Handa <handa@m17n.org>
14186
14187 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14188 has no corresponding coding system.
14189
14190 2008-05-14 Jason Rumney <jasonr@gnu.org>
14191
14192 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14193
14194 * w32font.h (w32font_open_internal): Update declaration.
14195
14196 * w32font.c (w32font_open_internal): Change last argument from
14197 w32font_info struct to font object. Fill in font object from
14198 font_entity. Get Outline metrics if possible. Use them to
14199 calculate underline position and thickness. Use xlfd name as name
14200 property. Don't set codepage.
14201 (w32font_open): Pass font_object to w32font_open_internal. Don't
14202 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14203 (w32font_draw): Use s->font.
14204 (clear_cached_metrics): Don't clear non-existent blocks.
14205
14206 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14207 font was not found.
14208 (x_draw_glyph_string): Use underline position and thickness from font.
14209
14210 * w32uniscribe.c (uniscribe_open): Pass font_object to
14211 w32font_open_internal.
14212
14213 2008-05-14 Kenichi Handa <handa@m17n.org>
14214
14215 These changes are to delete all legacy font-handling codes, and
14216 make Emacs use only font-backends.
14217
14218 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14219 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14220
14221 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14222
14223 * charset.h (Vcharset_non_preferred_head)
14224 (Vcurrent_iso639_language): Extern them.
14225
14226 * charset.c (Vcharset_non_preferred_head): New variable.
14227 (Vcurrent_iso639_language): New variable.
14228 (syms_of_charset): Declare it as a Lisp variable.
14229 (char_charset): Don't check non preferred charsets. As a last
14230 resort, return charset_unicode.
14231 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14232
14233 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14234 conditionals. Don't check enable_font_backend. Delete all codes
14235 used only when USE_FONT_BACKEND is not defined.
14236
14237 * dispextern.h (struct glyph_string): Change type of `font' to
14238 `struct font *'.
14239 (struct glyph_string): New member underline_position and
14240 underline_thickness.
14241 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14242 (struct face): Change type of `font' to `struct font *'. Remove
14243 members `font_name', `font_info_id'.
14244 (per_char_metric, encode_char): Delete externs.
14245 (calc_pixel_width_or_height): Adjust the prototype.
14246
14247 * emacs.c (enable_font_backend): Delete extern.
14248 (main): Don't set enable_font_backend. Don't check the command
14249 line argument "-disable-font-backend".
14250
14251 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14252 (enum font_property_index): New members FONT_DPI_INDEX,
14253 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14254 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14255 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14256 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14257 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14258 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14259 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14260 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14261 (struct font_spec, struct font_entity): New structs.
14262 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14263 (struct font): Many members from old "struct font_info" moved to
14264 here. Members font and entity deleted.
14265 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14266 the new font-related objects.
14267 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14268 (CHECK_FONT_GET_OBJECT): Likewise.
14269 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14270 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14271 (struct font_driver): New members case_sensitive anc check. Type
14272 of the member list and open changed.
14273 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14274 (font_symbolic_width, font_find_object, font_get_spec)
14275 (font_set_lface_from_name): Delete extern.
14276 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14277
14278 * font.c: Include <strings.h>.
14279 (enable_font_backend): Delete it.
14280 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14281 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14282 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14283 (null_string): Delete it.
14284 (null_vector): Make it static.
14285 (font_family_alist): Delete it.
14286 (Qnormal): Extern it.
14287 (QCextra, QClanguage): Delete it.
14288 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14289 (font_make_spec, font_make_entity, font_make_object)
14290 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14291 the string. Callers changed.
14292 (font_pixel_size): Adjusted for the format change of font-related
14293 objects.
14294 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14295 (font_style_to_value, font_style_symbolic): New function.
14296 (build_font_family_alist): Delete it.
14297 (font_registry_charsets): Use Fassoc_string instead of
14298 assq_no_quit.
14299 (font_prop_validate_symbol): Don't return null_string.
14300 (font_prop_validate_style): Adjusted for the change of
14301 style-related values in a font vector.
14302 (font_property_table): Delete entries for QClanguage and
14303 QCantialias, add entries for QCavgwidth.
14304 (get_font_prop_index): Delete the 2nd argument FROM.
14305 (font_prop_validate): Arguments changed.
14306 (font_put_extra): Adjusted for the change of font-related objects.
14307 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14308 (font_parse_fcname, font_unparse_fcname)
14309 (font_prepare_composition): Likewise.
14310 (font_parse_family_registry): Renamed from font_merge_old_spec.
14311 (otf_open): Delete the 1st arg entity.
14312 (font_otf_capability): Adjusted for the above change.
14313 (font_score): New arg alternate_families. Adjusted for the change
14314 of font-related objects.
14315 (font_sort_entites): New arg best_only.
14316 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14317 Delete them.
14318 (font_match_p): Check alternate families.
14319 (font_find_object): Delete it.
14320 (font_check_object): New function.
14321 (font_clear_cache): Adjusted for the change of font-related objects.
14322 (font_delete_unmatched): New arg.
14323 (font_list_entities): Call font_driver->list with a spec that
14324 doesn't specify style-related properties.
14325 (font_matching_entity): Arguments changed. Caller changed.
14326 (font_open_entity): Adjusted for the change of font-related objects.
14327 (font_close_object, font_has_char, font_encode_char)
14328 (font_get_name, font_get_spec): Likewise.
14329 (font_spec_from_name, font_clear_prop, font_update_lface):
14330 New functions.
14331 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14332 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14333 (font_at): Adjusted for the change of font-related objects.
14334 (font_range): New function.
14335 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14336 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14337 (Fcopy_font_spec, Fmerge_font_spec): New function.
14338 (Ffont_family_list): Renamed from list-families.
14339 (Finternal_set_font_style_table): Arguments changed.
14340 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14341 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14342 change of font-related objects.
14343 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14344
14345 * fontset.h (struct font_info): Delete it. Most members go to
14346 struct font.
14347 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14348 (enum FONT_SPEC_INDEX): Delete it.
14349 (font_info, list_fonts_func, load_font_func, query_font_func)
14350 (set_frame_fontset_func, find_ccl_program_func)
14351 (get_font_repertory_func, new_fontset_from_font_name): Delete
14352 externs.
14353 (fontset_from_font_name): Extern it.
14354 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14355 (FONT_INFO_FROM_FACE): Deleted.
14356 (face_for_font): Adjust prototype.
14357
14358 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14359 conditionals. Don't check enable_font_backend. Delete all codes
14360 used only when USE_FONT_BACKEND is not defined.
14361 (get_font_info_func, list_font_func, load_font_func)
14362 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14363 (get_font_repertory_func): Delete them.
14364 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14365 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14366 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14367 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14368 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14369 (fontset_compare_rfontdef): New function.
14370 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14371 rfont-defs by qsort. Adjusted for the change of font-group vector.
14372 (load_font_get_repertory): Deleted.
14373 (fontset_find_font): Use new macros to ref/set elements of
14374 font-def and rfont-def.
14375 (fontset_font): Fix the timing of remembering that no font for C.
14376 (free_face_fontset): Do nothing if the face has no fontset.
14377 (face_suitable_for_char_p): Use new macros to ref/set elements of
14378 rfont-def.
14379 (face_for_char): Likewise. Call face_for_char with font_object.
14380 (fs_load_font): Delete. Delete #pragma surrounding it.
14381 (fs_query_fontset): Use strcasecmp instead of strcmp.
14382 (generate_ascii_font_name): Adjusted for the format change of
14383 font-spec.
14384 (Fset_fontset_font): Likewise. Use new macros to set elements of
14385 font-def.
14386 (Fnew_fontset): Use font_unparse_xlfd to generate
14387 FONTSET_ASCII (fontset).
14388 (new_fontset_from_font_name): Deleted.
14389 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14390 a fontset is already created for the font. FIx updating of
14391 Vfontset_alias_alist.
14392 (fontset_ascii_font): Deleted.
14393 (Ffont_info): Adjusted for the format change of font-spec.
14394 (Finternal_char_font): Likewise.
14395 (Ffontset_info): Likewise.
14396 (syms_of_fontset): Don't check load_font_func.
14397
14398 * fns.c (internal_equal): Handle PREV_FONT.
14399
14400 * frame.h: Delete USE_FONT_BACKEND conditional.
14401
14402 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14403 conditionals. Don't check enable_font_backend. Delete all codes
14404 used only when USE_FONT_BACKEND is not defined.
14405 (x_set_font): Call x_new_font, not x_new_fontset2.
14406 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14407 already set for the frame.
14408
14409 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14410 a font-entity by font_make_entity. Use font_intern_prop instead
14411 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14412 font property. If a font is scalable, set avgwidth property to 0.
14413 Set font-entity property by font_put_extra.
14414 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14415 (ffont_driver): Adjusted for the change of struct font_driver.
14416 (ftfont_spec_pattern): New function.
14417 (ftfont_list): Return a list, not vector.
14418 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14419 (ftfont_list_family): Don't downcase names.
14420 (ftfont_free_entity): Deleted.
14421 (ftfont_open): Return a font-object. Adjusted for the change of
14422 struct font. Get underline_thickness and underline_position from
14423 font property. Don't update dpyinfo->smallest_font_height and
14424 dpyinfo->smallest_char_width.
14425 (ftfont_close): Don't free `struct font'.
14426 (ftfont_has_char): Adjusted for the format change of font-entity.
14427 (ftfont_encode_char, ftfont_text_extents): Likewise.
14428
14429 * ftxfont.c (ftxfont_list): Return a list, not vector.
14430 (ftxfont_open): Return a font-object. Adjusted for the change of
14431 struct font. Get underline_thickness and underline_position from
14432 font property. Don't update dpyinfo->smallest_font_height and
14433 dpyinfo->smallest_char_width.
14434 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14435 (ftxfont_draw): Adjusted for the change of struct font.
14436
14437 * image.c (image_ascent): Don't include "charset.h". Include
14438 "character.h" and "font.h".
14439
14440 * lisp.h (enum pvec_type): New member PREV_FONT.
14441 (Fassoc_string): EXFUN it.
14442
14443 * print.c: Include font.h.
14444 (print_object): Handle font-related objects.
14445
14446 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14447 conditionals. Don't check enable_font_backend. Delete all codes
14448 used only when USE_FONT_BACKEND is not defined.
14449 (handle_auto_composed_prop): Do nothing if it->f is not on a
14450 window system. Check how many following characters can be
14451 displayed by the same font.
14452 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14453 'struct font *'.
14454 (get_char_face_and_encoding): Assign the whole encoding task to
14455 the `encode-char' method of a font driver.
14456 (fill_composite_glyph_string): Adjusted for the change of `struct
14457 face' and `struct glyph_string'.
14458 (fill_glyph_string): Likewise.
14459 (get_per_char_metric): Arguments changed.
14460 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14461 and `struct glyph_string'.
14462 (produce_stretch_glyph, calc_line_height_property)
14463 (x_produce_glyphs): Likewise.
14464
14465 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14466 conditionals. Don't check enable_font_backend. Delete all codes
14467 used only when USE_FONT_BACKEND is not defined. Use
14468 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14469 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14470 (Qp): Extern them.
14471 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14472 Deleted.
14473 (struct font_name): Deleted.
14474 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14475 (compare_fonts_by_sort_order): New function.
14476 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14477 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14478 Deleted.
14479 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14480 compare_fonts_by_sort_order.
14481 (Fx_font_family_list): Call Ffont_family_list.
14482 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14483 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14484 (face_symbolic_slant, face_symbolic_swidth)
14485 (split_font_name_into_vector, build_font_name_from_vector)
14486 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14487 (font_rescale_ratio, split_font_name, build_font_name)
14488 (free_font_names, sort_fonts, x_face_list_fonts)
14489 (face_font_available_p, sorted_font_list, cmp_font_names)
14490 (font_list_1, concat_font_list, font_list, remove_duplicates):
14491 Deleted.
14492 (Fx_list_fonts): Use Ffont_list.
14493 (LFACE_AVGWIDTH): Deleted.
14494 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14495 by FONTP.
14496 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14497 (set_lface_from_font_name): Delete it.
14498 (set_lface_from_font): Renamed from
14499 set_lface_from_font_and_fontset. Caller changed. Don't set
14500 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14501 for face.
14502 (merge_face_vectors): Copy font-spec if necessary.
14503 Clear properties of the font-spec if necessary.
14504 (merge_face_ref): Clear properties of the font-spec if necessary.
14505 (Finternal_set_lisp_face_attribute): Likewise.
14506 (set_font_frame_param): Use font_load_for_lface to load a
14507 font-object, and call Fmodify_frame_parameters with it.
14508 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14509 font name by Ffont_xlfd_name.
14510 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14511 QCslant, and QCwidth.
14512 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14513 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14514 Compare fonts by EQ.
14515 (lookup_non_ascii_face): Deleted.
14516 (face_for_font): The 2nd argument changed.
14517 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14518 Check atomic font properties by case insensitive.
14519 (realize_non_ascii_face): Set face->overstrike correctly.
14520 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14521 (dump_realized_face): Get font name from
14522 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14523
14524 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14525 conditionals. Don't check enable_font_backend. Delete all codes
14526 used only when USE_FONT_BACKEND is not defined.
14527 (xic_create_xfontset): Original code deleted and renamed from
14528 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14529 (x_make_gc): Don't set GCFont in GCs.
14530 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14531 opened by "fixed".
14532 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14533 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14534 get_font_repertory_func.
14535
14536 * xfont.c: Include <stdlib.h> and "ccl.h".
14537 (struct xfont_info): New structure.
14538 (xfont_query_font): Deleted.
14539 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14540 moved from xterm.c.
14541 (xfont_driver): Adjusted for the change of struct font_driver.
14542 (compare_font_names): New function.
14543 (xfont_list_pattern): Sort font names case insensitively. Make
14544 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14545 (xfont_list): Return a list, not vector.
14546 (xfont_match): If the font doesn't have QCname property, generate
14547 a name from the other font properties.
14548 (xfont_open): Return a font-object. Adjusted for the change of
14549 struct font. Get underline_thickness and underline_position from
14550 font property. Don't update dpyinfo->smallest_font_height and
14551 dpyinfo->smallest_char_width.
14552 (xfont_close): Don't free struct font.
14553 (xfont_prepare_face): Adjusted for the change of struct font.
14554 (xfont_done_face): Deleted.
14555 (xfont_has_char): Adjusted for the change of struct font.
14556 (xfont_encode_char, xfont_draw): Likewise.
14557 (xfont_check): New function.
14558
14559 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14560 callback function.
14561 (xftfont_match): Adjusted for the format change of font-entity.
14562 (xftfont_open): Adjusted for the format change of font-entity and
14563 font-object. Adjusted for the change of struct font. Return a
14564 font-object. Don't update dpyinfo->smallest_font_height and
14565 dpyinfo->smallest_char_width.
14566 (xftfont_close): Block input while calling XftFontClose.
14567 (xftfont_prepare_face): Don't block input while calling
14568 xftfont_get_colors. Adjusted for the change of struct font.
14569 (xftfont_shape): Return value of error case fixed.
14570
14571 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14572
14573 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14574 conditionals.
14575 (FONT_WIDTH): Return (f)->max_width.
14576 (struct x_display_info): Delete member `font'.
14577 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14578 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14579 (struct x_output): Change type of `font' to `struct font *'.
14580
14581 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14582 conditionals. Don't check enable_font_backend. Delete all codes
14583 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14584 (x_per_char_metric, x_encode_char): Deleted.
14585 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14586 (x_compute_glyph_string_overhangs): Adjusted for the change of
14587 `struct face'.
14588 (x_draw_glyph_string_foreground)
14589 (x_draw_composite_glyph_string_foreground): Likewise.
14590 (x_draw_glyph_string): Likewise. Use font->underline_position and
14591 font->underline_thickness.
14592 (x_new_font): Renamed from x_new_fontset2.
14593 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14594 (x_check_font): Call `check' method of a font driver.
14595 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14596 (x_query_font, x_get_font_repertory): Deleted.
14597 (x_find_ccl_program): Renamed and moved to xfont.c.
14598 (x_redisplay_interface): Adjusted for the change of `struct
14599 redisplay_interface'.
14600
14601 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14602 conditionals. Don't check enable_font_backend. Delete all codes
14603 used only when USE_FONT_BACKEND is not defined. Surround non-used
14604 code by "#ifdef OLD_FONT" and "endif".
14605 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14606
14607 * w32font.h (struct w32font_info): New member.
14608 (FONT_COMPAT): New macro.
14609 (w32font_open_internal): Prototype adjusted.
14610
14611 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14612 OLD_FONT" and "endif".
14613
14614 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14615 conditionals. Don't check enable_font_backend. Delete all codes
14616 used only when USE_FONT_BACKEND is not defined.
14617 (w32font_open): Return a font-object. Make a font-object by
14618 font_make_object. Adjusted for the change of struct w32font_info.
14619 (w32font_close): Don't free struct font. Adjusted for the change
14620 of struct w32font_info.
14621 (w32font_encode_char, w32font_text_extents, w32font_draw):
14622 Adjusted for the change of struct w32font_info.
14623 (w32font_draw): Likewise.
14624 (w32font_list_internal): Return a list, not vector.
14625 (w32font_open_internal): Change the 4th arg to font-object.
14626 Adjusted for the change of struct w32font_info and font-object format.
14627 (add_font_name_to_list): Don't downcase names.
14628 (w32_enumfont_pattern_entity): Make a font-entity by
14629 font_make_entity. Adjusted for the format change of font-entity.
14630 Use FONT_SET_STYLE to set a style-related font property. If a
14631 font is scalable, set avgwidth property to 0. Set font-entity
14632 property by font_put_extra.
14633 (font_matches_spec): Adjusted for the format change of font-entity.
14634 (w32_weight_table, w32_decode_weight): New variables.
14635 (w32_encode_weight): New function.
14636 (fill_in_logfont): Adjusted for the format change of font-spec.
14637 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14638 weight value.
14639 (w32font_driver): Adjusted for the change of struct font_driver.
14640
14641 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14642 conditionals. Don't check enable_font_backend. Surround non-used
14643 code by "#ifdef OLD_FONT" and "endif".
14644 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14645 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14646
14647 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14648 conditionals. Don't check enable_font_backend. Delete all codes
14649 used only when USE_FONT_BACKEND is not defined. Surround non-used
14650 code by "#ifdef OLD_FONT" and "endif".
14651
14652 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14653 (uniscribe_open): Return value changed to font-object.
14654 Adjusted for the format change of font-object.
14655 (uniscribe_otf_capability): Adjusted for the change of struct font.
14656 (add_opentype_font_name_to_list): Don't downcase names.
14657 (uniscribe_font_driver): Adjusted for the change of struct
14658 font_driver.
14659
14660 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
14661
14662 * dispnew.c (update_frame_1): Check if tty output is still valid
14663 before flushing it.
14664
14665 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14666
14667 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14668 to Gtk+ menus.
14669
14670 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14671
14672 * dired.c (file_name_completion): Tweak the code so as to always do it
14673 in a single pass. Tighten the scope of some variables.
14674
14675 * dired.c (Qdefault_directory): New var.
14676 (file_name_completion): Use it instead of Fexpand_file_name.
14677 (syms_of_dired): Initialize it.
14678
14679 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * fileio.c (double_dollars): Remove dead code.
14682
14683 2008-05-10 Eli Zaretskii <eliz@gnu.org>
14684
14685 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14686 Mention w32-get-true-file-attributes in doc string.
14687
14688 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14689
14690 2008-05-09 Glenn Morris <rgm@gnu.org>
14691
14692 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14693 2008-04-23.
14694
14695 2008-05-09 Eli Zaretskii <eliz@gnu.org>
14696
14697 Support for reporting owner and group of each file on MS-Windows:
14698 * dired.c (stat_uname, stat_gname): New functions, with special
14699 implementation for w32.
14700 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14701
14702 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14703 (dflt_group_name): New static variable.
14704 (dflt_group): Rename from the_group.
14705 (init_user_info): Init dflt_group fields. Get user's group name
14706 from LookupAccountSid.
14707 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14708 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14709 New initialization states.
14710 (globals_of_w32): Initialize them to zero. Initialize the default
14711 group name to "None".
14712 (GetFileSecurity_Name): New global var, the name of the function
14713 to call for GetFileSecurity.
14714 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14715 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14716 (get_file_security, get_security_descriptor_owner)
14717 (get_security_descriptor_group, is_valid_sid)
14718 (get_file_security_desc, get_rid, get_name_and_id)
14719 (get_file_owner_and_group): New functions.
14720 (stat): Use get_file_security_desc and get_file_owner_and_group to
14721 report the owner and primary group of each file. Don't ignore the
14722 high 32 bits of file's size, now that st_size is 64-bit wide.
14723 Fix test when to get true file attributes.
14724 (init_user_info): Use get_rid instead of equivalent inline code.
14725 (fstat): Don't ignore the high 32 bits of file's size.
14726
14727 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
14728
14729 * image.c (png_load): Use correct bit-depth for setting background
14730 color.
14731
14732 2008-05-08 Eli Zaretskii <eliz@gnu.org>
14733
14734 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14735 epa-hook.elc.
14736
14737 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
14738
14739 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14740
14741 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14742
14743 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14744 because the original parameters are in pure storage now.
14745 (mac_window): Remove unused params. Update callers.
14746
14747 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14748
14749 * lread.c (substitute_object_recurse): Use lower-level primitives.
14750 Don't signal errors when traversing sub-char-tables.
14751 Don't loop over all the possible characters when traversing char-tables.
14752
14753 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14754 just like we do in print.c.
14755
14756 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14757
14758 * minibuf.c (Ftry_completion): Remove code left over from when we used
14759 scmp instead of Fcompare_strings.
14760
14761 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
14762
14763 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14764
14765 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14766
14767 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14768 Create bitmap context in native byte order.
14769
14770 * macterm.c (XDrawLine)
14771 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14772 context in native byte order.
14773
14774 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14775
14776 * config.in: Regenerate.
14777
14778 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14779 New definitions for Image I/O support.
14780 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14781 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14782 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14783 (mac_data_provider_release_data, image_load_image_io)
14784 [USE_MAC_IMAGE_IO]: New functions.
14785 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14786 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14787 (init_image_func_pointer) [MAC_OSX]: Remove function.
14788 (image_load_quartz2d) [MAC_OSX]: Check availability of
14789 CGImageCreateWithPNGDataProvider at compile time.
14790 Use lowercase `false' for boolean constant.
14791 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14792 Use image_load_image_io.
14793 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14794 Don't check MyCGImageCreateWithPNGDataProvider.
14795 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14796 Don't call init_image_func_pointer.
14797
14798 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14799
14800 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14801 Make variable non-static.
14802 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14803 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14804
14805 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14806 (RED_FROM_ULONG): Mask off higher bits.
14807 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14808
14809 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14810 Include AvailabilityMacros.h.
14811 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14812 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14813
14814 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14815
14816 * chartab.c (Fset_char_table_range): If range is t, really set all
14817 chars to that value.
14818
14819 2008-05-03 Eli Zaretskii <eliz@gnu.org>
14820
14821 * dired.c (Ffile_attributes): Don't allow the device number become
14822 negative.
14823
14824 2008-05-02 Daiki Ueno <ueno@unixuser.org>
14825
14826 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14827
14828 2008-05-02 Juri Linkov <juri@jurta.org>
14829
14830 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14831 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14832 DEFAULT argument as a list of default values in docstrings.
14833
14834 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
14835
14836 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14837
14838 2008-05-01 Martin Rudalics <rudalics@gmx.at>
14839
14840 * dispnew.c (change_frame_size_1): Preserve small windows when
14841 shrinking frames by calling set_window_height|width with third
14842 arg 2.
14843
14844 * window.h (struct window): Replace field too_small_ok by field
14845 resize_proportionally.
14846
14847 * window.c (make_window): Initialize resize_proportionally.
14848 (enlarge_window): Temporarily set resize_proportionally to make
14849 sure that shrink_windows does scale the window proportionally.
14850 (shrink_windows): When window has resize_proportionally set try
14851 to shrink it proportionally by stealing from other windows.
14852 (struct saved_window, Fset_window_configuration)
14853 (compare_window_configurations): Handle resize_proportionally.
14854 (WINDOW_TOTAL_SIZE): New macro.
14855 (window_min_size, shrink_windows, size_window): Use it.
14856 (check_min_window_sizes): Remove. Invalid values of
14857 window-min-height|width are handled by window_min_size_2 now.
14858 (size_window, Fsplit_window, enlarge_window)
14859 (adjust_window_trailing_edge, grow_mini_window): Don't call
14860 check_min_window_sizes.
14861 (window_min_size_2, window_min_size_1, window_min_size):
14862 New argument safe_p for retrieving "safe" minimum sizes.
14863 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14864 (adjust_window_trailing_edge, grow_mini_window):
14865 Adjust arguments of window_min_size... functions.
14866 (shrink_windows): Argument min_size removed. New argument
14867 safe_p allows shrinking windows to their safe minimum sizes.
14868 Calculate minimum size and decide whether a window shall be
14869 deleted for each window individually.
14870 (size_window): When nodelete_p equals 2, tell shrink_windows to
14871 delete windows only if their new minimum size is no more safe.
14872 (shrink_window_lowest_first): Call window_min_size_1 to make
14873 sure to preserve modeline of bottom-most window when resizing
14874 the minibuffer.
14875 (Fset_window_configuration, Fcurrent_window_configuration)
14876 (compare_window_configurations): Do not handle
14877 window-min-height|width any more.
14878 (syms_of_window): Clarify window-min-height|width doc-strings.
14879
14880 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14881
14882 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14883 some more. Copy some of the code from Ftry_completions.
14884 Remove special case code that dates back to initial revision when the
14885 slash was only added when necessary and that can't trigger nowadays.
14886
14887 2008-04-27 Kenichi Handa <handa@m17n.org>
14888
14889 * font.c (font_prop_validate): Signal `error' instead of `font'.
14890
14891 2008-04-29 Jason Rumney <jasonr@gnu.org>
14892
14893 * w32fns.c (Fw32_battery_status): New defun.
14894 (syms_of_w32fns): Defsubr it.
14895
14896 2008-04-28 Andreas Schwab <schwab@suse.de>
14897
14898 * dired.c (file_name_completion): Fix another mixing of encoded
14899 and decoded names.
14900
14901 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
14902
14903 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14904
14905 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
14906
14907 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14908
14909 2008-04-27 Andreas Schwab <schwab@suse.de>
14910
14911 * dired.c (file_name_completion): Fix inappropriate mixing of
14912 encoded and decoded names.
14913
14914 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14915
14916 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14917
14918 2008-04-26 Eli Zaretskii <eliz@gnu.org>
14919
14920 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14921 2008-03-31, it's not needed anymore with `struct stat' definition
14922 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14923 for the same reasons.
14924
14925 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14926
14927 * m/sparc.h: Additional redefinitions for GNU/Linux.
14928
14929 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14930
14931 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14932 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14933 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14934 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14935 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14936 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14937 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14938 Likewise.
14939
14940 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14941 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14942 (mac_ax_number_of_characters): Add externs.
14943 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14944 [USE_MAC_TSM]: Likewise.
14945 (mac_handle_text_input_event) [MAC_OSX]:
14946 Handle kEventTextInputOffsetToPos for no active input area case.
14947 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14948 (mac_handle_document_access_event)
14949 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14950 (install_application_handler) [MAC_OSX]: Register handlers for
14951 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14952 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14953 Register mac_handle_document_access_event.
14954
14955 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14956 Make functions non-static.
14957
14958 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14959
14960 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14961 (read_file_name_completion_ignore_case, insert_default_directory)
14962 (Qdefault_directory): Move to minibuffer.el.
14963 (Fread_file_name): Call the new `read-file-name' instead.
14964
14965 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14966
14967 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14968 Make function non-static.
14969 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14970 Remove function.
14971 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14972 Move to mactoolbox.c.
14973 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14974
14975 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14976 (mac_rect_make): New macro.
14977
14978 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14979 instead of float.
14980 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14981 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14982 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14983 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14984 CGRectMake.
14985 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14986 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14987 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14988 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14989 instead of WindowRef in argument type.
14990 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14991 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14992 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14993 instead of DISPLAY. All uses changed.
14994 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14995 (x_calc_absolute_position): Simplify so as not to use
14996 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14997
14998 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14999 instead of WindowRef in argument type.
15000 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15001 [TARGET_API_MAC_CARBON]: Remove externs.
15002 (create_apple_event, mac_event_parameters_to_lisp)
15003 [TARGET_API_MAC_CARBON]: Add externs.
15004
15005 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15006 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15007 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15008 is clicked.
15009 (x_activate_menubar): Remove extern for saved_menu_event_location.
15010 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15011 Move from mac.c.
15012
15013 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15014
15015 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15016 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15017
15018 2008-04-23 Jason Rumney <jasonr@gnu.org>
15019
15020 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15021 attributes only for local files.
15022
15023 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15024 default to Qlocal.
15025
15026 2008-04-22 Juri Linkov <juri@jurta.org>
15027
15028 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15029 read-buffer-to-switch instead of using the letter "B".
15030
15031 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15032
15033 * fileio.c (Qdefault_directory): New variable.
15034 (Fread_file_name): Use it to pass `dir' to the completion functions.
15035
15036 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15037
15038 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15039
15040 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15041
15042 * keyboard.c (Vpre_help_message): Remove.
15043 (show_help_echo): Remove default C code.
15044
15045 * dired.c (directory_files_internal, file_name_completion):
15046 Only call ENCODE_FILE if the string is indeed decoded.
15047
15048 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15049
15050 * Makefile.in (TOOLKIT_DEFINES): Remove.
15051 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15052
15053 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15054
15055 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15056 (mactoolbox.o): New target.
15057
15058 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15059 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15060
15061 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15062 Use mac_set_frame_window_background instead of XSetWindowBackground.
15063 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15064 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15065 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15066 instead of SetWindowTitleWithCFString.
15067 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15068 Move function to mactoolbox.c.
15069 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15070 Use mac_set_window_modified instead of SetWindowModified.
15071 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15072 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15073 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15074 FrontNonFloatingWindow. Use mac_activate_window instead of
15075 ActivateWindow. Use mac_active_non_floating_window instead of
15076 ActiveNonFloatingWindow.
15077 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15078 Use mac_show_hourglass and mac_hide_hourglass.
15079 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15080 instead of GetGlobalMouse.
15081 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15082 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15083 Use mac_bring_window_to_front instead of BringToFront.
15084 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15085 mactoolbox.c.
15086 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15087 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15088 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15089 mactoolbox.c.
15090
15091 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15092 (XtPointer): Move typedef from macmenu.c.
15093 (enum button_type): Move enum from macmenu.c.
15094 (widget_value): Move typedef from macmenu.c.
15095 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15096 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15097 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15098 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15099 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15100 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15101 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15102 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15103 (Selection): Move typedef from macselect.c.
15104 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15105 macterm.c.
15106 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15107 (mac_is_window_collapsed, mac_bring_window_to_front)
15108 (mac_send_window_behind, mac_hide_window, mac_show_window)
15109 (mac_collapse_window, mac_front_non_floating_window)
15110 (mac_active_non_floating_window, mac_activate_window)
15111 (mac_move_window_structure, mac_move_window, mac_size_window)
15112 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15113
15114 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15115 (enum mac_menu_kind): Move enum to mactoolbox.c.
15116 (min_menu_id): Move variable to mactoolbox.c.
15117 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15118 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15119 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15120 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15121 [TARGET_API_MAC_CARBON]: Likewise.
15122 (XtPointer): Move typedef to macgui.h.
15123 (enum button_type): Move enum to macgui.h.
15124 (widget_value): Move typedef to macgui.h.
15125 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15126 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15127 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15128 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15129 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15130 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15131 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15132 (popup_activated_flag): Make variable non-static.
15133 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15134 (add_menu_item, fill_menu, dispose_menus):
15135 Move functions to mactoolbox.c.
15136 (restore_show_help_function, menu_target_item_handler)
15137 (install_menu_target_item_handler, mac_handle_dialog_event)
15138 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15139 [TARGET_API_MAC_CARBON]: Likewise.
15140 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15141 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15142 (find_and_call_menu_selection, name_is_separator): Make function
15143 non-static.
15144 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15145 to mactoolbox.c.
15146 (set_frame_menubar): Don't call install_menu_quit_handler.
15147 (menu_item_selection): New variable.
15148 (mac_menu_show): Use create_and_show_popup_menu.
15149 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15150 selection but set variable menu_item_selection. All uses changed.
15151 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15152 Call install_menu_quit_handler. Move to mactoolbox.c.
15153
15154 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15155 (Selection): Move typedef to macgui.h.
15156 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15157 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15158 Make variables non-static.
15159 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15160 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15161 Make functions non-static.
15162 (Vmac_service_selection) [MAC_OSX]: Likewise.
15163 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15164 (mac_valid_selection_target_p, mac_clear_selection)
15165 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15166 (mac_put_selection_value, mac_selection_has_target_p)
15167 (mac_get_selection_value, mac_get_selection_target_list)
15168 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15169 Move functions to mactoolbox.c.
15170 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15171 Likewise.
15172 (copy_scrap_flavor_data, mac_handle_service_event)
15173 (install_service_handler) [MAC_OSX]: Likewise.
15174 (syms_of_macselect) <Vmac_dnd_known_types>:
15175 Use mac_dnd_default_known_types.
15176
15177 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15178 Move to mactoolbox.c.
15179 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15180 (Fx_selection_owner_p): Add EXFUN.
15181 (install_window_handler, remove_window_handler, XSetWindowBackground):
15182 Remove externs.
15183 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15184 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15185 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15186 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15187 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15188 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15189 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15190 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15191 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15192 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15193 (mac_valid_selection_target_p, mac_clear_selection)
15194 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15195 (mac_put_selection_value, mac_selection_has_target_p)
15196 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15197 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15198 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15199 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15200 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15201 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15202 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15203 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15204 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15205
15206 * mactoolbox.c: New file.
15207
15208 2008-04-18 Jason Rumney <jasonr@gnu.org>
15209
15210 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15211
15212 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15213
15214 * character.c (Fmultibyte_char_to_unibyte):
15215 Return latin1 chars unchanged.
15216
15217 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15218 relocated if it points to `name'.
15219
15220 2008-04-17 Kenichi Handa <handa@m17n.org>
15221
15222 * data.c (Faset): Allow setting a multibyte character in an
15223 ASCII-only unibyte string.
15224
15225 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15226
15227 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15228
15229 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15230 done in config.h.
15231
15232 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
15233
15234 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15235 (Fchar_direction): Add usage in the docstring.
15236
15237 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
15238
15239 * keyboard.c (read_key_sequence): Remove always-true checks.
15240
15241 2008-04-14 Jason Rumney <jasonr@gnu.org>
15242
15243 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15244 compatibility struct, for better underline positioning.
15245
15246 2008-04-13 David Hansen <david.hansen@gmx.net>
15247
15248 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15249 string.
15250
15251 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15252
15253 * m/hp800.h (XUINT, XSET): Remove.
15254
15255 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
15256
15257 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15258 previous change.
15259
15260 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15261
15262 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15263 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15264
15265 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15266
15267 * keymap.h (map_keymap_canonical): Declare.
15268 * xmenu.c (single_keymap_panes): Use it.
15269
15270 2008-04-11 Glenn Morris <rgm@gnu.org>
15271
15272 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15273 set the target's value to that of the alias.
15274
15275 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15276
15277 * term.c (set_tty_color_mode): Left over typo.
15278
15279 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
15280
15281 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15282 only after check for file name handler functions. Signal, when
15283 native functionality is not supported.
15284 (syms_of_fileio): Declare it unconditionally.
15285
15286 2008-04-10 Jason Rumney <jasonr@gnu.org>
15287
15288 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15289 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15290
15291 * w32.c (logon_network_drive): Also logon to remote drives that
15292 are mapped to drive letters.
15293
15294 2008-04-10 Glenn Morris <rgm@gnu.org>
15295
15296 * xdisp.c (truncate-partial-width-windows): Doc fix.
15297
15298 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15299
15300 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15301 Move functions to minibuffer.el.
15302 (syms_of_fileio): Don't declare them.
15303
15304 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15305
15306 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15307 (syms_of_minibuf): Remove its initialization.
15308
15309 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15310
15311 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
15312
15313 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15314
15315 2008-04-09 Jason Rumney <jasonr@gnu.org>
15316
15317 * makefile.w32-in (distclean): Delete makefile too.
15318 (maintainer-clean): New target.
15319
15320 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15321
15322 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15323 for new font backend and composite cases.
15324
15325 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15326
15327 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15328 Most of the code moved to run_timers.
15329 (do_pending_atimers): Call run_timers.
15330 (run_timers): New function.
15331
15332 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15333 run atimers.
15334
15335 * process.c (wait_reading_process_output): The same as above.
15336
15337 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15338
15339 * minibuf.c (last_exact_completion): Remove variable.
15340 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15341 (complete_and_exit_1, complete_and_exit_2)
15342 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15343 (Fdisplay_completion_list, display_completion_list_1)
15344 (Fminibuffer_completion_help, Fself_insert_and_exit)
15345 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15346 minibuffer.el.
15347 (syms_of_minibuf): Remove corresponding initializations.
15348
15349 * keyboard.c (Qdeactivate_mark): New var.
15350 (command_loop_1): Use it to call `deactivate-mark'.
15351 (syms_of_keyboard): Initialize it.
15352
15353 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15354 to another frame.
15355 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15356 Don't call set_tty_color_mode.
15357 (store_frame_param): Reset previous_frame rather than call
15358 set_tty_color_mode.
15359 * term.c (set_tty_color_mode): Rewrite.
15360 * dispextern.h (set_tty_color_mode): New type.
15361 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15362
15363 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15364
15365 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15366 for generic chars, which do not exist any more in emacs-unicode.
15367
15368 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
15369
15370 * coding.c (detect_coding_emacs_mule)
15371 (Ffind_operation_coding_system): Fix typo.
15372
15373 2008-04-08 Jason Rumney <jasonr@gnu.org>
15374
15375 * w32uniscribe.c (SNAME): Extract only symbol name.
15376
15377 * w32font.h (struct w32_metric_cache): New struct.
15378 (w32font_info): Use it.
15379 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15380 (CACHE_BLOCKSIZE): New constants.
15381
15382 * w32font.c (Qja, Qko, Qzh): New symbols.
15383 (syms_of_w32font): Initialise them.
15384 (font_matches_spec): Use them to filter by language.
15385 (recompute_cached_metrics): Remove function.
15386 (compute_metrics, clear_cached_metrics): New functions.
15387 (w32font_encode_char): Use them to manage metric cache.
15388 (w32font_text_extents): Cache metrics for all glyphs on demand.
15389 Delay converting glyph indices to WORD until needed.
15390 (w32font_open_internal): Initialize metric cache to empty.
15391 (registry_to_w32_charset): Charset should always be a symbol.
15392 (fill_in_logfont, list_all_matching_fonts): Family should
15393 always be a symbol.
15394
15395 2008-04-06 Jason Rumney <jasonr@gnu.org>
15396
15397 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15398 Give up if glyph indices not supported. Use uniscribe obtained
15399 ABC widths for individual metrics. Map glyph clusters back to
15400 characters using fClusterStart flag. Return number of glyphs
15401 produced, not chars processed.
15402 (uniscribe_shape): Map char at FROM to current glyph.
15403
15404 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15405
15406 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15407 Use SetMenuItemHierarchicalMenu.
15408
15409 2008-04-05 Jason Rumney <jasonr@gnu.org>
15410
15411 * image.c (pbm_load): Allow color values up to 65535.
15412 Throw an error if max_color_idx is outside the supported range.
15413 Report an error when image size is invalid.
15414 Read two bytes at a time when raw images have max_color_idx above 255.
15415
15416 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15417
15418 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15419 append "CCL: Quitted" when the CCL program is quitted.
15420 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15421
15422 * ccl.h (struct ccl_program): New member quit_silently.
15423
15424 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
15425
15426 * search.c (compile_pattern_1): Treat non-nil and non-string of
15427 search-spaces-regexp as nil.
15428
15429 * minibuf.c (Fassoc_string): Tweak docstring.
15430
15431 2008-04-05 Eli Zaretskii <eliz@gnu.org>
15432
15433 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15434 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15435 2008-03-14 to force inode be positive.
15436
15437 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15438 _S_* ones, since we now use our own sys/stat.h.
15439 (stat, fstat): Don't mangle the inode number.
15440 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15441
15442 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15443
15444 * frame.h (struct frame): Give one more bit to `visible' since we use
15445 values larger than 1 to indicate obscured frames on ttys.
15446
15447 * keymap.c (Qkeymap_canonicalize): New var.
15448 (Fmap_keymap_internal): New fun.
15449 (describe_map): Use keymap-canonicalize.
15450
15451 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15452 (Fundo_boundary): Set them.
15453 (syms_of_undo): Initialize them.
15454 (record_point): Use them instead of last_point_position*.
15455 (last_undo_buffer): Change type.
15456
15457 2008-04-04 Jason Rumney <jasonr@gnu.org>
15458
15459 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15460 (recompute_cached_metrics): Don't set ascent and descent per char.
15461
15462 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15463 (uniscribe_check_otf): Add GC protection before consing.
15464 Rearrange loop for counting features.
15465
15466 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15467
15468 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15469 buffer with byte-size of source buffer.
15470
15471 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
15472
15473 * callint.c (Fcall_interactively): Handle temporary region even
15474 when shift-select-mode is off.
15475
15476 2008-04-03 Jason Rumney <jasonr@gnu.org>
15477
15478 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15479
15480 2008-04-03 Kenichi Handa <handa@m17n.org>
15481
15482 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15483 (CATEGORY_MASK_UTF_16): Likewise.
15484 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15485 binary file.
15486 (detect_coding): Add null-byte detection for a binary file.
15487 (detect_coding_system): Likewise.
15488
15489 2008-04-03 Jason Rumney <jasonr@gnu.org>
15490
15491 * w32uniscribe.c: New file.
15492
15493 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15494
15495 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15496
15497 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15498 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15499 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15500 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15501 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15502 (Qphonetic): New symbols.
15503 (syms_of_w32font): Initialize them.
15504 (font_supported_scripts): Use them.
15505 (w32font_list_family): List all charsets.
15506 (w32font_text_extents, recompute_cached_metrics): Fix metric
15507 calculations.
15508 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15509 Give opentype fonts their own format.
15510 (font_matches_spec): New arguments backend and logfont.
15511 Handle :otf spec for uniscribe backend.
15512 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15513 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15514
15515 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15516 font backend.
15517 (globals_of_w32fns): Initialize uniscribe font backend.
15518
15519 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15520 dependencies.
15521 (w32uniscribe.$(O)): New file to build.
15522 (FONT_OBJ): Include w32uniscribe.$(O).
15523 (LIBS): Add uniscribe libraries.
15524
15525 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15526
15527 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
15528
15529 * callint.c (Vshift_select_mode): New var.
15530 (Finteractive): Document new ^ spec.
15531 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15532 is present.
15533
15534 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15535 (command_loop_1): Avoid running the direct display versions of
15536 forward-char and backward-char if shift-selection may occur.
15537 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15538 shift-translation takes place.
15539
15540 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15541 avoid clobbering by define-minor-mode.
15542
15543 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15544 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15545
15546 * syntax.c (Fforward_word): Add ^ interactive spec.
15547
15548 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15549 (Fscroll_right): Add ^ interactive spec.
15550
15551 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15552
15553 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15554
15555 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15556
15557 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15558
15559 2008-03-31 Juri Linkov <juri@jurta.org>
15560
15561 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15562
15563 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15564
15565 * gtkutil.c (xg_set_geometry): Fix indentation.
15566 (xg_resize_outer_widget): Remove.
15567 (x_wm_size_hint_off): Fix indentation.
15568 (xg_frame_set_char_size): Call flush_and_sync after
15569 gtk_window_resize.
15570 (x_wm_set_size_hint): Pass NULL as geometry window to
15571 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15572 Add menu bar and tool bar height to base height.
15573 (xg_update_frame_menubar, free_frame_menubar)
15574 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15575 (update_frame_tool_bar, free_frame_tool_bar):
15576 Change xg_resize_outer_widget to xg_frame_set_char_size.
15577
15578 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
15579
15580 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15581 (Fdbus_call_method): New parameter TIMEOUT.
15582 (dbus-send-signal): Optimize UNGCPRO call.
15583
15584 2008-03-29 Juri Linkov <juri@jurta.org>
15585
15586 * window.c (Fdisplay_buffer): Move call to
15587 Vsplit_window_preferred_function out of conditions that check
15588 if window is eligible for vertical splitting.
15589 When Vsplit_window_preferred_function is non-nil, call it and use
15590 its non-nil return value as window. Otherwise, continue doing
15591 vertical splitting using Fsplit_window with arg horflag=nil.
15592 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15593 default value from `split-window' to nil.
15594
15595 2008-03-29 Juri Linkov <juri@jurta.org>
15596
15597 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15598 for interactive code letters 'b' and 'B'.
15599
15600 2008-03-29 Eli Zaretskii <eliz@gnu.org>
15601
15602 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15603 multibyte string.
15604
15605 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15606
15607 * keyboard.c (pending_funcalls): New var.
15608 (timer_check): Run it.
15609 (syms_of_keyboard): Initialize it.
15610 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15611 (Vdelete_terminal_functions): New vars.
15612 (syms_of_terminal): Initialize them.
15613 (Fdelete_terminal): Run delete-terminal-functions.
15614 * xdisp.c (safe_eval): Rewrite.
15615 (safe_call2): New fun.
15616 * frame.c (Qdelete_frame_functions): New var.
15617 (syms_of_frame): Initialize it.
15618 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15619 * lisp.h (safe_call2, pending_funcalls): Declare.
15620
15621 2008-03-28 Andreas Schwab <schwab@suse.de>
15622
15623 * indent.c (Fmove_to_column): Move declaration before statements.
15624
15625 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15626
15627 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15628 (struct frame): Use bit fields for boolean vars.
15629
15630 * process.c (server_accept_connection): Simplify naming.
15631 (emacs_get_tty_pgrp): Use SDATA.
15632
15633 * coding.c (decode_coding_object): Fix last change.
15634
15635 2008-03-27 Jason Rumney <jasonr@gnu.org>
15636
15637 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15638
15639 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15640
15641 * charset.c (Fdefine_charset_internal): Change the way of
15642 registering charsets in Vcharset_order_list.
15643 (syms_of_charset): Make the charset `eight-bit' supplementary.
15644
15645 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15646
15647 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15648 operations, to avoid having the difference between pointers
15649 overflow.
15650
15651 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15652
15653 * indent.c (check_display_width): New fun.
15654 (scan_for_column): Use it.
15655
15656 * data.c (syms_of_data): Mark most-positive-fixnum and
15657 most-negative-fixnum as constants.
15658
15659 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15660
15661 * indent.c (scan_for_column): Extract from current_column_1.
15662 Merge with the same code from Fmove_to_column.
15663 (current_column_1, Fmove_to_column): Use it.
15664
15665 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15666
15667 * keymap.c (map_keymap_internal): New fun.
15668 (map_keymap): Use it.
15669 (Fmap_keymap_internal): New fun.
15670 (Fmap_keymap): Remove left-out test from before make_save_value.
15671
15672 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15673
15674 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15675 Use XCAR/XCDR.
15676
15677 * process.h (struct Lisp_Process): Remove filter_multibyte.
15678 * process.c (QCfilter_multibyte): Remove.
15679 (setup_process_coding_systems): Don't use filter_multibyte.
15680 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15681 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15682 (Fset_process_filter_multibyte): Change the coding-system to
15683 approximate the previous behavior.
15684 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15685 coding-system.
15686
15687 * coding.c (decode_coding_object): When not decoding into a buffer,
15688 obey the coding system's preference of (uni|multi)byte.
15689
15690 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15691
15692 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15693 every char is changed and has a different byte-length.
15694 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15695 Fix int -> EMACS_INT.
15696
15697 2008-03-23 David Hansen <david.hansen@gmx.net>
15698
15699 * dbusbind.c (xd_read_message): Remove extra copying of message
15700 strings. Check for NULL `interface' or `member'.
15701
15702 2008-03-22 Eli Zaretskii <eliz@gnu.org>
15703
15704 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15705 cFileName a file name that includes `?' characters, use the 8+3
15706 alias in cAlternateFileName instead.
15707
15708 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15709
15710 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15711
15712 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15713
15714 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15715 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15716 work on current_buffer only instead (that was already the case
15717 for some of the code anyway).
15718 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15719 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15720 (SET_PT, SET_PT_BOTH): Adjust.
15721 * intervals.h (set_point, temp_set_point, set_point_both)
15722 (temp_set_point_both): Remove redundant declarations.
15723
15724 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15725
15726 * fileio.c (Finsert_file_contents):
15727 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15728 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15729 when buffer != current_buffer anyway.
15730
15731 2008-03-20 Andreas Schwab <schwab@suse.de>
15732
15733 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15734 as default.
15735
15736 2008-03-19 Jason Rumney <jasonr@gnu.org>
15737
15738 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15739 (syms_of_w32fns): Initialize them.
15740 (HOURGLASS_ID): New constant.
15741 (x_window_to_frame): Don't check hourglass_window.
15742 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15743 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15744 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15745 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15746 Only change the cursor if hourglass is not active.
15747 (Fx_create_frame): Initialize frame's current_cursor.
15748 (hourglass_atimer): Remove.
15749 (hourglass_started): New function.
15750 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15751 (show_hourglass): Adapt to w32, changing argument to frame.
15752
15753 * w32term.h (struct w32_output): Remove hourglass_window.
15754 Add current_cursor.
15755
15756 * eval.c (call_debugger, Fsignal):
15757 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15758 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15759 (Fexecute_extended_command, cancel_hourglass_unwind):
15760 * minibuf.c (read_minibuf):
15761 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15762
15763 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15764
15765 * window.c (run_funs): New fun.
15766 (run_window_configuration_change_hook): Use it to run the buffer-local
15767 and the global part of the hook.
15768
15769 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15770 (unwind_format_mode_line): Restore selected window.
15771 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15772
15773 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15774
15775 * editfns.c (Fchar_equal): Check they are valid characters.
15776
15777 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15778
15779 2008-03-17 Andreas Schwab <schwab@suse.de>
15780
15781 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15782 against a charset.
15783
15784 * lisp.h (Fbuffer_list): Declare.
15785
15786 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
15787
15788 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15789 handlebox_widget is != 0.
15790
15791 2008-03-16 Juri Linkov <juri@jurta.org>
15792
15793 * callint.c (Fcall_interactively): For interactive code letters
15794 'b' and 'B' put the buffer list into the list of default "future"
15795 values of the minibuffer.
15796
15797 2008-03-16 Andreas Schwab <schwab@suse.de>
15798
15799 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15800 modifiers.
15801
15802 * regex.c (re_match_2_internal): Correct matching of a charset
15803 against latin-1 characters.
15804
15805 2008-03-16 Kenichi Handa <handa@m17n.org>
15806
15807 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15808 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15809 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15810 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15811 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15812 CHAR_STRING_ADVANCE.
15813 (produce_chars): Fix for the case that the source and the
15814 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15815 instead of CHAR_STRING_ADVANCE.
15816 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15817 STRING_CHAR_ADVANCE.
15818
15819 2008-03-15 Andreas Schwab <schwab@suse.de>
15820
15821 * regex.c (re_match_2_internal): Correct matching of eight bit
15822 characters in unibyte strings.
15823
15824 2008-03-15 Martin Rudalics <rudalics@gmx.at>
15825
15826 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15827 at end of range when it coincides with the end of the buffer.
15828
15829 2008-03-14 Eli Zaretskii <eliz@gnu.org>
15830
15831 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15832
15833 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15834
15835 2008-03-14 Jason Rumney <jasonr@gnu.org>
15836
15837 * editfns.c (initial_tz): New variable.
15838 (syms_of_editfns): Initialize it.
15839 (Fset_time_zone_rule): Set it when first called.
15840 Use it when TZSTRING is nil.
15841
15842 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15843 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15844 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15845 (globals_of_w32fns): Initialize them.
15846 (compute_tip_xy): Use them to position tooltips.
15847
15848 2008-03-14 Glenn Morris <rgm@gnu.org>
15849
15850 * emacs.c (main): Revert previous change.
15851 (standard_args): Revert -internal-script back to -scriptload,
15852 and remove the long-option form.
15853
15854 2008-03-13 Glenn Morris <rgm@gnu.org>
15855
15856 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15857 Remove option -enable-font-backend.
15858
15859 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15860
15861 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15862
15863 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15864
15865 * xterm.c (x_connection_closed): For GTK: If this is the last
15866 terminal just exit without closing the display.
15867
15868 2008-03-11 Jason Rumney <jasonr@gnu.org>
15869
15870 * w32font.c (w32font_full_name): Use floor to round.
15871
15872 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15873
15874 * sound.c (alsa_configure): Declare vol at beginning of block.
15875
15876 * fontset.c (Ffontset_info): Remove extra semicolon.
15877
15878 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15879
15880 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15881 size of resulting string.
15882
15883 2008-03-10 Jason Rumney <jasonr@gnu.org>
15884
15885 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15886
15887 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15888
15889 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15890 Don't pretend as if characters with display property haven't been
15891 consumed for string-replacing-string case.
15892
15893 2008-03-08 Kim F. Storm <storm@cua.dk>
15894
15895 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15896 (get_next_display_element, next_element_from_string)
15897 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15898
15899 2008-03-08 Andreas Schwab <schwab@suse.de>
15900
15901 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15902
15903 2008-03-06 Jason Rumney <jasonr@gnu.org>
15904
15905 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15906 when charset not specified. Only translate ANSI to unicode when
15907 font_type is truetype.
15908 (w32font_coverage_ok): New function.
15909 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15910
15911 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15912
15913 * lread.c (Fread_char): Resolve modifiers.
15914 (Fread_char_exclusive): Likewise.
15915
15916 * character.c (char_resolve_modifier_mask): New function.
15917 (char_string): Use char_resolve_modifier_mask.
15918 (Fchar_resolve_modifiers): New function.
15919 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15920 function.
15921
15922 2008-03-04 Jason Rumney <jasonr@gnu.org>
15923
15924 * makefile.w32-in: Always include w32font.c in the build.
15925 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15926
15927 2008-03-04 Andreas Schwab <schwab@suse.de>
15928
15929 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15930 (versionclean): Likewise.
15931
15932 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
15933
15934 * .cvsignore: Add oo.
15935
15936 2008-03-03 Andreas Schwab <schwab@suse.de>
15937
15938 * coding.c (decode_coding_object): Inhibit gap shrinking while
15939 decoding in place.
15940
15941 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15942
15943 * w32term.c: Remove unused include "gnu.h".
15944 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15945
15946 * gnu.h: Rename to ...
15947 * emacs-icon.h: ... this.
15948 * xterm.c: Use emacs-icon.h instead of gnu.h.
15949 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15950
15951 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
15952
15953 * w32font.c: Include math.h.
15954
15955 2008-03-03 Jason Rumney <jasonr@gnu.org>
15956
15957 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15958 Compute options separately.
15959 (w32font_open_internal): Set glyph_idx before caching metrics.
15960
15961 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15962 Define if system headers don't.
15963 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15964 (w32font_encode_char): Don't declare here.
15965
15966 * w32font.c (Quniscribe, QCformat): New symbols.
15967 (syms_of_w32font): Define them.
15968 (w32font_has_char): Indicate uncertainty.
15969 (w32font_encode_char): Encode as glyph point. Make static.
15970 (recompute_cached_metrics): New function.
15971 (w32font_open_internal): Use it. Set font to use glyph points
15972 initially. Set format based on type of font.
15973 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15974 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15975 on it. Set format based on information available here.
15976 (add_font_entity_to_list): Identify backend based on opentype_only.
15977
15978 2008-03-02 Andreas Schwab <schwab@suse.de>
15979
15980 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15981
15982 * coding.c (decode_coding_big5, produce_chars):
15983 Fix typos in last change.
15984
15985 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15986
15987 * gnu.h: New icon.
15988
15989 2008-03-02 Kenichi Handa <handa@m17n.org>
15990
15991 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15992 `dos', don't decode '\r' if that is the last in the source.
15993 (decode_coding_utf_16, decode_coding_emacs_mule)
15994 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15995 (decode_coding_raw_text, decode_coding_charset): Likewise.
15996 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15997
15998 2008-03-01 Jason Rumney <jasonr@gnu.org>
15999
16000 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16001
16002 2008-03-01 Kim F. Storm <storm@cua.dk>
16003
16004 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16005
16006 2008-03-01 Jason Rumney <jasonr@gnu.org>
16007
16008 * w32font.c (w32font_full_name): New function.
16009 (w32font_open_internal): Use it.
16010
16011 2008-03-01 Kim F. Storm <storm@cua.dk>
16012
16013 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16014
16015 2008-03-01 Jason Rumney <jasonr@gnu.org>
16016
16017 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16018
16019 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16020
16021 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16022 xg_frame_resized when the event is for the edit widget.
16023
16024 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16025
16026 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16027 set_char_size.
16028 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16029 operations on widgets here. Just set frame size if needed.
16030 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16031 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16032 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16033 the whole frame.
16034 (xg_create_tool_bar): Move attachment of the tool bar to
16035 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16036 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16037
16038 2008-03-01 Jason Rumney <jasonr@gnu.org>
16039
16040 * w32fns.c (w32_msg_pump): Disable debug code.
16041
16042 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16043
16044 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16045
16046 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16047
16048 * xdisp.c (next_overlay_string): Don't set
16049 overlay_strings_at_end_processed_p if we're currently reading from
16050 a display string.
16051
16052 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16053
16054 * xdisp.c (get_overlay_strings_1): Fix typo.
16055
16056 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16057
16058 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16059
16060 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16061
16062 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16063
16064 * xdisp.c (display_mode_element): Cancel the previous change.
16065 (decode_mode_spec): Likewise.
16066 (handle_auto_composed_prop): Don't make composition if it->string
16067 is a string.
16068
16069 2008-02-27 Kim F. Storm <storm@cua.dk>
16070
16071 * lisp.h (GLYPH): Change type from int to struct with separate char
16072 and face_id members.
16073 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16074 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16075 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16076 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16077 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16078 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16079 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16080 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16081 handle new Lisp glyph code encoding, either an integer or a cons.
16082
16083 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16084 (GLYPH_ALIAS): Delete.
16085 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16086 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16087 (GLYPH_FROM_CHAR): Replace macro by ...
16088 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16089
16090 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16091 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16092 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16093 (GLYPH_INVALID_P): New macro.
16094 (spec_glyph_lookup_face): Update prototype.
16095
16096 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16097 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16098 new glyph code encoding.
16099 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16100 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16101
16102 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16103 Adapt to new glyph type and new glyph code encoding.
16104
16105 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16106
16107 * indent.c (current_column, current_column_1, Fmove_to_column)
16108 (compute_motion): Adapt to new glyph code encoding.
16109
16110 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16111
16112 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
16113
16114 * process.c (wait_reading_process_output): Check for window
16115 changes caused by timers.
16116 Suggested by Johan Bockgård.
16117
16118 2008-02-27 Glenn Morris <rgm@gnu.org>
16119
16120 * emacs.c (USAGE1): Add `--disable-font-backend'.
16121
16122 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16123
16124 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16125 is made to the buffer.
16126
16127 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16128
16129 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16130 (face_at_string_position):
16131 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16132 (face_at_string_position):
16133 * xdisp.c (display_string, next_overlay_change):
16134 * buffer.h (overlays_at):
16135 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16136 Update callers.
16137
16138 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
16139
16140 * editfns.c (Fformat): Doc fix.
16141
16142 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
16143
16144 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16145 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16146 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16147
16148 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16149
16150 * buffer.c (Fbuffer_swap_text): New function.
16151 (syms_of_buffer): Defsubr it.
16152
16153 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
16154
16155 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16156
16157 2008-02-25 Jason Rumney <jasonr@gnu.org>
16158
16159 * w32font.c (w32font_draw): Draw one character at a time when padding.
16160
16161 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16162
16163 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16164 Handle a nil arg. Use run_window_configuration_change_hook.
16165 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16166 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16167 Use run_window_configuration_change_hook.
16168
16169 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16170
16171 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16172 1-pixel width.
16173
16174 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16175
16176 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16177 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16178 if the glyph in the font is zero pixel with.
16179
16180 * dispextern.h (struct glyph_string): New member padding_p.
16181
16182 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16183
16184 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16185
16186 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16187
16188 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16189
16190 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16191
16192 2008-02-25 Jason Rumney <jasonr@gnu.org>
16193
16194 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16195
16196 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16197
16198 Allow fine-grained image-cache flushing.
16199 * dispextern.h (struct image): Add `dependencies' field.
16200 (clear_image_caches): Change arg to Lisp_Object.
16201 * image.c (make_image): Initialize `dependencies' field.
16202 (clear_image_cache): Change arg to allow fine-grained flushing.
16203 Perform the flush even if image-cache-eviction-delay is nil.
16204 (clear_image_caches): Change arg to Lisp_Object.
16205 (Fclear_image_cache): Expand meaning of the argument.
16206 (mark_image): Mark `dependencies' field.
16207 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16208 (lface_hash): Use XHASH rather than XFASTINT.
16209 (face_at_buffer_position): Fix int -> EMACS_INT position.
16210 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16211 (select_frame_for_redisplay): Remove code duplication.
16212 (redisplay_internal): Adapt arg to call to clear_image_caches.
16213
16214 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16215
16216 * s/vms4-0.h:
16217 * s/vms4-2.h:
16218 * s/vms4-4.h:
16219 * s/vms5-5.h: Remove, unused.
16220
16221 * s/irix5-2.h:
16222 * s/irix6-0.h:
16223 * s/riscos5.h:
16224 * s/mach-bsd4-3.h:
16225 * m/mips4.h: Remove files for obsolete systems.
16226
16227 * Makefile.in:
16228 * filelock.c:
16229 * unexmips.c:
16230 * m/hp9000s300.h:
16231 * m/iris4d.h:
16232 * s/aix3-1.h:
16233 * s/hpux.h:
16234 * s/msdos.h:
16235 * s/usg5-0.h:
16236 * s/usg5-2-2.h:
16237 * s/usg5-2.h:
16238 * s/usg5-3.h: Remove references to obsolete variables.
16239
16240 * s/irix5-0.h: Remove, move all the contents ...
16241 * s/irix6-5.h: ... here. Simplify.
16242 * config.in: Regenerate.
16243
16244 2008-02-24 Jason Rumney <jasonr@gnu.org>
16245
16246 * w32term.c (x_draw_glyph_string_background): Clear the background
16247 manually when cleartype is in use.
16248 (x_draw_glyph_string_foreground): Draw text transparently when
16249 cleartype is in use.
16250
16251 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16252 a font into it unless we have to.
16253
16254 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16257 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16258
16259 2008-02-18 Jason Rumney <jasonr@gnu.org>
16260
16261 * w32fns.c (Fw32_shell_execute): Encode parameters.
16262
16263 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16264
16265 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16266
16267 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
16268
16269 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16270
16271 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16272
16273 * xterm.c (x_set_offset): Don't change the gravity if
16274 CHANGE_GRAVITY is -1.
16275
16276 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
16277
16278 * fileio.c (auto_save_error_occurred): New var.
16279 (auto_save_error): Set it.
16280 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16281 error occurred.
16282
16283 2008-02-23 Eli Zaretskii <eliz@gnu.org>
16284
16285 * w32.c (globals_of_w32): Add initializations for
16286 g_b_init_get_sid_sub_authority and
16287 g_b_init_get_sid_sub_authority_count.
16288
16289 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16290
16291 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16292 (font_parse_xlfd): Use them for sanity check.
16293 (Finternal_set_font_style_table): Make sure the table is bijective.
16294
16295 Consolidate the image_cache to the terminal struct.
16296 * termhooks.h (P_): Remove redundant def.
16297 (struct terminal): New field `image_cache'.
16298 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16299 of FRAME_X_IMAGE_CACHE.
16300 * xterm.h (struct x_display_info): Remove image_cache field.
16301 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16302 * w32term.h (struct w32_display_info): Remove image_cache field.
16303 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16304 * macterm.h (struct mac_display_info): Remove image_cache field.
16305 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16306 * xterm.c (x_term_init):
16307 * w32term.c (w32_term_init):
16308 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16309 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16310 Remove declarations.
16311 (clear_image_caches, mark_image_cache): New declarations.
16312 * xfaces.c (clear_face_cache):
16313 * xdisp.c (redisplay_internal): Use clear_image_caches.
16314 * image.c (clear_image_cache): Don't check that a frame is on
16315 a window-system before checking if it shares the same cache.
16316 (clear_image_caches): New function.
16317 (Fclear_image_cache): Use it.
16318 (mark_image): Move from allo.c.
16319 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16320 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16321 (mark_object): Don't call mark_image_cache for frames.
16322 (mark_terminals): Call mark_image_cache.
16323
16324 * lisp.h (Fdelete_terminal): Declare.
16325
16326 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16327 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16328 wrong_type_argument.
16329
16330 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16331
16332 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16333 malayalam.el, and tamil.el. Add sinhala.el.
16334
16335 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16336
16337 * xterm.c (x_connection_closed): Consolidate identical tests.
16338 (x_delete_terminal): Don't crash if called via x_connection_closed.
16339
16340 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16341
16342 * xdisp.c (decode_mode_spec): New arg string.
16343 (display_mode_element): Adjust for the above change.
16344
16345 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16346
16347 * callint.c (Fcall_interactively): Use AREF.
16348
16349 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16350
16351 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16352
16353 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16354
16355 * xfns.c (Fx_show_tip): Set string to " " if empty.
16356
16357 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16358
16359 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16360 with Qt.
16361
16362 2008-02-17 Kenichi Handa <handa@m17n.org>
16363
16364 * ftfont.c (ftfont_shape): Return Lispy number.
16365
16366 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16367 for GCs.
16368 (Finternal_set_font_selection_order): Call font_update_sort_order
16369 only when enable_font_backend is set.
16370 (realize_x_face): Set face->font_info to that of default face only
16371 when enable_font_backend is set.
16372
16373 * xdisp.c (handle_composition_prop): Set it->c to the fist
16374 character of the composed region.
16375 (fill_composite_glyph_string): Set base_face->font_info to
16376 s->font_info. Get a face for ascii from base_face->ascii_face.
16377 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16378 with a face already decided.
16379 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16380 non-negative.
16381 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16382 call font_prepare_composition unconditionally.
16383
16384 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16385
16386 * xterm.h (struct x_display_info): New member font.
16387
16388 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16389 (x_set_mouse_face_gc, x_new_font): Likewise.
16390 (x_term_init): Setup display_info->font.
16391 (x_delete_terminal): Free display_info->font.
16392
16393 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16394
16395 * ftxfont.c (ftxfont_default_fid): Delete it.
16396 (ftxfont_open): Set xfont->fid to 0.
16397 (ftxfont_end_for_frame): Clear data specific to the frame and the
16398 font-driver.
16399
16400 * xftfont.c (xftfont_default_fid): Delete it.
16401 (xftfont_open): Set xfont->fid to 0.
16402
16403 * fontset.c (FONTSET_OBJLIST): New macro.
16404 (fontset_find_font): Update font-object list of the fontset.
16405 (free_realized_fontset): New function.
16406 (free_face_fontset): Call free_realized_fontset.
16407 (Ffont_info): Call font_close_object only when enable_font_backend
16408 is set.
16409
16410 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16411 [HAVE_NTGUI]: Include w32term.h.
16412 [MAC_OS]: Include macterm.ch.
16413 (font_otf_ValueRecord): Use make_number.
16414 (font_finish_cache): Fix handling of reference count.
16415 (font_clear_cache): Update num_fonts.
16416 (font_open_entity): Update smallest_char_width and
16417 smallest_font_height of the frame.
16418 (font_close_object): Update num_fonts.
16419 (Fclear_font_cache): Fix finding the target cache data.
16420
16421 2008-02-16 Glenn Morris <rgm@gnu.org>
16422
16423 * fontset.c (Finternal_char_font): Fix compilation warning.
16424
16425 2008-02-16 Eli Zaretskii <eliz@gnu.org>
16426
16427 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16428 instead of char arrays. Enlarge the size of array passed to
16429 get_token_information.
16430
16431 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16432 warnings.
16433
16434 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16435
16436 * .gdbinit: Don't set `args', it breaks gdb --args.
16437
16438 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16439
16440 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16441 within a narrowed buffer.
16442
16443 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16444
16445 * coding.c (decode_coding_object, encode_coding_object):
16446 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16447
16448 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16449
16450 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16451 hardcoding 1.
16452 (detect_coding_system):
16453 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16454 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16455 * insdel.c (insert_from_gap):
16456 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16457 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16458 (string_to_multibyte):
16459 * character.c (chars_in_text, multibyte_chars_in_text):
16460 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16461
16462 * character.h (FETCH_STRING_CHAR_ADVANCE)
16463 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16464 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16465 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16466
16467 * casefiddle.c (casify_region): Only call after-change and composition
16468 functions on the part of the region that was changed.
16469
16470 * keyboard.c (read_avail_input):
16471 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16472
16473 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16474
16475 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16476 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16477
16478 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
16479
16480 * w32menu.c (push_submenu_start, push_submenu_end)
16481 (push_left_right_boundary, push_menu_pane, push_menu_item):
16482 * keyboard.c (read_key_sequence): Don't pass args with side effects
16483 to AREF, it fails when compiling with -DENABLE_CHECKING.
16484
16485 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16486
16487 * Makefile.in (${lispsource}international/charprop.el):
16488 Delete this target.
16489
16490 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16491 emacs-unicode-2.
16492
16493 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16494
16495 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16496
16497 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16498
16499 * frame.c (Qnoelisp): New symbol.
16500 (syms_of_frame): Initialize it.
16501 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16502 harmless Elisp code, from a strong `force' from x_connection_closed.
16503 * frame.h (Qnoelisp): Declare.
16504 * xterm.c (x_connection_closed): Pass `noelisp'.
16505
16506 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16507 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16508 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16509 rather than `int' for the type of `type'.
16510
16511 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16512
16513 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16514
16515 * Makefile.in (GNUC): Remove support for gcc-1.x.
16516
16517 2008-02-10 Richard Stallman <rms@gnu.org>
16518
16519 * lisp.h (ASET): Use AREF, not ASLOT.
16520
16521 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16522
16523 * lisp.h (ASET): Check bounds.
16524
16525 2008-02-10 Glenn Morris <rgm@gnu.org>
16526
16527 * buffer.c (mode-name): Doc fix.
16528
16529 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16530
16531 * Makefile.in:
16532 * emacs.c:
16533 * gmalloc.c:
16534 * keyboard.c:
16535 * lisp.h:
16536 * m/ibm370aix.h:
16537 * process.c:
16538 * regex.c:
16539 * s/hpux.h:
16540 * sysdep.c:
16541 * sysselect.h:
16542 * systty.h:
16543 * unexec.c:
16544 * w32term.c:
16545 * xsmfns.c:
16546 * xterm.c: Remove code that deals with obsolete variables.
16547
16548 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16549
16550 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16551 nothing else needs it anymore.
16552
16553 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16554
16555 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16556 instead of unibyte_char_to_multibyte.
16557
16558 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16559
16560 * s/gnu-linux.h: Remove commented out code.
16561
16562 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16563
16564 * Makefile.in: Update what RMS says about using autoconf.
16565 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16566 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16567 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16568 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16569
16570 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16571
16572 * keymap.c (Fkey_description): Move side effect outside of macro call.
16573
16574 * xfaces.c (Finternal_make_lisp_face):
16575 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16576
16577 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16578 (syms_of_fontset): Use ASET.
16579
16580 * fns.c (concat): Move side effect outside of macro call.
16581 (hash_clear): Use ASET.
16582
16583 2008-02-08 Richard Stallman <rms@gnu.org>
16584
16585 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16586 If FORCE, and frame has a surrogate minibuffer for another frame,
16587 delete the other frame first.
16588
16589 2008-02-07 Timo Savola <timo.savola@iki.fi>
16590
16591 * xterm.c (x_detect_focus_change): Handle embed client message.
16592 (handle_one_xevent): Ditto.
16593 (handle_one_xevent): If embedded and we get a button press/release,
16594 request focus.
16595 (xembed_set_info, xembed_send_message): New functions.
16596 (x_make_frame_visible): Call xembed_set_info if embedded.
16597 (x_make_frame_invisible): Call xembed_set_info if embedded.
16598 (x_term_init): Initialize Xatom_XEMBED.
16599 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16600 (x_iconify_frame): Ditto.
16601
16602 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16603 (enum xembed_info, enum xembed_message, enum xembed_focus)
16604 (enum xembed_modifier, enum xembed_accelerator): New.
16605 (xembed_set_info, xembed_send_message): Declare.
16606 (FRAME_X_EMBEDDED_P): New.
16607
16608 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16609 gtk_plug_new.
16610
16611 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16612 window ID of a frame.
16613 (x_window): Reparent frame if embedded.
16614 (Fx_create_frame): Don't set border width if embedded.
16615
16616 * emacs.c (USAGE3): Add --parent-id.
16617 (standard_args): Ditto.
16618
16619 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16620
16621 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16622
16623 2008-02-07 Jim Meyering <meyering@redhat.com>
16624
16625 Use "do...while (0)", not "if (1)...else" in macro definitions.
16626 The latter provokes a warning from gcc about the empty else, when
16627 followed by ";". Also, without that trailing semicolon, it would
16628 silently swallow up any following statement.
16629 * syntax.h (SETUP_SYNTAX_TABLE)
16630 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16631 * buffer.h (DECODE_POSITION): Likewise.
16632 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16633 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16634 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16635 (FETCH_CHAR_ADVANCE): Likewise.
16636 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16637
16638 2008-02-07 Jim Meyering <meyering@redhat.com>
16639
16640 * lread.c [lint]: Don't include <sys/inode.h>.
16641
16642 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16643
16644 * xselect.c (x_handle_dnd_message):
16645 * xmenu.c (digest_single_submenu, xmenu_show):
16646 * xdisp.c (with_echo_area_buffer_unwind_data)
16647 (format_mode_line_unwind_data, unwind_format_mode_line)
16648 (display_menu_bar):
16649 * eval.c (Ffetch_bytecode):
16650 * doc.c (store_function_docstring):
16651 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16652 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16653 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16654
16655 2008-02-07 Kenichi Handa <handa@m17n.org>
16656
16657 * ftxfont.c (ftxfont_open): Don't set
16658 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16659
16660 * ftfont.c (ftfont_open): Fix previous change.
16661
16662 2008-02-06 Jason Rumney <jasonr@gnu.org>
16663
16664 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16665 Use cached metrics for ASCII characters.
16666 (w32font_open_internal): Don't set font's owning_frame.
16667 Cache metrics for ASCII characters.
16668
16669 * w32font.h (struct w32font_info): Add ascii_metrics.
16670 Remove owning_frame.
16671
16672 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16673
16674 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16675 to negative value.
16676
16677 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16678
16679 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16680
16681 * charset.c (syms_of_charset): Set QCtest and Qeq.
16682
16683 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16684
16685 * process.c (Fstart_process):
16686 * callproc.c (Fcall_process): Handle the case where
16687 Funhandled_file_name_directory returns nil.
16688
16689 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16690 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16691 * font.c (check_gstring): Use them and AREF to access the vector before
16692 we know it's really a gstring.
16693 (Ffont_shape_text): Fix typo.
16694 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
16695
16696 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16697 Declare.
16698
16699 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16700
16701 2008-02-05 Jason Rumney <jasonr@gnu.org>
16702
16703 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16704 Set smallest_font_height and smallest_char_width in display info.
16705
16706 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16707
16708 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16709
16710 2008-02-05 Miles Bader <miles@gnu.org>
16711
16712 * xfaces.c (get_lface_attributes, merge_named_face)
16713 (lookup_named_face, lookup_derived_face, realize_named_face):
16714 Revert 2008-02-01 change by cyd@stupidchicken.com.
16715
16716 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16717
16718 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16719 fallback fonts.
16720 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16721
16722 2008-02-04 Jason Rumney <jasonr@gnu.org>
16723
16724 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16725 set full_name.
16726 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16727
16728 2008-02-03 Jason Rumney <jasonr@gnu.org>
16729
16730 * makefile.w32-in (OBJ1): Include font.o here.
16731 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16732
16733 2008-02-02 Jason Rumney <jasonr@gnu.org>
16734
16735 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16736
16737 2008-02-01 Jason Rumney <jasonr@gnu.org>
16738
16739 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16740
16741 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16742
16743 2008-02-01 Andreas Schwab <schwab@suse.de>
16744
16745 * Makefile.in (shortlisp, lisp): Update for rename of
16746 ../lisp/language/myanmar.el.
16747
16748 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
16749
16750 * xfaces.c (get_lface_attributes): Delete function.
16751 (merge_named_face, lookup_named_face, lookup_derived_face)
16752 (realize_named_face): Call lface_from_face_name directly, and use
16753 the fact that merge_face_vectors does not alter its FROM argument.
16754
16755 2008-02-01 Jason Rumney <jasonr@gnu.org>
16756
16757 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16758 input in the default locale. Handle non-Unicode multibyte input.
16759
16760 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16761
16762 * fontset.c (reorder_font_vector): Exclude nil elements from the
16763 font group. Don't try multiple fonts.
16764 (fontset_font): Adjust for the above change.
16765 (Finternal_char_font): Return nil if the found font doesn't
16766 contain the character ch.
16767
16768 * Makefile.in (lisp, shortlisp): Add cham.el.
16769
16770 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16771
16772 * font.h (FONTP): Make it return 1 also for a font-object.
16773
16774 * .gdbinit (xfontset): New function.
16775
16776 * font.c (font_find_for_lface): Check if the character C is
16777 supported or not only for the first font.
16778
16779 * fontset.c (reorder_font_vector): Fix typo.
16780 (fontset_find_font): Don't add a font-spec specifying a script.
16781 Use 0 (not Qt) for the indication of empty font-group. Change the
16782 format of RFONT-DEF. Return Qt if no font in the font-group
16783 support the character.
16784 (fontset_font): Adjust for the above change. If no font was
16785 found the character, remember that.
16786 (face_for_char): Adjust for the change of RFONT-DEF.
16787 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16788 no font for the target.
16789 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16790
16791 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16792
16793 * font.c (font_load_for_face): Handle the case that the font in
16794 face->lface is a string.
16795
16796 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16797
16798 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16799
16800 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16801
16802 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16803 Fix previous change. If the frame is not on a window system,
16804 signal an error.
16805
16806 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16807
16808 * coding.c (decode_coding_object, encode_coding_object): Adjust
16809 marker positions after conversion.
16810
16811 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16812
16813 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16814
16815 * font.c (font_find_for_lface): Fix the handling of the return
16816 value of font_has_char.
16817 (Ffont_shape_text): Fix previous change.
16818
16819 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16820 (fontset_ref_and_range): Delete it.
16821 (fontset_find_font): Call char_table_ref_and_range instead of
16822 FONTSET_REF_AND_RANGE.
16823 (make_fontset): Don't setup font groups of Latin here.
16824 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16825 (new_fontset_from_font): Make the specified font the default for
16826 all Latin characters.
16827
16828 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16829
16830 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16831 is on a window system before accessing the fontset of the frame.
16832
16833 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16834
16835 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16836
16837 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16838 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16839
16840 * font.c (Ffont_shape_text): If the font driver doesn't have a
16841 shaper function, make zero-width glyphs to have at least one-pixel
16842 width. Fix setting of `to' field of glyphs.
16843
16844 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16845
16846 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16847 glyphs.
16848
16849 * font.h (struct font_driver): Improve docstring of member `shape'.
16850
16851 2008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * composite.c (syms_of_composite): Fix docstring of
16854 auto-composition-function.
16855
16856 * font.h (LGLYPH_SIZE): New macro.
16857
16858 * font.c (Ffont_fill_gstring): Stop filling when a character not
16859 supported by the font is found.
16860 (Ffont_shape_text): When a shape callback function returns nil,
16861 try at most two more times with larger gstring.
16862 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16863
16864 * xdisp.c (handle_auto_composed_prop): Change the argument to
16865 auto-composition-function.
16866
16867 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16868 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16869 Lispy glyph and store it in the lgstring.
16870
16871 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16872
16873 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16874
16875 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16876
16877 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16878
16879 * fontset.c (Vfont_encoding_charset_alist): New variable.
16880 (syms_of_fontset): DEFVAR it.
16881 (reorder_font_vector, fontset_find_font): Optimize for the case of
16882 no need of reordering.
16883 (face_for_char): Map the charset property by
16884 Vfont_encoding_charset_alist.
16885
16886 2008-02-01 Jason Rumney <jasonr@gnu.org>
16887
16888 * w32font.c (logfonts_match): Don't check adstyle here.
16889 (font_matches_spec): Check here against physical font instead.
16890 (add_font_entity_to_list): Avoid some substitutions.
16891
16892 * font.c (font_parse_fcname): Default weight and slant to normal.
16893 (font_score): Prefer normal fonts if weight or slant unspecified.
16894 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16895 match freetype scores.
16896
16897 2008-02-01 Jason Rumney <jasonr@gnu.org>
16898
16899 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16900 font, as it may have been deleted.
16901 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16902 most common hyphenless variation.
16903 (logfonts_match): Check generic family.
16904 (font_matches_spec): Don't check generic family here.
16905 (fill_in_logfont): Set generic family based on adstyle.
16906
16907 * w32font.h (w32font_get_cache): Update declaration.
16908
16909 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16910
16911 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16912
16913 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16914 If none of the new drivers are available, call font_update_drivers
16915 with the old drivers.
16916
16917 * w32font.c (w32font_get_cache): Adjust the argument type.
16918
16919 * xfont.c (xfont_get_cache): Adjust the argument type.
16920
16921 * font.h (struct font_driver): Change argument type of get_cache.
16922
16923 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16924
16925 * font.c (Ffont_get): Fix arguments to Fassoc.
16926 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16927 (font_clear_cache): New function.
16928 (font_list_entities, font_matching_entity): Use font_get_cache.
16929 (font_update_drivers): Call font_clear_cache when finishing a driver.
16930
16931 * fontset.c (fontset_find_font): Fix previous change.
16932
16933 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16934
16935 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16936 dpyinfo->font_table.
16937 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16938 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16939
16940 * font.c (font_at): Handle the case that the arg C is negative.
16941 Handle the unibyte case.
16942 (Ffont_at): Call font_at with the arg C -1.
16943
16944 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16945 the position here, and call font_at with the arg C -1.
16946 Don't check the range of the existing composition at the point.
16947
16948 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16949
16950 * fontset.c (fontset_add): New args charset_id and family.
16951 Change caller.
16952 (load_font_get_repertory, fontset_find_font): Assume that
16953 font_spec is always a font-spec object.
16954 (Fset_fontset_font): Always store a font-spec object in a fontset.
16955
16956 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16957 instead of get_property_and_range.
16958
16959 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16960
16961 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16962 (xftfont_open): Don't keep locking face.
16963 (xftfont_close): Don't unlock face.
16964 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16965
16966 * fontset.c (fontset_find_font): Don't prefer a font of
16967 supplementary charset.
16968
16969 2008-02-01 Kenichi Handa <handa@m17n.org>
16970
16971 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16972 script, langsys_tag to langsys, new member script.
16973 (OTF_TAG_STR): Terminate by '\0'.
16974 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
16975 listing to the script specified in that property. Fix arg to
16976 OTF_check_features.
16977
16978 2008-02-01 Jason Rumney <jasonr@gnu.org>
16979
16980 * w32font.h: New file.
16981
16982 * w32font.c: Include it.
16983 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16984 (w32font_open): Set owning_frame.
16985 (w32font_text_extents): Use owning_frame.
16986 (struct font_callback_data): Add opentype_only field.
16987 (add_font_entity_to_list): Use it to filter fonts.
16988 Don't check against full name.
16989 (w32font_list_internal): New function.
16990 (w32font_list): Use it.
16991 (w32font_match_internal): New function.
16992 (w32font_match): Use it.
16993 (w32font_open_internal): New function.
16994 (w32font_open): Use it.
16995 (w32font_get_cache, w32font_close, w32font_has_char)
16996 (w32font_encode_char, w32font_text_extents, w32font_draw):
16997 Make non-static.
16998
16999 * makefile.w32-in (w32font.o): Depend on w32font.h.
17000
17001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17002
17003 * charset.c (Fdefine_charset_internal): Record a supplementary
17004 charset at the tail of Vcharset_order_list.
17005
17006 * font.c (Ffont_shape_text): Fix the return value.
17007
17008 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17009
17010 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17011
17012 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17013
17014 * ftfont.c (struct OpenTypeSpec): New struct.
17015 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17016 (ftfont_get_open_type_spec): New function.
17017 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17018
17019 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17020
17021 2008-02-01 Jason Rumney <jasonr@gnu.org>
17022
17023 * w32font.c (add_font_entity_to_list): Compare only the beginning
17024 of full name.
17025
17026 2008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17029 Never return HANDLED_RECOMPUTE_PROPS.
17030
17031 2008-02-01 Kenichi Handa <handa@m17n.org>
17032
17033 * font.c (font_gstring_produce): Delete it.
17034
17035 * composite.h (COMPOSITION_METHOD):
17036 Handle COMPOSITION_WITH_GLYPH_STRING.
17037
17038 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17039
17040 * xfont.c (Qx): Delete.
17041 (syms_of_xfont): Don't initialize Qx.
17042
17043 * composite.h (enum composition_method):
17044 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17045
17046 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17047
17048 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17049 (choose_face_font): Accept new form of font-spec.
17050
17051 * frame.h (font_driver_list): Declare it unconditionally.
17052 (struct frame): Define members font_driver_list and font_data_list
17053 unconditionally.
17054
17055 * fontset.c: Include "font.h" unconditionally.
17056 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17057 (Fset_fontset_font): Accept a font-spec object.
17058
17059 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17060 PIXEL_SIZE part a wild card.
17061
17062 * dispextern.h (struct glyph_string): Define members clip and
17063 num_clips unconditionally.
17064 (struct face): Define members font_info and extra unconditionally.
17065
17066 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17067 ftfont_info only when HAVE_LIBOTF is defined.
17068
17069 2008-02-01 Andreas Schwab <schwab@suse.de>
17070
17071 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17072 and end.
17073
17074 2008-02-01 Jason Rumney <jasonr@gnu.org>
17075
17076 * w32font.c (w32font_driver): Add new fields.
17077
17078 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17079
17080 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17081 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17082 (LIBES): Add @M17N_FLT_CFLAGS@.
17083
17084 * composite.c (compose_text): Don't treat the new style
17085 composition specially.
17086
17087 * emacs.c (main): Call syms_of_font unconditionally.
17088
17089 * font.h (FONT_ENTITY_NOT_LOADABLE)
17090 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17091 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17092 (struct font_driver): New member shape.
17093 (font_registry_charsets): Extern it.
17094 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17095 (font_otf_capability, font_drive_otf): Delete their externs.
17096
17097 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17098 (font_charset_alist, font_registry_charsets): Move from xfont.c
17099 and rename.
17100 (font_prop_validate_otf): New function.
17101 (font_property_table): Register it for QCotf.
17102 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17103 (font_drive_otf): Delete.
17104 (font_prepare_composition): New arg F. Adjust for the change of
17105 lispy gstring.
17106 (font_find_for_lface): New arg C.
17107 (font_load_for_face): Adjust for the change of font_find_for_lface.
17108 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17109 lispy gstring.
17110 (Ffont_shape_text): New function.
17111 (Fopen_font): If the font size is not given, use 12-pixel.
17112 (Ffont_at): New arg STRING.
17113 (syms_of_font): Initalize font_charset_alist.
17114 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17115 conditionally.
17116
17117 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17118 fonts of the same font-spec. Change the format of RFONT-DEF.
17119 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17120 Adjust for the change of RFONT-DEF.
17121 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17122
17123 * ftfont.h: New file.
17124
17125 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17126 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17127 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17128 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17129 font_otf_capability and font_drive_otf, set ftfont_shape.
17130 (ftfont_list): Adjust for the change of :otf property value.
17131 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17132 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17133 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17134 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17135 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17136 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17137
17138 * w32term.c (x_draw_composite_glyph_string_foreground):
17139 Adjust for the change of lispy gstring.
17140
17141 * xdisp.c (handle_composition_prop): Adjust for the change of
17142 lispy gstring. Call a function for auto-composition with the
17143 third arg it->window.
17144 (fill_composite_glyph_string): Adjust for the change of lispy string.
17145 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17146
17147 * xfaces.c (set_font_frame_param): Adjust for the change of
17148 font_find_for_lface.
17149
17150 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17151 (xfont_registry_charsets): Likewise. Change caller.
17152 (syms_of_xfont): Don't handle x_font_charset_alist.
17153
17154 * xftfont.c: Include "ftfont.h".
17155 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17156 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17157 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17158 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17159 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17160 Set xftfont_driver.shape to xftfont_shape.
17161
17162 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17163 the change of lispy gstring.
17164
17165 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17166
17167 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17168
17169 2008-02-01 Jason Rumney <jasonr@gnu.org>
17170
17171 * w32font.c (w32font_draw): Fill background manually.
17172
17173 2008-02-01 Jason Rumney <jasonr@gnu.org>
17174
17175 * font.c (Qfontp): Remove unused symbol.
17176 (QCantialias): New symbol.
17177 (syms_of_font): Define it.
17178 (font_property_table): Set a validator for QCantialias.
17179
17180 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17181 Define if not already.
17182 (QCfamily): Share with xfaces.c.
17183 (Qstandard, Qsubpixel, Qnatural): New symbols.
17184 (syms_of_w32font): Define them. Don't define QCfamily here.
17185 (w32_antialias_type, lispy_antialias_type): New functions.
17186 (w32_enumfont_pattern_entity): New arg requested_font.
17187 Set antialias parameter if non-default was requested.
17188 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17189
17190 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17191
17192 * lread.c (read1): Undo the previous change.
17193
17194 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17195
17196 * frame.c (Fdelete_frame): Call font_update_drivers only when
17197 USE_FONT_BACKEND is defined.
17198
17199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17200
17201 * font.h (struct font_bitmap): New member bits_per_pixel.
17202 (struct font_driver): New members start_for_frame and end_for_frame.
17203 (struct font_data_list): New struct.
17204 (font_put_frame_data, font_get_frame_data): Extern them.
17205
17206 * frame.h (struct frame): New member font_data_list.
17207
17208 * font.c (font_update_drivers): Call driver->start_for_frame and
17209 driver->end_for_frame at proper timings.
17210 (font_put_frame_data, font_get_frame_data): New functions.
17211 (Ffont_spec): Add usage in the docstring.
17212
17213 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17214 (Fdelete_frame): Call font_update_drivers.
17215
17216 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17217 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17218 (xftfont_get_xft_draw): New function.
17219 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17220 (xftfont_end_for_frame): New function.
17221 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17222
17223 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17224 Change argument. Cache GCs in the per-frame data.
17225 (struct ftxfont_frame_data): New struct.
17226 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17227 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17228 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17229 (ftxfont_end_for_frame): New function.
17230 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17231
17232 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17233
17234 2008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * xselect.c (Vselection_coding_system)
17237 (Vnext_selection_coding_system): Delete them.
17238 (syms_of_xselect): Don't declare selection-coding-system and
17239 next-selection-coding-system. They are declared in select.el.
17240
17241 2008-02-01 Jason Rumney <jasonr@gnu.org>
17242
17243 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17244
17245 * w32fns.c: Include imm.h.
17246 (get_composition_string_fn, get_ime_context_fn): New optional
17247 system functions.
17248 (globals_of_w32fns): Load them from imm32.dll.
17249 (ignore_ime_char): New flag.
17250 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17251 WM_IME_ENDCOMPOSITION messages.
17252
17253 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17254 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17255
17256 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17257
17258 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17259 (READCHAR_REPORT_MULTIBYTE): New macro.
17260 (readchar): New 2nd arg MULTIBYTE.
17261 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17262 Make symbol's name multibyte according to the multibyteness of the
17263 source.
17264
17265 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17266
17267 * xfaces.c (face_for_overlay_string): Call lookup_face with
17268 correct arguments (fix of synching with the trunk).
17269
17270 2008-02-01 Kenichi Handa <handa@m17n.org>
17271
17272 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17273 (font_prop_validate_non_neg, font_prop_validate_spacing):
17274 Delete argument prop_index.
17275 (font_property_table): Change arguments to validater. Change Callers.
17276 (font_lispy_object): Delete.
17277 (font_at): Use font_find_object instead fo font_lispy_object.
17278
17279 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17280
17281 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17282 and file names.
17283
17284 2008-02-01 Jason Rumney <jasonr@gnu.org>
17285
17286 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17287 (font_matches_spec): Remove debug output.
17288 (add_font_entity_to_list): Avoid using substituted fonts.
17289
17290 2008-02-01 Jason Rumney <jasonr@gnu.org>
17291
17292 * doc.c (Fsnarf_documentation):
17293 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17294
17295 2008-02-01 Miles Bader <miles@gnu.org>
17296
17297 * dispextern.h (struct glyph_row): Only define "clip" field if
17298 HAVE_WINDOW_SYSTEM is defined.
17299
17300 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17301
17302 Fix up multi-tty merge.
17303
17304 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17305 and indentation.
17306
17307 * xfaces.c (free_realized_face, clear_face_gcs):
17308 Include font_done_for_face in the input_blocked section, just in case.
17309
17310 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17311 (get_char_face_and_encoding): Undo last change and remove the *other*
17312 duplicate definition (i.e. keep the one that's better scoped and that
17313 includes code for the font-backend).
17314
17315 * terminal.c (create_terminal): Default keyboard_coding to
17316 `no-conversion' and terminal_coding to `undecided'.
17317
17318 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17319
17320 * fontset.c (free_realized_fontsets): Check that the table entry does
17321 contain a fontset before trying to compare it to `base'.
17322
17323 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17324 syms_of_charset, and syms_of_coding earlier because init_window_once
17325 now needs Vcoding_system_hash_table to be setup.
17326
17327 * coding.h (default_buffer_file_coding): Remove.
17328
17329 * coding.c (default_buffer_file_coding): Remove.
17330 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17331 than ->symbol, and use the terminal-local coding system.
17332 (syms_of_coding): Don't setup the coding-systems that are not
17333 terminal-local.
17334 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17335
17336 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17337 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17338
17339 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17340 in chartab.c and were re-added here by mistake.
17341 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17342
17343 * doc.c (Fsnarf_documentation):
17344 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17345 src to etc.
17346
17347 * ChangeLog.10: Add mistakenly removed entry.
17348
17349 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17350
17351 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17352
17353 2008-02-01 Miles Bader <miles@gnu.org>
17354
17355 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17356 Add extra args to FACE_FOR_CHAR.
17357
17358 2008-02-01 Kenichi Handa <handa@m17n.org>
17359
17360 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17361 in sequence.
17362
17363 * chartab.c (map_sub_char_table, map_char_table): If the range
17364 contains just one character, call the function with that character
17365 even if the depth is not 3.
17366
17367 2008-02-01 Jason Rumney <jasonr@gnu.org>
17368
17369 * w32font.c (w32font_text_extents): Calculate metrics for the
17370 whole string.
17371
17372 2008-02-01 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17375
17376 2008-02-01 Jason Rumney <jasonr@gnu.org>
17377
17378 * w32term.c (x_set_glyph_string_clipping): Use
17379 get_glyph_string_clip_rects.
17380 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17381 Adjust for the change of struct glyph_string.
17382
17383 * w32font.c (w32font_draw): Do clipping here.
17384
17385 2008-02-01 Kenichi Handa <handa@m17n.org>
17386
17387 * xftfont.c (xftfont_draw): Adjust for the change of struct
17388 glyph_string.
17389
17390 * xterm.c (x_set_glyph_string_clipping): Use
17391 get_glyph_string_clip_rects.
17392 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17393 Adjust for the change of struct glyph_string.
17394
17395 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17396 the resulting clip(s}.
17397 (expose_overlaps): Add arg r. Change callers. Set it to
17398 row->clip temporarily.
17399 (expose_window): Redraw rows overlapping the exposed area.
17400
17401 * dispextern.h (struct glyph_row): New member clip.
17402 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17403 clip_height, new member clip, and num_clips.
17404
17405 2008-02-01 Kenichi Handa <handa@m17n.org>
17406
17407 * data.c (Fchar_or_string_p): Fix docstring.
17408
17409 2008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17412 create a temporary XftDraw object.
17413
17414 2008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * font.c (Ffontp): Fix docstring.
17417
17418 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17419 strong evidence of ISO-2022.
17420
17421 2008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17424 SYNTAX_ENTRY_FOLLOW_PARENT.
17425
17426 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17427
17428 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17429 its type.
17430 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17431 Update to the new type of weak_hash_tables and next_weak.
17432
17433 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17434 a plain C pointer to Lisp_Hash_Table.
17435
17436 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17437 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17438 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17439 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17440 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17441 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17442 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17443 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17444 (GC_EQ): Remove since they've been identical to their non-GC_
17445 alter-egos ever since the markbit was eradicated.
17446
17447 * alloc.c:
17448 * buffer.c:
17449 * buffer.h:
17450 * data.c:
17451 * fileio.c:
17452 * filelock.c:
17453 * fns.c:
17454 * frame.h:
17455 * lisp.h:
17456 * macterm.c:
17457 * print.c:
17458 * process.c:
17459 * w32fns.c:
17460 * w32menu.c:
17461 * w32term.c:
17462 * xfns.c:
17463 * xmenu.c:
17464 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17465
17466 2008-02-01 Kenichi Handa <handa@m17n.org>
17467
17468 * chartab.c (map_sub_char_table): Make it work for the top-level
17469 char-table. Fix handling of parent char-table.
17470 (map_char_table): Adjust for the above change.
17471
17472 2008-02-01 Jason Rumney <jasonr@gnu.org>
17473
17474 * w32font.c (Qgdi): Rename from Qw32.
17475
17476 2008-02-01 Jason Rumney <jasonr@gnu.org>
17477
17478 * w32bdf.c (get_quoted_string): Make function static.
17479
17480 2008-02-01 Kenichi Handa <handa@m17n.org>
17481
17482 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17483 bigger ascent and descent than those of the font, use them as
17484 font's ascent and descent.
17485
17486 2008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * Makefile.in (${lispsource}international/charprop.el): Move this
17489 target within "#ifdef HAVE_UNIDATA" and "#endif".
17490
17491 2008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17494 (shortlisp): Add ../lisp/language/tai-viet.el.
17495
17496 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
17497
17498 * Makefile.in (${lispsource}international/charprop.el): Depend on
17499 temacs${EXEEXT}.
17500
17501 2008-02-01 Jason Rumney <jasonr@gnu.org>
17502
17503 * w32font.c (w32font_close): Delete the GDI font object.
17504
17505 * w32menu.c: Include character.h.
17506
17507 * w32proc.c: Likewise.
17508
17509 * w32select.c: Likewise.
17510
17511 * makefile.w32-in (w32proc.o): Depend on character.h.
17512
17513 2008-02-01 Jason Rumney <jasonr@gnu.org>
17514
17515 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17516
17517 * w32menu.c (syms_of_w32menu): Likewise.
17518
17519 * w32proc.c (syms_of_ntproc): Likewise.
17520
17521 * w32select.c (syms_of_w32select): Likewise.
17522
17523 * w32term.c (syms_of_w32term): Likewise.
17524
17525 2008-02-01 Jason Rumney <jasonr@gnu.org>
17526
17527 * w32font.c (w32font_draw): Delete brush after using it.
17528
17529 2008-02-01 Jason Rumney <jasonr@gnu.org>
17530
17531 * w32font.c (w32font_open): Don't set font_idx.
17532 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17533 to font settings.
17534 (w32font_draw): Fill background explicitly.
17535
17536 2008-02-01 Jason Rumney <jasonr@gnu.org>
17537
17538 * w32term.c (w32_initialize): Don't call w32font_initialize.
17539
17540 * w32font.c (w32font_info): Remove subranges.
17541 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17542 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17543 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17544 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17545 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17546 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17547 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17548 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17549 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17550 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17551 New symbols.
17552 (font_callback_data): New struct.
17553 (w32font_list, w32font_match): Use it.
17554 (w32font_open): Don't populate subranges.
17555 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17556 (w32font_encode_char): Always return unicode code-point as-is.
17557 (w32font_text_extents): Supply a transformation matrix to
17558 GetGlyphOutline. Never look up by glyph index. Avoid looping
17559 twice. Use unicode version of GetTexExtentPoint32 instead of
17560 glyph index version.
17561 (set_fonts_frame): Remove.
17562 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17563 set frame parameter. Use backward compatible fake foundries.
17564 Save generic family in extra slot under QCfamily. Make width slot
17565 constant. Save QCspacing value. Save list of scripts instead of
17566 binary subranges.
17567 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17568 (add_font_entity_to_list): Use font_callback_data struct. Filter
17569 unwanted fonts.
17570 (add_one_font_entity_to_list): Use font_callback_data struct.
17571 (w32_registry): Default to iso10646_1.
17572 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17573 string font registries. Don't fill in font name if it is a generic
17574 family name, fill family instead. Use spacing, family and script
17575 extra info to fill pitch, family and charset fields.
17576 (list_all_matching_fonts): Use font_callback_data struct.
17577 (unicode_range_for_char): Remove.
17578 (font_supported_scripts): New function.
17579 (w32font_initialize): Remove.
17580 (syms_of_w32font): Update which symbols are defined.
17581
17582 2008-02-01 Jason Rumney <jasonr@gnu.org>
17583
17584 * font.c (font_pixel_size): Reverse assq_no_quit args.
17585
17586 * w32term.h (FONT_WIDTH): Report max width, not average.
17587 (FONT_MAX_WIDTH): Remove.
17588 (FONT_AVG_WIDTH): New macro.
17589
17590 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17591 redefinition of FONT_WIDTH.
17592
17593 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17594 (w32_cache_char_metrics): Use FONT_WIDTH.
17595
17596 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17597
17598 2008-02-01 Jason Rumney <jasonr@gnu.org>
17599
17600 * w32font.c (w32font_open): Make lfHeight negative.
17601
17602 * w32fns.c (x_default_font_parameter): Use new style font name.
17603 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17604
17605 2008-02-01 Jason Rumney <jasonr@gnu.org>
17606
17607 * w32font.c (QCsubranges): New symbol.
17608 (w32font_open, w32font_has_char): Get subranges from subproperty
17609 of extra.
17610 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17611 (syms_of_w32font): Define :subranges symbol.
17612
17613 * font.c (font_put_extra): Expose externally.
17614
17615 * font.h (font_put_extra): Move declaration from font.c.
17616
17617 * font.c (Ffont_get): Use font driver to determine otf capability.
17618 (adjust_anchor): Check if driver defines anchor_point before using.
17619
17620 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17621 (w32font_draw): Use options.
17622 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17623 Fix detection of truetype fonts.
17624 (registry_to_w32_charset): Handle charsets other than iso8859-1
17625 expressed as lisp symbols.
17626 (w32_registry): Express charset as lisp symbol.
17627 (fill_in_logfont): Reverse pixel and point height logic.
17628 Don't set width here. Set quality to default.
17629
17630 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17631 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17632
17633 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17634 Remove redundant loop and allocation.
17635
17636 * makefile.w32-in (font.o, w32font.o): New objects.
17637 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17638 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17639
17640 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17641 STORE_XCHARB a valid l-value.
17642
17643 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17644 calculations for non-Truetype fonts.
17645 (x_draw_glyph_string): Sync with xterm.c.
17646 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17647 Remove redundant code.
17648 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17649
17650 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17651 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17652
17653 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17654 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17655
17656 * w32font.c: New file for w32 font backend.
17657
17658 2008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * term.c: Don't include "buffer.h" twice.
17661
17662 2008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * character.c (Funibyte_string): New function.
17665 (syms_of_character): Defsubr it.
17666
17667 2008-02-01 Jason Rumney <jasonr@gnu.org>
17668
17669 * w32term.c [USE_FONT_BACKEND]:
17670 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17671 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17672 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17673 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17674 (x_free_frame_resources): Sync with xterm.c.
17675
17676 2008-02-01 Andreas Schwab <schwab@suse.de>
17677
17678 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17679 char-table size.
17680
17681 2008-02-01 Kenichi Handa <handa@m17n.org>
17682
17683 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17684
17685 2008-02-01 Kenichi Handa <handa@m17n.org>
17686
17687 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17688 font_otf_gpos, add font_drive_otf.
17689
17690 * fontset.c (fontset_find_font): Pay attention to font size
17691 specified for a font.
17692 (reorder_font_vector): Check contents of font_def.
17693
17694 * font.c (struct otf_list): Delete it.
17695 (otf_list): Make it a lisp variable.
17696 (otf_open): Use lispy otf_list.
17697 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17698 (check_otf_features): New function.
17699 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17700 New functions.
17701 (font_drive_otf): New function merging font_otf_gsub and
17702 font_otf_gpos.
17703 (font_open_for_lface): New arg spec. Change argument order.
17704 (font_load_for_face): Adjust for the change of font_open_for_lface.
17705 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17706 Ffont_otf_gpos.
17707 (syms_of_font): Staticpro otf_list. Delete defsubr of
17708 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17709
17710 * xfaces.c (set_font_frame_param): Adjust for the change of
17711 font_open_for_lface.
17712
17713 * font.h (font_open_for_lface): Adjust prototype.
17714 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17715 member otf_drive.
17716 (font_otf_gsub, font_otf_gpos): Delete externs.
17717 (font_drive_otf): Extern it.
17718
17719 2008-02-01 Kenichi Handa <handa@m17n.org>
17720
17721 * font.c (font_at): If the window W is not on a window system,
17722 return Qnil.
17723
17724 * coding.c (produce_chars, encode_coding): Don't call
17725 insert_from_gap if no characters to produce.
17726
17727 2008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17730 Fclear_face_cache.
17731
17732 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17733
17734 2008-02-01 Miles Bader <miles@gnu.org>
17735
17736 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17737 Parse "--disable-font-backend" option.
17738 (standard_args): Add "--disable-font-backend" option.
17739
17740 2008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * fontset.c (fontset_find_font): New function.
17743 (fontset_font): Use fontset_find_font.
17744 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17745 Register the specified font for all Latin characters.
17746 (new_fontset_from_font): Register the specified font for all Latin
17747 characters.
17748 (dump_fontset): For a realized fontset, include the base fontset
17749 name in the returned vector.
17750
17751 2008-02-01 Kenichi Handa <handa@m17n.org>
17752
17753 * character.h (CHAR_STRING): Cast C to unsigned on calling
17754 char_string.
17755
17756 * character.c (char_string): Type of arg C changed to unsigned.
17757 Signal an error if C is an invalid character code.
17758
17759 * editfns.c (general_insert_function, Fchar_to_string):
17760 Use CHARACTERP, not INTEGERP.
17761
17762 2008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17765 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17766
17767 * regex.c (analyse_first): Fix for multibyte characters in "case
17768 charset:" and "case categoryspec:".
17769
17770 2008-02-01 Andreas Schwab <schwab@suse.de>
17771
17772 * Makefile.in (LIBES): Move standard libraries to the end.
17773
17774 2008-02-01 Kenichi Handa <handa@m17n.org>
17775
17776 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17777 nonzero, don't shrink the buffer nextb.
17778
17779 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17780
17781 * coding.c (coding_alloc_by_making_gap): New arg offset.
17782 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17783 offset.
17784 (decode_coding_iso_2022): Update coding->safe_charsets.
17785 (decode_coding_gap): Temporarily set
17786 current_buffer->text->inhibit_shrinking to 1.
17787
17788 2008-02-01 Kenichi Handa <handa@m17n.org>
17789
17790 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17791 indexing into elements of s->cmp and s->char2b.
17792
17793 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
17794
17795 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17796
17797 2008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17800 target_multibyte instead of multibyte.
17801 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17802 (bcmp_translate): Change the argument name from multibyte to
17803 target_multibyte.
17804
17805 2008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 These changes are to compile a regexp into a pattern that can be
17808 used both for multibyte and unibyte targets.
17809
17810 * Makefile.in (search.o): Depend on charset.h.
17811
17812 * character.c (multibyte_char_to_unibyte_safe): New function.
17813
17814 * search.c: Include "charset.h".
17815 (compile_pattern_1): Delete argument multibyte. Don't set
17816 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17817 (compile_pattern): Don't compare cp->buf.target_multibyte.
17818 Compare cp->buf.charset_unibyte.
17819 (compile_pattern): Set cp->buf.target_multibyte.
17820
17821 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17822
17823 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17824
17825 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17826 multibyte. Change callers.
17827 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17828 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17829 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17830 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17831 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17832 (regex_compile): Make the compiled pattern usable both for
17833 multibyte and unibyte targets.
17834 (analyse_first): Make the fastmap usable both for multibyte and
17835 unibyte targets.
17836 (TRANSLATE_VIA_MULTIBYTE): Delete.
17837 (re_match_2_internal): Pay attention to the case that the
17838 multibyteness of bufp and target may be different.
17839
17840 2008-02-01 Kenichi Handa <handa@m17n.org>
17841
17842 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17843 empty box occupy at least one column width.
17844
17845 2008-02-01 Miles Bader <miles@gnu.org>
17846
17847 * Makefile.in: Remove redundant HAVE_XFT clause.
17848
17849 2008-02-01 Kenichi Handa <handa@m17n.org>
17850
17851 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17852
17853 2008-02-01 Kenichi Handa <handa@m17n.org>
17854
17855 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17856 being nil.
17857
17858 2008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17861
17862 2008-02-01 Kenichi Handa <handa@m17n.org>
17863
17864 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17865
17866 2008-02-01 Kenichi Handa <handa@m17n.org>
17867
17868 * search.c (simple_search): Fix previous change.
17869
17870 2008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * xftfont.c (ftfont_font_format): Extern declaration.
17873
17874 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17875
17876 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17877 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17878
17879 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17880 (ftfont_font_format): Fix previous change.
17881
17882 * font.h (Ffont_xlfd_name): EXFUN it.
17883
17884 * font.c (font_parse_xlfd): Fix the array size of `f'.
17885 (register_font_driver): Use EQ to compare driver->type.
17886
17887 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17888 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17889 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17890
17891 2008-02-01 Kenichi Handa <handa@m17n.org>
17892
17893 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17894 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17895
17896 2008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * xfont.c (xfont_open): Set font->format.
17899
17900 * xftfont.c (xftfont_open): Set font->format.
17901
17902 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17903 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17904 (ftfont_open): Set font->format.
17905 (ftfont_font_format): New function.
17906
17907 * font.h (struct font): New member format.
17908
17909 * font.c (Qopentype): New variable.
17910 (syms_of_font): Defsym it.
17911 (Fquery_font): Change the format of the last element of the return
17912 value.
17913
17914 2008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17917 last resort.
17918
17919 2008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * coding.c (detect_coding_charset): Fix detection of multi-byte
17922 charset.
17923
17924 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17925
17926 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17927
17928 2008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * xdisp.c (get_next_display_element): Set it->face_id for the
17931 first component of a composition.
17932 (x_produce_glyphs): Check if the font is changed or not for composition.
17933
17934 2008-02-01 Kenichi Handa <handa@m17n.org>
17935
17936 * fontset.c (Qlatin): New variable.
17937 (syms_of_fontset): Define it as a lisp symbol.
17938 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17939
17940 2008-02-01 Kenichi Handa <handa@m17n.org>
17941
17942 * font.c (font_unparse_fcname): Pay attention to the case that
17943 some of font property is a null string.
17944
17945 2008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * term.c: Include "composite.h".
17948 (encode_terminal_code): Output all components of composition.
17949 Check the size of encode_terminal_src.
17950 (produce_glyphs): For composition, call produce_composite_glyph.
17951 (append_composite_glyph, produce_composite_glyph): New functions.
17952
17953 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17954 is not found, get font_info from the current ascii face.
17955
17956 2008-02-01 Kenichi Handa <handa@m17n.org>
17957
17958 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17959 buffer-file-name to Qnil before calling insert_from_buffer.
17960
17961 * font.c (font_unparse_fcname): Pay attention to the case that
17962 foundry is a null string.
17963
17964 2008-02-01 Kenichi Handa <handa@m17n.org>
17965
17966 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17967
17968 * font.c (Qunicode_sip): New variable.
17969 (syms_of_font): Declare it as a Lisp symbol.
17970
17971 * font.h (Qunicode_sip): Extern it.
17972
17973 2008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * composite.c (get_composition_id): Pay attention to TAB component.
17976
17977 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17978 TAB. Adjust for the change of s->char2b which always points to
17979 the first element of allocated memory.
17980
17981 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17982
17983 * xdisp.c (handle_composition_prop): Set it->c to the first
17984 non-TAB component.
17985 (fill_composite_glyph_string): Change argument.
17986 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17987 (x_produce_glyphs): Fix handling of left/right padding.
17988
17989 2008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * coding.c (detect_coding_system): Fix for handling off
17992 inhibit_iso_escape_detection. Fix for the case that no coding
17993 system is defined for a specific coding category.
17994
17995 2008-02-01 Kenichi Handa <handa@m17n.org>
17996
17997 * font.c (font_matching_entity): Delete unused local var.
17998
17999 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18000 opening a font.
18001
18002 * fileio.c (Finsert_file_contents): On recovering a file, assume
18003 Unix-like eol.
18004 (choose_write_coding_system): On auto-saving a file, force
18005 Unix-like eol.
18006
18007 * coding.c (setup_coding_system): Fix setting of
18008 coding->common_flags based on eol_type.
18009 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18010 inherit from it.
18011
18012 2008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * alloc.c (NSTATICS): Increas to 0x600.
18015
18016 2008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18019 (ftfont_list): Don't check :name property.
18020 (ftfont_match): New function.
18021 (ftfont_pattern_entity): If the pattern doesn't contain
18022 FC_SPACING, don't assume FC_MONO.
18023
18024 * font.h (struct font_driver): New member `match'.
18025 (font_update_drivers): Adjust prototype.
18026
18027 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18028 property of FONT.
18029 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18030 them unconditionally.
18031 (font_matching_entity): New function.
18032 (font_open_by_name): Try font_matching_entity if exact match is
18033 not found.
18034 (font_update_drivers): Delete the arg FONT. Return a list of
18035 actually used backends. Don't free faces, font caches here.
18036 Don't store data in frame parameters. Don't call x_set_font.
18037 (Ffont_spec): Store :name property as is.
18038 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18039 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18040 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18041 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18042 Call font->driver->otf_gsub instead of font_otf_gsub.
18043
18044 * frame.c (x_set_font_backend): Do more works that were done in
18045 font_update_drivers before.
18046
18047 * xfont.c (xfont_match): New function.
18048 (xfont_driver): Set xfont_driver.match to xfont_match.
18049 (xfont_draw): Set font in GC if necessary.
18050
18051 * ftxfont.c (ftxfont_match): New function.
18052 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18053
18054 * xftfont.c (xftfont_match): New function.
18055 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18056
18057 2008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * font.h (struct font): New member scalable.
18060 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18061 (font_otf_gsub): Adjust prototype.
18062
18063 * font.c (font_otf_capability): Fix handling of the default langsys.
18064 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18065 Check the contents of SPEC.
18066 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18067 (check_gstring): New function.
18068 (REPLACEMENT_CHARACTER): New macro.
18069 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18070 glyph codes of GSTRING.
18071 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18072 (font_prepare_composition): Set cmp->glyph_len.
18073 (font_open_entity): Set font->scalable.
18074 (Ffont_get): Handle :otf property.
18075 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18076 functions.
18077 (Fquery_font): Use font->font.full_name.
18078 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18079 Sfont_otf_alternates.
18080
18081 * ftfont.c (ftfont_open): Set font->font.full_name and
18082 font->font.name properly. Fix calculation of font->font.height
18083 and font->min_width.
18084
18085 * ftxfont.c (ftxfont_create_gcs): New function.
18086 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18087 (ftxfont_draw_backgrond): Fix filling region.
18088 (ftxfont_default_fid): New function.
18089 (ftxfont_open): Set xfont->fid to the return value of
18090 ftxfont_default_fid.
18091 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18092 (ftxfont_done_face): Free only GCs that are created by
18093 ftxfont_create_gcs.
18094 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18095
18096 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18097 Clip to src->width, etc (not src->clip_XXX).
18098
18099 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18100 FontBackend frame parameter.
18101
18102 2008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * font.h (struct font_driver_list): New member `on'.
18105 (Fclear_font_cache): EXFUN it.
18106 (font_update_drivers): Extern it.
18107
18108 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18109 (font_list_entities): Check driver_list->on.
18110 (register_font_driver): Initalize `on' member to 0.
18111 (font_update_drivers): New function.
18112 (Fclear_font_cache): Check driver_list->on.
18113
18114 * frame.h (Qfont_backend): Extern it.
18115 (x_set_font_backend): Extern it.
18116
18117 * frame.c (Qfont_backend): New variable.
18118 (frame_parms): New element for font-backend.
18119 (x_set_font_backend): New function.
18120
18121 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18122 FontBackend frame parameter.
18123 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18124 x_set_font_backend.
18125
18126 * xfont.c (xfont_list): Don't try listing by :name property if the
18127 name is not for XLFD.
18128
18129 2008-02-01 Kenichi Handa <handa@m17n.org>
18130
18131 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18132 (LGLYPH_SET_TO): New macros.
18133 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18134 element of G is vector or not.
18135 (font_at): Extern it.
18136
18137 * font.c: Include window.h.
18138 (font_lispy_object): New function.
18139 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18140 end of valid glyph.
18141 (font_close_object): Fix getting (struct font *).
18142 (font_at): New function.
18143 (Ffont_get): If FONT is a font-object, get entity from it.
18144 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18145 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18146 range check.
18147 (Ffont_at): New function.
18148 (syms_of_font): Defsubr Sfont_at.
18149
18150 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18151 before the entry for Qcomposition.
18152 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18153 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18154 the font in gstring.
18155 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18156 LGLYPH_FORM (g) to detect the end of valid glyph.
18157 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18158 we are composing with gstring.
18159
18160 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18161 Check if adjustment is vector or not.
18162
18163 * Makefile.in (font.o): Make it depends on window.h.
18164
18165 2008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18168 adjustment is vector or not.
18169
18170 2008-02-01 Miles Bader <miles@gnu.org>
18171
18172 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18173
18174 2008-02-01 Kenichi Handa <handa@m17n.org>
18175
18176 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18177 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18178 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18179
18180 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18181 (DEVICE_DELTA): Fix typo.
18182 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18183 LGLYPH format.
18184
18185 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18186 the change of LGLYPH format.
18187
18188 2008-02-01 Kenichi Handa <handa@m17n.org>
18189
18190 * ftfont.c (ftfont_list): Fix typo.
18191 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18192
18193 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18194
18195 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18196
18197 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18198 xftface_info is non-NULL.
18199
18200 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18201
18202 * ftfont.c (ftfont_list): Move misplaced #endif.
18203
18204 2008-02-01 Kenichi Handa <handa@m17n.org>
18205
18206 * ftfont.c (ftfont_list): Pay attention to the case that
18207 FC_CAPABILITY is not defined.
18208
18209 2008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * xftfont.c (xftfont_open): Set charset related members to -1.
18212
18213 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18214 QCname.
18215 (ftfont_open): Set charset related members to -1.
18216
18217 * fontset.c (Votf_script_alist): New variable.
18218 (syms_of_fontset): Initialize it.
18219 (fontset_font): Delete unused variable.
18220
18221 * fontset.h (Votf_script_alist): Extern it.
18222
18223 * font.c (font_find_for_lface): Optimize code.
18224
18225 * font.h (font_close_object, font_merge_old_spec): Extern them.
18226
18227 2008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18230 (syms_of_font): Initialize them.
18231 (font_pixel_size): Allow float value in dpi.
18232 (font_prop_validate_type): Delete.
18233 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18234 Change caller.
18235 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18236 (font_prop_validate_extra): Delete.
18237 (font_prop_validate_spacing): New function.
18238 (font_property_table): Add elements for all known properties.
18239 (get_font_prop_index): Rename from check_font_prop_name. New
18240 argument FROM. Change caller.
18241 (font_prop_validate): Validate all known properties.
18242 (font_put_extra): Delete argument force. Change caller.
18243 (font_expand_wildcards): Make it static. Fix the way of shrinking
18244 the possible range.
18245 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18246 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18247 Change caller.
18248 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18249 (font_parse_fcname): Delete argument merge. Fix parsing of point
18250 size. Don't validate properties values here. Change caller.
18251 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18252 (font_open_by_name): Delete unused variable.
18253 (Ffont_spec): Likewise. Validate property values.
18254 (Ffont_match_p): New function.
18255
18256 * font.h (QCscalable): Extern it.
18257 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18258
18259 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18260
18261 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18262 (xfont_list_pattern): New function.
18263 (xfont_list): Use xfont_list_pattern.
18264
18265 2008-02-01 Kenichi Handa <handa@m17n.org>
18266
18267 * font.h (Flist_fonts): EXFUN it.
18268
18269 2008-02-01 Jason Rumney <jasonr@gnu.org>
18270
18271 * w32term.c (w32_initialize): Add back smoothing_type and
18272 smoothing_enabled definitions.
18273
18274 2008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18277 s->face->font on determining underline position.
18278
18279 2008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18282 (font_has_char): Accept font-object too.
18283 (font_find_for_lface): Try at first with a size specified in face.
18284
18285 2008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18288 font_open_by_name.
18289
18290 2008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * font.h (QCspacing, QCdpi): Extern them.
18293 (enum font_spacing): New enum.
18294 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18295
18296 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18297 (QCspacing, QCdpi): New variables.
18298 (syms_of_font): Initialize them.
18299 (font_pixel_size): New function.
18300 (font_put_extra): New function.
18301 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18302 in FONT_EXTRA.
18303 (font_parse_fcname): Handle enumerated values (e.g. bold).
18304 Fix handling font size. Add QCname property that contains only
18305 unknown properties.
18306 (font_score): Change argument. Change caller. Pay attention to
18307 FONT_PIXEL_SIZE_QUANTUM.
18308 (font_sort_entites, font_list_entities, font_find_for_lface)
18309 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18310 (Ffont_spec): Add QCname property that contains only unknown properties.
18311
18312 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18313 include weight in listing pattern, instead check weight of each
18314 listed font. Don't include scalable in pattern. Pay attention to
18315 FONT_PIXEL_SIZE_QUANTUM.
18316
18317 2008-02-01 Kenichi Handa <handa@m17n.org>
18318
18319 * font.c (font_parse_fcname): Fix parsing of point-size.
18320 (font_unparse_fcname): Produce symbolic names for style properties.
18321 (font_list_entities): Handle float size correctly.
18322 (font_open_by_name): Prefer `normal' property values if the name
18323 doesn't specify them.
18324
18325 * fontset.c (Finternal_char_font): Use font_get_name, not
18326 Ffont_xlfd_name.
18327
18328 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18329 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18330 pattern. Don't force scalable.
18331
18332 * xftfont.c (xftfont_open): For generating a name, start from
18333 96-byte buffer.
18334
18335 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18336
18337 * frame.h (x_new_fontset2): Fix prototype.
18338
18339 2008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * font.h (struct font_driver): Delete member parse_name.
18342 (font_match_p, font_get_spec, font_parse_fcname)
18343 (font_unparse_fcname): Extern them.
18344 (font_get_name): Adjust prototype.
18345
18346 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18347 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18348 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18349 unnecessary checks for weight, slant, and swidth.
18350 (font_parse_fcname): New function.
18351 (font_unparse_fcname): New function.
18352 (font_parse_name): New function.
18353 (font_match_p): New function.
18354 (font_get_name): Change return value to Lisp string.
18355 (font_get_spec): New function.
18356 (Qunspecified, Qignore_defface): Don't extern them.
18357 (font_find_for_lface): Assume that LFACE is fully specified.
18358 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18359 object, use it for FACE.
18360 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18361 driver->parse_name.
18362 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18363
18364 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18365 prototype.
18366
18367 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18368 argument F. Don't call Fnew_fontset. Instead, directly call
18369 make_fontset.
18370
18371 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18372
18373 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18374 of x_new_fontset2.
18375
18376 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18377 (Qsans__serif): New variables.
18378 (ftfont_generic_family_list): New variable.
18379 (syms_of_ftfont): Initialize the above variables.
18380 (ftfont_pattern_entity): Delete argument NAME.
18381 (ftfont_list_generic_family): New function.
18382 (ftfont_parse_name): Delete this function.
18383 (ftfont_list): Try generic family only when FcFontList found no font.
18384 (ftfont_list_family): Fix args to FcObjectSetBuild.
18385
18386 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18387 object in attrs[LFACE_FONT_INDEX].
18388 (set_lface_from_font_name): Cancel all changes for font-backend.
18389 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18390 function.
18391 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18392 font object in QCfont attribute.
18393 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18394 (realize_default_face) [USE_FONT_BACKEND]: Call
18395 set_lface_from_font_and_fontset.
18396
18397 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18398 "fixed", and signal error here if no suitable font was found.
18399
18400 * xfont.c (xfont_parse_name): Delete this function.
18401
18402 * xftfont.c (xftfont_open): Change coding style of error
18403 handling. Generate fontconfig's fontname pattern.
18404
18405 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18406 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18407
18408 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18409 Both args FONTSET and FONT_OBJECT must be existing ones.
18410
18411 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18412
18413 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18414
18415 2008-02-01 Kenichi Handa <handa@m17n.org>
18416
18417 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18418
18419 * font.h (struct font): Fix typo.
18420
18421 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18422 XLFD_XXX_INDEX.
18423 (enum xlfd_field_mask): New enum.
18424 (intern_font_field): Changed argument. Change caller. If digits
18425 are followed by non-digits, return a symbol.
18426 (font_expand_wildcards): New function.
18427 (font_parse_xlfd): Fix wildcard handling.
18428 (Ffont_spec): If :name is specified, reflect the info in the other
18429 properties.
18430
18431 * ftfont.c (ftfont_pattern_entity): Fix typo.
18432 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18433 locale.
18434
18435 2008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18438
18439 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18440 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18441 registry doesn't specify encoding part.
18442 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18443 (font_open_by_name): At first try parsing the name.
18444 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18445 as Lisp symbols.
18446
18447 * fontset.c (reorder_font_vector): Pay attention to the case that
18448 the 3rd element of font_def is nil.
18449 (fontset_font): For the default fontset, append one more fontset
18450 elements for a script-based font specification. Don't add script
18451 attribute on finding a font.
18452 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18453 font name.
18454 (fontset_ascii_font): If a font can't be opened, return nil.
18455
18456 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18457 (ftfont_pattern_entity): New function.
18458 (ftfont_get_cache): Assume that freetype_font_cache is already
18459 initialized.
18460 (ftfont_list): Handle the case that a file is specified in font
18461 name. Use ftfont_pattern_entity to generate entities.
18462 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18463 (syms_of_ftfont): Initialize freetype_font_cache.
18464
18465 * xftfont.c (xftfont_open): Make the font name fontconfig's
18466 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18467 (xftfont_close): Free font->font.name if not NULL.
18468
18469 * xfont.c (xfont_list): If script is specified for a font, return
18470 null_vector.
18471 (xfont_list_family): Declare argument type.
18472
18473 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18474 name, set LFACE_FONT (lface) to nil.
18475
18476 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18477 return Qnil.
18478
18479 2008-02-01 Kenichi Handa <handa@m17n.org>
18480
18481 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18482 (standard_args): Add "-enable-font-backend".
18483
18484 2008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18487 (struct xftdraw_list, xftdraw_list): Delete them.
18488 (register_xftdraw, check_xftdraw): Delete them.
18489 (xftfont_prepare_face): Don't call register_xftdraw.
18490 (xftfont_done_face): Don't call check_xftdraw.
18491 (xftfont_draw): Get background color only when with_background is
18492 nonzero.
18493
18494 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18495
18496 2008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 These changes are for the new font handling codes.
18499
18500 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18501 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18502 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18503 (FONTSRC, FONTOBJ): New variables.
18504 (obj): Add $(FONTOBJ).
18505 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18506 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18507 @LIBOTF_LIBS@.
18508 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18509 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18510
18511 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18512
18513 * character.h (Vscript_representative_chars): Extern it.
18514
18515 * character.c (Vscript_representative_chars): New variable.
18516 (syms_of_character): Declare it as a Lisp variable.
18517
18518 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18519 enable_font_backend is nonzero, accept the composition method
18520 COMPOSITION_WITH_GLYPH_STRING.
18521
18522 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18523 enumeration COMPOSITION_WITH_GLYPH_STRING.
18524
18525 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18526 members clip_x, clip_y, clip_width, and clip_height.
18527 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18528
18529 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18530 --enable-font-backend. Call syms_of_font.
18531
18532 * fns.c (assoc_no_quit): New function.
18533
18534 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18535 (face_for_font, new_fontset_from_font)
18536 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18537
18538 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18539 (fontset_font, fontset_ascii, face_for_char)
18540 (make_fontset_for_ascii_face, Ffont_info)
18541 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18542 is nonzero, use font-backend mechanism.
18543 (find_font_encoding): Make it non-static.
18544 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18545 New functions.
18546
18547 * frame.h (struct frame): New members resx and resy.
18548 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18549 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18550
18551 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18552 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18553
18554 * lisp.h (assoc_no_quit): Extern it.
18555
18556 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18557 Through out the file, use FONT_INFO_FROM_FACE instead of
18558 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18559 rif->per_char_metric.
18560 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18561 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18562 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18563 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18564 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18565 nonzero, use font-backend mechanism.
18566 (get_per_char_metric): New function.
18567
18568 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18569 (set_lface_from_font_name)
18570 (set_font_frame_param, free_realized_face)
18571 (prepare_face_for_display, clear_face_gcs)
18572 (Finternal_set_font_selection_order, realize_x_face)
18573 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18574 font-backend mechanism.
18575 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18576 (load_face_font) [USE_FONT_BACKEND]: Abort.
18577 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18578 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18579
18580 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18581 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18582 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18583 nonzero, register all available font drivers. Call
18584 x_default_font_parameter for deciding a font.
18585 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18586
18587 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18588 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18589 (x_set_glyph_string_clipping_exactly)
18590 (x_compute_glyph_string_overhangs)
18591 (x_draw_glyph_string_foreground)
18592 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18593 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18594 enable_font_backend is nonzero, use font-backend mechanism.
18595 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18596
18597 2008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18600 system_eol_type.
18601 (syms_of_coding): Initialize system_eol_type.
18602
18603 * process.c (Fset_process_coding_system): Inherit system's eol
18604 format if necessary.
18605
18606 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18607
18608 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18609
18610 2008-02-01 Kenichi Handa <handa@m17n.org>
18611
18612 * coding.c (decode_eol): Pay attention to buffer relocation in
18613 del_range_2.
18614 (decode_coding): Call decode_eol before restoring undo_list.
18615
18616 2008-02-01 Kenichi Handa <handa@m17n.org>
18617
18618 * charset.c (Fdefine_charset_internal): Fix setting of
18619 emacs_mule_bytes.
18620
18621 2008-02-01 Kenichi Handa <handa@m17n.org>
18622
18623 * keyboard.c (read_char): Check if C is a character or not before
18624 looking up Vkeyboard_translate_table.
18625
18626 2008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18629 condition to terminate the loop.
18630
18631 2008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * coding.c (produce_composition): Compare charbuf[i] instead of
18634 args[i] against 0.
18635 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18636
18637 2008-02-01 Kenichi Handa <handa@m17n.org>
18638
18639 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18640 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18641 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18642 detect_coding.
18643 (emacs_mule_char): Handle old style (Emacs 20) component character
18644 of a composition.
18645 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18646 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18647 composition rule.
18648 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18649
18650 2008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * coding.c (encode_coding_ccl): Allocate destination dynamically
18653 when necessary.
18654
18655 2008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18658 the loop. When quitted, show a proper error message.
18659
18660 2008-02-01 Kenichi Handa <handa@m17n.org>
18661
18662 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18663 src->clip_head and src->clip_tail temporarily instead of src->hl.
18664
18665 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18666 character sequence.
18667 (Fccl_execute_on_string): Use ASET, not XSET.
18668
18669 2008-02-01 Kenichi Handa <handa@m17n.org>
18670
18671 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18672
18673 2008-02-01 Kenichi Handa <handa@m17n.org>
18674
18675 * coding.c (decode_coding): Fix the condition of terminating the
18676 decoding loop.
18677
18678 2008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * data.c (Faset): On setting a character bigger than 255 in a
18681 unibyte string, signal an error instead of make the string multibyte.
18682
18683 2008-02-01 Kenichi Handa <handa@m17n.org>
18684
18685 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18686 made by a mapping table.
18687
18688 2008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18691 not.
18692 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18693 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18694
18695 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18696 s->face is NULL or not.
18697
18698 2008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18701 (x_draw_glyph_string): Fix drawing of right_overhang and
18702 left_overhang around/on cursor.
18703
18704 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18705
18706 2008-02-01 Kenichi Handa <handa@m17n.org>
18707
18708 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18709
18710 2008-02-01 Kenichi Handa <handa@m17n.org>
18711
18712 * coding.c (Fdefine_coding_system_internal)
18713 (Fdefine_coding_system_alias): Avoid a duplicated element in
18714 Vcoding_system_alist.
18715
18716 2008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18719
18720 * coding.c (Qcoding_system_define_form): New variable.
18721 (syms_of_coding): Intern and staticpro it.
18722 (Fcoding_system_p): Check Qcoding_system_define_form.
18723 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18724
18725 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18726 Fcoding_system_p.
18727 (CHECK_CODING_SYSTEM): If ID is not available, call
18728 Fcheck_coding_system.
18729 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18730 Try also Fcheck_coding_system.
18731
18732 2008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * coding.c (code_conversion_restore): GCPRO arg.
18735
18736 2008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * character.c (lisp_string_width): Check multibyteness of STRING.
18739
18740 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18741
18742 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18743 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18744 (decode_mac_font_name): Use decode_coding_c_string instead of
18745 decode_coding.
18746 (x_load_font): Initialize fontp->fontset to -1. Set
18747 fontp->encoding_type.
18748
18749 2008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * search.c (search_buffer): Give up BM search on case-fold-search
18752 if one of a target character has a case-equivalence of different
18753 byte length even if that target charcter is an ASCII.
18754 (simple_search): Fix calculation of byte length of matched text.
18755 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18756
18757 2008-02-01 Kenichi Handa <handa@m17n.org>
18758
18759 * coding.c (decode_coding): Fix handling of invalid bytes.
18760
18761 2008-02-01 Kenichi Handa <handa@m17n.org>
18762
18763 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18764 Unicode characters.
18765
18766 2008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * coding.c (encode_coding_object): If a pre-write-conversion
18769 function makes a new buffer, kill it.
18770
18771 2008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * coding.c (QCascii_compatible_p): New variable.
18774 (syms_of_coding): Initialize it.
18775 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18776 calling string_char.
18777 (record_conversion_result): Add `default:' case.
18778 (coding_charset_list): Delete unused variable `coding_type'.
18779 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18780 property in the plist of the coding system.
18781 (Fcoding_system_put): Check QCascii_compatible_p.
18782
18783 2008-02-01 Miles Bader <miles@gnu.org>
18784
18785 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18786 removed calculation of frame `f', as it's now used.
18787
18788 2008-02-01 Kenichi Handa <handa@m17n.org>
18789
18790 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18791 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18792 (UNIDATA): New variable.
18793 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18794 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18795 $(RUN_TEMACS) unconditionally.
18796
18797 2008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18800 (admindir): New variable.
18801 ($(lispsource)international/charprop.el): New target.
18802
18803 2008-02-01 Miles Bader <miles@gnu.org>
18804
18805 * character.c (chars-in-region): Remove obsolete function.
18806 (syms_of_character): Remove its initialization.
18807
18808 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18809
18810 * w32select.c (validate_coding_system)
18811 (setup_windows_coding_system): New functions.
18812 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18813 setup_windows_coding_system.
18814 (setup_config, Fw32_get_clipboard_data): Use
18815 validate_coding_system.
18816 (Fx_selection_exists): Move call to setup_config to a place
18817 where signals are allowed.
18818
18819 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18820 (Fcheck_coding_system): Add declarations.
18821
18822 2008-02-01 Kenichi Handa <handa@m17n.org>
18823
18824 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18825
18826 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18827
18828 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18829 string as the second argument for x_new_fontset.
18830
18831 2008-02-01 Kenichi Handa <handa@m17n.org>
18832
18833 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18834 (encode_coding_object): Use safe_call instead of call2.
18835
18836 2008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18839
18840 * Makefile.in (lisp): Include charprop.el.
18841
18842 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18843
18844 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18845 Not sure if it's unnecessary.
18846
18847 2008-02-01 Steven Tamm <steventamm@mac.com>
18848
18849 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18850 some possibly unnecessary fontset checking code that crashed
18851 when creating a new frame.
18852
18853 2008-02-01 Kenichi Handa <handa@m17n.org>
18854
18855 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18856 lookup_face.
18857
18858 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18859
18860 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18861
18862 2008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18865 (coding_charset_list): New function.
18866
18867 * coding.h (coding_charset_list): Extern it.
18868
18869 2008-02-01 Kenichi Handa <handa@m17n.org>
18870
18871 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18872 concatenation of family and registry.
18873
18874 2008-02-01 Kenichi Handa <handa@m17n.org>
18875
18876 * character.h (BYTE8_STRING): Fix typo.
18877
18878 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18879 string to multibyte (sync to HEAD).
18880
18881 * casefiddle.c (casify_region): Handle changes in byte-length
18882 using replace_range_2 (sync to HEAD).
18883
18884 2008-02-01 Andreas Schwab <schwab@suse.de>
18885
18886 * chartab.c (map_char_table): GCPRO table and arg.
18887
18888 2008-02-01 Kenichi Handa <handa@m17n.org>
18889
18890 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18891 already at limit.
18892
18893 2008-02-01 Kenichi Handa <handa@m17n.org>
18894
18895 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18896 instead of fast_c_string_match_ignore_case.
18897 (find_font_encoding): Change argument to Lisp_Object. Use
18898 fast_string_match_ignore_case instead of
18899 fast_c_string_match_ignore_case. Change caller.
18900
18901 2008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * xdisp.c (get_next_display_element): In unibyte case, decide to
18904 display in octal form by checking a character by
18905 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18906
18907 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18908
18909 * character.c (unibyte_has_multibyte_table): New variable.
18910
18911 * character.h (unibyte_has_multibyte_table): Extern it.
18912 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18913
18914 2008-02-01 Kenichi Handa <handa@m17n.org>
18915
18916 * coding.c (encode_coding_iso_2022): Fix handling of charset
18917 annotation.
18918
18919 2008-02-01 Kenichi Handa <handa@m17n.org>
18920
18921 * coding.c (setup_coding_system): If coding_system is nil, use
18922 Qundecided.
18923 (Fterminal_coding_system): Return nil if terminal coding system is
18924 `undecided'.
18925 (syms_of_coding): Define coding-system `undecided' here. Setup
18926 terminal_coding as `undecided'.
18927
18928 2008-02-01 Kenichi Handa <handa@m17n.org>
18929
18930 * xdisp.c (message_dolog, set_message_1): Call
18931 unibyte_char_to_multibyte with arg type int.
18932
18933 * lread.c (read1): Fix reading of a char-table.
18934
18935 * print.c (print_object): Include sub char-table in circularities
18936 detection.
18937
18938 2008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18941 Append the found sequences in car of ARGS instead of prepending.
18942
18943 2008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * fileio.c (report_file_error): Make a unibyte string from
18946 strerror (errorno).
18947 (Fsubstitute_in_file_name): Fix the arg to
18948 unibyte_char_to_multibyte. It is evaluated twice.
18949
18950 2008-02-01 Kenichi Handa <handa@m17n.org>
18951
18952 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18953
18954 2008-02-01 Kenichi Handa <handa@m17n.org>
18955
18956 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18957 BOM is not found.
18958 (detect_coding, detect_coding_system): Optimization for ISO-2022
18959 when no 8-bit data is found.
18960
18961 2008-02-01 Jason Rumney <jasonr@gnu.org>
18962
18963 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18964
18965 2008-02-01 Kenichi Handa <handa@m17n.org>
18966
18967 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18968 CHARS.
18969
18970 2008-02-01 Steven Tamm <steventamm@mac.com>
18971
18972 * macterm.c (mac_encode_char): Add charset argument and update
18973 to use encoding_type.
18974 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18975 switch to pure fontset.
18976 (decode_mac_font_name): Temporarily remove decoding.
18977 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18978 (x_load_font): Temporarily remove encoding.
18979
18980 2008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * xfaces.c (Fface_font): If frame is not on a window system,
18983 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18984 refer to face->font.
18985 (split_font_name_into_vector, build_font_name_from_vector)
18986 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18987 when HAVE_WINDOW_SYSTEM is defined.
18988
18989 2008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18992 (x_produce_glyphs): Fix setting of members of cmp in case
18993 cmp->glyph_len is zero.
18994
18995 * fontset.c (Fset_fontset_font): Fix docstring.
18996 (Ffontset_info): Make it backward compatible. New arg ALL.
18997
18998 2008-02-01 Kim F. Storm <storm@cua.dk>
18999
19000 * process.c (read_process_output): Grow decoding_buf when needed;
19001 this could cause a crash in allocate_string and compact_small_strings.
19002
19003 2008-02-01 Kenichi Handa <handa@m17n.org>
19004
19005 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19006
19007 2008-02-01 Kenichi Handa <handa@m17n.org>
19008
19009 * coding.c (setup_coding_system): Set coding->common_flags
19010 correctly for raw-text.
19011 (consume_chars): On encoding unibyte text by raw-text, don't check
19012 multibyte form.
19013 (encode_coding): On encoding by raw-text, never use translation tables.
19014
19015 * fileio.c (e_write): Short cut for the case of no encoding.
19016
19017 2008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * coding.c (detect_coding, detect_coding_system): Delete unused
19020 variables.
19021
19022 2008-02-01 Kenichi Handa <handa@m17n.org>
19023
19024 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19025 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19026
19027 2008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * coding.c (Ffind_coding_systems_region_internal): Include
19030 raw-text and no-conversion in the result.
19031
19032 2008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19035 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19036 FONT_DEF.
19037 (font_def_arg, add_arg, from_arg, to_arg): New args.
19038 (set_fontset_font): Change argument.
19039 (Fset_fontset_font): Fix for the case that TARGET is a script
19040 name and charset name.
19041 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19042
19043 2008-02-01 Kenichi Handa <handa@m17n.org>
19044
19045 * fontset.c (fontset_font): Rename from fontset_face. Change return
19046 value.
19047 (face_suitable_for_char_p, face_for_char): Adjust for the change
19048 of fontset_font.
19049 (make_fontset_for_ascii_face): Fix setting of the fontset element
19050 for ASCII.
19051 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19052 to get a font name.
19053 (Ffontset_info): Adjust for the change of fontset_font.
19054
19055 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19056
19057 * character.h (LEADING_CODE_LATIN_1_MIN)
19058 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19059
19060 2008-02-01 Kenichi Handa <handa@m17n.org>
19061
19062 * editfns.c (check_translation): New function.
19063 (Ftranslate_region_internal): Handle M:N mapping.
19064
19065 2008-02-01 Kenichi Handa <handa@m17n.org>
19066
19067 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19068
19069 2008-02-01 Kenichi Handa <handa@m17n.org>
19070
19071 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19072 goto invalid_code.
19073 (decode_coding_iso_2022): Fix handling of invalid designation.
19074
19075 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19076 after calling code_conversion_save.
19077
19078 2008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19081
19082 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19083
19084 * fontset.c: Include "intervals.h".
19085 (fontset_face): Fix comparing of Lisp_Objects.
19086 (free_face_fontset, new_fontset_from_font_name): Fix
19087 Lisp_Object/int mixup.
19088
19089 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19090
19091 * coding.c: Add many prototypes for static functions.
19092 (get_translation_table): Allow max_lookup to be NULL.
19093 (decode_coding, Ffind_coding_systems_region_internal)
19094 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19095 get_translation_table with max_lookup NULL.
19096
19097 2008-02-01 Kenichi Handa <handa@m17n.org>
19098
19099 * coding.c (get_translation_table): Declare it as Lisp_Object.
19100 (LOOKUP_TRANSLATION_TABLE): New macro.
19101 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19102 instead of CHAR_TABLE_REF.
19103
19104 2008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19107 annotation data format.
19108 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19109 Change arguments FROM and TO to single argument NCHARS. Change caller.
19110 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19111 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19112 (decode_coding_ccl, decode_coding_charset): Pay attention to
19113 coding->charbuf_used.
19114 (get_translation): New function.
19115 (produce_chars): New arguments translation_table and last_block.
19116 Translate characters here. Return number of carryover chars.
19117 Change caller.
19118 (produce_composition): New argument pos. Change caller.
19119 Adjust for the change of annotation data format.
19120 (produce_charset, produce_annotation): Likewise.
19121 (decode_coding, encode_coding): Don't call translate_chars.
19122 (consume_chars): New arg translation_table. Change caller.
19123 (translate_chars): Delete.
19124 (syms_of_coding): Make translation-table's number of extra slots 2.
19125
19126 2008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * search.c (simple_search): Fix setting this_pos_byte in backward
19129 search.
19130
19131 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19132 byte sequence.
19133 (detect_coding_ccl): Fix setting of the variable valids.
19134
19135 2008-02-01 Kenichi Handa <handa@m17n.org>
19136
19137 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19138
19139 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19140
19141 * editfns.c (Ftranslate_region_internal): Rename from
19142 Ftranslate_region. Accept a char-table in TABLE.
19143 (syms_of_editfns): Defsubr Stranslate_region_internal.
19144
19145 * xfaces.c (set_lface_from_font_name): If a font is specified for
19146 a frame, generate a fontset from the font.
19147 (build_scalable_font_name): If the scalable font is requested for
19148 a specific size, don't change that size.
19149 (try_font_list): Try a scalable font also in the case that a
19150 pattern string is specified.
19151
19152 2008-02-01 Kenichi Handa <handa@m17n.org>
19153
19154 * xfaces.c (Fface_font): New optional arg CHARACTER.
19155
19156 2008-02-01 Kenichi Handa <handa@m17n.org>
19157
19158 * charset.h (CHARSET_OFFSET): New macro.
19159
19160 2008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19163
19164 * fontset.c (fontset_face): Handle the case that repertory is a
19165 char-table.
19166 (find_font_encoding): Return nil for unknown encoding.
19167 (Fset_fontset_font): Ignore a font of unknown encoding.
19168
19169 2008-02-01 Kenichi Handa <handa@m17n.org>
19170
19171 * keymap.c (describe_vector): Handle default value of a char table.
19172
19173 * fontset.c (fontset_face): Handle fallback fonts correctly.
19174 (Ffontset_info): Return infomation about fallback fonts.
19175
19176 2008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 * fontset.c (FONTSET_DEFAULT): New macro.
19179 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19180 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19181 the case that it is nil.
19182 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19183 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19184
19185 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19186 subset or superset.
19187
19188 2008-02-01 Kenichi Handa <handa@m17n.org>
19189
19190 * emacs.c (main): Call init_charset after syms_of_XXX.
19191
19192 * charset.c (Vcharset_map_directory): Delete.
19193 (Vcharset_map_path): New variable.
19194 (load_charset_map_from_file): Use Vcharset_map_path instead.
19195 (init_charset): Initialize Vcharset_map_path.
19196 (syms_of_charset): Delete declaration of "charset-map-directory",
19197 add declaration of "charset-map-path".
19198
19199 2008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19202 ASCII only string.
19203
19204 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19205
19206 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19207 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19208
19209 2008-02-01 Kenichi Handa <handa@m17n.org>
19210
19211 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19212
19213 * coding.c (QCmnemonic, QCdefalut_char)
19214 (QCdecode_translation_table, QCencode_translation_table)
19215 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19216 (get_translation_table): Return a list of translation tables if
19217 necessary.
19218 (decode_coding): Call get_translation_table with ENCODEP 0.
19219 (char_encodable_p): If translation_table is non-nil, always call
19220 translate_char.
19221 (Fdefine_coding_system_internal): Accept list of translation
19222 tables as :encode-translation-table and :decode-translation-table.
19223 (Fcoding_system_put): New function.
19224 (syms_of_coding): Declare new symbols. Defsubr
19225 Scoding_system_put.
19226 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19227 typically JISX0212.
19228
19229 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19230 when the charset is superset type.
19231
19232 * character.c (translate_char): Accept list of translation tables.
19233
19234 2008-02-01 Kenichi Handa <handa@m17n.org>
19235
19236 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19237 (CODING_ATTR_TRANS_TBL): New macro.
19238
19239 * coding.c (get_translation_table): New function.
19240 (translate_chars): Fix the bug of skipping annotation data.
19241 (decode_coding, encode_coding): Utilize get_translation_table.
19242 (char_encodable_p, Funencodable_char_position): Translate char if
19243 necessary.
19244 (Ffind_coding_systems_region_internal)
19245 (Fcheck_coding_systems_region): Setup translation table for encode
19246 in a coding system attribute vector in advance.
19247 (Fdefine_coding_system_internal): Allow a symbol as translation
19248 table. For shift-jis type coding system, allow 4th charset.
19249
19250 2008-02-01 Kenichi Handa <handa@m17n.org>
19251
19252 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19253
19254 * xdisp.c (get_next_display_element): Pass -1 as POS to
19255 FACE_FOR_CHAR if displaying a C-string.
19256
19257 2008-02-01 Kenichi Handa <handa@m17n.org>
19258
19259 * composite.c (get_composition_id): Handle xoff and yoff in a
19260 composition rule.
19261
19262 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19263 (struct composition): New member lbearing and rbearing.
19264
19265 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19266 (x_get_glyph_overhangs): Handle a composition glyph.
19267 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19268
19269 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19270 composition glyph.
19271
19272 2008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * print.c: Include charset.h.
19275 (Vprint_charset_text_property): New variable.
19276 (Qdefault): Extern it.
19277 (PRINT_STRING_NON_CHARSET_FOUND)
19278 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19279 (print_check_string_result): New variable.
19280 (print_check_string_charset_prop): New function.
19281 (print_prune_charset_plist): New variable.
19282 (print_prune_string_charset): New function.
19283 (print_object): Call print_prune_string_charset if
19284 Vprint_charset_text_property is not t.
19285 (print_interval): Print nothing if interval->plist is nil.
19286 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19287 variable. Init and staticpro print_prune_charset_plist.
19288
19289 2008-02-01 Kenichi Handa <handa@m17n.org>
19290
19291 * fontset.c (new_fontset_from_font_name): Use the specified font
19292 for all characters in the new fontset.
19293
19294 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19295 OBJECT args.
19296
19297 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19298 OBJECT args for composition too.
19299
19300 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19301 OBJECT args.
19302
19303 2008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19306
19307 * fontset.c (reorder_font_vector): Adjust for the change of
19308 FONT_DEF format.
19309 (fontset_face): New arg id. Change caller.
19310 (face_for_char): New args pos and object.
19311 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19312 (fs_query_fontset): Check NAME by Fassoc too.
19313 (Fset_fontset_font): Allow non-XLFD font name.
19314 (Ffontset_info): Adjust for the change of FONT_DEF format.
19315
19316 * fontset.h (face_for_char): Adjust prototype.
19317
19318 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19319 (append_space, extend_face_to_end_of_line)
19320 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19321 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19322
19323 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19324 POS and OBJECT args.
19325
19326 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19327 POS and OBJECT args.
19328
19329 2008-02-01 Jason Rumney <jasonr@gnu.org>
19330
19331 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19332 of GlobalAlloc'ed memory.
19333
19334 2008-02-01 Kenichi Handa <handa@m17n.org>
19335
19336 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19337
19338 * charset.h (charset_table_used): Delete extern.
19339
19340 * charset.c (charset_table_used): Make it static.
19341 (map_charset_chars): Fix args to c_function with.
19342
19343 * chartab.c (map_sub_char_table_for_charset): Fix args to
19344 c_function with.
19345
19346 * coding.h (enum coding_result_code): Delete
19347 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19348
19349 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19350 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19351 (Vlast_code_conversion_error): New variables.
19352 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19353 (ONE_MORE_BYTE): Record error if any instead of signaling an
19354 error. If non-ASCII multibyte char is found, return the negative
19355 value of the code. All callers changed to check it.
19356 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19357 (record_conversion_result): New function. Change all codes setting
19358 coding->result to call this function.
19359 (detect_coding_utf_8, decode_coding_utf_8)
19360 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19361 Don't use the local variable incomplete.
19362 (emacs_mule_char): Change the second arg to `const'.
19363 (decode_coding): Fix of flushing out unprocessed data.
19364 (make_conversion_work_buffer): Fix making of a work buffer.
19365 (decode_coding_object): Return coding->dst_object.
19366
19367 * fontset.c (set_fontset_font): Fix args.
19368
19369 * lisp.h (CHARACTERBITS): Define as 22.
19370
19371 * process.c (send_process): Be sure to set coding->src_multibyte.
19372
19373 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19374
19375 2008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * xdisp.c (handle_auto_composed_prop): Give limit to
19378 Fnext_single_char_property_change.
19379
19380 2008-02-01 Kenichi Handa <handa@m17n.org>
19381
19382 * composite.c (syms_of_composite): Don't make the composition hash
19383 table weak.
19384
19385 * fontset.c (Fset_fontset_font): Fix docstring.
19386
19387 * lisp.h (detect_coding_system): Adjust prototype.
19388
19389 * fileio.c (kill_workbuf_unwind): Delete this function.
19390 (Finsert_file_contents): Adjust the call of detect_coding_system.
19391 Get conversion_buffer by code_conversion_save. Use the macro
19392 CODING_MAY_REQUIRE_DECODING. After decoding, update
19393 coding_system.
19394
19395 * coding.h (make_conversion_work_buffer): Delete extern.
19396 (code_conversion_save): Extern it.
19397
19398 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19399 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19400 (decode_coding_utf_8): Don't do eol converion.
19401 (detect_coding_utf_16): Check coding->src_chars, not
19402 coding->src_bytes. Add heuristics for those that have no signature.
19403 (decode_coding_emacs_mule, decode_coding_iso_2022)
19404 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19405 Don't do eol converion.
19406 (adjust_coding_eol_type): Return a new coding system.
19407 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19408 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19409 each change.
19410 (decode_coding): Pay attention to undo_list. Do eol conversion for
19411 all types of coding-systems (if necessary).
19412 (Vcode_conversion_work_buf_list): Delete it.
19413 (Vcode_conversion_reused_workbuf): Rename from
19414 Vcode_conversion_reused_work_buf.
19415 (Vcode_conversion_workbuf_name): New variable.
19416 (reused_workbuf_in_use): New variable.
19417 (make_conversion_work_buffer): Delete the arg DEPTH.
19418 (code_conversion_restore): Change argument to cons.
19419 (code_conversion_save): Delete the argument BUFFER. Change callers.
19420 (detect_coding_system): New argument src_chars. Change callers.
19421 Fix for utf-16 detection.
19422 (init_coding_once): Don't use ISO_carriage_return.
19423 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19424 reused_workbuf_in_use.
19425
19426 2008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * keymap.c (store_in_keymap): Pay attention to the case that idx
19429 is a cons specifying a character range.
19430
19431 2008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19434 HANDLED_RECOMPUTE_PROPS.
19435
19436 * coding.c (Fdefine_coding_system_internal): Fix checking of
19437 ascii compatibility.
19438
19439 2008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * charset.c (find_charsets_in_text): Delete unused locale variable.
19442 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19443
19444 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19445 Resync charset_list to Vemacs_mule_charset_list.
19446
19447 * keymap.c (store_in_keymap): Pay attention to the case that idx
19448 is a cons specifying a character range.
19449
19450 2008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * composite.c (update_compositions): Bind inhibit-read-only, etc
19453 to t before calling remove-list-of-text-properties.
19454
19455 * print.c (print_object): Always print ASCII chars as is.
19456
19457 2008-02-01 Kenichi Handa <handa@m17n.org>
19458
19459 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19460
19461 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19462 is a char table.
19463
19464 2008-02-01 Kenichi Handa <handa@m17n.org>
19465
19466 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19467
19468 2008-02-01 Kenichi Handa <handa@m17n.org>
19469
19470 * xfaces.c (set_lface_from_font_name): Fix for the case that
19471 FONTNAME is not fontset name.
19472
19473 2008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * fns.c (base64_encode_1): Fix previous change.
19476
19477 2008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * fontset.c (set_fontset_font): New function.
19480 (Fset_fontset_font): If a font is specified for a charset, use
19481 map_charset_chars to store the font spec in a fontset.
19482
19483 2008-02-01 Kenichi Handa <handa@m17n.org>
19484
19485 * fontset.c (fontset_face): Create a fallback fontset on demand.
19486 (make_fontset): Don't create a fallback fontset here.
19487 (free_face_fontset): Free a fallback fontset (if any) too.
19488 (n_auto_fontsets): Delete this variable.
19489 (auto_fontset_alist): New variable.
19490 (new_fontset_from_font_name): Check auto_fontset_alist.
19491 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19492 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19493 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19494 Defsubr Sfontset_list_all.
19495
19496 2008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19499
19500 2008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19503
19504 2008-02-01 Kenichi Handa <handa@m17n.org>
19505
19506 * editfns.c (Fgoto_char): Fix docstring.
19507
19508 2008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * insdel.c (insert_from_gap): Adjust intervals correctly.
19511
19512 2008-02-01 Jason Rumney <jasonr@gnu.org>
19513
19514 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19515 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19516 (w32_initialize): Try to load it.
19517 (x_get_font_repertory): Use it if available.
19518 (w32_encode_char): Add shortcut for unicode output.
19519
19520 * w32fns.c (w32_load_system_font): Default charset to -1.
19521 (x_to_w32_charset): Match all fonts for unicode.
19522 (w32_to_x_charset): New parameter matching. Don't return partial
19523 or wildcard charsets.
19524 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19525 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19526 (w32_to_x_font): Match charset to real charset.
19527 (enum_font_cb2): Always list unicode versions.
19528
19529 * makefile.w32-in (temacs): Increase EMHEAP.
19530
19531 2008-02-01 Jason Rumney <jasonr@gnu.org>
19532
19533 * w32term.c (w32_encode_char): New charset parameter.
19534 font_info.encoding becomes encoding_type.
19535 (x_get_font_repertory): New function. Warning: stub only!
19536 (x_new_font): Return quickly if font already set.
19537 (x_new_fontset): fontsetname parameter is Lisp_Object.
19538 Use new fs_query_fontset. Try new_fontset_from_font_name.
19539 Use fontset_name for return value.
19540
19541 * w32term.h: Declare x_get_font_repertory.
19542
19543 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19544 place of find_charset_in_text. Use encode_coding_object in place
19545 of encode_coding.
19546 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19547 decode_coding.
19548
19549 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19550 of x_new_fontset.
19551 (w32_load_system_font): Initialize charset as unicode.
19552 font_info.encoding becomes encoding_type.
19553 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19554 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19555 (syms_of_w32fns): Set get_font_repertory_func.
19556
19557 * w32console.c: Include character.h. Use terminal_encode_buffer
19558 from term.c.
19559 (write_glyphs): Use new version of encode_terminal_code. Use
19560 encode_coding_object in place of encode_coding.
19561
19562 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19563 encoding becomes encoding_type.
19564
19565 * term.c (terminal_encode_buffer): Make externally visible.
19566
19567 * makefile.w32-in: Add character.h dependancies.
19568 (character.o, chartab.o): New targets.
19569
19570 2008-02-01 Kenichi Handa <handa@m17n.org>
19571
19572 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19573 CODING_ID_EOL_TYPE.
19574
19575 2008-02-01 Andreas Schwab <schwab@suse.de>
19576
19577 * coding.c (produce_chars): Revert last change.
19578
19579 2008-02-01 Kenichi Handa <handa@m17n.org>
19580
19581 * charset.h (charset_unicode): Extern it.
19582
19583 * charset.c (string_xstring_p): Check by (C >= 0x100).
19584 (find_charsets_in_text): Change format of the arc CHARSETS. New
19585 arg MULTIBYTE.
19586 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19587 change of find_charsets_in_text.
19588 (Fsplit_char): Fix doc. Never return unknown.
19589
19590 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19591
19592 * coding.c (Fdefine_coding_system_alias): Update
19593 Vcoding_system_list.
19594
19595 * fontset.c (load_font_get_repertory): Pay attention to the case
19596 that ENCODING of a font is specified by a char-table.
19597
19598 * xterm.c (x_get_font_repertory): Handle the case that the
19599 encoding of font is other than Unicode.
19600
19601 2008-02-01 Kenichi Handa <handa@m17n.org>
19602
19603 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19604 if a character is encodable by the terminal coding system. If
19605 not, produces proper number of `?'s. Update
19606 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19607 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19608
19609 2008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19612 variables.
19613 (encode_terminal_code): Change argument. Encode multiple
19614 characters at once. Store the result of encoding in
19615 terminal_encode_buffer.
19616 (write_glyphs, insert_glyphs): Adjust for the change of
19617 encode_terminal_code.
19618 (term_init): Initialize terminal_encode_buffer and
19619 terminal_encode_buf_size.
19620
19621 * coding.c (consume_chars): If coding->src_object is nil, don't
19622 check annotation.
19623
19624 2008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * character.c (char_string): Use ASCII_CHAR_P instead of
19627 SINGLE_BYTE_CHAR_P.
19628
19629 2008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * xdisp.c (handle_auto_composed_prop): Check if the last
19632 characters of auto-composed region is newly composed with the
19633 following characters.
19634 (handle_composition_prop): Fix checking of point being inside
19635 composition.
19636
19637 2008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * fns.c (concat): Don't change multibyteness of the result by
19640 concatenating an 8-bit character.
19641
19642 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19643 multibyteness of the result when newelt is an 8-bit character.
19644
19645 2008-02-01 Dave Love <fx@gnu.org>
19646
19647 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19648 EMACS_INT.
19649
19650 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19651
19652 * xfaces.c (face_numeric_value): Declare dim size_t.
19653 (Finternal_lisp_face_equal_p): Remove unused f.
19654
19655 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19656 (MATRIX_ROW): Remove unused vars.
19657 (draw_glyphs, x_insert_glyphs, fast_find_position)
19658 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19659 byte/char counts.
19660
19661 * regex.c (regex_compile): Remove unused var.
19662
19663 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19664
19665 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19666 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19667
19668 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19669
19670 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19671
19672 * fileio.c (Fwrite_region): Remove unused var.
19673
19674 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19675 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19676
19677 * composite.c (Fremove_list_of_text_properties): Declare.
19678
19679 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19680 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19681 (coding_inherit_eol_type): Remove unused attrs.
19682 (detect_coding): Cast arg of detect_eol.
19683
19684 * charset.c (syms_of_charset): Remove unused var p.
19685 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19686 byte/char counts.
19687
19688 * casetab.c (set_case_table): Remove unused var.
19689
19690 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19691 unused vars.
19692
19693 2008-02-01 Dave Love <fx@gnu.org>
19694
19695 * xterm.c (x_bitmap_mask): Declare.
19696
19697 2008-02-01 Dave Love <fx@gnu.org>
19698
19699 * xterm.c (x_term_init): Fix type error.
19700
19701 * lisp.h: Add Funibyte_char_to_multibyte.
19702
19703 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19704 (Fset_coding_system_priority): Doc fix.
19705
19706 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19707
19708 * indent.c (check_composition): Make start and end EMACS_INT.
19709
19710 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19711
19712 * xdisp.c (handle_composition_prop, check_point_in_composition):
19713 Make buffer positions EMACS_INT.
19714
19715 * composite.c (find_composition, run_composition_function)
19716 (update_compositions, Ffind_composition_internal): Make buffer
19717 positions EMACS_INT.
19718
19719 * composite.h (find_composition, update_compositions): Make
19720 position args EMACS_INT.
19721
19722 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19723
19724 * intervals.c (get_property_and_range):
19725 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19726
19727 * unexalpha.c: Don't include varargs.h.
19728
19729 2008-02-01 Dave Love <fx@gnu.org>
19730
19731 * coding.h (ENCODE_UTF_8): New.
19732
19733 * Makefile.in (gtkutil.o): Depend on coding.h.
19734
19735 * coding.c (Fset_coding_system_priority): Doc fix.
19736
19737 2008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19740 the case of auto saving.
19741
19742 2008-02-01 Andreas Schwab <schwab@suse.de>
19743
19744 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19745 `range' from GC.
19746
19747 2008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19750
19751 2008-02-01 Kenichi Handa <handa@m17n.org>
19752
19753 * fileio.c (choose_write_coding_system): Return a decided coding system.
19754 (Fwrite_region): Set Vlast_coding_system_used to the return value
19755 of choose_write_coding_system.
19756
19757 2008-02-01 Kenichi Handa <handa@m17n.org>
19758
19759 * charset.c (Fset_charset_priority): Pay attention to duplicated
19760 arguments.
19761
19762 * coding.c (QCcategory): New variable.
19763 (syms_of_coding): Defsym it. Set all elements of
19764 Vcoding_category_table and their symbol values.
19765 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19766 coding-category-XXX, and coding-category-list.
19767 (Fdefine_coding_system_internal): Add category in the plist.
19768
19769 2008-02-01 Kenichi Handa <handa@m17n.org>
19770
19771 * callproc.c (Fcall_process): Handle carryover correctly.
19772
19773 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19774 (raw_text_coding_system): Check NILP (coding_system).
19775 (coding_inherit_eol_type): Check NILP (coding_system) and
19776 NILP (parent).
19777 (consume_chars): Fix for the case of raw-text.
19778
19779 * process.c (read_process_output): Handle carryover correctly.
19780
19781 2008-02-01 Dave Love <fx@gnu.org>
19782
19783 * regex.c (re_search_2): Fix last change.
19784
19785 2008-02-01 Kenichi Handa <handa@m17n.org>
19786
19787 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19788 target_multibyte. Even in a unibyte case, return a converted
19789 multibyte char.
19790 (GET_CHAR_AFTER): New macro.
19791 (PATFETCH): Translate via multibyte char.
19792 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19793 (SETUP_MULTIBYTE_RANGE): New macro.
19794 (regex_compile): Setup compiled code so that its multibyteness
19795 matches that of a target. Fix the handling of "[X-YZ]" using
19796 SETUP_MULTIBYTE_RANGE.
19797 (analyse_first) <charset>: For filling fastmap for all multibyte
19798 characters, don't check by BASE_LEADING_CODE_P.
19799 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19800 the same as RE_MULTIBYTE_P (bufp) now.
19801 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19802 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19803 (TRANSLATE_VIA_MULTIBYTE): New macro.
19804 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19805 It is the same as RE_MULTIBYTE_P (bufp) now.
19806 <exactn>: Translate via multibyte.
19807 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19808 translate it.
19809 <charset, charset_not>: Fetch a character by
19810 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19811 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19812 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19813 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19814 by GET_CHAR_AFTER.
19815 (bcmp_translate): Likewise.
19816
19817 * search.c (compile_pattern): Check the member target_multibyte,
19818 not the member multibyte of buf.
19819
19820 * lread.c (read1): While reading a string, set force_singlebyte
19821 and force_multibyte correctly.
19822
19823 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19824 up of unibyte_to_multibyte_table.
19825
19826 2008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * coding.c (setup_coding_system): If coding has
19829 post-read-conversion or pre-write-conversion, set
19830 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19831 respectively.
19832 (decode_coding_gap): Run post-read-conversion if any.
19833
19834 * fileio.c (Finsert_file_contents): Even if we read into a
19835 unibyte buffer, check if we must decode the result or not.
19836
19837 2008-02-01 Kenichi Handa <handa@m17n.org>
19838
19839 * coding.c (make_conversion_work_buffer): Change the work buffer
19840 name to the same one as that of Emacs 21.
19841
19842 2008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * coding.h (make_conversion_work_buffer): Adjust prototype.
19845 (code_conversion_restore): Don't extern it.
19846
19847 * coding.c (detected_mask): Delete unused variable.
19848 (decode_coding_iso_2022): Pay attention to the byte sequence of
19849 CTEXT extended segment, and retain those bytes as is.
19850 (decode_coding_ccl): Delete unused variable `valids'.
19851 (setup_coding_system): Delete unused variable `category'.
19852 (consume_chars): Delete unused variable `category'. Make it work
19853 for non-multibyte case.
19854 (make_conversion_work_buffer): Change argument.
19855 (saved_coding): Delete unused variable.
19856 (code_conversion_restore): Don't check saved_coding->destination.
19857 (code_conversion_save): New function.
19858 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19859 instead of record_unwind_protect.
19860 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19861 (detect_coding_system): Delete unused variable `mask'.
19862 (Fdefine_coding_system_internal): Delete unused variable id.
19863
19864 * fileio.c (kill_workbuf_unwind): New function.
19865 (Finsert_file_contents): On replacing, call
19866 make_conversion_work_buffer with correct args, and call
19867 record_unwind_protect with the first arg kill_workbuf_unwind.
19868
19869 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19870
19871 2008-02-01 Kenichi Handa <handa@m17n.org>
19872
19873 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19874 (fontset_add): Fix for the case that TO is less than TO1.
19875 (Ffontset_info): Don't use fallback fontset on checking the
19876 default fontset.
19877 (dump_fontset): New function for debugging.
19878
19879 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19880 coding_type is Qcharset.
19881
19882 2008-02-01 Kenichi Handa <handa@m17n.org>
19883
19884 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19885 (map_char_table): Don't inherit the value from the parent on
19886 initializing VAL. Adjust for the above change.
19887
19888 2008-02-01 Kenichi Handa <handa@m17n.org>
19889
19890 * coding.c (Qsignature, Qendian): Delete these variables.
19891 (syms_of_coding): Don't initialize them.
19892 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19893 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19894 detect_info->found.
19895 (decode_coding_utf_16): Don't detect BOM here.
19896 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19897 is NOT utf_16_without_bom.
19898 (setup_coding_system): For a coding system of type utf-16, check
19899 if the attribute :endian is Qbig or not (not nil or not), and set
19900 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19901 (detect_coding): If coding type is utf-16 and BOM detection is
19902 required, detect it.
19903 (Fdefine_coding_system_internal): For a coding system of type
19904 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19905
19906 2008-02-01 Kenichi Handa <handa@m17n.org>
19907
19908 * coding.c (coding_set_source): Fix for the case that the current
19909 buffer is different from coding->src_object.
19910 (decode_coding_object): Don't use the conversion work buffer if
19911 DST_OBJECT is a buffer.
19912
19913 2008-02-01 Dave Love <fx@gnu.org>
19914
19915 * lread.c (read_emacs_mule_char) [len==2]: Index
19916 emacs_mule_charset correctly.
19917
19918 2008-02-01 Dave Love <fx@gnu.org>
19919
19920 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19921 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19922 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19923 treated specially.)
19924 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19925 (detected_mask): Remove Big5 bits.
19926
19927 2008-02-01 Kenichi Handa <handa@m17n.org>
19928
19929 The following changes are to make the font rescaling facility
19930 compatible with Emacs 21.
19931
19932 * xfaces.c (Vface_font_rescale_alist): Rename from
19933 Vface_resizing_fonts.
19934 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19935 (font_rescale_ratio): Rename from font_resizing_ratio.
19936 (split_font_name): Set font->rescale_ratio.
19937 (better_font_p): Pay attention to font->rescale_ratio.
19938 (build_scalable_font_name): Likewise. Change RESX, and RESY
19939 fields.
19940 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19941
19942 2008-02-01 Kenichi Handa <handa@m17n.org>
19943
19944 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19945 (Qutf_16_le): Remove these variables.
19946 (syms_of_coding): Don't DEFSYM them.
19947 (decode_coding_utf_16): Fix handling of BOM.
19948 (encode_coding_utf_16): Fix handling of BOM.
19949
19950 2008-02-01 Kenichi Handa <handa@m17n.org>
19951
19952 * fileio.c (Finsert_file_contents): On replacing, before decoding
19953 the file into the work buffer, set point of the work buffer to the end.
19954
19955 2008-02-01 Dave Love <fx@gnu.org>
19956
19957 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19958
19959 2008-02-01 Dave Love <fx@gnu.org>
19960
19961 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19962 and fix C types.
19963
19964 2008-02-01 Kenichi Handa <handa@m17n.org>
19965
19966 * xdisp.c (SKIP_GLYPHS): New macro.
19967 (set_cursor_from_row): Pay attention to string display properties.
19968
19969 * category.c (copy_category_entry): Fix for the case that RANGE
19970 is an integer.
19971
19972 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19973
19974 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19975
19976 2008-02-01 Kenichi Handa <handa@m17n.org>
19977
19978 * charset.c (Fcharset_id_internal): New function.
19979 (syms_of_charset): Defsubr it.
19980
19981 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19982 with the last arg charset_list acquired from coding.
19983 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19984 the attribute coding_attr_ccl_valids.
19985
19986 * coding.h (enum define_coding_ccl_arg_index): Set the first
19987 member coding_arg_ccl_decoder to coding_arg_max.
19988
19989 * ccl.h (ccl_driver): Adjust prototype.
19990
19991 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19992 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
19993 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
19994 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19995 last arg Qnil.
19996
19997 2008-02-01 Kenichi Handa <handa@m17n.org>
19998
19999 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20000 call encode_char.
20001
20002 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20003
20004 2008-02-01 Dave Love <fx@gnu.org>
20005
20006 * composite.c (syms_of_composite): Make composition_hash_table weak.
20007
20008 2008-02-01 Kenichi Handa <handa@m17n.org>
20009
20010 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20011 (font_name_registry): Don't extern them.
20012 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20013
20014 * fontset.h (Qfontset): Don't extern it.
20015 (new_fontset_from_font_name): Extern it.
20016
20017 * fontset.c: Give 8 extra slots to fontset objects.
20018 (Qfontset_info): New variable.
20019 (syms_of_fontset): Defsym it.
20020 (FONTSET_FALLBACK): New macro.
20021 (fontset_face): Try also the default fontset.
20022 (make_fontset): Realize a fallback fontset from the default fontset.
20023 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20024 using split_font_name_into_vector and build_font_name_from_vector.
20025 (Fset_fontset_font): Access the elements of font_spec by enum
20026 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20027 name by using split_font_name_into_vector.
20028 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20029 generate a proper font name from the fontset name. Update
20030 Vfontset_alias_alist.
20031 (n_auto_fontsets): New variable.
20032 (new_fontset_from_font_name): New function.
20033 (Ffont_info): Store the information about fonts generated from the
20034 default fontset in the first extra slot of the returned char-table.
20035
20036 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20037 (font_name_registry): Delete function.
20038 (split_font_name_into_vector): New function.
20039 (build_font_name_from_vector): New function.
20040 (font_list): The argument REGISTRY is now a list of registry names.
20041 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20042 specifies an explicit font name, return the name as is. Make a
20043 list of registy names.
20044
20045 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20046 of x_new_fontset.
20047 (Fx_create_frame): Don't call x_new_fontset here. Just use
20048 x_list_fonts to check the existence of fonts.
20049
20050 * xterm.h (x_new_fontset): Adjust prototype.
20051
20052 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20053 string. Use new_fontset_from_font_name to create a fontset from a
20054 font name.
20055
20056 2008-02-01 Kenichi Handa <handa@m17n.org>
20057
20058 * syntax.c (Vfind_word_boundary_function_table): New name for
20059 Vnext_word_boundary_function_table.
20060 (find-word-boundary-function-table): New name for
20061 next-word-boundary-function-table.
20062
20063 2008-02-01 Dave Love <fx@gnu.org>
20064
20065 * Makefile.in: Fix some dependencies.
20066
20067 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20068 set it to nil before returning.
20069
20070 * composite.c (update_compositions): Fix type error.
20071
20072 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20073
20074 2008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * xterm.c (x_new_font): Optimize for the case that the font is
20077 already set for the frame.
20078
20079 2008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * chartab.c (char_table_ascii): Check if the char table contents
20082 is sub-char-table or not.
20083 (char_table_set, char_table_set_range): Fix argument to
20084 char_table_ascii.
20085
20086 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20087 (detect_coding_utf_8, detect_coding_utf_16)
20088 (detect_coding_emacs_mule, detect_coding_iso_2022)
20089 (detect_coding_sjis, detect_coding_big5)
20090 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20091 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20092 sequence is valid in this coding system. Change callers.
20093 (MAX_ANNOTATION_LENGTH): New macro.
20094 (ADD_ANNOTATION_DATA): New macro.
20095 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20096 ADD_ANNOTATION_DATA. Change the format of annotation data.
20097 (ADD_CHARSET_DATA): New macro.
20098 (emacs_mule_char): New argument ID. Change callers.
20099 (decode_coding_emacs_mule, decode_coding_iso_2022)
20100 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20101 Produce charset annotation data in coding->charbuf.
20102 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20103 to charset annotation data in coding->charbuf.
20104 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20105 coding->common_flags if the coding system is iso-2022 based and
20106 uses designation.
20107 (produce_composition): Adjust for the new annotation data format.
20108 (produce_charset): New function.
20109 (produce_annotation): Handle charset annotation.
20110 (handle_composition_annotation, handle_charset_annotation): New
20111 functions.
20112 (consume_chars): Handle charset annotation. Utilize the above two
20113 functions.
20114 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20115 buffer, get the deleted text as a string and set
20116 coding->src_object to that string.
20117 (detect_coding, detect_coding_system): Use the new struct
20118 coding_detection_info.
20119
20120 * coding.h (struct coding_detection_info): New structure.
20121 (struct coding_system): Adjust prototype of the member `detector'.
20122 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20123
20124 2008-02-01 Kenichi Handa <handa@m17n.org>
20125
20126 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20127
20128 2008-02-01 Dave Love <fx@gnu.org>
20129
20130 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20131 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20132 to new local and nullify apropos_accumulate before returning.
20133 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20134
20135 2008-02-01 Kenichi Handa <handa@m17n.org>
20136
20137 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20138 correctly.
20139
20140 2008-02-01 Dave Love <fx@gnu.org>
20141
20142 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20143
20144 2008-02-01 Kenichi Handa <handa@m17n.org>
20145
20146 The following changes are to make character composition happen
20147 automatically on displaying.
20148
20149 * Makefile.in (lisp, shortlisp): Add composite.elc.
20150
20151 * composite.h (Qauto_composed, Vauto_composition_function)
20152 (Qauto_composition_function): Extern them.
20153
20154 * composite.c (Vcomposition_function_table)
20155 (Qcomposition_function_table): Delete variables.
20156 (Qauto_composed, Vauto_composition_function)
20157 (Qauto_composition_function): New variables.
20158 (run_composition_function): Don't call
20159 compose-chars-after-function.
20160 (update_compositions): Clear `auto-composed' text property.
20161 (compose_chars_in_text): Delete this function.
20162 (syms_of_composite): Staticpro Qauto_composed and
20163 Qauto_composition_function. Declare Vauto_composition_function as
20164 a Lisp variable.
20165
20166 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20167
20168 * xdisp.c (it_props): Add an entry for Qauto_composed.
20169 (handle_auto_composed_prop): New function.
20170
20171 * xselect.c (selection_data_to_lisp_data): Don't call
20172 compose_chars_in_text.
20173
20174 2008-02-01 Dave Love <fx@gnu.org>
20175
20176 * keyboard.c (read_char): Modify checking around use of
20177 Vkeyboard_translate_table.
20178
20179 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20180 and fix C types.
20181
20182 2008-02-01 Kenichi Handa <handa@m17n.org>
20183
20184 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20185 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20186 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20187 the case that the last byte is '\r' correctly.
20188 (decode_coding): Flush out the unprocessed data correctly.
20189 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20190
20191 2008-02-01 Dave Love <fx@gnu.org>
20192
20193 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20194 Add XK_ISO... case.
20195 (xaw_scroll_callback): Revert last change.
20196
20197 2008-02-01 Kenichi Handa <handa@m17n.org>
20198
20199 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20200
20201 2008-02-01 Kenichi Handa <handa@m17n.org>
20202
20203 * xfaces.c (Vface_resizing_fonts): New variable.
20204 (struct font_name): New member `resizing_ratio'.
20205 (font_resizing_ratio): New function.
20206 (split_font_name): Set font->resizing_ratio.
20207 (better_font_p): Pay attention to font->resizing_ratio.
20208 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20209 RESX, and RESY fields.
20210 (try_alternative_families): Try scalable fonts if
20211 Vscalable_fonts_allowed is not Qt.
20212 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20213
20214 2008-02-01 Dave Love <fx@gnu.org>
20215
20216 * xterm.c (xaw_scroll_callback): Cast correctly.
20217
20218 2008-02-01 Dave Love <fx@gnu.org>
20219
20220 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20221 (lispy_kana_keys): Comment out.
20222 (make_lispy_event) [XK_kana_A]: Comment out.
20223
20224 * xterm.c (xaw_scroll_callback): Cast call_data.
20225 (XTread_socket): Deal with ASCII keysyms.
20226 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20227
20228 2008-02-01 Dave Love <fx@gnu.org>
20229
20230 * xterm.c (Vx_keysym_table): New.
20231 (syms_of_xterm): Initialize it.
20232 (XTread_socket): Use it.
20233 From head: Eliminate incorrect optimization that tried to avoid
20234 decoding the output of X*LookupString.
20235 (x_get_font_repertory): Delete charset declaration.
20236
20237 2008-02-01 Kenichi Handa <handa@m17n.org>
20238
20239 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20240 return 0.
20241 (Fdefine_coding_system_internal): Setup
20242 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20243
20244 2008-02-01 Dave Love <fx@gnu.org>
20245
20246 * coding.c (Fcheck_coding_system): Doc fix.
20247
20248 * editfns.c (Finsert_byte): Return a proper value.
20249
20250 2008-02-01 Kenichi Handa <handa@m17n.org>
20251
20252 * coding.c (decode_coding): Fix args to translate_chars. Pay
20253 attention to Vstandard_translation_table_for_decode.
20254 (encode_coding): Fix args to translate_chars. Pay attention to
20255 Vstandard_translation_table_for_encode.
20256
20257 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20258 SINGLE_BYTE_CHAR_P.
20259
20260 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20261 not by SINGLE_BYTE_CHAR_P.
20262
20263 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20264 SINGLE_BYTE_CHAR_P.
20265
20266 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20267 SINGLE_BYTE_CHAR_P.
20268
20269 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20270 by SINGLE_BYTE_CHAR_P.
20271
20272 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20273 SINGLE_BYTE_CHAR_P.
20274
20275 2008-02-01 Dave Love <fx@gnu.org>
20276
20277 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20278
20279 2008-02-01 Dave Love <fx@gnu.org>
20280
20281 * fns.c (Flanginfo): Fix typo.
20282
20283 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20284
20285 2008-02-01 Kenichi Handa <handa@m17n.org>
20286
20287 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20288 (detect_coding_emacs_mule, detect_coding_iso_2022)
20289 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20290 incomplete byte sequence. Don't update *mask when correctly detected.
20291 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20292 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20293 (detect_coding, detect_coding_system): Adjust for the changes above.
20294
20295 2008-02-01 Kenichi Handa <handa@m17n.org>
20296
20297 * character.c (char_string): Rename from
20298 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20299 (string_char): Rename from string_char.
20300
20301 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20302 if C is greater than MAX_3_BYTE_CHAR.
20303 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20304 string_char instead of string_char_with_unification.
20305
20306 2008-02-01 Dave Love <fx@gnu.org>
20307
20308 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20309
20310 2008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * keymap.c (push_key_description): Pay attention to force_multibyte.
20313
20314 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20315
20316 2008-02-01 Dave Love <fx@gnu.org>
20317
20318 * charset.c (define_charset_internal): Rename `supprementary'.
20319
20320 * Makefile.in (lisp, shortlisp): Remove latin-N.
20321
20322 2008-02-01 Dave Love <fx@gnu.org>
20323
20324 * xfns.c (x_window, x_window): Use use_xim.
20325
20326 * xterm.c (use_xim): Initialize.
20327 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20328 (x_term_init): Maybe set use_xim.
20329
20330 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20331
20332 2008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * search.c (search_buffer): Fix case-fold-search of multibyte
20335 characters.
20336 (boyer_moore): Rename the last argument to char_high_bits.
20337
20338 2008-02-01 Kenichi Handa <handa@m17n.org>
20339
20340 * xdisp.c (display_string): Fix for the case of zero width glyph.
20341
20342 * xfns.c (x_set_font): Change the error message of the case that
20343 x_new_fontset returns Qt.
20344
20345 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20346 (Finternal_set_lisp_face_attribute): Use signal_error for the
20347 error of invalid fontset.
20348
20349 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20350 fontset, return Qt.
20351
20352 2008-02-01 Dave Love <fx@gnu.org>
20353
20354 * unexelf.c (unexec): Make .got handling not SGI-specific.
20355
20356 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20357
20358 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20359
20360 * keyboard.c (read_key_sequence): Fix type error.
20361
20362 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20363 type error.
20364
20365 * fontset.c (fontset_add): Return Lisp_Object.
20366
20367 2008-02-01 Dave Love <fx@gnu.org>
20368
20369 * charset.h (charset_ordered_list_tick): Declare extern.
20370
20371 2008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 The following changes (and some of 2008-02-01 changes of mine) are
20374 for handling syntax, category, and case conversion for unibyte
20375 characters by converting them to multibyte on the fly. With these
20376 changes, we don't have to setup syntax and case tables for unibyte
20377 characters in each language environment.
20378
20379 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20380 multibyte if necessary.
20381
20382 * bytecode.c (Fbyte_code): Likewise.
20383
20384 * character.h (LEADING_CODE_LATIN_1_MIN)
20385 (LEADING_CODE_LATIN_1_MAX): New macros.
20386 (unibyte_to_multibyte_table): Extern it.
20387 (unibyte_char_to_multibyte): New macro.
20388 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20389 (CHAR_LEADING_CODE): New macro.
20390 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20391
20392 * character.c (unibyte_to_multibyte_table): New variable.
20393 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20394 (multibyte_char_to_unibyte): If C is an eight-bit character,
20395 convert it to the corresponding byte value.
20396
20397 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20398 not 1, signals an error. Update the elements of
20399 unibyte_to_multibyte_table.
20400 (init_charset_once): Initialize unibyte_to_multibyte_table.
20401 (syms_of_charset): Define the charset `iso-8859-1'.
20402
20403 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20404 as is without converting it to unibyte. In a unibyte buffer,
20405 convert C to multibyte before checking the syntax.
20406
20407 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20408
20409 * minibuf.c (Fminibuffer_complete_word): Use the macro
20410 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20411
20412 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20413
20414 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20415 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20416 that is zero, convert an eight-bit char to multibyte.
20417 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20418 non-emacs case.
20419 (PATFETCH): Convert an eight-bit char to multibyte.
20420 (HANDLE_UNIBYTE_RANGE): New macro.
20421 (regex_compile): Setup the compiled pattern for multibyte chars
20422 even if the given regex string is unibyte. Use PATFETCH_RAW
20423 instead of PATFETCH in many places. To handle `charset'
20424 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20425 only for ASCII chars.
20426 (analyse_first) <exactn>: Simplify because the compiled pattern
20427 is multibyte.
20428 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20429 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20430 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20431 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20432 multibyte always 1.
20433 (re_search_2): In emacs, set the locale variable multibyte to 1,
20434 otherwise to 0. New local variable target_multibyte. Check it
20435 to decide the multibyteness of STR1 and STR2. If
20436 target_multibyte is zero, convert unibyte chars to multibyte
20437 before translating and checking fastmap.
20438 (TARGET_CHAR_AND_LENGTH): New macro.
20439 (re_match_2_internal): In emacs, set the locale variable multibyte
20440 to 1, otherwise to 0. New local variable target_multibyte. Check
20441 it to decide the multibyteness of STR1 and STR2. Use
20442 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20443 <charset, charset_not>: If multibyte is nonzero, check fastmap
20444 only for ASCII chars. Call bcmp_translate with
20445 target_multibyte, not with multibyte.
20446 <begline>: Declare the local variable C as `unsigned'.
20447 (bcmp_translate): Change the last arg name to target_multibyte.
20448
20449 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20450 the regexp pattern and the matching target. Set cp->buf.multibyte
20451 to the multibyteness of the regexp pattern. Set
20452 cp->but.target_multibyte to the multibyteness of the matching target.
20453 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20454 FETCH_STRING_CHAR_ADVANCE.
20455 (Freplace_match): Convert unibyte chars to multibyte.
20456
20457 * syntax.c (char_quoted, back_comment, scan_words)
20458 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20459 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20460 unibyte chars to multibyte.
20461 (skip_chars): Delete the arg syntaxp, and move the code for
20462 handling syntaxes to skip_syntaxes. Change callers.
20463 Fix the case that the multibyteness of STRING and the current
20464 buffer doesn't match.
20465 (skip_syntaxes): New function.
20466 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20467 SINGLE_BYTE_CHAR_P.
20468
20469 2008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * xfaces.c (QCfontset): New variable.
20472 (LFACE_FONTSET): New macro.
20473 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20474 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20475 (Finternal_set_lisp_face_attribute)
20476 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20477 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20478 check also LFACE_FONTSET_INDEX.
20479 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20480 attrs[LFACE_FONT_INDEX].
20481 (syms_of_xfaces): Intern and staticpro QCfontset.
20482
20483 * dispextern.h (enum lface_attribute_index): New member
20484 LFACE_FONTSET_INDEX.
20485
20486 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20487
20488 2008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * coding.c (coding_set_destination): Fix coding->destination for
20491 the case converting a region.
20492 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20493 (encode_coding_object): Fix coding->dst_pos and
20494 coding->dst_pos_byte for the case converting a region.
20495
20496 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20497
20498 * character.h (BYTE8_STRING): New macro.
20499
20500 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20501
20502 2008-02-01 Kenichi Handa <handa@m17n.org>
20503
20504 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20505 characters by octal form.
20506
20507 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20508
20509 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20510 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20511 _fetch_multibyte_char_len.
20512 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20513
20514 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20515
20516 * casefiddle.c (casify_object): Simplify. Handle the case that
20517 the case conversion change the byte length.
20518 (casify_region): Likewise.
20519
20520 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20521
20522 * character.c (_fetch_multibyte_char_len): Delete this variable.
20523 (syms_of_character): Setup Vprintable_chars.
20524
20525 * editfns.c (Fchar_equal): Fix for the unibyte case.
20526 (Finsert_byte): New function.
20527 (syms_of_editfns): Defsubr it.
20528
20529 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20530 of direct code 0x3ffff.
20531
20532 * search.c (Freplace_match): Fix for the unibyte case.
20533
20534 2008-02-01 Kenichi Handa <handa@m17n.org>
20535
20536 * lread.c (safe_to_load_p): Fix the logic.
20537
20538 * syntax.c (scan_words): Don't treat characters belonging to
20539 different scripts as constituting a word.
20540
20541 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20542
20543 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20544
20545 * emacs.c (main): In the case of --unibyte, instead of aborting on
20546 finding non-empty buffer, make it unibyte.
20547
20548 2008-02-01 Kenichi Handa <handa@m17n.org>
20549
20550 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20551 to create a fontset.
20552
20553 2008-02-01 Dave Love <fx@gnu.org>
20554
20555 * character.c (Funibyte_char_to_multibyte): Doc fix.
20556
20557 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20558
20559 2008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * fontset.c (fontset_add): Make the type `int'.
20562 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20563
20564 * character.c (unibyte_char_to_multibyte)
20565 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20566 charset_unibyte, not charset_primary.
20567
20568 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20569
20570 * charset.c (charset_unibyte): Rename from charset_primary.
20571 (Funibyte_charset): Rename from Fprimary_charset.
20572 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20573 (syms_of_charset): Adjust for the above changes.
20574
20575 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20576 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20577 it->multibyte_p is zero.
20578
20579 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20580 Delete extern.
20581
20582 2008-02-01 Kenichi Handa <handa@m17n.org>
20583
20584 * coding.c (Fdefine_coding_system_internal): Fix category setting
20585 for a coding system of type iso-2022.
20586
20587 2008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20590
20591 2008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * syntax.c (Vnext_word_boundary_function_table): New variable.
20594 (next-word-boundary-function-table): Declare it as a Lisp variable
20595 in syms_of_syntax.
20596 (scan_words): Call functions in Vnext_word_boundary_function_table
20597 if any.
20598
20599 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20600
20601 * fontset.c (fs_load_font): If fontp->charset is not negative,
20602 return fontp without setting its members.
20603
20604 2008-02-01 Dave Love <fx@gnu.org>
20605
20606 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20607
20608 * m/sparc.h (HAVE_ALLOCA): Delete.
20609
20610 * s/irix6-5.h: Don't include strings.h.
20611 (bcopy, bzero, bcmp): Don't undef.
20612
20613 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20614
20615 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20616 (TIOCSIGSEND): Don't test IRIX6.
20617 (bcopy, bzero, bcmp): Define conditionally.
20618
20619 2008-02-01 Kenichi Handa <handa@m17n.org>
20620
20621 * buffer.c (Qas, Qmake, Qto): New variables.
20622 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20623 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20624
20625 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20626 we are inserting a process output into a multibyte buffer.
20627
20628 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20629 multibyte_char_to_unibyte.
20630
20631 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20632 by the primary charset, make it eight-bit char.
20633 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20634
20635 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20636 (charset_8_bit__control, charset_8_bit_graphic)
20637 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20638 (define_charset_internal): New function.
20639 (syms_of_charset): Call define_charset_internal for pre-defined
20640 charsets.
20641
20642 * charset.h (charset_8_bit): Extern it.
20643
20644 * coding.c (make_conversion_work_buffer): Adjust for the change
20645 of Fset_buffer_multibyte.
20646 (encode_coding_raw_text): Increment p0 in the loop.
20647
20648 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20649
20650 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20651 for the change of Fset_buffer_multibyte.
20652
20653 * fns.c (Fstring_to_multibyte): New function.
20654 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20655
20656 2008-02-01 Dave Love <fx@gnu.org>
20657
20658 * xfns.c (x_put_x_image): Declare args.
20659
20660 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20661 (try_font_list): Declare an arg.
20662
20663 * xdisp.c (message2_nolog, set_message): Declare an arg.
20664
20665 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20666
20667 * syntax.c (scan_sexps_forward): Declare an arg.
20668
20669 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20670 Declare an arg.
20671
20672 * lisp.h (Fnew_fontset): Declare.
20673
20674 * keymap.c (push_key_description): Call CHARACTERP correctly.
20675
20676 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20677 (face_for_char): Delete unused vars.
20678 (Fset_fontset_font): Doc fix. Delete unused vars.
20679
20680 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20681
20682 * composite.c (update_compositions): Declare arg.
20683
20684 * cm.c (calccost, cmgoto): Declare args.
20685
20686 * charset.c: Remove `emacs' conditional. Doc fixes.
20687 (map_char_table_for_charset): Declare.
20688
20689 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20690
20691 * ccl.c: Remove `emacs' conditional.
20692
20693 2008-02-01 Kenichi Handa <handa@m17n.org>
20694
20695 The following changes are to allow specifying multiple font
20696 patterns for a character range (specified by script or charset).
20697
20698 * Makefile.in (abbrev.o): Depend on syntax.h.
20699 (xfaces.o): Depend on charset.h.
20700
20701 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20702 SINGLE_BYTE_CHAR_P.
20703
20704 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20705
20706 * character.h (Vchar_script_table): Extern it.
20707
20708 * character.c (Vscript_alist): Delete.
20709 (Vchar_script_table, Qchar_script_table): New variable.
20710 (syms_of_character): Declare Vchar_script_table as a lisp variable
20711 and initialize it.
20712
20713 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20714 have property char-table-extra-slots, make no extra slot.
20715
20716 * dispextern.h (struct face): Delete member `charset'.
20717 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20718 SINGLE_BYTE_CHAR_P.
20719 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20720 Add prototypes.
20721 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20722 (generate_ascii_font_name): Rename from generate_ascii_font.
20723
20724 * fontset.h (get_font_repertory_func): New prototype.
20725 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20726 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20727
20728 * fontset.c (Qprepend, Qappend): New variables.
20729 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20730 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20731 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20732 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20733 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20734 (load_font_get_repertory): New functions.
20735 (fontset_set): Delete.
20736 (fontset_face): New arg FACE. Return face ID, not face.
20737 Complete re-write to handle new fontset structure. Change caller.
20738 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20739 (face_for_char): Don't call lookup_face.
20740 (make_fontset_for_ascii_face): New arg FACE.
20741 (fs_load_font): New arg CHARSET_ID. Don't check
20742 Vfont_encoding_alist here.
20743 (find_font_encoding): New function.
20744 (list_fontsets): Use STRINGP, not ! NILP.
20745 (accumulate_script_ranges): New function.
20746 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20747 re-written to handle new fontset structure.
20748 (Ffontset_font): Return a copy of element.
20749 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20750 docstring of font-encoding-alist.
20751
20752 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20753 (Fset_fotset_font): Fix arguments to 5.
20754
20755 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20756
20757 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20758 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20759 (highlight_trailing_whitespace): Adjust for the change of
20760 lookup_named_face.
20761
20762 * xfaces.c: Include charset.h.
20763 (load_face_font): Delete argument C. Change caller.
20764 (generate_ascii_font_name): Rename from generate_ascii_font.
20765 (font_name_registry): New function.
20766 (cache_face): Store ascii faces before non-ascii faces in buckets.
20767 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20768 Lookup only ascii faces.
20769 (lookup_non_ascii_face): New function.
20770 (lookup_named_face): Delete argument C. Change caller.
20771 (lookup_derived_face): Delete argument C. Change caller.
20772 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20773 a string, just call font_list with it.
20774 (choose_face_font): Delete arguments FACE and C. New arg
20775 FONT_SPEC. Change caller.
20776 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20777 Change caller.
20778 (realize_non_ascii_face): New function.
20779 (realize_x_face): Call load_face_font here.
20780 (realize_tty_face): Delete argument C. Change caller.
20781 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20782 get a face ID.
20783 (dump_realized_face): Don't print charset of FACE.
20784
20785 * xfns.c (x_set_font): Always call x_new_fontset and
20786 store_frame_parameter.
20787 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20788 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20789
20790 * xterm.h (x_get_font_repertory): Extern it.
20791
20792 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20793 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20794 it->multibyte_p is zero.
20795 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20796 (x_new_fontset): If FONTSETNAME doesn't match any existing
20797 fontsets, create a new one.
20798 (x_get_font_repertory): New function.
20799
20800 2008-02-01 Kenichi Handa <handa@m17n.org>
20801
20802 * coding.c (Ffind_coding_systems_region_internal): Detect an
20803 ASCII only string correctly.
20804
20805 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20806 version is 0.
20807
20808 2008-02-01 Kenichi Handa <handa@m17n.org>
20809
20810 * lread.c: Include "coding.h".
20811 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20812 (load_each_byte, unread_char): New variables.
20813 (readchar_backlog): Delete.
20814 (readchar): Return a character unless load_each_byte is nonzero.
20815 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20816 cons. If unread_char is not -1, simply return it.
20817 (unreadchar): Handle the case that readcharfun is
20818 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20819 (read_multibyte): Delete.
20820 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20821 (read_emacs_mule_char): New functions.
20822 (Fload): Even if the file doesn't have the extension ".elc", if
20823 safe_to_load_p returns a positive version number, assume that the
20824 file contains bytecompiled code. If the version is less than 22,
20825 load the file while decoding multibyte sequences by emacs-mule.
20826 (readevalloop): Don't use readchar_backlog.
20827 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20828 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20829 (read_escape): Delete the arg BYTEREP.
20830 (read1): Set load_each_byte to 1 temporarily while handling
20831 #@NUMBER. Don't call read_multibyte.
20832 (read_vector): Call Fread with a cons. If readcharfun is
20833 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20834 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20835 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20836 and Qload_force_doc_strings.
20837
20838 2008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * xdisp.c (face_before_or_after_it_pos): Call
20841 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20842
20843 2008-02-01 Kenichi Handa <handa@m17n.org>
20844
20845 * character.h (TRAILING_CODE_P): New macro.
20846 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20847 (string_char_with_unification): Fix prototype.
20848 (Vscript_alist): Extern it.
20849
20850 * character.c (Vscript_alist): New variable.
20851 (string_char_with_unification, str_as_unibyte)
20852 (string_escape_byte8): Add `const' to local variables.
20853 (syms_of_character): Declare script-alist as a Lisp variable.
20854
20855 * charset.h (Vcharset_ordered_list): Extern it.
20856 (charset_ordered_list_tick): Extern it.
20857 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20858 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20859 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20860 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20861 (Funify_charset): Adjust for the change of Funify_charset.
20862
20863 * charset.c (charset_ordered_list_tick): New variable.
20864 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20865 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20866 deunify intead of unify a charset.
20867 (string_xstring_p): Add `const' to local variables.
20868 (find_charsets_in_text): Add `const' to arguments and local variables.
20869 (encode_char): Adjust for the change of Funify_charset. Fix
20870 detecting of invalid code.
20871 (Fset_charset_priority): Increment charset_ordered_list_tick.
20872 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20873 and TO_CODE.
20874
20875 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20876 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20877 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20878 (decode_coding_ccl, consume_chars)
20879 (Ffind_coding_systems_region_internal)
20880 (Fcheck_coding_systems_region): Add `const' to local variables.
20881
20882 * print.c (print_object): Use octal form for printing the
20883 contents of a bool vector.
20884
20885 2008-02-01 Dave Love <fx@gnu.org>
20886
20887 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20888 <version == 20>: Refuse to load.
20889
20890 2008-02-01 Dave Love <fx@gnu.org>
20891
20892 * fns.c: Move coding.h.
20893 (Qcodeset, Qdays, Qmonths): New.
20894 (concat): Use CHARACTERP instead of INTEGERP.
20895 (Flocale_codeset): Delete.
20896 (Flanginfo): New function.
20897 (syms_of_fns): Change accordingly.
20898
20899 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20900
20901 2008-02-01 Dave Love <fx@gnu.org>
20902
20903 * casetab.c (init_casetab_once, init_casetab_once): Fix
20904 CHAR_TABLE_SET call.
20905
20906 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20907
20908 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20909
20910 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20911 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20912 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20913
20914 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20915
20916 * coding.c (ENCODE_DESIGNATION, decode_eol)
20917 (make_conversion_work_buffer, code_conversion_restore)
20918 (Fdefine_coding_system_internal): Convert Lisp types.
20919 (code_conversion_restore): Use EQ, not ==.
20920 (Fencode_coding_string): Fix code_convert_string call.
20921
20922 * coding.h (code_convert_region): Fix prototype.
20923
20924 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20925
20926 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20927 (Ffontset_info): Convert Lisp types.
20928
20929 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20930
20931 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20932
20933 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20934
20935 * chartab.c: Include "...h", not <...h> in some cases.
20936
20937 * callproc.c (Fcall_process): Remove unused variables.
20938
20939 2008-02-01 Dave Love <fx@gnu.org>
20940
20941 * coding.c (Fset_coding_system_priority): Allow null arg list.
20942
20943 2008-02-01 Dave Love <fx@gnu.org>
20944
20945 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20946 (Fself_insert_and_exit): Use CHARACTERP.
20947
20948 * callproc.c (Fcall_process): Remove unused vars.
20949
20950 * xterm.c (XTread_socket): Add extra dead keysyms.
20951
20952 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20953
20954 * dispextern.h: Remove prototypes for redraw_frame,
20955 redraw_garbaged_frames.
20956
20957 * cmds.c (Fself_insert_command): Use CHARACTERP.
20958
20959 * chartab.c (make_sub_char_table): Remove unused var.
20960 (Fset_char_table_default, Fmap_char_table): Doc fix.
20961
20962 * keymap.c (access_keymap): Remove generic char code.
20963 (push_key_description): Use CHARACTERP.
20964
20965 2008-02-01 Dave Love <fx@gnu.org>
20966
20967 * charset.c: Doc fixes.
20968 (Funify_charset): Extra checking.
20969
20970 2008-02-01 Dave Love <fx@gnu.org>
20971
20972 * lread.c: Remove some unused variables.
20973 (safe_to_load_p): If safe, return the magic number version byte.
20974 (Fload): Maybe use load-with-code-conversion.
20975
20976 2008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * category.c (Fmodify_category_entry): Don't modify the contents
20979 of category_set for characters out of the range. Avoid
20980 unnecessary modification.
20981
20982 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20983 Vchar_unify_table. The default value of the table is now nil.
20984
20985 * character.c (syms_of_character): Setup Vchar_width_table for
20986 eight-bit-control and raw-byte chars.
20987
20988 * charset.h (enum define_charset_arg_index): Delete
20989 charset_arg_parents and add charset_arg_subset and
20990 charset_arg_superset.
20991 (enum charset_attr_index): Delete charset_parents and add
20992 charset_subset and charset_superset.
20993 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20994 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20995 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20996 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20997 (CHARSET_SUPERSET): New macros.
20998 (charset_work): Extern it.
20999 (ENCODE_CHAR): Use charset_work.
21000 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21001 (map_charset_chars): Extern it.
21002
21003 * charset.c (load_charset_map): Set the default value of encoder
21004 and deunifier char-tables to nil.
21005 (map_charset_chars): Change argument. Change callers. Use
21006 map_char_table_for_charset instead of map_char_table.
21007 (Fmap_charset_chars): New optional args from_code and to_code.
21008 (Fdefine_charset_internal): Adjust for the change of
21009 `define-charset' (:parents -> :subset or :superset).
21010 (charset_work): New variable.
21011 (encode_char, syms_of_charset): Adjust for the change of
21012 Fdefine_charset_internal.
21013 (Ffind_charset_string): Setup the vector `charsets' correctly.
21014
21015 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21016 the previous change.
21017 (char_table_ref_and_range): Adjust for the above change.
21018 (map_sub_char_table_for_charset): New function.
21019 (map_char_table_for_charset): New function.
21020
21021 * keymap.c (describe_vector): Handle a char-table directly here.
21022 (describe_char_table): Delete.
21023
21024 * lisp.h (map_charset_chars): Delete.
21025
21026 2008-02-01 Dave Love <fx@gnu.org>
21027
21028 * fns.c (count_combining): Comment out (unused).
21029 (Flocale_codeset): New.
21030 (syms_of_fns): Defsubr it.
21031
21032 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21033 (size_t): Remove.
21034
21035 2008-02-01 Dave Love <fx@gnu.org>
21036
21037 * Makefile.in (chartab.o): Depend on charset.h.
21038
21039 2008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * character.c (syms_of_character): Set the default value of
21042 Vprintable_chars to Qnil.
21043
21044 2008-02-01 Dave Love <fx@gnu.org>
21045
21046 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21047
21048 2008-02-01 Kenichi Handa <handa@m17n.org>
21049
21050 * charset.c (load_charset_map): Handle the case that from < to
21051 correctly.
21052
21053 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21054 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21055 Pay attention to raw-8-bit chars.
21056
21057 2008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21060 It is not bytecompiled now.
21061
21062 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21063 (charset_jisx0208): New variables.
21064 (Fdefine_charset_internal): Setup them if appropriate.
21065 (init_charset_once): Initialize them to -1.
21066
21067 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21068 (charset_jisx0208): Extern them.
21069
21070 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21071 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21072 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21073 (setup_iso_safe_charsets): Fix arguments to Fassq.
21074 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21075 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21076 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21077 (encode_coding_iso_2022): Change the 1st arg to
21078 ENCODE_ISO_CHARACTER to a variable.
21079
21080 2008-02-01 Kenichi Handa <handa@m17n.org>
21081
21082 * charset.h (enum define_charset_arg_index): New enums
21083 charset_arg_min_code and charset_arg_max_code.
21084 (struct charset): New member char_index_offset.
21085
21086 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21087 Take charset->char_index_offset into account.
21088 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21089 args[charset_arg_max_code]. Setup charset.char_index_offset.
21090 (syms_of_charset): Fix args to Fdefine_charset_internal.
21091
21092 2008-02-01 Dave Love <fx@gnu.org>
21093
21094 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21095
21096 2008-02-01 Dave Love <fx@gnu.org>
21097
21098 * coding.c: Doc fixes.
21099 (Fcoding_system_aliases): Fix return value.
21100 (Qmac): Remove (duplicated) definition.
21101
21102 2008-02-01 Dave Love <fx@gnu.org>
21103
21104 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21105 New functions.
21106
21107 * character.c (Fstring): Doc fix.
21108
21109 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21110
21111 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
21112 (font-encoding-alist): Doc fix.
21113
21114 2008-02-01 Dave Love <fx@gnu.org>
21115
21116 * term.c (costs_set): Declare static, non-initialized for pcc.
21117 (encode_terminal_code): Remove unused var.
21118
21119 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21120 for K&R.
21121
21122 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21123
21124 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21125 (suffixes): Move out of make_subsidiaries for K&R.
21126
21127 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21128
21129 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21130
21131 2008-02-01 Dave Love <fx@gnu.org>
21132
21133 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21134
21135 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21136
21137 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21138
21139 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21140
21141 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21142
21143 2008-02-01 Kenichi Handa <handa@m17n.org>
21144
21145 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21146 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21147
21148 2008-02-01 Kenichi Handa <handa@m17n.org>
21149
21150 * coding.c (decode_coding_charset): Adjust for the change of
21151 Fdefine_coding_system_internal.
21152 (Fdefine_coding_system_internal): For a coding system of
21153 `charset' type, store a list of charset IDs in
21154 `charset_attr_charset_valids' element of coding attributes.
21155
21156 2008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21159 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21160 caller. Handle 2-byte and 3-byte charsets correctly.
21161 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21162 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21163 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21164 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21165 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21166 sequence.
21167 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21168 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21169 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21170 and alt&rule composition.
21171 (decode_coding_iso_2022): Handle composition correctly.
21172 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21173
21174 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21175 re-defining a charset. If the charset has :emacs-mule-id, setup
21176 emacs_mule_bytes.
21177 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21178
21179 2008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21182 (encode_coding_big5, encode_coding_charset): If coding requires safe
21183 encoding, produce a character specified by
21184 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21185
21186 2008-02-01 Dave Love <fx@gnu.org>
21187
21188 * xterm.c (XSetIMValues): Declare.
21189
21190 * process.c: Conditionally include sys/wait.h, pty.h.
21191
21192 * print.c (print_object): Fix print format for 64-bit systems.
21193
21194 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21195
21196 * buffer.c (emacs_strerror): Declare.
21197
21198 * fontset.c (Fclear_face_cache): Declare.
21199 (accumulate_font_info): Comment-out (unused).
21200 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21201 variables.
21202
21203 * character.h (string_escape_byte8): Declare.
21204
21205 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21206 unused vars.
21207 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21208 (Fmap_charset_chars): Doc fix.
21209
21210 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21211 (Fset_coding_system_priority, Fset_coding_system_priority)
21212 (Fdefine_coding_system_internal): Doc fix.
21213
21214 2008-02-01 Dave Love <fx@gnu.org>
21215
21216 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21217
21218 2008-02-01 Kenichi Handa <handa@m17n.org>
21219
21220 * character.c (string_escape_byte8): Make multibyte string with
21221 correct size.
21222
21223 * charset.c (Fmake_char): Delete unnecessary code.
21224
21225 2008-02-01 Kenichi Handa <handa@m17n.org>
21226
21227 * xfns.c (x_encode_text): Allocate coding.destination here, and
21228 call encode_coding_object with dst_object Qnil.
21229
21230 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21231 multibyte form correctly.
21232
21233 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21234 against Vfont_encoding_alist.
21235
21236 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21237 handling of charset list.
21238 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21239 (decode_coding_object): Move point to coding->dst_pos before
21240 calling post-read-conversion function.
21241 (encode_coding_object): Give correct arguments to
21242 pre-write-conversion. Ignore the return value of
21243 pre-write-conversion function. Pay attention to the case that
21244 pre-write-conversion changes the current buffer. If dst_object is
21245 Qt, even if coding->src_bytes is zero, allocate at least one byte
21246 to coding->destination.
21247
21248 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21249
21250 * charset.c (Fmake_char): Make it more backward compatible.
21251 (Fmap_charset_chars): Fix docstring.
21252
21253 2008-02-01 Dave Love <fx@gnu.org>
21254
21255 * coding.c: Doc fixes.
21256 (Fdefine_coding_system_alias): Use names, not symbols, in
21257 coding-system-alist.
21258
21259 2008-02-01 Kenichi Handa <handa@m17n.org>
21260
21261 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21262 of calling free_realized_face.
21263
21264 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21265
21266 * charset.c (read_hex): Don't treat SPC as a comment starter.
21267 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21268 (Fdecode_char): Fix typo.
21269
21270 2008-02-01 Kenichi Handa <handa@m17n.org>
21271
21272 * charset.h (struct charset): New member `code_space_mask'.
21273
21274 * coding.c (coding_set_source): Delete the local variable beg_byte.
21275 (encode_coding_charset, Fdefine_coding_system_internal):
21276 Delete the local variable charset.
21277 (Fdefine_coding_system_internal): Setup
21278 attrs[coding_attr_charset_valids] correctly.
21279
21280 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21281 member to check if CODE is valid or not.
21282 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21283 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21284 is within the range of charset->min_code and carset->max_code.
21285
21286 2008-02-01 Dave Love <fx@gnu.org>
21287
21288 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21289
21290 * dispextern.h (generate_ascii_font): Fix return type.
21291
21292 * xfaces.c (generate_ascii_font): Fix arg declaration.
21293
21294 * coding.c (coding_inherit_eol_type)
21295 (Fset_terminal_coding_system_internal)
21296 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21297
21298 2008-02-01 Kenichi Handa <handa@m17n.org>
21299
21300 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21301 multiple charsets correctly.
21302
21303 2008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * search.c (boyer_moore): Fix handling of multibyte character
21306 translation.
21307
21308 * xdisp.c (display_mode_element): When the variable `elt' is
21309 changed, update `this' and `lisp_string'.
21310
21311 2008-02-01 Kenichi Handa <handa@m17n.org>
21312
21313 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21314
21315 * callproc.c (Fcall_process): Be sure to give the current buffer
21316 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21317
21318 * charset.c (struct charset_map_entries): New struct.
21319 (load_charset_map): Rename from parse_charset_map. New args
21320 entries and n_entries. Change caller.
21321 (load_charset_map_from_file): Rename from load_charset_map.
21322 Change caller. New arg control_flag. Call load_charset_map at
21323 the tail.
21324 (load_charset_map_from_vector): New function.
21325 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21326 (encode_char): If the charset is compact, change a character index
21327 to a code point.
21328
21329 * coding.c (coding_alloc_by_making_gap): Check the case that the
21330 source and destination are the same correctly.
21331 (decode_coding_raw_text): Set coding->consumed_char and
21332 coding->consumed to 0.
21333 (produce_chars): If coding->chars_at_source is nonzero, update
21334 coding->consumed_char and coding->consumed before calling
21335 alloc_destination.
21336 (Fdefine_coding_system_alias): Register ALIAS in
21337 Vcoding_system_alist.
21338 (syms_of_coding): Define `no-conversion' coding system at the tail.
21339
21340 * fileio.c (Finsert_file_contents): Set coding_system instead of
21341 val. If the current buffer is multibyte, always call
21342 decode_coding_gap.
21343
21344 * xfaces.c (try_font_list): Give higher priority to fontset's
21345 family than face's family.
21346
21347 2008-02-01 Kenichi Handa <handa@m17n.org>
21348
21349 * callproc.c (Fcall_process): Be sure to give the current buffer
21350 to decode_coding_c_string.
21351
21352 * xfaces.c (try_font_list): Give a family specified in a fontset
21353 higher priority than a family specified in a face.
21354
21355 2008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21358 Fix arguments to insert_from_buffer.
21359
21360 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21361
21362 2008-02-01 Kenichi Handa <handa@m17n.org>
21363
21364 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21365 (decode_coding_gap): Set coding->dst_multibyte correctly.
21366
21367 2008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21370 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21371 (encode_coding_utf_16): Substitute coding->default_char for
21372 non-Unicode characters.
21373 (decode_coding): Don't call record_insert here.
21374 (setup_coding_system): Initialize `surrogate' of
21375 coding->spec.utf_16 to 0.
21376 (EMIT_ONE_BYTE): Fix for multibyte case.
21377
21378 * insdel.c (insert_from_gap): Call record_insert.
21379
21380 2008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * casefiddle.c (casify_region): Fix multibyte case.
21383
21384 * character.c (c_string_width): Add return type `int'.
21385 (char_string_with_unification): Delete arg ADVANCED.
21386
21387 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21388 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21389 (CHAR_STRING_ADVANCE): Make it do-while statement.
21390
21391 * chartab.c (sub_char_table_set_range): Optimize for the case
21392 DEPTH == 3. Add workaround code for a GCC optimization bug.
21393
21394 * charset.c (parse_charset_map): Remove an unused variable.
21395
21396 * coding.c: Delete unused variables.
21397
21398 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21399 earlier. If inserted is zero and the coding system doesn't
21400 require flushing, don't call decode_coding_gap.
21401
21402 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21403
21404 2008-02-01 Kenichi Handa <handa@m17n.org>
21405
21406 The following changes are for using Unicode as an internal
21407 character model, and use UTF-8 format for buffer/string
21408 representation.
21409
21410 * .gdbinit (xchartable): Adjust for the change of char table structure.
21411 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21412
21413 * Makefile.in (obj): Add character.o and chartab.o.
21414 (lisp, shortlisp): Remove utf-8.elc.
21415 (*.o): For many files, change dependency on charset.h to
21416 character.h, and add dependency on character.h.
21417 (character.o, chartab.o): New targets.
21418
21419 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21420 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21421 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21422 of "charset.h".
21423
21424 * dired.c, filelock.c: Include "character.h".
21425
21426 * alloc.c: Include "character.h" instead of "charset.h".
21427 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21428 (syms_of_alloc): Remove defsubr for Smake_char_table.
21429
21430 * buffer.c: Include "character.h" instead of "charset.h", don't
21431 include "coding.h".
21432 (Fset_buffer_multibyte): Adjust for UTF-8.
21433
21434 * buffer.h: EXFUN Fbuffer_live_p.
21435
21436 * callproc.c: Include "character.h" instead of "charset.h".
21437 (Fcall_process): Big change for the new code-conversion APIs.
21438
21439 * casetab.c: Include "character.h" instead of "charset.h".
21440 (set_canon, set_identity, shuffle): Adjust for the new
21441 map_char_table spec.
21442 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21443 accessing the char table structure.
21444
21445 * chartab.c: New file that implements char table.
21446
21447 * category.c: Include "character.h".
21448 (copy_category_entry): New function.
21449 (copy_category_table): Call map_char_table and copy_category_entry.
21450 (Fmake_category_table): Initialize all top-level slots.
21451 (char_category_set): New function.
21452 (modify_lower_category_set): Delete.
21453 (Fmodify_category_entry): Call char_table_ref_and_range.
21454
21455 * category.h (CATEGORY_SET): Just call char_category_set.
21456
21457 * ccl.c: Include "character.h".
21458 (Qccl, Qcclp): New variables.
21459 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21460 it's less than 256.
21461 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21462 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21463 and DST type.
21464 (ccl_driver): Change types of argument, adjust code accordingly.
21465 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21466 ccl_driver.
21467 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21468
21469 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21470 New members src_multibyte, dst_multibyte, consumed, and produced.
21471 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21472 (CODING_SPEC_CCL_PROGRAM): New macro.
21473 (ccl_driver): Update prototype.
21474 (Qccl, Qcclp, Fccl_program_p): Extern them.
21475 (CHECK_CCL_PROGRAM): New macro.
21476
21477 * character.c, character.h, chartab.c: New files.
21478
21479 * charset.c: Mostly re-written. Move character and multibyte sequence
21480 handling codes to character.c.
21481
21482 * charset.h: Mostly re-written. Move character and multibyte sequence
21483 handling codes to character.h.
21484
21485 * coding.c, coding.h: Mostly re-written.
21486
21487 * composite.c: Include "character.h" instead of "charset.h".
21488 (CHAR_WIDTH): Move to character.h.
21489 (HASH_KEY, HASH_VALUE): Delete.
21490
21491 * composite.h (enum composition_method): Change order of enumeration
21492 symbols.
21493
21494 * data.c: Include "character.h" instead of "charset.h".
21495 (Faref): Call CHAR_TABLE_REF for a char table.
21496 (Faset): Call CHAR_TABLE_SET for a char table.
21497
21498 * dispextern.h (free_realized_face, check_face_attribytes)
21499 (generate_ascii_font): Extern them.
21500 (free_realized_multibyte_face): Delete extern.
21501
21502 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21503 table structure.
21504
21505 * editfns.c: Include "character.h" instead of "charset.h".
21506 (Fchar_to_string): Always call CHAR_STRING.
21507
21508 * emacs.c (main): Call init_charset_once, init_charset,
21509 syms_of_chartab, and syms_of_character.
21510
21511 * fileio.c: Include "character.h" instead of "charset.h".
21512 (Finsert_file_contents): Big change for the new code-conversion API.
21513 (choose_write_coding_system, Fwrite_region): Likewise.
21514 (build_annotations_2): Delete.
21515 (e_write): Big change for the new code-conversion API.
21516
21517 * fns.c: Include "character.h" instead of "charset.h".
21518 (copy_sub_char_table): Move to chartab.c.
21519 (Fcopy_sequence): Call copy_char_table for a char table.
21520 (concat): Delete codes calling count_multibyte.
21521 (string_char_to_byte, string_byte_to_char): Adjust for the new
21522 multibyte form.
21523 (internal_equal): Adjust for the change of char table structure.
21524 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21525 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21526 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21527 (char_table_translate, optimize_sub_char_table)
21528 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21529 chartab.c.
21530 (char_table_ref_and_index): Delete.
21531 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21532 (Fmd5): Call preferred_coding_system instead of accessing
21533 Vcoding_category_list. Adjust for the new code-conversion API.
21534 (syms_of_fns): Move defsubr for char table related functions to
21535 chartab.c.
21536
21537 * fontset.c: Mostly re-written.
21538
21539 * fontset.h (struct font_info): Change type of the member encoding_type.
21540 (enum FONT_SPEC_INDEX): New enum.
21541 (fontset_font_pattern, fs_load_font): Update prototype.
21542 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21543
21544 * indent.c: Include "character.h" instead of "charset.h".
21545 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21546
21547 * insdel.c: Include "character.h" instead of "charset.h".
21548 (copy_text): Don't refer to Vnonascii_translation_table.
21549 (insert_from_gap): New function.
21550
21551 * keyboard.c: Include "character.h" instead of "charset.h".
21552 (command_loop_1): Never call direct_output_forward_char before
21553 a non-ASCII character.
21554 (read_char): If Vkeyboard_translate_table is a char table, always
21555 translate a character.
21556
21557 * keymap.c: Include "character.h".
21558 (store_in_keymap): Handle the case that IDX is a cons.
21559 (Fdefine_key): Handle the case that KEY is a cons and the car part
21560 is also a cons (range).
21561 (push_key_description): Adjust for the new character code.
21562 (describe_vector): Call describe_char_table for a char table.
21563 (describe_char_table): New function.
21564
21565 * keymap.h (describe_char_table): Extern it.
21566
21567 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21568 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21569 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21570 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21571 Delete.
21572 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21573 structure.
21574 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21575 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21576 (CHARTAB_SIZE_BITS_3): New macros.
21577 (chartab_size): Extern it.
21578 (struct Lisp_Char_Table): Re-design.
21579 (struct Lisp_Sub_Char_Table): New structure.
21580 (HASH_KEY, HASH_VALUE): Move from fns.c.
21581 (CHARACTERBITS): Define as 22.
21582 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21583 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21584 (GC_SUB_CHAR_TABLE_P): New macro.
21585 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21586 (code_convert_string_norecord): Deleted extern.
21587 (init_character_once, syms_of_character, init_charset)
21588 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21589
21590 * lread.c: Include "character.h".
21591 (read_multibyte): New arg NBYTES.
21592 (read_escape): Change the meaning of returned *BYTEREP.
21593 (to_multibyte): Delete.
21594 (read1): Adjust the handling of char table and string.
21595
21596 * print.c: Include "character.h" instead of "charset.h".
21597 (print_string): Convert 8-bit raw bytes to octal form by
21598 string_escape_byte8.
21599 (print_object): Adjust for the new multibyte form. Print 8-bit
21600 raw bytes always in octal form. Handle sub char table correctly.
21601
21602 * process.c: Include "character.h" instead of "charset.h".
21603 (read_process_output, send_process): Adjust for the new
21604 code-conversion API.
21605
21606 * puresize.h (BASE_PURESIZE): Increase.
21607
21608 * regex.c: Include "character.h" instead of "charset.h".
21609 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21610 (regex_compile): Accept a range whose starting and ending
21611 character have different leading bytes.
21612 (analyse_first): Adjust for the above change.
21613
21614 * search.c: Include "character.h" instead of "charset.h".
21615 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21616 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21617
21618 * syntax.c: Include "character.h" instead of "charset.h".
21619 (syntax_parent_lookup): Delete.
21620 (Fmodify_syntax_entry): Accept a cons as CHAR.
21621 (skip_chars): Adjust for the new multibyte form.
21622 (init_syntax_once): Call char_table_set_range instead of directly
21623 accessing the structure of a char table.
21624
21625 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21626 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21627 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21628 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21629
21630 * term.c: Include "buffer.h" and "character.h".
21631 (encode_terminal_code, write_glyphs): Adjust for the new
21632 code-conversion API.
21633 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21634
21635 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21636
21637 * xdisp.c: Include "character.h".
21638 (get_next_display_element): Adjust for the new multibyte form.
21639 (disp_char_vector): Adjust for the new char table structure.
21640 (decode_mode_spec_coding): Adjust for the new structure of
21641 coding system.
21642 (decode_mode_spec): Adjust for the new code-conversion API.
21643
21644 * xfaces.c: Include "character.h" instead of "charset.h".
21645 (load_face_font): Adjust for the change of choose_face_font and
21646 FS_LOAD_FONT.
21647 (generate_ascii_font): New function.
21648 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21649 (set_font_frame_param): Adjust for the change of choose_face_font.
21650 (free_realized_face): Make it public.
21651 (free_realized_faces_for_fontset): Rename from
21652 free_realized_multibyte_face. Free also faces realized for ASCII.
21653 (choose_face_font): Change arguments. Adjust for the change of
21654 fontset_font_pattern and FS_LOAD_FONT.
21655
21656 * xfns.c: Include "character.h".
21657 (x_encode_text): Adjust for the new code-conversion API.
21658
21659 * xselect.c: Don't include "charset.h".
21660 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21661
21662 * xterm.c: Include "character.h".
21663 (x_encode_char): New argument CHARSET. Change caller.
21664 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21665 Call ENCODE_CHAR instead of SPLIT_CHAR.
21666 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21667 CHAR_WIDTH instead of CHARSET_WIDTH.
21668 (XTread_socket): Adjust for the new code-conversion API.
21669 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21670 (x_load_font): Adjust for the change of struct font.
21671
21672 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21673
21674 * xfaces.c (face_at_buffer_position): Remove unused vars.
21675
21676 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21677
21678 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21679 Fix overflow checking.
21680
21681 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21682
21683 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21684 Cancel previous change.
21685
21686 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21687
21688 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21689 ccl->eight_bit_control. Fix check for buffer overflow.
21690 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21691 (ccl_driver): Initialize extra_bytes to 0.
21692
21693 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21694
21695 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21696 return it ORed with ctrl_modifier.
21697
21698 2008-01-29 Miles Bader <miles@gnu.org>
21699
21700 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21701
21702 2008-01-28 Jason Rumney <jasonr@gnu.org>
21703
21704 * w32.c (stat): Don't double check for networked drive.
21705
21706 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21707
21708 * window.c (run_window_configuration_change_hook): New function.
21709 Code extracted from set_window_buffer. Set the selected frame.
21710 (set_window_buffer): Use it.
21711 * window.h (run_window_configuration_change_hook): Declare.
21712 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21713
21714 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21715
21716 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21717
21718 * Makefile.in: Remove references to unused macros.
21719
21720 2008-01-26 Eli Zaretskii <eliz@gnu.org>
21721
21722 * w32.c (g_b_init_get_sid_sub_authority)
21723 (g_b_init_get_sid_sub_authority_count): New static variables.
21724 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21725 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21726 (init_user_info): Use them to retrieve uid and gid.
21727 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21728 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21729 st_uid and st_gid of the file.
21730
21731 2008-01-26 Jason Rumney <jasonr@gnu.org>
21732
21733 * w32.c (logon_network_drive): New function.
21734 (stat): Use it.
21735
21736 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
21737
21738 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21739 invisible text covered with an ellipsis.
21740
21741 2008-01-25 Richard Stallman <rms@gnu.org>
21742
21743 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21744 jump back to beginning. Move some other initializations after that.
21745 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21746 New variables.
21747 (syms_of_xdisp): Init them.
21748
21749 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21750
21751 * buffer.c (reset_buffer_local_variables):
21752 Implement `permanent-local-hook'.
21753 (Qpermanent_local_hook): New variable.
21754 (syms_of_buffer): Init and staticpro it.
21755
21756 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
21757
21758 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21759
21760 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21761
21762 * fns.c (Fclrhash): Return TABLE.
21763
21764 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21765
21766 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21767 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21768 is set even without positional changes.
21769 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21770
21771 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21772
21773 2008-01-23 Jason Rumney <jasonr@gnu.org>
21774
21775 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21776
21777 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21778 the unicode range available in MULE by locale-coding-system.
21779 Improve dbcs lead byte detection. Set event timestamp and modifiers
21780 earlier.
21781
21782 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21783
21784 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21785 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21786 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21787 when used on child processes.
21788
21789 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
21790
21791 * dbusbind.c (Fdbus_method_return_internal): Rename from
21792 Fdbus_method_return.
21793 (Fdbus_unregister_object): Move to dbus.el.
21794 (Fdbus_call_method, Fdbus_method_return_internal)
21795 (Fdbus_send_signal): Improve debug messages.
21796
21797 2008-01-20 Martin Rudalics <rudalics@gmx.at>
21798
21799 * undo.c (undo_inhibit_record_point): New variable.
21800 (syms_of_undo): Initialize it.
21801 (record_point): Don't record point when undo_inhibit_record_point
21802 is set.
21803
21804 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21805
21806 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21807
21808 * xdisp.c (Qauto_hscroll_mode): New var.
21809 (syms_of_xdisp): Initialize it.
21810 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21811 window's buffer.
21812 (hscroll_windows): Don't check automatic_hscrolling_p here.
21813
21814 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21815 vscroll if we're setting window-buffer to the value it already has.
21816
21817 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21818
21819 * m/intel386.h: Remove references to XENIX.
21820
21821 2008-01-17 Andreas Schwab <schwab@suse.de>
21822
21823 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21824 instead of HAVE_X86_64_LIB64_DIR.
21825 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21826
21827 2008-01-17 Glenn Morris <rgm@gnu.org>
21828
21829 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21830 to HAVE_X86_64_LIB64_DIR.
21831
21832 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21833
21834 * s/irix3-3.h:
21835 * s/irix4-0.h:
21836 * s/386-ix.h:
21837 * s/domain.h:
21838 * s/hpux9-x11r4.h:
21839 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21840
21841 * sysdep.c: Remove code containing references to symbols defined
21842 by unsupported systems.
21843
21844 2008-01-16 Glenn Morris <rgm@gnu.org>
21845
21846 * coding.c (select-safe-coding-system-function): Doc fix.
21847
21848 2008-01-15 Glenn Morris <rgm@gnu.org>
21849
21850 * config.in: Revert 2008-01-13 change: this is a generated file.
21851
21852 2008-01-13 Tom Tromey <tromey@redhat.com>
21853
21854 * lisp.h: Fix typo.
21855
21856 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21857
21858 * m/sequent-ptx.h:
21859 * m/sequent.h:
21860 * s/ptx.h:
21861 * s/ptx4-2.h:
21862 * s/ptx4.h: Remove files for systems no longer supported.
21863
21864 * callproc.c (Fcall_process): Fix previous change.
21865
21866 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21867
21868 * unexsunos4.c: Remove file, system not supported anymore.
21869
21870 * m/mips.h:
21871 * m/intel386.h:
21872 * callproc.c:
21873 * config.in:
21874 * ecrt0.c:
21875 * emacs.c:
21876 * fileio.c:
21877 * frame.c:
21878 * getpagesize.h:
21879 * keyboard.c:
21880 * lread.c:
21881 * process.c:
21882 * puresize.h:
21883 * sysdep.c:
21884 * systty.h:
21885 * syswait.h:
21886 * unexec.c:
21887 * xdisp.c:
21888 * alloc.c: Remove code containing references to symbols defined by
21889 unsupported systems.
21890
21891 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21892
21893 * coding.c (detect_coding_mask): Fix previous change.
21894
21895 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21896
21897 * coding.c (detect_coding_iso2022): New arg
21898 latin_extra_code_state. Allow Latin extra codes only
21899 when *latin_extra_code_state is nonzero.
21900 (detect_coding_mask): If there is a NULL byte, detect the encoding
21901 as UTF-16 or binary. If Latin extra codes exist, detect the
21902 encoding as ISO-2022 only when there's no other proper encoding is
21903 found.
21904
21905 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21906
21907 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21908 #ifdef MAC_OS.
21909
21910 2008-01-08 Richard Stallman <rms@gnu.org>
21911
21912 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21913
21914 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
21915
21916 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21917 menu bar in parentheses.
21918
21919 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21920
21921 * m/7300.h:
21922 * m/acorn.h:
21923 * m/alliant-2800.h:
21924 * m/alliant.h:
21925 * m/alliant1.h:
21926 * m/alliant4.h:
21927 * m/altos.h:
21928 * m/amdahl.h:
21929 * m/apollo.h:
21930 * m/att3b.h:
21931 * m/aviion-intel.h:
21932 * m/aviion.h:
21933 * m/celerity.h:
21934 * m/clipper.h:
21935 * m/cnvrgnt.h:
21936 * m/convex.h:
21937 * m/cydra5.h:
21938 * m/delta88k.h:
21939 * m/dpx2.h:
21940 * m/dual.h:
21941 * m/elxsi.h:
21942 * m/f301.h:
21943 * m/gould-np1.h:
21944 * m/gould.h:
21945 * m/i860.h:
21946 * m/ibmps2-aix.h:
21947 * m/ibmrt-aix.h:
21948 * m/ibmrt.h:
21949 * m/irist.h:
21950 * m/is386.h:
21951 * m/isi-ov.h:
21952 * m/mega68.h:
21953 * m/mg1.h:
21954 * m/news-r6.h:
21955 * m/news-risc.h:
21956 * m/news.h:
21957 * m/nh3000.h:
21958 * m/nh4000.h:
21959 * m/ns16000.h:
21960 * m/ns32000.h:
21961 * m/nu.h:
21962 * m/orion.h:
21963 * m/orion105.h:
21964 * m/paragon.h:
21965 * m/pfa50.h:
21966 * m/plexus.h:
21967 * m/pyramid.h:
21968 * m/pyrmips.h:
21969 * m/sh3el.h:
21970 * m/sps7.h:
21971 * m/sr2k.h:
21972 * m/stride.h:
21973 * m/sun1.h:
21974 * m/sun2.h:
21975 * m/sun3-68881.h:
21976 * m/sun3-fpa.h:
21977 * m/sun3-soft.h:
21978 * m/sun3.h:
21979 * m/sun386.h:
21980 * m/symmetry.h:
21981 * m/tad68k.h:
21982 * m/tahoe.h:
21983 * m/targon31.h:
21984 * m/tek4300.h:
21985 * m/tekxd88.h:
21986 * m/tower32.h:
21987 * m/tower32v3.h:
21988 * m/ustation.h:
21989 * m/wicat.h:
21990 * m/xps100.h:
21991 * s/cxux.h:
21992 * s/cxux7.h:
21993 * s/dgux.h:
21994 * s/dgux4.h:
21995 * s/dgux5-4-3.h:
21996 * s/dgux5-4r2.h:
21997 * s/esix.h:
21998 * s/esix5r4.h:
21999 * s/hiuxmpp.h:
22000 * s/hiuxwe2.h:
22001 * s/iris3-5.h:
22002 * s/iris3-6.h:
22003 * s/isc2-2.h:
22004 * s/isc3-0.h:
22005 * s/isc4-0.h:
22006 * s/isc4-1.h:
22007 * s/newsos5.h:
22008 * s/newsos6.h:
22009 * s/osf1.h:
22010 * s/osf5-0.h:
22011 * s/riscix1-1.h:
22012 * s/riscix12.h:
22013 * s/sco4.h:
22014 * s/sco5.h:
22015 * s/sunos4-0.h:
22016 * s/sunos4-1.h:
22017 * s/sunos413.h:
22018 * s/sunos4shr.h:
22019 * s/umax.h:
22020 * s/unipl5-2.h:
22021 * s/xenix.h:
22022 * cxux-crt0.s:
22023 * unexapollo.c:
22024 * unexconvex.c:
22025 * unexenix.c:
22026 * unexsni.c: Remove files for systems no longer supported.
22027
22028 * m/intel386.h: Remove references to unsupported systems.
22029
22030 * w32.c (get_emacs_configuration): Remove reference to i860.
22031
22032 * sysdep.c: Remove dead code.
22033
22034 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22035
22036 * s/rtu.h:
22037 * m/masscomp.h: Remove files. Platform is obsolete.
22038
22039 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22040
22041 * dbusbind.c (Fdbus_method_return): New function.
22042 (xd_read_message): Add the serial number to the event.
22043 (Fdbus_register_method): Activate the function.
22044
22045 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22046
22047 * keyboard.c (read_key_sequence): Fix typo.
22048
22049 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22050
22051 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22052 (xd_signature, xd_append_arg): Handle element type detection for
22053 empty arrays.
22054 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22055 SDATA () calls; this must be solved more general.
22056 (Fdbus_register_signal): Use SBYTES instead of strlen.
22057
22058 2008-01-03 Magnus Henoch <magnus@zemdatav>
22059
22060 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22061 unsigned int for byte values (necessary for big-endian platform).
22062 (Fdbus_call_method): Handle the case of no returned arguments.
22063
22064 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22065
22066 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22067
22068 2007-12-31 Magnus Henoch <mange@freemail.hu>
22069
22070 * dbusbind.c (xd_signature): Signature of variant is just "v".
22071
22072 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22073
22074 * dbusbind.c: Fix several errors and compiler warnings.
22075 Reported by Tom Tromey <tromey@redhat.com>.
22076 (XD_ERROR, XD_DEBUG_MESSAGE)
22077 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22078 (xd_append_arg): Part for basic D-Bus types rewritten.
22079 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22080 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22081 appropriate.
22082 (xd_read_message): Return Qnil. Don't signal an error; it is not
22083 useful during event reading.
22084 (Fdbus_register_signal): Signal an error if the check for
22085 FUNCTIONP fails.
22086 (Fdbus_register_method): New function. The implementation is not
22087 complete, the call of the function signals an error therefore.
22088 (Fdbus_unregister_object): New function, renamed from
22089 Fdbus_unregister_signal. The initial check signals an error, if
22090 the object is not well formed.
22091
22092 2007-12-30 Richard Stallman <rms@gnu.org>
22093
22094 * textprop.c (get_char_property_and_overlay):
22095 Signal error if POSITION is out of range in a buffer.
22096
22097 2007-12-29 Martin Rudalics <rudalics@gmx.at>
22098
22099 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22100 because the original parameters are in pure storage now.
22101
22102 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22103
22104 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22105
22106 2007-12-22 Eli Zaretskii <eliz@gnu.org>
22107
22108 * callint.c (syms_of_callint) <command-history>: Add reference to
22109 history-length in the doc string.
22110
22111 2007-12-17 Jason Rumney <jasonr@gnu.org>
22112
22113 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22114 before passing as wParam.
22115
22116 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
22117
22118 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22119 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22120 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22121 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22122 as number.
22123 (Fdbus_call_method): Fix docstring.
22124
22125 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
22126
22127 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22128 New macros.
22129 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22130 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22131 Simplify.
22132 (xd_signature): New function.
22133 (xd_append_arg): Compute also signatures. Major rewrite.
22134 (xd_retrieve_arg): Make debug messages friendly.
22135 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22136 Check for signatures of arguments.
22137
22138 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
22139
22140 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22141 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22142 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22143 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22144 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22145 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22146 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22147 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22148 (xd_retrieve_value): Remove. Functionality included in ...
22149 (xd_append_arg): New function.
22150 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22151
22152 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
22153
22154 * dbusbind.c (top): Include <stdio.h>.
22155 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22156 dbus_message_new_method_call and dbus_message_new_signal.
22157 (Fdbus_register_signal): Rename unique_name to uname.
22158 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22159 non-existing unique name. Fix typos in matching rule. Return an
22160 object which is useful in Fdbus_unregister_signal.
22161 (Fdbus_unregister_signal): Reimplementation, in order to remove
22162 only the corresponding entry.
22163 (Vdbus_registered_functions_table): Change the order of entries.
22164 Apply these changes in xd_read_message and Fdbus_register_signal.
22165
22166 2007-12-16 Andreas Schwab <schwab@suse.de>
22167
22168 * fileio.c (Finsert_file_contents): Fix overflow check to not
22169 depend on undefined integer overflow.
22170
22171 2007-12-14 Jason Rumney <jasonr@gnu.org>
22172
22173 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22174 for characters above 127.
22175
22176 2007-12-13 Jason Rumney <jasonr@gnu.org>
22177
22178 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22179 before dereferencing array.
22180 (lookup_vk_code): Remove zero comparison.
22181
22182 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
22183
22184 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22185 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22186 Use `unsigned int' instead of `uint'.
22187 (xd_read_message, Fdbus_register_signal): Split expressions into
22188 multiple lines before operators "&&" and "||", according to the
22189 GNU Coding Standards.
22190
22191 2007-12-14 Eli Zaretskii <eliz@gnu.org>
22192
22193 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22194
22195 2007-12-12 Juri Linkov <juri@jurta.org>
22196
22197 * buffer.c (Frename_buffer): In interactive spec replace
22198 `read-buffer' with `read-string' that uses `buffer-name-history'
22199 as history, and the current buffer's name as default.
22200
22201 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22202
22203 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22204 manipulating the backtrace manually.
22205 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22206 (struct backtrace, backtrace_list): Remove.
22207 (command_loop_1): Remove dead var `no_direct'.
22208
22209 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22210 preserve non-built-in buffer-local variables.
22211 (Fkill_all_local_variables): Don't re-create&re-set permanent
22212 buffer-local variables.
22213
22214 2007-12-09 Juri Linkov <juri@jurta.org>
22215
22216 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22217 Lisp code that uses `read-buffer' with current buffer as default.
22218
22219 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
22220
22221 * dbusbind.c (xd_read_message): Generate an event for every
22222 registered handler. There might be several handlers registered
22223 for the same signal.
22224 (Fdbus_register_signal): Don't overwrite a registration for the
22225 same signal. Add a new registration if handlers are different.
22226 (Vdbus_registered_functions_table): Rework doc string.
22227
22228 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
22229
22230 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22231 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22232 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22233 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22234 Unify argument lists.
22235 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22236 arguments and hash table keys. Use unique name for service.
22237 (Fdbus_unregister_signal): Remove checks.
22238 (Vdbus_registered_functions_table): Fix doc string.
22239
22240 2007-12-05 Magnus Henoch <mange@freemail.hu>
22241
22242 * process.c (make_process): Initialize pty_flag to 0.
22243
22244 2007-12-05 Jason Rumney <jasonr@gnu.org>
22245
22246 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22247 specified XBMs.
22248
22249 2007-12-05 Richard Stallman <rms@gnu.org>
22250
22251 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22252
22253 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22254
22255 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22256 New variable.
22257 (mac_try_close_socket) [MAC_OSX]: New function.
22258 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22259 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22260
22261 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22262 Use mac_try_close_socket.
22263
22264 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22265
22266 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22267 reloc_base.
22268 (copy_dysymtab): Compute relocation base here.
22269 (rebase_reloc_address) [__ppc64__]: New function.
22270 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22271 changed.
22272
22273 2007-12-05 Jason Rumney <jasonr@gnu.org>
22274
22275 * w32proc.c (sys_spawnve): Quote args with wildcards.
22276
22277 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22278
22279 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22280 __objc_* sections.
22281 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22282
22283 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
22284
22285 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22286 Move check for Vdbus_registered_functions_table to
22287 xd_read_queued_messages.
22288 (xd_read_queued_messages): Protect xd_read_message calls by
22289 internal_condition_case_1.
22290
22291 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
22292
22293 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22294 Qdbus_system_bus and Qdbus_session_bus, respectively.
22295 (Vdbus_intern_symbols): Remove.
22296 (Vdbus_registered_functions_table): New hash table.
22297 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22298 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22299 Rewrite in order to manage registered functions by hash table
22300 Vdbus_registered_functions_table.
22301
22302 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22303
22304 * xterm.c: Update URL to Window Manager Specification in comment.
22305
22306 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
22307
22308 * config.in (HAVE_DBUS): Add.
22309
22310 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22311 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22312 (obj): Add $(DBUS_OBJ).
22313 (LIBES): Add $(DBUS_LIBS).
22314 (dbusbind.o): New target.
22315
22316 * dbusbind.c: New file.
22317
22318 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22319
22320 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22321 (Qdbus_event): New Lisp symbol.
22322 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22323 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
22324 (keys_of_keyboard): Define dbus-event.
22325
22326 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22327
22328 2007-12-01 Richard Stallman <rms@gnu.org>
22329
22330 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22331
22332 2007-11-30 Jason Rumney <jasonr@gnu.org>
22333
22334 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22335 (w32con_reset_terminal_modes): Clear screen buffer.
22336 (w32_face_attributes): Don't use color indexes that are out of range.
22337 Only reverse the default colors.
22338
22339 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22340 WINDOWSNT.
22341
22342 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22343
22344 2007-11-29 Jason Rumney <jasonr@gnu.org>
22345
22346 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22347 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22348 if the terminal colors are initialized.
22349 (unspecified_fg, unspecified_bg): Remove unused declarations.
22350
22351 2007-11-29 Andreas Schwab <schwab@suse.de>
22352
22353 * keyboard.c (apply_modifiers): Fix typo.
22354
22355 2007-11-29 Richard Stallman <rms@gnu.org>
22356
22357 * keymap.c (Fcurrent_local_map): Doc fix.
22358
22359 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22360
22361 * s/gnu-kfreebsd.h: New file.
22362
22363 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22364
22365 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22366 Don't cast redundantly.
22367
22368 * keyboard.c (KEY_TO_CHAR): New macro.
22369 (parse_modifiers, apply_modifiers): Accept integer arguments.
22370 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22371 for chars and symbol keys.
22372 After doing such remapping, apply function-key-map again.
22373
22374 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22375
22376 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22377 compiled anymore.
22378
22379 2007-11-26 Andreas Schwab <schwab@suse.de>
22380
22381 * process.c (list_processes_1): Fix indentation level of the
22382 command column.
22383
22384 2007-11-23 Andreas Schwab <schwab@suse.de>
22385
22386 * editfns.c (Fformat): Handle %c specially since it requires the
22387 argument to be of type int.
22388
22389 2007-11-23 Markus Triska <markus.triska@gmx.at>
22390
22391 * emacs.c (main): Call init_editfns before init_process, since
22392 init_process sets Vprocess_connection_type depending on OS release.
22393
22394 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22395
22396 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22397 (find_symbol_value): Use do_symval_forwarding.
22398
22399 * data.c (set_internal): Set the value in the `cons-cell' (for
22400 Buffer_Local_values) not only for frame-local variables.
22401
22402 2007-11-22 Andreas Schwab <schwab@suse.de>
22403
22404 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22405 values to sprintf.
22406 * keymap.c (Fsingle_key_description): Likewise.
22407 * print.c (print_object): Likewise.
22408
22409 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22410
22411 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22412 file for image is nil.
22413
22414 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22415
22416 * term.c: Include stdarg.h.
22417 (fatal): Implement using varargs.
22418 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22419
22420 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22421
22422 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22423 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22424 Update call to buffer_slot_type_mismatch.
22425 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22426 (buffer_slot_type_mismatch): Update.
22427 * buffer.c (buffer_local_types): Remove.
22428 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22429 (defvar_per_buffer): Set the type in the buffer_objfwd.
22430
22431 2007-11-21 Jason Rumney <jasonr@gnu.org>
22432
22433 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22434 CreateFileMapping returns NULL on failure.
22435
22436 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22437
22438 * search.c (Fset_match_data): Remove the `evaporate' feature.
22439 (unwind_set_match_data): Don't use the `evaporate' feature.
22440
22441 2007-11-21 Jason Rumney <jasonr@gnu.org>
22442
22443 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22444
22445 * w32console.c (w32con_write_glyphs): Remove unused variables.
22446
22447 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22448
22449 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22450
22451 * s/darwin.h (MULTI_KBOARD): Remove.
22452
22453 * macfns.c (x_create_tip_frame, Fx_create_frame)
22454 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22455
22456 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22457
22458 * buffer.c (Fbuffer_local_value): Remove redundant test.
22459 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22460 than in `current-buffer' to match the comment.
22461 Do the swap using swap_in_global_binding.
22462
22463 * data.c (store_symval_forwarding, set_internal):
22464 * eval.c (specbind): Remove dead code.
22465
22466 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22467 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22468 Since we do not want to see internal Lisp_*fwd objects here.
22469
22470 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22471
22472 * sysdep.c (init_system_name): Use getaddrinfo if available.
22473
22474 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22475 (x_scroll_bar_note_movement): start, end, with, height in struct
22476 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22477
22478 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22479
22480 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22481
22482 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22483
22484 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22485 This undoes Richard's change of 14-Oct-2002.
22486
22487 * alloc.c (allocate_other_vector):
22488 * lisp.h (allocate_other_vector): Remove.
22489
22490 * window.c (struct save_window_data): Move non-lisp data to the end
22491 and make it `int' rather than Lisp_Object.
22492 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22493 Done wrap/unwrap integer values.
22494 (Fset_window_configuration, compare_window_configurations):
22495 Update use of fields to their new types.
22496
22497 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22498 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22499 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22500 (SET_SCROLL_BAR_X_WINDOW): Remove.
22501 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22502 Access the new x_window field directly.
22503 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22504 Don't wrap/unwrap integers into Lisp_Objects.
22505 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22506 (x_scroll_bar_report_motion):
22507 Don't wrap/unwrap integers into Lisp_Objects.
22508 (x_term_init): Use SDATA.
22509 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22510 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22511 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22512 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22513 * xfns.c (x_set_background_color):
22514 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22515 Access the new x_window field directly.
22516
22517 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22518 (allocate_pseudovector): Make non-static.
22519
22520 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22521 (allocate_pseudovector): Declare.
22522 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22523
22524 2007-11-15 Andreas Schwab <schwab@suse.de>
22525
22526 * editfns.c (Fformat): Correctly format EMACS_INT values.
22527 Also take precision into account when formatting an integer.
22528
22529 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22530
22531 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22532
22533 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22534 (syms_of_keyboard): Defsubr it.
22535
22536 * data.c (swap_in_global_binding): Fix longstanding bug where
22537 store_symval_forwarding was not called with the right second argument,
22538 thus causing objfwd-ing from being dropped.
22539
22540 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22541
22542 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22543 (Fx_display_pixel_height, Fx_display_planes)
22544 (Fx_display_color_cells, Fx_server_max_request_size)
22545 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22546 (Fx_display_visual_class, Fx_display_save_under):
22547 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22548 (Fx_display_pixel_height, Fx_display_planes)
22549 (Fx_display_color_cells, Fx_server_max_request_size)
22550 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22551 (Fx_display_mm_height, Fx_display_mm_width)
22552 (Fx_display_backing_store, Fx_display_visual_class)
22553 (Fw32_select_font, Fx_display_save_under):
22554 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22555 (Fx_display_pixel_height, Fx_display_planes)
22556 (Fx_display_color_cells, Fx_server_max_request_size)
22557 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22558 (Fx_display_save_under): Fix typos in docstrings.
22559
22560 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22561
22562 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22563 corresponding to deleted entries; they are an implementation detail.
22564 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22565 Remove variables.
22566 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22567 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22568 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22569 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22570 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22571 (Fw32_define_rgb_color, Fw32_load_color_file)
22572 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22573 Fix typos in docstrings.
22574 (Fx_server_version): Reflow docstring.
22575 (Fw32_shell_execute): Doc fixes.
22576
22577 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
22578
22579 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22580 if w32_parse_hot_key returned nil.
22581
22582 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22583
22584 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22585
22586 2007-11-09 Jason Rumney <jasonr@gnu.org>
22587
22588 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22589
22590 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22591
22592 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22593 Remove W32_SCROLL_BAR_CLICK_EVENT.
22594
22595 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22596 Add MULTIMEDIA_KEY_EVENT.
22597
22598 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22599 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22600 (make_lispy_event) [WINDOWSNT]: Use it to translate
22601 MULTIMEDIA_KEY_EVENT.
22602
22603 * w32term.h (WM_APPCOMMAND): Define if not already.
22604 (GET_APPCOMMAND_LPARAM): Likewise.
22605
22606 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22607 WM_APPCOMMAND.
22608
22609 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22610 (syms_of_w32fns): Export and initialize it.
22611 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22612
22613 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
22614
22615 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22616 twice.
22617
22618 * xdisp.c (handle_face_prop): Fix last change.
22619
22620 2007-11-09 Richard Stallman <rms@gnu.org>
22621
22622 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22623 not just for after-strings and before-strings.
22624 Call face_for_overlay_string and pass the overlay to it.
22625 (handle_display_prop): Determine whether property came from an overlay.
22626 Pass OVERLAY arg to handle_single_display_spec.
22627 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22628 (load_overlay_strings): Fill in it->string_overlays.
22629 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22630
22631 * xfaces.c (face_for_overlay_string): Function renamed from
22632 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22633
22634 * dispextern.h (struct it): New elt string_overlays.
22635 New elt from_overlay, also in stack.
22636 Rearrange a few elements.
22637 (face_for_overlay_string): Decl renamed from
22638 face_at_buffer_position_no_overlays, and add argument.
22639
22640 2007-11-09 Richard Stallman <rms@gnu.org>
22641
22642 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22643 to get the base face for an overlay string.
22644
22645 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22646
22647 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22648
22649 * xdisp.c (handle_stop): Move some code out of loop.
22650
22651 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22652
22653 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22654 Fix conversion from Lisp object to ATSUFontID.
22655
22656 2007-11-09 Jason Rumney <jasonr@gnu.org>
22657
22658 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22659
22660 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22661
22662 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22663 Don't assume regions are aligned to page boundary.
22664 (print_load_command_name): Add LC_UUID if defined.
22665
22666 2007-11-09 Richard Stallman <rms@gnu.org>
22667
22668 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22669
22670 2007-11-07 Jason Rumney <jasonr@gnu.org>
22671
22672 * s/windows95.h: Remove.
22673
22674 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22675
22676 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22677 abort with a message on unhandled store_type values.
22678
22679 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22680
22681 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22682 Remove HAVE_X11R5 and HAVE_X11R4.
22683
22684 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22685
22686 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22687
22688 2007-11-01 Johan Bockgård <bojohan@gnu.org>
22689
22690 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22691 Don't set s->stippled_p here, since it has already been set by
22692 x_set_glyph_string_gc from x_draw_glyph_string.
22693
22694 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22695
22696 * sunfns.c: Remove file.
22697
22698 * m/sun386.h:
22699 * m/sun2.h:
22700 * m/sparc.h: Remove Sun windows code.
22701
22702 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22703
22704 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22705 (init_keyboard): Set current_kboard's window-system to nil.
22706 (tty_read_avail_input): Typo.
22707 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22708
22709 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22710
22711 * s/usg5-4.h:
22712 * s/usg5-3.h:
22713 * s/ptx.h:
22714 * m/is386.h:
22715 * m/ibmps2-aix.h:
22716 * Makefile.in: Remove all mentions of X10.
22717
22718 * dispnew.c (syms_of_display): Don't mention version 10.
22719
22720 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
22721
22722 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22723 ($(BLD)/abbrev.$(O)): Remove.
22724
22725 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22726
22727 Rewrite abbrev.c in Elisp.
22728 * image.c (Qcount): Don't declare as extern.
22729 (syms_of_image): Initialize and staticpro `Qcount'.
22730 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22731 * emacs.c (main): Don't call syms_of_abbrev.
22732 * Makefile.in (obj): Remove abbrev.o.
22733 (abbrev.o): Remove.
22734 * abbrev.c: Remove.
22735
22736 2007-10-26 Martin Rudalics <rudalics@gmx.at>
22737
22738 * window.c (window_min_size_2): Don't count header-line.
22739
22740 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22741
22742 * frame.h (struct frame): Move all bit fields after the first bit
22743 field to take advantage of the available space. Group all the
22744 chars together to reduce wasted space due to padding.
22745
22746 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
22747
22748 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22749
22750 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22751 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22752 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22753 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22754 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22755 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22756 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22757 (last_marked, mark_object_loop_halt): Make static.
22758
22759 * frame.c (syms_of_frame) <delete-frame-functions>:
22760 Fix typo in docstring.
22761
22762 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
22763
22764 * w32.c (init_environment): Fix tiny memory leak.
22765 (w32_get_resource): Remove unused variable `ok'.
22766
22767 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22768
22769 Make `window-system' into a keyboard-local variable (rather than
22770 frame-local as done originally by multi-tty).
22771
22772 * keyboard.h (struct kboard): Add Vwindow_system.
22773 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22774 (mark_kboards): Mark Vwindow_system.
22775
22776 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22777 (init_display): Don't set the obsolete `window-system' frame-param.
22778
22779 * xterm.c (x_term_init):
22780 * w32term.c (w32_create_terminal):
22781 * term.c (init_tty): Set Vwindow_system.
22782 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22783 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22784
22785 * xfns.c (Fx_create_frame, x_create_tip_frame):
22786 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22787 * macfns.c (Fx_create_frame):
22788 Don't set the obsolete `window-system' frame-param.
22789
22790 * frame.h (Qwindow_system): Remove.
22791 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22792 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22793
22794 2007-10-24 Richard Stallman <rms@gnu.org>
22795
22796 * frame.c (x_figure_window_size): For fullscreen case,
22797 set USPosition | PPosition without clobbering rest of window_prompting.
22798
22799 * keyboard.c (Fcurrent_idle_time): Doc fix.
22800
22801 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22802
22803 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22804
22805 * process.c (unwind_request_sigio): Only define if __ultrix__.
22806
22807 * callproc.c (child_setup): Remove spurious *.
22808
22809 * lisp.h (Fget_text_property): Declare.
22810 (have_menus_p): Declare it here rather than in sys-dep header files.
22811 * macterm.h (have_menus_p):
22812 * msdos.h (have_menus_p):
22813 * xterm.h (have_menus_p): Remove.
22814
22815 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22816 (Fmake_variable_frame_local): Just check the variable's const-ness
22817 rather than checking nil or t.
22818
22819 2007-10-22 Jason Rumney <jasonr@gnu.org>
22820
22821 * w32fns.c: Include math.h.
22822 (w32_abort): Declaration moved to nt/config.nt.
22823
22824 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22825 (abort): Redefinition moved to nt/config.nt.
22826
22827 * m/windowsnt.h: Remove.
22828
22829 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
22830
22831 * emacs.c (Fdump_emacs): Fix typo in message.
22832 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22833 <installation-directory>: Reflow docstring.
22834
22835 2007-10-22 Juri Linkov <juri@jurta.org>
22836
22837 * minibuf.c: Allow minibuffer default to be a list of default values.
22838 With empty input use the first element of this list as returned default.
22839 (string_to_object)
22840 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22841 (read_minibuf): If defalt is cons, set histstring to its car.
22842 (Fread_string): If default_value is cons, set val to its car.
22843 (Fread_buffer): If def is cons, use its car.
22844 (Fcompleting_read): If defalt is cons, set val to its car.
22845
22846 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
22847
22848 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22849
22850 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
22851
22852 * doc.c (Fdocumentation): Check for advice in all cases.
22853
22854 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
22855
22856 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22857
22858 2007-10-19 Richard Stallman <rms@gnu.org>
22859
22860 * doc.c (Fdocumentation): Check for and handle an advised function.
22861
22862 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
22863
22864 * process.c (Fset_process_filter): Doc fix.
22865
22866 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22867
22868 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22869 which caused key-translation-map to applied repeatedly (thus breaking
22870 double-mode).
22871
22872 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22873
22874 * xselect.c (x_own_selection, x_handle_selection_clear)
22875 (x_clear_frame_selections):
22876 * w32menu.c (list_of_panes, list_of_items):
22877 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22878 * textprop.c (validate_plist, interval_has_all_properties)
22879 (interval_has_some_properties, interval_has_some_properties_list)
22880 (add_properties, text_property_list):
22881 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22882 * minibuf.c (Fassoc_string):
22883 * macselect.c (x_own_selection, x_clear_frame_selections)
22884 (Fx_disown_selection_internal):
22885 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22886 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22887
22888 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
22889
22890 * process.c: Link to libs for calling res_init() if available.
22891 (Fmake_network_process): Call res_init() before getaddrinfo or
22892 gethostbyname, if possible.
22893
22894 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22895
22896 * lread.c (read1): Set pvectype for char_tables.
22897
22898 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22899 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22900 Add type checks.
22901 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22902
22903 * alloc.c (free_misc): Use XMISCTYPE.
22904 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22905
22906 2007-10-17 Glenn Morris <rgm@gnu.org>
22907
22908 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22909 (syms_of_minibuf): Add Qcompletion_ignore_case.
22910 * dired.c (Qcompletion_ignore_case): Change to external.
22911 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22912 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22913 (Fread_file_name): Use it rather than intern'ing.
22914
22915 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22916 (Fread_coding_system): Ignore case of user input.
22917
22918 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22919
22920 * xdisp.c (handle_display_prop): Ignore display specs after
22921 replacing one when string text is being replaced.
22922 (handle_single_display_spec): Pretend as if characters with display
22923 property haven't been consumed only when buffer text is being replaced.
22924
22925 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22926
22927 * xfns.c (Fx_create_frame, Fx_display_list):
22928 * window.c (window_fixed_size_p, enlarge_window)
22929 (shrink_window_lowest_first):
22930 * macterm.c (init_font_name_table):
22931 * macfns.c (Fx_create_frame, Fx_display_list):
22932 * lread.c (close_load_descs):
22933 * keyboard.c (read_char_x_menu_prompt):
22934 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22935 * coding.c (code_convert_region_unwind): Test the type of an object
22936 rather than just !NILP before extracting data from it.
22937
22938 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22939
22940 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22941 (XMISCANY): New macro.
22942 (XMISCTYPE): Use it.
22943 (struct Lisp_Misc_Any): New type.
22944 (union Lisp_Misc): Use it.
22945 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22946 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22947 (find_symbol_value, set_internal, default_value, Fset_default)
22948 (Fmake_variable_buffer_local, Fmake_local_variable)
22949 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22950 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22951 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22952 * alloc.c (allocate_buffer): Set the size and tag.
22953 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22954 Use XMISCANY.
22955 (die): Follow the GNU convention for error messages.
22956 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22957 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22958 tag any more.
22959 (set_buffer_internal_1):
22960 * frame.c (store_frame_param):
22961 * eval.c (specbind):
22962 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22963
22964 * doc.c (Fsnarf_documentation): Simplify.
22965
22966 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22967
22968 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22969 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22970
22971 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22972
22973 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22974
22975 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22976
22977 * eval.c (do_autoload): Don't save autoloads.
22978
22979 * data.c (Ffset): Save autoload of the function being set.
22980
22981 2007-10-07 John Paul Wallington <jpw@pobox.com>
22982
22983 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22984 parameter before setting up faces.
22985
22986 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22987
22988 * ccl.c (Fregister_code_conversion_map):
22989 * keyboard.c (append_tool_bar_item): Reformat last change.
22990
22991 * lisp.h (eabs): Rename from `abs'. All callers changed.
22992
22993 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22994
22995 * buffer.c (add_overlay_mod_hooklist):
22996 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22997 * fontset.c (make_fontset):
22998 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22999 (append_tool_bar_item):
23000 * macmenu.c (grow_menu_items):
23001 * w32menu.c (grow_menu_items):
23002 * xmenu.c (grow_menu_items): Use larger_vector.
23003
23004 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23005
23006 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23007 selected frame'' on MSDOS).
23008
23009 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23010
23011 * frame.c (Qexplicit_name): New variable.
23012 (x_report_frame_params): Report it in parameter alist.
23013 (syms_of_frame): Intern and staticpro it.
23014
23015 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23016
23017 * macfns.c (x_create_tip_frame): Set terminal for frame.
23018
23019 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23020
23021 * frame.c (Qenvironment): Remove.
23022 (syms_of_frame) <Qenvironment>: Don't initialize.
23023 (Fdelete_frame): Don't treat the `environment' param specially.
23024 * frame.h (Qenvironment): Don't declare.
23025 * callproc.c (set_initial_environment): Don't set unused frame param.
23026
23027 * frame.c (Fframe_with_environment): Remove.
23028 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23029
23030 * lisp.h (Fframe_with_environment): Don't declare.
23031
23032 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23033
23034 * indent.c (indent_tabs_mode, last_known_column)
23035 (last_known_column_modified): Make static.
23036 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23037
23038 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23039
23040 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23041
23042 2007-10-09 Jason Rumney <jasonr@gnu.org>
23043
23044 * w32term.c (x_set_window_size): Disable code that attempts to tell
23045 Lisp code about a size change before it actually happens.
23046
23047 2007-10-09 Richard Stallman <rms@gnu.org>
23048
23049 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23050 return HANDLED_RETURN.
23051
23052 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23053
23054 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23055 when there's an unread command event.
23056
23057 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23058 window autoselection act appropriately when leaving selected frame.
23059 (syms_of_frame): Initialize focus_follows_mouse.
23060 * frame.h (focus_follows_mouse): Extern it.
23061 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23062 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23063 * msdos.c (dos_rawgetc): Likewise.
23064 * w32term.c (w32_read_socket): Likewise.
23065 * xterm.c (handle_one_xevent): Likewise.
23066 * xdisp.c (syms_of_xdisp): In doc-string of
23067 mouse-autoselect-window mention focus-follows-mouse.
23068
23069 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23070
23071 * macterm.c (mac_load_query_font): Fix missing return value.
23072 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23073 Add BLOCK_INPUT.
23074
23075 2007-10-08 Richard Stallman <rms@gnu.org>
23076
23077 * xdisp.c (get_window_cursor_type): Implement documented behavior
23078 for cursor-in-non-selected-windows = t.
23079
23080 2007-10-08 Jason Rumney <jasonr@gnu.org>
23081
23082 * w32.c (w32_get_resource): Always close registry keys.
23083
23084 2007-10-08 Jason Rumney <jasonr@gnu.org>
23085
23086 * makefile.w32-in (LIBS): Add COMCTL32.
23087
23088 * w32fns.c (globals_of_w32fns): Init common controls.
23089
23090 2007-10-08 Richard Stallman <rms@gnu.org>
23091
23092 * image.c (our_memory_buffer): Rename from omfib_buffer.
23093
23094 2007-10-08 Richard Stallman <rms@gnu.org>
23095
23096 * buffer.c (Foverlays_at): Doc fix.
23097
23098 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23099
23100 * fns.c (Fplist_put): Preserve uneven tail data.
23101
23102 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23103
23104 * termhooks.h (enum event_kind): Remove trailing comma.
23105
23106 * frame.h (enum): Remove trailing comma.
23107
23108 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23109
23110 * w32proc.c (delete_child): Don't terminate threads of zombies.
23111
23112 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23113
23114 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23115
23116 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23117 last-repeatable-command.
23118 (init_kboard): Initialize Vlast_repeatable_command.
23119 (command_loop_1): Set it to real_this_command unless that was
23120 bound to an input event.
23121 (mark_kboards): Mark it.
23122
23123 2007-10-08 Richard Stallman <rms@gnu.org>
23124
23125 * eval.c (condition-case): Doc fix.
23126
23127 2007-10-08 Masatake YAMATO <jet@gyve.org>
23128
23129 * xfaces.c (tty_supports_face_attributes_p): Fix code
23130 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23131 was copied and not edited.
23132
23133 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23134
23135 Add new `input-decode-map' keymap and use it for terminal
23136 escape sequences.
23137 * keyboard.h (struct kboard): Add Vinput_decode_map.
23138 Remove Vlocal_key_translation_map.
23139 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23140 (init_kboard): Init input-decode-map.
23141 Replace local-key-translation-map back with key-translation-map.
23142 (syms_of_keyboard): Declare input-decode-map.
23143 Remove local-key-translation-map. Update docstrings.
23144 (mark_kboards): Mark Vinput_decode_map.
23145 Don't mark Vlocal_key_translation_map.
23146 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23147 Replace local-key-translation-map back with key-translation-map.
23148 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23149 Bind in input-decode-map rather than function-key-map.
23150
23151 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23152 This was made redundant by the previous introduction of XSETPVECTYPE.
23153
23154 2007-10-09 Richard Stallman <rms@gnu.org>
23155
23156 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23157
23158 2007-09-29 Richard Stallman <rms@gnu.org>
23159
23160 * eval.c (internal_condition_case_2, internal_condition_case_1)
23161 (internal_condition_case): Reenable abort if x_catching_errors ()
23162 to see if that really happens and why.
23163
23164 2007-10-06 Andreas Schwab <schwab@suse.de>
23165
23166 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23167
23168 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
23169
23170 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23171
23172 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23173
23174 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23175
23176 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23177
23178 * window.h (struct window):
23179 * window.c (struct save_window_data, struct saved_window):
23180 * termhooks.h (struct terminal):
23181 * process.h (struct Lisp_Process):
23182 * frame.h (struct frame):
23183 * buffer.h (struct buffer):
23184 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23185 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23186 The size field of (pseudo)vectors is now unsigned.
23187 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23188
23189 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23190 Turn `count' into an integer.
23191
23192 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23193 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23194 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23195 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23196 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23197
23198 * alloc.c (allocate_pseudovector): New fun.
23199 (ALLOCATE_PSEUDOVECTOR): New macro.
23200 (allocate_window, allocate_terminal, allocate_frame)
23201 (allocate_process): Use it.
23202 (mark_vectorlike): New function.
23203 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23204 (mark_terminals): Use it.
23205 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23206 (Fmake_byte_code): Use XSETPVECTYPE.
23207
23208 * frame.c (Fframe_parameters): Minor simplification.
23209
23210 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23211
23212 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23213
23214 * buffer.c (Fget_buffer_create, init_buffer_once):
23215 * lread.c (defsubr):
23216 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23217
23218 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23219 defined differently in the m/*.h files.
23220 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23221 (XSETPVECTYPE): New macro.
23222 (XSETPSEUDOVECTOR): Use it.
23223
23224 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23225 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23226
23227 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23228 * lread.c (defvar_per_buffer):
23229 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23230
23231 * window.c (candidate_window_p): Only consider as visible frames that
23232 are on the same terminal.
23233
23234 * m/ibms390x.h (MARKBIT): Remove unused macro.
23235
23236 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
23237
23238 * lread.c (Fload): Fix typo in docstring.
23239
23240 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23241
23242 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23243 of a non-zero value can't yield zero.
23244
23245 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23246
23247 * term.c (term_clear_mouse_face, term_mouse_highlight)
23248 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23249
23250 * print.c (safe_debug_print): Use XHASH.
23251
23252 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23253 Lisp elements such as tags.
23254 (XHASH): New macro.
23255 (EQ): Use it.
23256 (SREF, SSET, STRING_COPYIN): Use SDATA.
23257 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23258
23259 * alloc.c (mark_terminal): Remove left-over declaration.
23260 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23261 (allocate_vectorlike): Remove type argument. Adjust callers.
23262 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23263 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23264
23265 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23266 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23267 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23268 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23269 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23270 Use them.
23271
23272 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23273 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23274 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23275
23276 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23277
23278 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23279 loaded by default.
23280
23281 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23282
23283 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23284 on this tty.
23285 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23286
23287 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23288 Update all users.
23289 (handle_one_term_event): Use Gpm_DrawPointer.
23290 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23291 Signal errors instead of returning nil. Always return nil.
23292 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23293 Make it a noop if gpm-mouse was not activated.
23294 (syms_of_term): Update names.
23295
23296 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23297
23298 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23299 (init_sys_modes): Check that gpm_tty is the current tty.
23300
23301 * alloc.c (allocate_terminal): Set the vector size to only count the
23302 lisp fields. Initialize those to nil.
23303 (mark_object): Don't treat terminals specially.
23304 (mark_terminal): Remove.
23305 (mark_terminals): Use mark_object instead.
23306
23307 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23308 the GC to the beginning.
23309
23310 * indent.h:
23311 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23312
23313 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23314
23315 2007-09-25 Jason Rumney <jasonr@gnu.org>
23316
23317 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23318
23319 * w32console.c (create_w32cons_output): Remove.
23320
23321 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23322
23323 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23324 (reset_sys_modes): Use reset_terminal_modes_hook.
23325
23326 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23327
23328 * eval.c (do_autoload): Don't output any message.
23329
23330 2007-09-24 Juri Linkov <juri@jurta.org>
23331
23332 * emacs.c (standard_args): Change priority of "--no-splash"
23333 from 40 to 3. Add "--no-desktop" with the same priority.
23334
23335 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23336
23337 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23338 and optimize the case where they are all 1.
23339
23340 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
23341
23342 * lisp.h (abs): Define if not defined.
23343 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23344 Don't define `abs', since it's defined in lisp.h.
23345
23346 2007-09-22 Eli Zaretskii <eliz@gnu.org>
23347
23348 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23349 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23350 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23351 (init_tty): Use DEV_TTY instead of "/dev/tty".
23352 [WINDOWSNT]: No need to protect from NAME arg being null.
23353
23354 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23355
23356 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23357 up the tty state.
23358
23359 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23360
23361 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23362 (gpm_tty): Change its type.
23363 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23364 (gpm_tty): Change its type and initialize it.
23365 (Fterm_open_connection): Check the frame is indeed a tty.
23366 Use the new gpm_tty.
23367 (Fterm_close_connection): Use the new gpm_tty.
23368 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23369 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23370
23371 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
23372
23373 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23374 underline_color, to draw strike-through.
23375
23376 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23377
23378 * lisp.h (allocate_terminal): Declare.
23379
23380 * window.c (candidate_window_p): Consider frames that are being placed
23381 by the user as somewhere between visible and iconified.
23382 (window_loop): Prefer windows on the current frame.
23383 (Fselect_window): Move the use of select-frame to the beginning so we
23384 can just delegate all the work (it'll call us back anyway).
23385
23386 * frame.c (Qdisplay_environment_variable):
23387 * frame.h (Qdisplay_environment_variable): Delete.
23388
23389 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23390 of the first arg, since that value may be a union.
23391
23392 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23393 parameter rather than Qdisplay_environment_variable. If all else
23394 fails, look for DISPLAY in initial-environment.
23395
23396 2007-09-21 Glenn Morris <rgm@gnu.org>
23397
23398 * Makefile.in (emacstool): Remove target.
23399 (lisp, shortlisp): Remove termdev.elc.
23400
23401 2007-09-21 Markus Triska <markus.triska@gmx.at>
23402
23403 * xterm.c (x_delete_display): Compile session management conditionally.
23404
23405 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23406
23407 * callproc.c (getenv_internal_1): New function.
23408 (getenv_internal): Use it.
23409 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23410
23411 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23412 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23413 (Fset_terminal_parameter): Work with dead terminals as well.
23414 (Fmodify_terminal_parameters): Remove.
23415
23416 * terminal.c (get_terminal): Handle terminals.
23417 Make sure the terminal returned is live.
23418 (create_terminal): Use allocate_terminal.
23419 (mark_terminals): Move to alloc.c.
23420 (delete_terminal): Use terminal->name as liveness status.
23421 NULL out fields after freeing their contents.
23422 Don't deallocate the object.
23423 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23424 rather than an int.
23425 (Fterminal_live_p): Accept non-integer arguments.
23426 (Fterminal_list): Return terminal objects rather than an ints.
23427
23428 * alloc.c (enum mem_type): New member for `terminal' objects.
23429 (allocate_terminal): New function.
23430 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23431 Handle terminals.
23432 (mark_terminal): New fun.
23433 (mark_terminals): Move from terminal.c.
23434
23435 * term.c (get_tty_terminal): Don't treat output_initial specially.
23436 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23437 (delete_tty): Use terminal->name as liveness status.
23438
23439 * termhooks.h (struct terminal): Make it into a pseudovector.
23440 Remove `deleted' replaced by checking `name's nullness.
23441
23442 * print.c (print_object): Handle terminals.
23443
23444 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23445 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23446
23447 * frame.c (make_terminal_frame):
23448 * keyboard.c (tty_read_avail_input):
23449 * w32term.c (x_delete_terminal):
23450 * xfns.c (Fx_create_frame, x_create_tip_frame):
23451 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23452
23453 2007-09-20 Glenn Morris <rgm@gnu.org>
23454
23455 * process.c (Fmake_network_process): Doc fix.
23456
23457 2007-09-19 Jason Rumney <jasonr@gnu.org>
23458
23459 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23460
23461 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23462
23463 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23464 Fix a C warning regarding variable constness.
23465
23466 * xterm.c (handle_one_xevent): Fix a C warning.
23467
23468 2007-09-18 Jason Rumney <jasonr@gnu.org>
23469
23470 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23471
23472 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23473
23474 * gtkutil.c (gdpy_def): New variable.
23475 (xg_initialize): Initialize gdpy_def.
23476 (xg_display_close): If no other display exists, set gdpy_def to a
23477 new connection.
23478
23479 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23480
23481 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23482 when we have no file name for the icon.
23483 (xg_tool_bar_expose_callback): Remove.
23484 (xg_create_tool_bar): Don't connect expose signal to
23485 xg_tool_bar_expose_callback.
23486 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23487
23488 2007-09-16 Andreas Schwab <schwab@suse.de>
23489
23490 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23491 values instead of zapping them.
23492
23493 2007-09-14 Glenn Morris <rgm@gnu.org>
23494
23495 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23496 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23497 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23498 scope and rename to omfib_buffer for clarity.
23499 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23500
23501 2007-09-14 Kenichi Handa <handa@m17n.org>
23502
23503 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23504
23505 2007-09-13 Jason Rumney <jasonr@gnu.org>
23506
23507 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23508
23509 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23510
23511 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23512 (mac_term_init): Call here instead, passing rif.
23513
23514 2007-09-13 Glenn Morris <rgm@gnu.org>
23515
23516 * s/hpux.h: No longer define `static' as nothing.
23517
23518 2007-09-13 Johan Bockgård <bojohan@gnu.org>
23519
23520 * callint.c (Fcall_interactively): Remove unused var `fun'.
23521
23522 2007-09-12 Romain Francoise <romain@orebokech.com>
23523
23524 * window.c (prefer_window_split_horizontally, display_buffer):
23525 Revert 2007-09-08 change.
23526
23527 2007-09-12 Glenn Morris <rgm@gnu.org>
23528
23529 * alloca.c: Remove file.
23530 * Makefile.in (alloca): Do not undef.
23531 (allocaobj, alloca.o): Remove.
23532 (otherobj): Remove allocaobj.
23533 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23534 * regex.c (C_ALLOCA): Remove all references and code that was only
23535 used when this was defined.
23536 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23537 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23538 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23539
23540 * Makefile.in (SOURCES, unlock, relock): Delete.
23541
23542 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23543 (menu_grab_callback): All uses changed.
23544
23545 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23546 (x_reply_selection_request): All uses changed.
23547
23548 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23549
23550 * lread.c (load_warn_old_style_backquotes): Change message to look
23551 better when it appears in the middle of byte-compiler messages.
23552
23553 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23554
23555 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23556
23557 * xterm.c (x_create_terminal): Add comment.
23558
23559 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23560
23561 2007-09-10 Richard Stallman <rms@gnu.org>
23562
23563 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23564
23565 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23566
23567 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23568 (DEFUN): Document `intspec', use it instead of `prompt'.
23569
23570 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23571
23572 * data.c (Finteractive_form): If the interactive specification starts
23573 with a `(', use it as a Lisp form.
23574
23575 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23576 name and file modes.
23577
23578 * callint.c (Fcall_interactively): Comment fixes.
23579
23580 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23581
23582 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23583 and compiled functions.
23584
23585 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23586
23587 * window.c (prefer_window_split_horizontally): New variable.
23588 (display_buffer): Consider splitting window horizontally depending
23589 on prefer_window_split_horizontally.
23590
23591 2007-09-08 Eli Zaretskii <eliz@gnu.org>
23592
23593 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23594
23595 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23596
23597 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23598
23599 * frame.c (x_set_frame_parameters): Check number is positive before
23600 using XFASTINT.
23601
23602 * window.c (freeze_window_start): Don't presume selected_window holds
23603 a window object.
23604 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23605
23606 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23607
23608 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23609
23610 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23611
23612 * window.c (Vsplit_window_preferred_function): New var.
23613 (Fdisplay_buffer): Use it.
23614 (syms_of_window): Export, and initialize it.
23615
23616 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23617
23618 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23619
23620 2007-09-06 Glenn Morris <rgm@gnu.org>
23621
23622 * gtkutil.c (menu_grab_callback) <cnt>:
23623 * xselect.c (x_reply_selection_request) <cnt>: Move static
23624 variable to file scope.
23625
23626 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23627
23628 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23629 consistent values of selected_frame and selected_window.
23630
23631 2007-09-04 Jason Rumney <jasonr@gnu.org>
23632
23633 * w32console.c (initialize_w32_display): Zero unused hooks.
23634
23635 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23636
23637 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23638 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23639
23640 2007-09-04 Jason Rumney <jasonr@gnu.org>
23641
23642 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23643 in w32console.c. Set up input. Remove XXX comments that have been
23644 confirmed as correct.
23645
23646 * s/ms-w32.h (MULTI_KBOARD): Define.
23647
23648 * w32console.c (one_and_only_w32cons): Remove.
23649 (initialize_w32_display): Take terminal argument.
23650
23651 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23652 initialize_w32_display.
23653 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23654
23655 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23656
23657 * keyboard.c (discard_mouse_events): Discard it.
23658 (make_lispy_event): Translate it to a lisp event.
23659 (lispy_wheel_names): Add wheel-left and right events.
23660 (syms_of_keyboard): Enlarge wheel_syms.
23661
23662 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23663 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23664
23665 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23666
23667 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23668 from WM_MOUSEHWHEEL.
23669 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23670
23671 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23672 terminal.
23673
23674 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23675 keyboard for the terminal.
23676
23677 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23678
23679 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23680 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23681 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23682 and resume-tty-function to resume-tty-hook.
23683 (Fsuspend_tty, Fresume_tty): Use new names.
23684
23685 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23686
23687 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23688 if it starts with "n:".
23689
23690 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23691
23692 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23693
23694 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23695
23696 * frame.h:
23697 * frame.c (Qterm_environment_variable): Remove.
23698 (syms_of_frame): Don't init and staticpro it.
23699
23700 * callproc.c (getenv_internal): Remove special case for $TERM.
23701
23702 * callproc.c (Vinitial_environment): New variable.
23703 (set_initial_environment): Initialize it.
23704 (syms_of_callproc): Declare it.
23705 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23706 TERM under which a process runs is never related to the TERM in which
23707 Emacs is running.
23708
23709 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23710
23711 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23712 * s/darwin.h: ... do it here.
23713
23714 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23715
23716 * lisp.h (set_initial_environment): Rename from set_global_environment.
23717
23718 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23719 removed by mistake on the multi-tty branch.
23720
23721 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23722 (Fmodify_frame_parameters): Return a value.
23723
23724 * image.c (png_load): Comment-out var only used in commented-out code.
23725
23726 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23727 before passing it to mark_object.
23728
23729 * xfaces.c (internal_resolve_face_name): Return a value.
23730 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23731
23732 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23733 (x_icon): Comment-out var only used in commented-out code.
23734
23735 2007-08-29 Romain Francoise <romain@orebokech.com>
23736
23737 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23738 QUIT hasn't been provided.
23739
23740 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23741
23742 * callproc.c (child_setup, getenv_internal): Use the
23743 display-environment-variable and term-environment-variable frame params.
23744 (set_initial_environment): Initialise Vprocess_environment.
23745
23746 * config.in: Disable multi-keyboard support on a mac.
23747
23748 * frame.c (Qterm_environment_variable)
23749 (Qdisplay_environment_variable): New variables.
23750 (syms_of_frame): Intern and staticpro them.
23751 (Fmake_terminal_frame): Disable output method test.
23752
23753 * frame.h: Declare them here.
23754
23755 * macfns.c (x_set_mouse_color): Get rif from the frame.
23756 (x_set_tool_bar_lines): Don't use updating_frame.
23757 (mac_window): Add 2 new parameters for consistency with other systems.
23758 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23759 frame parameters following what is done in X11 and w32. Don't use
23760 FRAME_MAC_DISPLAY_INFO.
23761 (Fx_open_connection, start_hourglass): Remove window-system check.
23762 (x_create_tip_frame): Get the keyboard from the terminal.
23763
23764 * macmenu.c: Reorder includes.
23765 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23766
23767 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23768 terminal parameter.
23769 (x_clear_frame): Add a frame parameter.
23770 (note_mouse_movement): Get rif from the frame.
23771 (mac_term_init): Initialize the terminal.
23772 (mac_initialize): Make static and move terminal initialization ...
23773 (mac_create_terminal): ... to this new function.
23774
23775 * macterm.h (struct mac_display_info): Add terminal.
23776 (mac_initialize): Delete declaration.
23777
23778 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23779
23780 * sysdep.c: Comment out text after #endif.
23781
23782 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23783 is defined. Better initialize ttys in windows. Use terminal
23784 specific mouse_position_hook.
23785
23786 * termhooks.h (union display_info): Add mac_display_info.
23787
23788 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23789 Set the default minibuffer frame, window_system and the rest of the
23790 frame parameters following what is done in X11.
23791
23792 * w32term.c (w32_initialize): Make static.
23793
23794 * xselect.c (x_handle_selection_clear): Only access
23795 terminal->kboard when MULTI_KBOARD is defined.
23796
23797 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23798 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23799
23800 2007-08-29 Jason Rumney <jasonr@gnu.org>
23801
23802 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23803 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23804
23805 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23806 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23807
23808 * keyboard.c (restore_kboard_configuration): Only define when
23809 MULTI_KBOARD defined.
23810
23811 * makefile.w32-in: Update dependancies from Makefile.in.
23812 (OBJ1): Add terminal.$(O)
23813
23814 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23815 Don't define function body.
23816 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23817
23818 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23819
23820 * w32.c (request_sigio, unrequest_sigio): Remove.
23821
23822 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23823 (w32con_clear_frame, w32con_clear_end_of_line)
23824 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23825 (w32con_delete_glyphs, w32con_set_terminal_window)
23826 (scroll_line, w32_sys_ring_bell): Add frame arg.
23827 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23828 Add terminal arg.
23829 (PICK_FRAME): Remove.
23830 (w32con_write_glyphs): Use frame specific terminal coding.
23831 (one_and_only_w32cons): New global variable.
23832 (initialize_w32_display): Use it for storing hooks.
23833 (create_w32cons_output): New function.
23834
23835 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23836 arg a frame.
23837
23838 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23839 Set window_system.
23840 (x_set_tool_bar_lines): Don't use updating_frame.
23841 (Fx_create_frame): Set terminal and ref count.
23842 (Fx_open_connection): Remove window-system check.
23843
23844 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23845
23846 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23847 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23848 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23849 Add frame arg.
23850 (x_delete_terminal, w32_create_terminal): New functions.
23851 (w32_term_init): Create a terminal.
23852 (w32_initialize): Move terminal specific initialization to
23853 w32_create_terminal.
23854
23855 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23856 (w32_clear_rect, w32_clear_area): Use background from frame.
23857 (w32_display_info): Add terminal.
23858 (w32_sys_ring_bell, x_delete_display): Declare here.
23859
23860 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23861
23862 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23863
23864 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23865
23866 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23867 Fix get_named_tty calls for the controlling tty.
23868
23869 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23870
23871 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
23872
23873 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23874
23875 * term.c (tty_insert_glyphs): Add missing first parameter.
23876
23877 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23878
23879 * buffer.c (Fbuffer_list, Fbury_buffer):
23880 Take frame->buried_buffer_list into account.
23881
23882 * cm.c (current_tty): New variable, for cmputc().
23883 (cmputc): Use it.
23884 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23885 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23886 (cmgoto): Add tty parameter. Pass it on to calccost().
23887 Use emacs_tputs() instead of tputs().
23888
23889 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23890 tputs().
23891 (current_tty): New variable, for cmputc().
23892 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23893
23894 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23895 (internal_condition_case, internal_condition_case_1)
23896 (internal_condition_case_2): Don't abort when x_catching_errors.
23897
23898 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23899 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23900 prevent crashes caused by bogus longjmps in read_char.
23901
23902 * keymap.h (Fset_keymap_parent): Add EXFUN.
23903
23904 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23905 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23906 Remove redundant definition.
23907
23908 * macfns.c (x_set_mouse_color, x_make_gc):
23909 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23910
23911 * w32term.c (x_free_frame_resources):
23912 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23913 (w32_initialize): Use the accessor macros for terminal characteristics.
23914
23915 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23916 Use the accessor macros for terminal characteristics.
23917 * msdos.c (internal_terminal_init): Use the accessor macros for
23918 terminal characteristics.
23919 (ScreenVisualBell, internal_terminal_init):
23920 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23921
23922 * termopts.h (no_redraw_on_reenter): Declare.
23923
23924 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23925 (mark_terminals, mark_ttys): Declare.
23926 (Fgarbage_collect): Call them.
23927 (mark_object): Mark buried_buffer_list.
23928
23929 * prefix-args.c: Include stdlib.h for exit.
23930
23931 * syssignal.h: Add comment.
23932
23933 * indent.c: Include stdio.h.
23934
23935 * window.h (Vinitial_window_system): Declare.
23936 (Vwindow_system): Delete declaration.
23937
23938 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23939
23940 * image.c (lookup_image): Don't initialize `c' until the xasserts
23941 have been run.
23942
23943 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23944 FRAME_FOREGROUND_PIXEL.
23945
23946 * print.c (print_preprocess): Don't lose print_depth levels while
23947 iterating.
23948
23949 * widget.c (update_from_various_frame_slots):
23950 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23951
23952 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23953 frames.
23954 (window_internal_height): Remove bogus make_number call.
23955 (init_window_once): Call make_terminal_frame with two zero parameters.
23956
23957 * fileio.c (Fread_file_name): Update comment.
23958
23959 * callint.c (Fcall_interactively):
23960 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23961 Make sure it is correctly unwound.
23962
23963 * xsmfns.c (x_session_close): New function.
23964
23965 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23966 Delete declarations.
23967
23968 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23969 (x_output): Remove background_pixel and foreground_pixel fields.
23970 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23971 (x_delete_device, x_session_close): Declare.
23972
23973 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23974 (read_filtered_event): Call `read_char' with a local
23975 `wrong_kboard_jmpbuf'.
23976
23977 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23978 Don't call single_kboard_state. Use FRAME_RIF.
23979
23980 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23981 systems.
23982
23983 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23984 (Fframe_with_environment, Fset_input_meta_mode)
23985 (Fset_quit_char): EXFUN.
23986 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23987 (init_sys_modes, reset_sys_modes): Update prototypes.
23988 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23989
23990 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23991 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23992 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23993 Delete declarations.
23994 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23995 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23996 New declarations.
23997
23998 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23999 already does that during init_display(). Call syms_of_keymap
24000 before syms_of_keyboard. Call `syms_of_terminal'.
24001 Call set_initial_environment, not set_process_environment.
24002 (shut_down_emacs): Call reset_all_sys_modes() instead of
24003 reset_sys_modes().
24004
24005 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24006 (internal_resolve_face_name, resolve_face_name_error): New functions.
24007 (resolve_face_name): Protect against loops and errors thrown by Fget.
24008 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24009 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24010
24011 * scroll.c: Replace CURTTY() with local variables throughout the
24012 file (where applicable).
24013 (calculate_scrolling, calculate_direct_scrolling)
24014 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24015 characteristics.
24016
24017 * keymap.c (Vfunction_key_map): Remove.
24018 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24019 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24020 (Vkey_translation_map): Remove.
24021 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24022 (Fdescribe_buffer_bindings)
24023 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24024 Update for terminal-local key-translation-map.
24025
24026 * Makefile.in (callproc.o): Update dependencies.
24027 (lisp, shortlisp): Add termdev.elc.
24028 (obj): Add terminal.o.
24029 (terminal.o): Add dependencies.
24030 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24031 (data.o, fns.o): Add termhooks.h dependency.
24032 (SOME_MACHINE_LISP): Add dnd.elc.
24033 (minibuf.o): Fix typo.
24034 Update dependencies.
24035
24036 * data.c (do_symval_forwarding, store_symval_forwarding)
24037 (find_symbol_value): Use the selected frame's keyboard, not
24038 current_kboard.
24039
24040 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24041 Vwindow_system.
24042
24043 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24044 Fmenu_bar_open.
24045 (syms_of_xmenu): Update defsubr.
24046 (mouse_position_for_popup, Fx_popup_menu)
24047 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24048 (set_frame_menubar, free_frame_menubar)
24049 (create_and_show_popup_menu, xmenu_show)
24050 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24051 an X frame.
24052
24053 * xselect.c (x_own_selection): Abort if not an X frame.
24054 (some_frame_on_display): Check if it is an X frame.
24055 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24056
24057 * coding.c: Include frame.h and termhooks.h.
24058 (terminal_coding, keyboard_coding): Delete.
24059 (Fset_terminal_coding_system_internal)
24060 (Fset_keyboard_coding_system_internal)
24061 (Fkeyboard_coding_system)
24062 (Fterminal_coding_system): Add a terminal parameter.
24063 Get terminal_coding from the terminal.
24064 (init_coding_once): Don't call setup_coding_system here.
24065
24066 * dispextern.h (set_scroll_region, turn_off_insert)
24067 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24068 (tty_clear_end_of_line, tty_setup_colors)
24069 (delete_tty, updating_frame)
24070 (produce_special_glyphs, produce_glyphs, write_glyphs)
24071 (insert_glyphs): Remove.
24072 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24073 (tty_turn_off_highlight, get_tty_size): Add declaration.
24074 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24075
24076 * frame.h (enum output_method): Add output_initial.
24077 (struct x_output): Delete.
24078 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24079 Access foreground_pixel and background_pixel directly from the frame.
24080 (tty_display): Delete.
24081 (struct frame): Add buried_buffer_list, foreground_pixel,
24082 background_pixel and terminal. Delete kboard.
24083 (union output_data): Add tty.
24084 (FRAME_KBOARD): Get the kboard from the terminal.
24085 (FRAME_INITIAL_P): New macro.
24086 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24087 (Qterm_environment_variable, Qdisplay_environment_variable)
24088 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24089 New declarations.
24090
24091 * termchar.h (tty_output, tty_display_info): New structures.
24092 (tty_list): Declare.
24093 (FRAME_TTY, CURTTY): New macros.
24094 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24095 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24096 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24097 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24098
24099 * callproc.c: Include frame.h and termhooks.h, for terminal
24100 parameters.
24101 (add_env): New function.
24102 (child_setup): Use it.
24103 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24104 (getenv_internal): Fix get_terminal_param call.
24105 (Fgetenv_internal, egetenv): Update doc.
24106 (syms_of_callproc): Initialize Vprocess_environment to nil.
24107 Register and initialize them. Remove obsolete defvars. Update doc
24108 strings.
24109 (child_setup): Handle Vlocal_environment_variables.
24110 (getenv_internal): Add terminal parameter.
24111 Handle Vlocal_environment_variables.
24112 (Fgetenv_internal): Add terminal parameter.
24113 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24114 environment in a frame (not terminal) parameter. Update doc strings.
24115 (set_initial_environment): Rename from set_global_environment.
24116 Store Emacs environment in initial frame parameter.
24117
24118 * xdisp.c (redisplay_internal): Update references to
24119 `previous_terminal_frame'.
24120 (display_mode_line, Fformat_mode_line): Replace calls to
24121 `push_frame_kboard' with `push_kboard'.
24122 (get_glyph_string_clip_rects): Add extra parentheses and
24123 braces to prevent compiler warnings.
24124 (calc_pixel_width_or_height): Add xassert to check that the
24125 frame is alive. Don't call `lookup_image' on a termcap frame.
24126 (message2_nolog, message3_nolog, redisplay_internal)
24127 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24128 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24129 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24130 (Fx_display_pixel_width, Fx_display_pixel_height)
24131 (Fx_display_planes, Fx_display_color_cells)
24132 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24133 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24134 (Fx_display_backing_store, Fx_display_visual_class)
24135 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24136 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24137
24138 * xfns.c (x_set_foreground_color x_set_background_color)
24139 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24140 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24141 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24142 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24143 terminal that is being deleted.
24144 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24145 frame parameter, and make sure it overrides any user-supplied setting.
24146 (Fx_close_connection, Fx_synchronize): Unify argument names with
24147 the rest of the DEFUNs.
24148
24149 * dispnew.c (Fsend_string_to_terminal): Update call to
24150 `get_tty_terminal'.
24151 (Fredraw_frame, Fsend_string_to_terminal)
24152 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24153 FRAME_TERMCAP_P and FRAME_TTY.
24154 (window_change_signal): Don't believe width/height values that are
24155 impossibly small.
24156 (Vinitial_window_system): Rename from Vwindow_system.
24157 (termscript, Wcm, rif): Delete.
24158
24159 * termhooks.h (struct terminal): New struct containing the
24160 previously global text display hooks and new members NAME,
24161 DELETED and PARAM_ALIST.
24162 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24163 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24164 (FRAME_RIF): New macros.
24165 (get_terminal_param, get_device): New declarations.
24166 (termscript): Delete declaration.
24167
24168 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24169 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24170 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24171 FRAME_FOREGROUND_PIXEL.
24172 (x_fully_uncatch_errors): Disable definition.
24173 (x_scroll_bar_expose): Fix reference to foreground pixel.
24174 (XTread_socket): Disable loop on all X displays.
24175 (x_delete_terminal): Don't set terminal->deleted and let
24176 delete_terminal delete the frames on the terminal.
24177 (x_delete_display): Doc update to reflect changes in
24178 delete_terminal.
24179 (x_display_info) <terminal>: Move member earlier in the struct.
24180 (deleting_tty): Remove old variable.
24181 (Fsuspend_tty): Call clear_tty_hooks.
24182 (Fresume_tty, init_tty): Call set_tty_hooks.
24183 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24184 errors on X frames.
24185 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24186 (handle_one_xevent): Initialize `f' to NULL.
24187 (x_delete_terminal, x_create_terminal): New functions.
24188 (XTset_terminal_modes, XTreset_terminal_modes)
24189 (XTread_socket, x_connection_closed, x_term_init)
24190 (x_term_init, x_delete_display): Add terminal parameter.
24191 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24192 X connections.
24193
24194 * frame.c: Include termchar.h.
24195 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24196 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24197 (Qdisplay_environment_variable): New vars.
24198 (Fframep): Deal with output_initial.
24199 (Fframe-live-p): Doc fix.
24200 (Fwindow-system): New function.
24201 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24202 (make_terminal_frame): Don't create frames on a terminal that is
24203 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24204 (store_frame_param): Check for found_for_frame before calling XFRAME.
24205 (Fmake_terminal_frame): Handle NULL tty names correctly.
24206 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24207 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24208 frames to refer to a deleted frame in their 'environment parameter.
24209 (Fframe_with_environment): New function.
24210 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24211 (get_future_frame_param): New function.
24212 (Fmake_terminal_frame): Use it.
24213 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24214
24215 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24216 * sysdep.c (reset_sys_modes): Update for renames.
24217
24218 * keyboard.c (tty_read_avail_input): New function.
24219 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24220 (syms_of_keyboard): Defsubr them.
24221 (Fset_input_meta_mode, Fset_quit_char): New functions.
24222 (Fset_input_mode): Split to above functions.
24223 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24224 parameter. Use it in call to `read_char'.
24225 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24226 Set wrong_kboard_jmpbuf correctly in recursive calls.
24227 Use current_kboard to access Vkeyboard_translate_table.
24228 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24229 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24230 Update longjmp invocations. Remember the original current_kboard,
24231 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24232 changes it. Comment out unnecessary calls to
24233 `record_single_kboard_state' and `any_kboard_state'.
24234 Update recursive calls.
24235 (wrong_kboard_jmpbuf): Remove global variable.
24236 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24237 Handle deleted interrupted_kboards correctly; that is a legal
24238 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24239 and read_char calls. Abort if interrupted_kboard died in read_char.
24240 (any_kboard_state, single_kboard_state)
24241 (push_frame_kboard): Remove function.
24242 (pop_kboard): Switch out of single_kboard mode if the kboard has
24243 been deleted. Remove unused variable. Help debugging by not
24244 changing current_kboard unnecessarily. Set current_kboard to the
24245 kboard of the selected frame when the stored kboard object has
24246 been deleted before pop_kboard.
24247 (temporarily_switch_to_single_kboard): Change first parameter to a
24248 frame pointer. Throw an error when caller wants to change kboards
24249 while in single_kboard mode. Don't push_kboard if we weren't in
24250 single kboard state. Don't pop_kboard if we popped into any
24251 kboard state.
24252 (restore_kboard_configuration): Abort if pop_kboard changed the
24253 kboard in single_kboard mode. Call pop_kboard only after setting
24254 up single_kboard mode.
24255 (Frecursive_edit): Switch to single_kboard mode only in nested
24256 command loops.
24257 (cmd_error, command_loop, command_loop_1, timer_check):
24258 Comment out unnecessary call to `any_kboard_state' and
24259 `record_single_kboard_state'.
24260 (delete_kboard): Exit single_kboard mode if we have just deleted
24261 that kboard. Use FRAME_KBOARD.
24262 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24263 `fatal_error_signal'.
24264 (record_single_kboard_state): Don't push_kboard if we weren't in
24265 single kboard state. Don't pop_kboard if we popped into any
24266 kboard state.
24267 (push_frame_kboard): Rename to push_kboard.
24268 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24269 (read_avail_input): Read input from all terminals.
24270 (mark_kboards): Also mark Vkeyboard_translate_table.
24271 (kbd_buffer_store_event_hold): Simplify condition.
24272 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24273 (Vkeyboard_translate_table): Move to struct kboard.
24274 (init_kboard): Initialize Vkeyboard_translate_table.
24275 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24276 Vkeyboard_translate_table. Update doc strings. Update docs of
24277 local-function-key-map and function-key-map.
24278
24279 * terminal.c: New file.
24280
24281 * term.c: Include errno.h.
24282 (Vring_bell_function, device_list, initial_device)
24283 (next_device_id, ring_bell, update_begin, update_end)
24284 (set_terminal_window, cursor_to, raw_cursor_to)
24285 (clear_to_end, clear_frame, clear_end_of_line)
24286 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24287 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24288 (syms_of_term): Move their initialization to terminal.c.
24289 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24290 (Ftty_display_color_cells)
24291 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24292 (clear_tty_hooks, set_tty_hooks)
24293 (init_tty, maybe_fatal): New functions.
24294 (Ftty_type): Return nil if terminal is not on a tty instead of
24295 throwing an error. Doc update.
24296 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24297 Doc update. Initialize new subrs and variables.
24298 (delete_tty): Use terminal->deleted.
24299 (tty_set_terminal_modes): Rename from set_terminal_modes.
24300 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24301 (set_scroll_region): Rename to `tty_set_scroll_region'.
24302 (turn_on_insert): Rename to `tty_turn_on_insert'.
24303 (turn_off_insert): Rename to `tty_turn_off_insert'.
24304 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24305 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24306 (toggle_highligh): Rename to `tty_toggle_highlight'.
24307 (background_highlight): Rename to `tty_background_highlight'.
24308 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24309 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24310 (tty_set_scroll_region, tty_background_highlight)
24311 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24312 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24313 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24314 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24315 Add static modifier.
24316 (tty_reset_terminal_modes, tty_set_terminal_window)
24317 (tty_set_scroll_region, tty_background_highlight)
24318 (tty_highlight_if_desired, tty_cursor_to)
24319 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24320 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24321 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24322 renames.
24323
24324 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24325
24326 * keyboard.c: Qrtl is new.
24327 (parse_tool_bar_item): Handle :rtl keyword.
24328 (syms_of_keyboard): Intern :rtl keyword.
24329
24330 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24331
24332 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24333 so no Lisp code is executed.
24334 (file_for_image, find_rtl_image): New functions.
24335 (xg_get_image_for_pixmap): Use file_for_image.
24336 (update_frame_tool_bar): If direction is RTL, use RTL image if
24337 defined. Use Gtk stock images if defined.
24338
24339 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24340
24341 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24342 for nonexistent or zero-width glyph in composition glyph.
24343
24344 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24345
24346 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24347
24348 * xdisp.c (Finvisible_p): New function.
24349 (syms_of_xdisp): defsubr it.
24350
24351 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
24352
24353 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24354 Doc fixes.
24355
24356 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24357
24358 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24359
24360 2007-08-24 Martin Rudalics <rudalics@gmx.at>
24361
24362 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24363 whether decoding has modified buffer contents.
24364
24365 2007-08-24 Jason Rumney <jasonr@gnu.org>
24366
24367 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24368 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24369 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24370 (init_svg_functions) [HAVE_NTGUI]: New function.
24371 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24372 (svg_load_image): Use them.
24373 (svg_load_image) [HAVE_NTGUI]: Implement background.
24374
24375 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24376
24377 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24378 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24379 (LIBX): Remove @RSVG_LIBS@.
24380 (LIBES): Add $(RSVG_LIBS).
24381
24382 * image.c (svg_load_image): Blend with specified background if exists.
24383 Use IMAGE_BACKGROUND. Add Mac OS Support.
24384
24385 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24386 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24387 Remove macros.
24388 [MAC_OSX] (socket_callback): Do nothing.
24389 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24390 ReceiveNextEvent.
24391 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24392 socket_callback.
24393 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24394
24395 2007-08-22 Glenn Morris <rgm@gnu.org>
24396
24397 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24398
24399 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24400
24401 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24402
24403 * image.c: Add support for SVG images. Some additional comments
24404 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24405 (svg_image_p): New function to test for SVG image.
24406 (svg_load): New function to load SVG image.
24407 (svg_load_image): New function, helper for svg_load.
24408 (Qsvg): New Lisp_object.
24409 (svg_keyword_index): New enum.
24410 (svg_format): New static `image_keyword' struct.
24411 (svg_type): New static `image_type' struct.
24412 (librsvg/rsvg.h): Include it.
24413
24414 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24415
24416 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24417
24418 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24419
24420 * lread.c (Qold_style_backquotes): New var.
24421 (syms_of_lread): Init and staticpro it.
24422 (load_warn_old_style_backquotes): New fun.
24423 (Fload): Use them to warn about old style backquotes.
24424 (end_of_file_error, Fload): Remove unused vars.
24425
24426 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24427
24428 * lread.c (Vold_style_backquotes): New var.
24429 (syms_of_lread): Init and export it to Elisp.
24430 (read1): Set it when we find an old-style (back)quote.
24431
24432 2007-08-22 Jason Rumney <jasonr@gnu.org>
24433
24434 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24435
24436 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24437
24438 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24439
24440 2007-08-19 Richard Stallman <rms@gnu.org>
24441
24442 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24443
24444 2007-08-19 Andreas Schwab <schwab@suse.de>
24445
24446 * alloc.c (pure): Round PURESIZE up.
24447
24448 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24449
24450 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24451 active frame.
24452
24453 2007-08-16 Richard Stallman <rms@gnu.org>
24454
24455 * eval.c (Fcommandp): Add parens to clarify.
24456
24457 * minibuf.c (Fall_completions): Use enum for type of table.
24458
24459 * emacs.c (USAGE2): Improve text.
24460
24461 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24462
24463 * term.c (tty_default_color_capabilities): Declare static
24464 variables in file scope, to avoid HPUX compiler problem.
24465
24466 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24467
24468 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24469 to gtk_toolbar_insert.
24470
24471 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24472
24473 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24474
24475 * insdel.c (reset_var_on_error): New fun.
24476 (signal_before_change, signal_after_change):
24477 Use it to reset (after|before)-change-functions to nil in case of error.
24478 Bind inhibit-modification-hooks to t.
24479 Don't bind (after|before)-change-functions to nil while they run.
24480
24481 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24482
24483 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24484 filling pixmap with stippled background.
24485
24486 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24487
24488 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24489 Don't use invisible frame as parent window for repositioning.
24490
24491 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24492
24493 * print.c (new_backquote_output): Rename from old_backquote_output.
24494 (print): Inverse its logic (according to its name) so as to match the
24495 behavior of new_backquote_flag in lread.c.
24496
24497 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24498
24499 * gmalloc.c (posix_memalign): New function.
24500
24501 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24502 ActivateControl/DeactivateControl here.
24503 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24504 frame-notice-user-settings is non-nil.
24505 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24506 for kEventParamFMFontStyle.
24507 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24508 mac_pass_command_to_system and mac_pass_control_to_system here.
24509 (XTread_socket): Call ActivateControl/DeactivateControl here.
24510 (XTread_socket) [TARGET_API_MAC_CARBON]:
24511 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24512 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24513 for window repositioning.
24514
24515 2007-08-08 Glenn Morris <rgm@gnu.org>
24516
24517 * Replace `iff' in doc-strings and comments.
24518
24519 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
24520
24521 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24522
24523 2007-08-07 Martin Rudalics <rudalics@gmx.at>
24524
24525 * fileio.c (Finsert_file_contents): Run format-decode and
24526 after_insert_file_functions on entire buffer when REPLACE is
24527 non-nil and inhibit modification_hooks and point_motion_hooks.
24528 For consistency, run after_insert_file_functions iff something
24529 got inserted. Move signal_after_change and update_compositions
24530 after code running after_insert_file_functions. Make sure that
24531 undo_list doesn't record intermediate steps of the decoding process.
24532
24533 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24534
24535 * emacs.c (main)
24536 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24537 Call malloc_enable_thread on interactive startup.
24538
24539 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24540 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24541 [USE_PTHREAD]: Conditionalize with it.
24542 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24543 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24544 New functions.
24545
24546 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
24547
24548 * xdisp.c (redisplay_window): When restoring original buffer
24549 position, make sure it is still valid.
24550
24551 * image.c (png_load): Ignore png-supplied background color.
24552
24553 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24554
24555 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24556 Use kCFAbsoluteTimeIntervalSince1970.
24557
24558 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24559 New variable.
24560 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24561 event loop should be quit.
24562 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24563 Quit dialog event loop if quit_dialog_event_loop is set.
24564
24565 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24566 (Selection): New typedef. Use instead of ScrapRef.
24567 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24568 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24569 (mac_clear_selection): Rename from clear_scrap.
24570 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24571 scrap_has_target_type. All uses changed.
24572 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24573 (mac_selection_has_target_p): New functions.
24574 (mac_put_selection_value): Rename from put_scrap_string.
24575 (mac_get_selection_value): Rename from get_scrap_string.
24576 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24577 (put_scrap_private_timestamp, scrap_has_target_type)
24578 (get_scrap_private_timestamp): Remove functions.
24579 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24580 (x_own_selection, x_get_local_selection):
24581 Use mac_valid_selection_value_p.
24582 (x_own_selection): Don't use put_scrap_private_timestamp.
24583 Record OWNERSHIP-INFO into Vselection_alist instead.
24584 (x_get_local_selection): Don't check type if request is local.
24585 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24586 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24587
24588 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24589
24590 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24591 add comment explaining why.
24592
24593 2007-08-03 Richard Stallman <rms@gnu.org>
24594
24595 * fileio.c (Fvisited_file_modtime): Use make_time.
24596
24597 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24598
24599 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24600 build.
24601
24602 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24603
24604 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24605
24606 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24607
24608 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24609
24610 2007-07-30 Richard Stallman <rms@gnu.org>
24611
24612 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24613
24614 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24615
24616 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24617
24618 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
24619
24620 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24621 remote default-directory.
24622
24623 * buffer.c (mode-line-format): Update doc string.
24624
24625 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24626
24627 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24628 scroll bar gap.
24629 (x_scroll_bar_create): Set bar->fringe_extended_p.
24630 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24631 on frame edge. Check fringe background extension. Don't clear
24632 extended fringe background area.
24633
24634 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24635 (w32_fill_area): Enclose multiple statements with do ... while (0).
24636
24637 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24638 Extend fringe background to scroll bar gap.
24639 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24640 Set bar->fringe_extended_p.
24641 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24642 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24643 background extension. Don't clear extended fringe background area.
24644
24645 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24646 New member fringe_extended_p.
24647
24648 2007-07-25 Glenn Morris <rgm@gnu.org>
24649
24650 * Relicense all FSF files to GPLv3 or later.
24651
24652 * COPYING: Switch to GPLv3.
24653
24654 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24655
24656 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24657
24658 * data.c (Finteractive_form): Check for the presence of an
24659 `interactive-form' symbol property more thoroughly.
24660
24661 * data.c (Finteractive_form): Use an `interactive-form' property if
24662 present, analogous to the function-documentation property.
24663
24664 2007-07-24 Jason Rumney <jasonr@gnu.org>
24665
24666 * w32fns.c (x_real_positions): Get real position from OS instead of
24667 calculating it.
24668
24669 2007-07-23 Jason Rumney <jasonr@gnu.org>
24670
24671 * filelock.c (current_lock_owner): Allow for @ sign in username.
24672
24673 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
24674
24675 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24676 remote default-directory.
24677
24678 * buffer.c (mode-line-format): Describe above case in doc string.
24679
24680 2007-07-20 Eli Zaretskii <eliz@gnu.org>
24681
24682 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24683 Define if not defined.
24684
24685 2007-07-18 Jason Rumney <jasonr@gnu.org>
24686
24687 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24688
24689 2007-07-18 Richard Stallman <rms@gnu.org>
24690
24691 * data.c (Fsetq_default): Doc fix.
24692
24693 * eval.c (Fsetq): Doc fix.
24694
24695 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
24696
24697 * coding.c (Ffind_operation_coding_system):
24698 * eval.c (For, Fand): Doc fixes.
24699 Reported by Johan Bockgård.
24700
24701 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24702
24703 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24704
24705 * xterm.h: Declare x_ewmh_activate_frame.
24706
24707 * xterm.c (x_ewmh_activate_frame): New function.
24708 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24709
24710 2007-07-17 Martin Rudalics <rudalics@gmx.at>
24711
24712 * window.c (Fdisplay_buffer): If largest or LRU window is the
24713 only window, split it even if it is not eligible for splitting.
24714 This restores the original behavior broken by the 2007-07-15
24715 change.
24716
24717 2007-07-17 Glenn Morris <rgm@gnu.org>
24718
24719 * abbrev.c (abbrev_check_chars): New function.
24720 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24721 Call abbrev_check_chars to check abbrev characters are word
24722 constituents. Doc fix.
24723
24724 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24725
24726 * process.c (Fstart_process, Fmake_network_process)
24727 (read_process_output): Fix up last changes.
24728
24729 2007-07-16 Eli Zaretskii <eliz@gnu.org>
24730
24731 * makefile.w32-in (clean): Don't delete *~.
24732
24733 2007-07-16 Andreas Schwab <schwab@suse.de>
24734
24735 * window.c (Fdisplay_buffer): Use NILP.
24736 (Fset_window_scroll_bars): Likewise.
24737
24738 2007-07-15 Martin Rudalics <rudalics@gmx.at>
24739
24740 * window.c (window_min_size_2): New function.
24741 (window_min_size_1, size_window, Fdisplay_buffer)
24742 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24743 windows without mode- or header-lines when window-min-height is
24744 too small.
24745 (size_window): Reset nodelete_p after testing it, following an
24746 earlier note by Kim F. Storm.
24747 (display_buffer): Do not set split_height_threshold to twice the
24748 value of window_min_height to avoid changing the value of a
24749 customizable variable. Rather explicitly check whether the
24750 height of the window that shall be splitted is at least as large
24751 as split_height_threshold.
24752 (Fwindow_full_width_p): New defun.
24753 (syms_of_window): Defsubr it.
24754
24755 * window.h: Add EXFUN for Fwindow_full_width_p.
24756
24757 2007-07-14 Jason Rumney <jasonr@gnu.org>
24758
24759 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24760
24761 2007-07-14 Richard Stallman <rms@gnu.org>
24762
24763 * eval.c (maybe_call_debugger): New function.
24764 (find_handler_clause): Use maybe_call_debugger.
24765 Call it when the handler says `debug'.
24766 Eliminate DEBUGGER_VALUE_PTR.
24767 (Fsignal): Eliminate debugger_value.
24768 (Qdebug): New variable.
24769 (syms_of_eval): Initialize it.
24770
24771 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
24772
24773 * eval.c (Fprogn):
24774 * keyboard.c (Ftrack_mouse):
24775 * print.c (Fwith_output_to_temp_buffer):
24776 * window.c (Fsave_window_excursion): Doc fix.
24777
24778 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24779
24780 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24781
24782 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24783
24784 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24785 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24786 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24787 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24788 Remove unused encoding_carryover.
24789 * process.c: Adjust all functions accordingly.
24790
24791 2007-07-12 Richard Stallman <rms@gnu.org>
24792
24793 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24794
24795 2007-07-11 Jason Rumney <jasonr@gnu.org>
24796
24797 * makefile.w32-in (LIBS): Include OLE32.
24798
24799 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24800 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24801
24802 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24803
24804 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24805 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24806 from a Lisp_Object into a bare pointer.
24807 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24808 Adjust the code correspondingly.
24809
24810 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24811
24812 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24813 (term_show_mouse_face): Remove unused var `j'.
24814 (handle_one_term_event): Remove unused vars `i' and `j'.
24815 Don't cast return value of ttyname since it's not necessary.
24816
24817 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24818
24819 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24820 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24821
24822 * fns.c (map_char_table): Use an array of int for `indices' rather than
24823 an array of Lisp_Objects (which are only ever integers anyway).
24824 (Fmap_char_table): Update caller.
24825 * lisp.h: Update prototype.
24826 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24827 * fontset.c (Ffontset_info):
24828 * casetab.c (set_case_table): Update callers.
24829
24830 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24831
24832 * keymap.c (struct accessible_keymaps_data)
24833 (struct where_is_internal_data): New structures.
24834 (accessible_keymaps_1, where_is_internal_1): Use them to change
24835 interface to adhere to the one used by map_keymap.
24836 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24837 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24838
24839 * keymap.h (map_keymap_function_t): More informative prototype.
24840
24841 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24842
24843 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24844 (looking_at_1): Don't change search_regs and last_thing_searched
24845 if `inhibit-changing-match-data' is non-nil.
24846 (string_match_1, search_buffer, set_search_regs): Likewise.
24847 (syms_of_search): Add Lisp level definition for
24848 `inhibit-changing-match-data' and set it to nil.
24849 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24850 start and end of the match, instead of using values in search_regs.
24851
24852 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24853
24854 * minibuf.c (Fcompleting_read): New value `confirm-only'
24855 for `require-match'.
24856
24857 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24858
24859 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24860 part of the 2007-06-27 change to syms_of_fileio.
24861
24862 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24863
24864 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24865 Check WINDOWP before using XWINDOW. Consolidate return statements.
24866
24867 2007-06-27 Richard Stallman <rms@gnu.org>
24868
24869 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24870
24871 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
24872
24873 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24874
24875 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24876
24877 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24878 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24879 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24880 (_free_internal, memalign): Use them.
24881 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24882 Initialize to PTHREAD_MUTEX_INITIALIZER.
24883 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24884 (morecore_nolock): Rename from morecore. All uses changed.
24885 Use only nolock versions of internal allocation functions.
24886 (_malloc_internal_nolock, _realloc_internal_nolock)
24887 (_free_internal_nolock): New functions created from
24888 _malloc_internal, _realloc_internal, and _free_internal.
24889 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24890 Copy hook value to automatic variable before its use.
24891 (memalign): Copy hook value to automatic variable before its use.
24892
24893 2007-06-26 Kenichi Handa <handa@m17n.org>
24894
24895 * coding.c (Ffind_operation_coding_system): Docstring improved.
24896 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24897
24898 2007-06-25 David Kastrup <dak@gnu.org>
24899
24900 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24901 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24902 cater for additional parameter.
24903
24904 * keymap.h: Adjust number of parameters to `current-active-maps'.
24905
24906 * doc.c (Fsubstitute_command_keys): Adjust call of
24907 `current-active-maps'.
24908
24909 2007-06-25 David Kastrup <dak@gnu.org>
24910
24911 * callint.c (Fcall_interactively): Make the parsing of interactive
24912 specs somewhat more readable.
24913
24914 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24915
24916 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24917 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24918 if extended background has already been filled.
24919
24920 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24921
24922 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24923 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24924
24925 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24926 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24927 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24928 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24929 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24930 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24931 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24932 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24933 Run timers during dialog popup.
24934 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24935
24936 2007-06-21 Jason Rumney <jasonr@gnu.org>
24937
24938 * image.c (convert_mono_to_color_image): Swap fore and background.
24939
24940 2007-06-20 Jason Rumney <jasonr@gnu.org>
24941
24942 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24943 (w32_free_bdf_font): Unmap memory not handle.
24944
24945 2007-06-20 Sam Steingold <sds@gnu.org>
24946
24947 * gmalloc.c (__morecore): Fix the declaration to comply with the
24948 definition.
24949
24950 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
24951
24952 * w32term.c (w32_delete_display): Remove leftover declaration.
24953 (w32_define_cursor, w32_initialize): Make static.
24954
24955 * w32.c (_wsa_errlist): Fix typo in error message.
24956 (init_environment): Ignore any environment variable from the
24957 registry having a null value.
24958
24959 2007-06-20 Glenn Morris <rgm@gnu.org>
24960
24961 * Makefile.in (LIBGIF): Default to -lgif.
24962
24963 2007-06-17 Jason Rumney <jasonr@gnu.org>
24964
24965 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24966 unicode strings.
24967
24968 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
24969
24970 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24971 Fix typo in docstring.
24972
24973 2007-06-16 Eli Zaretskii <eliz@gnu.org>
24974
24975 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24976 and their keybindings.
24977
24978 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
24979
24980 * composite.c (update_compositions): Fix last fix.
24981
24982 2007-06-14 Jason Rumney <jasonr@gnu.org>
24983
24984 * w32.c (get_process_times_fn): New function pointer.
24985 (globals_of_w32): Intialize it if present in kernel32.dll.
24986 (w32_get_internal_run_time): New function.
24987
24988 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24989
24990 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24991
24992 * composite.c (update_compositions): Check the validness of
24993 compositions.
24994
24995 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24996
24997 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24998 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24999
25000 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25001 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25002
25003 * macgui.h (USE_MAC_TOOLBAR): New define.
25004
25005 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25006 Return immediately unless popup is activated.
25007
25008 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25009 background to scroll bar gap.
25010 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25011 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25012 scroll bars on frame edge. Check fringe background extension.
25013 Don't clear extended fringe background area.
25014 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25015 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25016 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25017 [USE_MAC_TOOLBAR]: New macros.
25018 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25019 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25020 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25021 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25022 [USE_MAC_TOOLBAR]: New functions.
25023 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25024 manually if previous repositioning has failed.
25025 (mac_handle_keyboard_event): Use precomputed event kind.
25026 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25027 as tool bar item click. Handle mouse movement over tool bar items.
25028
25029 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25030 toolbar_win_gravity.
25031 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25032 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25033 Add externs.
25034
25035 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25036 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25037
25038 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25039
25040 * image.c (search_image_cache): Remove unused variable.
25041
25042 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25043
25044 * xfns.c, xmenu.c: Link to xaw3d if available.
25045
25046 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25047
25048 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25049 frame_foreground and frame_background.
25050
25051 * image.c (lookup_image): Save frame foreground and background colors.
25052 (search_image_cache): Check if saved and current frame colors match.
25053
25054 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25055
25056 * regex.c (regex_compile): Remove the `regnum' counter.
25057 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25058
25059 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25060
25061 * term.c: Include intervals.h to declare Fget_text_property.
25062
25063 2007-06-10 Jason Rumney <jasonr@gnu.org>
25064
25065 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25066
25067 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25068
25069 * callint.c (Fcall_interactively):
25070 * editfns.c (Fdelete_and_extract_region):
25071 * fileio.c (Fread_file_name):
25072 * fns.c (Fmapconcat):
25073 * keyboard.c (cmd_error_internal):
25074 * keymap.c (Fkey_description):
25075 * lread.c (openp):
25076 * minibuf.c (read_minibuf):
25077 * search.c (wordify):
25078 * sunfns.c (sel_read):
25079 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25080 * xfns.c (x_default_scroll_bar_color_parameter):
25081 * xmenu.c (menu_help_callback):
25082 * xselect.c (Fx_get_atom_name):
25083 * xterm.c (x_term_init): Use empty_unibyte_string.
25084
25085 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25086
25087 * alloc.c (init_strings): Initialize canonical empty strings.
25088 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25089 canonical empty string when the requested size is 0.
25090
25091 * emacs.c (empty_unibyte_string): Rename from empty_string.
25092 (empty_multibyte_string): New canonical empty string.
25093 (syms_of_emacs): Don't initialize empty_string.
25094
25095 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25096 string, if appropriate.
25097 (empty_unibyte_string, empty_multibyte_string): New externs.
25098 (empty_string): Remove extern.
25099
25100 * lread.c (syms_of_lread): Use empty_unibyte_string.
25101
25102 2007-06-07 Jason Rumney <jasonr@gnu.org>
25103
25104 * s/ms-w32.h: Don't define HAVE_TZNAME.
25105
25106 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25107
25108 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25109
25110 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25111
25112 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25113 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25114
25115 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25116 Don't call next handler.
25117 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25118 Remove argument. Install handler to application.
25119 (set_frame_menubar): Don't change deep_p.
25120 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25121 FRAME_OUTER_TO_INNER_DIFF_Y.
25122 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25123 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25124 [HAVE_DIALOGS]: New macros.
25125 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25126 Use them.
25127 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25128
25129 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25130 init_service_handler. All callers changed. Return OSStatus value.
25131
25132 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25133 All callers changed so as not to call SetPortWindowPort.
25134 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25135 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25136 mac_draw_string_common.
25137 (mac_draw_image_string_qd): Likewise.
25138 (mac_draw_string_common): Use them. Add INLINE.
25139 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25140 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25141 GetGlobalMouse.
25142 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25143 and FRAME_OUTER_TO_INNER_DIFF_Y.
25144 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25145 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25146 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25147 repositioning window to mac_handle_window_event.
25148 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25149 saving window location to mac_handle_window_event
25150 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25151 (install_menu_target_item_handler): Remove argument in extern.
25152 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25153 Also accept command events.
25154 (do_keystroke): New function created from XTread_socket.
25155 (init_command_handler): Remove functions.
25156 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25157 and save window location by kEventWindowShowing and kEventWindowHiding
25158 handlers here. Don't call next handler for window state change and
25159 focus events.
25160 (mac_handle_application_event, mac_handle_keyboard_event)
25161 [TARGET_API_MAC_CARBON]: New functions.
25162 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25163 kEventWindowShowing and kEventWindowHiding events. Move installation
25164 of mouse, font, text input and menu target item handlers to
25165 install_application_handler.
25166 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25167 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25168 New function.
25169 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25170 Register it.
25171 (XTread_socket) [TARGET_API_MAC_CARBON]:
25172 Consolidate SendEventToEventTarget calls.
25173 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25174 Move application activation handler to mac_handle_application_event.
25175 Move keyboard handler to mac_handle_keyboard_event.
25176 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25177 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25178 init_command_handler. Call install_application_handler.
25179
25180 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25181 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25182
25183 2007-06-07 Glenn Morris <rgm@gnu.org>
25184
25185 * emacs.c (main): Use `emacs-copyright' in --version output.
25186
25187 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
25188
25189 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25190
25191 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25192
25193 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25194
25195 * macgui.h: Replace WindowPtr with WindowRef.
25196
25197 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25198 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25199 Replace ControlHandle with ControlRef.
25200 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25201
25202 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25203 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25204 Replace ControlHandle with ControlRef.
25205 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25206 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25207
25208 * macterm.h (struct scroll_bar): Rename member control_handle_low
25209 and control_handle_high to control_ref_low and control_ref_high.
25210 All uses changed.
25211 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25212 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25213 respectively. All uses changed.
25214 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25215 (install_window_handler, remove_window_handler): Replace WindowPtr
25216 with WindowRef in externs.
25217
25218 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
25219
25220 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25221
25222 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
25223
25224 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25225
25226 * frame.c (Fmouse_position, Fmouse_pixel_position):
25227 Condition on HAVE_GPM too.
25228
25229 * term.c (term_mouse_highlight): Remove unused variables.
25230 (Fterm_open_connection): Set gpm_zerobased to 1.
25231 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25232 Use zero based co-ordinates.
25233 (handle_one_term_event): Report a drag as mouse movement too.
25234
25235 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25236
25237 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
25238
25239 * image.c (search_image_cache): New function. Require background
25240 color match if background color is unspecified in the image spec.
25241 (uncache_image, lookup_image): Use it.
25242
25243 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
25244
25245 * window.c (Fshrink_window): Reflow docstring.
25246
25247 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
25248
25249 * Version 22.1 released.
25250
25251 2007-06-01 Richard Stallman <rms@gnu.org>
25252
25253 * xfns.c (x_encode_text): Add GCPRO.
25254
25255 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25256
25257 * xfns.c (x_set_name_internal): Save encoded name before
25258 x_encode_text in case string data is relocated.
25259
25260 2007-05-31 Richard Stallman <rms@gnu.org>
25261
25262 * buffer.c (syms_of_buffer): Doc fix.
25263
25264 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
25265
25266 * sysdep.c (init_sys_modes): Add rather than replace with
25267 O_NONBLOCK.
25268
25269 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25270 term_mouse_moveto.
25271
25272 * termhooks.h (term_mouse_moveto): New extern.
25273
25274 * term.c (mouse_face_window): Rename...
25275 (Qmouse_face_window): ...to this.
25276 (term_show_mouse_face, term_clear_mouse_face)
25277 (term_mouse_highlight): Use Qmouse_face_window.
25278 (term_mouse_moveto): New function.
25279 (term_mouse_position): Make it work.
25280 (syms_of_term): Uncomment assignment to mouse_position_hook.
25281 Staticpro Qmouse_face_window.
25282
25283 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25284
25285 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25286 around current_column call.
25287
25288 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25289
25290 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25291 * xdisp.c (next_element_from_buffer):
25292 * window.c (delete_window):
25293 * term.c (term_mouse_highlight):
25294 * msdos.c (getdefdir):
25295 * macterm.c (mac_create_bitmap_from_bitmap_data)
25296 (init_font_name_table):
25297 * fns.c (Fsxhash):
25298 * data.c (Fmake_local_variable):
25299 * ccl.c (ccl_driver): Likewise.
25300
25301 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25302
25303 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25304 Call mac_wakeup_from_rne on window size change.
25305
25306 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
25307
25308 * image.c (uncache_image): Fix typo.
25309
25310 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25311
25312 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25313
25314 2007-05-22 Richard Stallman <rms@gnu.org>
25315
25316 * xterm.c (x_connection_closed): Remove NO_RETURN.
25317
25318 2007-05-22 Martin Rudalics <rudalics@gmx.at>
25319
25320 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25321
25322 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
25323
25324 * image.c (uncache_image): New function.
25325 (Fimage_refresh): New function.
25326
25327 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25328
25329 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25330
25331 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25332
25333 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25334 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25335
25336 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25337
25338 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25339 conditional on [HAVE_GPM_H].
25340
25341 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25342
25343 * syntax.c (skip_chars): Update syntax-table only after we checked that
25344 the new location is valid.
25345
25346 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25347
25348 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25349 mac_get_window_bounds.
25350
25351 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25352
25353 * Makefile.in (LIBGPM): Allow it to be set from configure.
25354 If set then link Emacs with it.
25355
25356 * config.in: Regenerate.
25357
25358 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25359 New externs.
25360
25361 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25362 Include gpm.h.
25363 (handle_one_term_event, term_gpm): New externs.
25364
25365 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25366 and allow it to be interrupted by SIGIO.
25367
25368 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25369 (wait_reading_process_output): Wait on gpm_fd too.
25370 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25371 (add_gpm_wait_descriptor_called_flag): New variable.
25372 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25373
25374 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25375 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25376 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25377 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25378 (make_lispy_event): Add case GPM_CLICK_EVENT.
25379 (read_avail_input): Handle mouse input.
25380
25381 * term.c (write_glyphs_with_face): New function.
25382 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25383 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25384 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25385 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25386 (last_mouse_x, last_mouse_y): New variables.
25387 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25388 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25389 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25390 (Fterm_close_connection): New functions.
25391 (term_init): Initialise mouse_face_window.
25392
25393 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
25394
25395 * xdisp.c (redisplay_window): If first window line is a
25396 continuation line, recompute the new window start instead of
25397 recentering.
25398
25399 2007-05-18 Glenn Morris <rgm@gnu.org>
25400
25401 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25402 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25403
25404 2007-05-17 Glenn Morris <rgm@gnu.org>
25405
25406 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25407
25408 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25409
25410 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25411 dead key repeat and up events.
25412
25413 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
25414
25415 * image.c (pbm_load): Check image size for monochrome pbm.
25416
25417 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
25418
25419 * xterm.c (XTread_socket): Revert last change.
25420
25421 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
25422
25423 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25424
25425 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25426
25427 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25428
25429 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25430 mixup (YAILOM).
25431
25432 2007-05-07 Andreas Schwab <schwab@suse.de>
25433
25434 * keymap.c (Flookup_key): Fix typo in last change.
25435
25436 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25437
25438 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25439 mapping for unibyte strings.
25440
25441 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25442
25443 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25444 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25445
25446 2007-04-29 Richard Stallman <rms@gnu.org>
25447
25448 * insdel.c (replace_range): For undo, record insertion first.
25449
25450 2007-04-29 Andreas Schwab <schwab@suse.de>
25451
25452 * lisp.h (VECSIZE): Use OFFSETOF.
25453
25454 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25455
25456 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25457 disabled lines.
25458
25459 2007-04-28 Richard Stallman <rms@gnu.org>
25460
25461 * lread.c (read_escape): In a string, \s is always space.
25462
25463 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25464
25465 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25466
25467 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25468 submenu for menu bar items.
25469
25470 See ChangeLog.10 for earlier changes.
25471
25472 ;; Local Variables:
25473 ;; coding: utf-8
25474 ;; add-log-time-zone-rule: t
25475 ;; End:
25476
25477 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
25478
25479 This file is part of GNU Emacs.
25480
25481 GNU Emacs is free software: you can redistribute it and/or modify
25482 it under the terms of the GNU General Public License as published by
25483 the Free Software Foundation, either version 3 of the License, or
25484 (at your option) any later version.
25485
25486 GNU Emacs is distributed in the hope that it will be useful,
25487 but WITHOUT ANY WARRANTY; without even the implied warranty of
25488 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25489 GNU General Public License for more details.
25490
25491 You should have received a copy of the GNU General Public License
25492 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25493
25494 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40