Convert some more functions to standard C.
[bpt/emacs.git] / src / ChangeLog
1 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
2
3 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4 (emacs_blocked_realloc, uninterrupt_malloc):
5 * fringe.c (w32_reset_fringes):
6 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
8 * sound.c (be2hs, do_play_sound):
9 * vm-limit.c (get_lim_data, ret_lim_data):
10 * w32term.c (x_free_frame_resources):
11 * xfaces.c (x_create_gc, x_free_gc):
12 Convert definitions to standard C.
13
14 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * eval.c (Feval, Ffuncall): Use the new names.
17
18 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
19 (DEFUN): Add braces around the union initialisation and use ## to
20 specify the right union alternative and avoid a cast.
21
22 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
23
24 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
25
26 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
27
28 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
29
30 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
31
32 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
33 is related to the menu bar (Bug#6499).
34 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
35
36 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
37
38 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
39
40 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
41
42 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
43 i.e. don't put back ButtonRelease (Bug#6608).
44
45 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
46 instead of Window. Call xg_event_is_for_menubar when
47 USE_GTK (Bug#6499).
48
49 * gtkutil.h (xg_event_is_for_menubar): Declare.
50
51 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
52
53 2010-07-16 Eli Zaretskii <eliz@gnu.org>
54
55 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
56 when it's the same as the old foreground. (Bug#6609)
57
58 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
59
60 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
61 widget is non-null (Bug#6645).
62
63 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
64
65 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
66 Convert old-style definition.
67
68 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
69 timestamp argument.
70
71 2010-07-15 Eli Zaretskii <eliz@gnu.org>
72
73 * fringe.c (update_window_fringes): Restore mistakenly reverted
74 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
75
76 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
77
78 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
79 (SET_SAVED_KEY_EVENT): Remove (not used).
80 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
81 remove size parameter.
82 (handle_one_xevent): Check popup_activated () for menu for Xt also.
83 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
84 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
85 ButtonRelease.
86 (x_set_window_size_1): scroll_bar_actual_width is always
87 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
88
89 * xdisp.c (pending_menu_activation): Remove extern declaration.
90 (prepare_menu_bars): Remove setting of pending_menu_activation.
91
92 * xmenu.c (pending_menu_activation): Remove.
93 (x_activate_menubar): Set popup_activated_flag for Xt also.
94 Remove setting of pending_menu_activation.
95 (set_frame_menubar): Remove check of pending_menu_activation.
96 Declare menubar_size before code. Correct spelling in comment.
97
98 2010-07-14 Kenichi Handa <handa@m17n.org>
99
100 * font.c (font_open_entity): Cancel previous change.
101 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
102
103 2010-07-13 Eli Zaretskii <eliz@gnu.org>
104
105 Remove subprocesses #ifdefs.
106 * process.c <inhibit_sentinels>: Move to the common part.
107 (Fwaiting_for_user_input_p): Move to the common part; return nil
108 if async subprocesses aren't supported.
109 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
110 MS-DOS. Remove "#ifdef subprocesses".
111 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
112 (gettimeofday): Remove "#ifdef subprocesses".
113 (wait_without_blocking): Remove function.
114 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
115 Remove "#ifdef subprocesses".
116 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
117 compiled on MS-DOS.
118 * callproc.c (Fcall_process) [!MSDOS]: Don't call
119 wait_for_termination on MS-DOS.
120 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
121 initialization of inhibit_sentinels.
122 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
123 subprocesses" conditional.
124 * callproc.c (Fcall_process) [!subprocesses]: Don't call
125 wait_for_termination, since `buffer' cannot be an integer when
126 async subprocesses are not supported
127 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
128 for ifdefing away the call to Fprocess_status.
129
130 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
131 away the entire body of the function.
132
133 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
134
135 Remove subprocesses #ifdefs from term.c.
136 * process.c (add_keyboard_wait_descriptor)
137 (delete_keyboard_wait_descriptor): Move to common section, do
138 nothing when subprocesses is not defined.
139 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
140 Remove subprocesses #ifdefs.
141
142 Convert maybe_fatal to standard C.
143 * lisp.h (verror): Declare.
144 * eval.c (verror): New function containing the code from ...
145 (error): ... this. Call verror.
146 * term.c (vfatal): New function containing the code from ...
147 (fatal): ... this. Call vfatal.
148 (maybe_fatal): Convert to standard C, use variable number of
149 arguments. Declare as non-return.
150 (init_tty): Fix maybe_fatal call.
151
152 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
153
154 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
155 (_scroll_bar_note_movement): Convert definitions to standard C.
156 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
157 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
158
159 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
160
161 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
162 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
163 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
164 (xaw_jump_callback, xaw_scroll_callback)
165 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
166 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
167 definitions to standard C.
168 * xmenu.c (menubar_id_to_frame, popup_get_selection)
169 (popup_activate_callback, popup_deactivate_callback)
170 (menu_highlight_callback, menubar_selection_callback)
171 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
172 (free_frame_menubar, popup_selection_callback, as)
173 (create_and_show_popup_menu, dialog_selection_callback)
174 (create_and_show_dialog):
175 * xfns.c (hack_wm_protocols, x_window):
176 * xfaces.c (x_update_menu_appearance):
177 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
178 (char_to_pixel_size, round_size_to_char, get_wm_shell)
179 (set_frame_size, update_wm_hints, setup_frame_gcs)
180 (update_various_frame_slots, update_from_various_frame_slots)
181 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
182 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
183 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
184
185 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
186
187 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
188
189 2010-07-12 Eli Zaretskii <eliz@gnu.org>
190
191 * process.c (setup_process_coding_systems): Move to the part
192 shared by non-subprocesses systems, and make its body empty when
193 subprocesses is not defined.
194 (close_process_descs): Move to the part shared by non-subprocesses
195 systems.
196 (wait_reading_process_output) [!subprocesses]: Convert arg list to
197 ANSI C.
198
199 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
200
201 * editfns.c (transpose_markers): Convert old-style definition.
202 * emacs.c (abort, shut_down_emacs, fixup_locale)
203 (synchronize_system_time_locale)
204 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
205 * floatfns.c (extract_float, matherr, init_floatfns)
206 (syms_of_floatfns): Likewise.
207 * fns.c (make_hash_table): Likewise.
208 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
209 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
210 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
211 (ftfont_variation_glyphs): Likewise.
212 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
213 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
214 * lread.c (read_filtered_event): Likewise.
215 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
216 * process.c (wait_reading_process_output): Likewise.
217 * scroll.c (do_line_insertion_deletion_costs): Likewise.
218 * search.c (search_buffer, boyer_moore): Likewise.
219 * syntax.c (scan_sexps_forward): Likewise.
220 * xdisp.c (try_scrolling): Likewise.
221 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
222 (face_at_string_position): Likewise.
223 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
224 * xselect.c (x_get_window_property, receive_incremental_selection)
225 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
226 Likewise.
227 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
228
229 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
230
231 * callproc.c (child_setup): Remove subprocesses conditional.
232 Remove code dealing with SET_EMACS_PRIORITY, unused.
233
234 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
235 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
236
237 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
238 (__do_global_dtors, __main): Use void in definition.
239 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
240 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
241 the only users from ...
242 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
243 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
244 (HAVE_VOLATILE): Remove, unused.
245
246 Convert more function definitions to standard C.
247 * xdisp.c (window_box_edges, handle_single_display_spec)
248 (display_string): Convert definition to standard C.
249 * scroll.c (do_direct_scrolling, scrolling_1):
250 * dispnew.c (allocate_matrices_for_frame_redisplay)
251 (mirrored_line_dance):
252 * coding.c (code_convert_string):
253 * charset.c (map_charset_chars):
254 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
255 (Fregister_ccl_program, Fregister_code_conversion_map):
256 * keyboard.c (kbd_buffer_nr_stored): Likewise.
257 (head_table): Make static and const.
258
259 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
260
261 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
262 (PROFILING_LDFLAGS): Set from substitution.
263 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
264 CFLAGS last.
265
266 2010-07-12 Kenichi Handa <handa@m17n.org>
267
268 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
269 (shortlisp): Likewise.
270
271 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
272
273 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
274 of FONT_ENTITY_INDEX.
275 (Ffont_get): If KEY is :otf and the font-object doesn't have the
276 property, get the property value dynamically.
277 (Ffont_put): Accept font-entity and font-object too.
278 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
279 return value changed.
280 (syms_of_font): Adjusted for the above change.
281
282 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
283
284 * blockinput.h: Remove obsolete comment.
285
286 * lisp.h: Include <stddef.h>.
287 (OFFSETOF): Don't define.
288 (VECSIZE): Use offsetof instead of OFFSETOF.
289 (PSEUDOVECSIZE): Likewise.
290 * process.c (conv_sockaddr_to_lisp): Likewise.
291 * alloc.c: Don't include <stddef.h>.
292 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
293
294 * process.c: Remove obsolete comment.
295
296 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
297
298 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
299
300 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
301
302 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
303 index, rindex.
304 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
305 * editfns.c (Fuser_full_name, Fformat): Likewise.
306 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
307 * fileio.c (Ffile_symlink_p): Likewise.
308 * filelock.c (current_lock_owner): Likewise.
309 * font.c (font_parse_name, font_parse_family_registry): Likewise.
310 * fontset.c (fontset_pattern_regexp): Likewise.
311 * lread.c (read1): Likewise.
312 * sysdep.c (init_system_name): Likewise.
313 * xfns.c (select_visual): Likewise.
314 * s/hpux10-20.h (index, rindex): Don't define.
315 * s/ms-w32.h (index): Likewise.
316 * s/usg5-4.h: Likewise.
317
318 * callproc.c (relocate_fd): Use F_DUPFD if defined.
319
320 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
321 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
322 (egetenv): Likewise.
323 * doprnt.c (doprnt): Likewise.
324 * editfns.c (set_time_zone_rule, format2): Likewise.
325 * emacs.c (decode_env_path): Likewise.
326 * eval.c (signal_error, error): Likewise.
327 * insdel.c (replace_range_2): Likewise.
328 * keyboard.c (cmd_error_internal): Likewise.
329 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
330 * print.c (write_string, write_string_1, print_error_message):
331 Likewise.
332 * vm-limit.c (warn_function, memory_warnings): Likewise.
333 * xdisp.c (message1, message1_nolog, message_with_string)
334 (vmessage, message, message_nolog): Likewise.
335 * emacs.c: Remove duplicate declaration.
336 * keyboard.h: Likewise.
337 * lisp.h: Update prototypes.
338
339 * eval.c: Fix indentation problem.
340
341 * keyboard.c: Include "process.h"
342
343 * eval.c: Remove obsolete noinline declaration.
344 * fns.c: Likewise.
345
346 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
347
348 * doprnt.c (doprnt): Take a va_list argument instead of count and
349 pointer.
350 * eval.c (error): Change to a standard-C variadic function.
351 * xdisp.c (vmessage): Renamed from message, made static, and
352 changed to take a va_list argument.
353 (message): New variadic wrapper.
354 (message_nolog): Now a variadic function, calling vmessage.
355 * lisp.h: Include stdarg.h for va_list.
356 (doprnt, error, message, message_nolog): Decls updated.
357
358 2010-07-11 Eli Zaretskii <eliz@gnu.org>
359
360 * process.c (syms_of_process) <delete-exited-processes>: Define
361 even if !subprocesses.
362 (delete_exited_processes): Ditto.
363
364 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
365 (delete_exited_processes): Don't define.
366
367 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
368
369 * frame.c (make_frame): Initialize menu_bar_lines and
370 tool_bar_lines members.
371 (make_initial_frame, make_terminal_frame): Initialize
372 menu_bar_lines using value of menu-bar-mode.
373
374 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
375
376 2010-07-10 Eli Zaretskii <eliz@gnu.org>
377
378 * process.c: Reshuffle #include's. Condition some of the global
379 and static variables on `subprocesses'.
380 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
381 Leave only one implementation.
382 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
383 (kill_buffer_processes, Flist_system_processes)
384 (Fprocess_attributes, init_process, syms_of_process): Unify the
385 implementations for with subprocesses and without them.
386
387 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
388
389 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
390 correct size for Motif.
391 (free_frame_menubar): Call x_set_window_size to update frame size.
392
393 * xfns.c (x_window): Set borderWidth to 0 for pane and
394 EmacsFrame. Frame size calculation is wrong otherwise.
395
396 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
397
398 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
399 allows to suppress errors when polling in Emacs' main loop.
400 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
401 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
402 (Fdbus_method_error_internal, Fdbus_send_signal)
403 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
404 (Fdbus_register_method): Use it. (Bug#6579)
405
406 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
407
408 * alloc.c: Convert DEFUNs to standard C.
409 * buffer.c:
410 * bytecode.c:
411 * callint.c:
412 * callproc.c:
413 * casefiddle.c:
414 * casetab.c:
415 * category.c:
416 * character.c:
417 * charset.c:
418 * chartab.c:
419 * cmds.c:
420 * coding.c:
421 * composite.c:
422 * data.c:
423 * dbusbind.c:
424 * dired.c:
425 * dispnew.c:
426 * doc.c:
427 * dosfns.c:
428 * editfns.c:
429 * emacs.c:
430 * eval.c:
431 * fileio.c:
432 * filelock.c:
433 * floatfns.c:
434 * fns.c:
435 * font.c:
436 * fontset.c:
437 * frame.c:
438 * fringe.c:
439 * image.c:
440 * indent.c:
441 * insdel.c:
442 * keyboard.c:
443 * keymap.c:
444 * lread.c:
445 * macros.c:
446 * marker.c:
447 * menu.c:
448 * minibuf.c:
449 * msdos.c:
450 * nsfns.m:
451 * nsmenu.m:
452 * nsselect.m:
453 * print.c:
454 * process.c:
455 * search.c:
456 * sound.c:
457 * syntax.c:
458 * term.c:
459 * terminal.c:
460 * textprop.c:
461 * undo.c:
462 * w16select.c:
463 * w32console.c:
464 * w32fns.c:
465 * w32font.c:
466 * w32menu.c:
467 * w32proc.c:
468 * w32select.c:
469 * window.c:
470 * xdisp.c:
471 * xfaces.c:
472 * xfns.c:
473 * xmenu.c:
474 * xselect.c:
475 * xsettings.c:
476 * xsmfns.c: Likewise.
477
478 2010-07-08 Eli Zaretskii <eliz@gnu.org>
479
480 * process.c (kbd_is_on_hold, hold_keyboard_input)
481 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
482
483 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
484
485 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
486 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
487 unless USE_LUCID.
488
489 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
490
491 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
492 declaration.
493
494 Clean up include guards.
495 * tparam.c: Remove include guards for config.h, string.h and code
496 that assumes #ifndef emacs.
497 * termcap.c:
498 * unexalpha.c:
499 * sysdep.c:
500 * filemode.c:
501 * filelock.c:
502 * bidi.c: Likewise.
503
504 Remove prefix-args.c
505 * prefix-args.c: Remove file.
506 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
507 * Makefile.in (temacs${EXEEXT}): Remove references to
508 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
509 (mostlyclean): Remove reference to prefix-args.
510 (prefix-args): Remove.
511
512 Simplify cstart_of_data, start_of_code and related code.
513 * mem-limits.h: Remove !emacs and _LIBC conditional code.
514 (start_of_data): Merge into start_of_data function.
515 * sysdep.c (start_of_text): Remove. Move simplified versions of
516 it in the only users: unexaix.c and unexec.c.
517 (read_input_waiting): Remove local declaration of quit_char.
518 (start, etext): Remove declarations.
519 (start_of_data): Merge with the version in mem-limits.h and move
520 to vm-limits.c.
521 * vm-limit.c (start_of_data): Merged and simplified version of the
522 code formerly in mem-limits.h and sysdep.c.
523 * unexec.c (start): New declaration, moved from sysdep.c.
524 (start_of_text): Simplified version of the code formerly in sysdep.c.
525 * unexaix.c (start_of_text): Simplified version of the code
526 formerly in sysdep.c.
527 * m/alpha.h (HAVE_TEXT_START): Remove.
528 (TEXT_START): Move ...
529 * unexalpha.c (TEXT_START): ... here.
530 * s/hpux10-20.h (TEXT_START): Remove.
531 * s/darwin.h (TEXT_START):
532 * m/mips.h (TEXT_START):
533 * m/macppc.h (HAVE_TEXT_START):
534 * m/m68k.h (TEXT_START):
535 * m/iris4d.h (TEXT_START):
536 * m/intel386.h (TEXT_START):
537 * m/ibmrs6000.h (TEXT_START):
538 * m/ia64.h (HAVE_TEXT_START):
539 * s/msdos.h (TEXT_START): Likewise.
540
541 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
542
543 * alloc.c (overrun_check_malloc, overrun_check_realloc)
544 (overrun_check_free, xstrdup, allocate_string)
545 (allocate_string_data, compact_small_strings, Fmake_string)
546 (make_unibyte_string, make_multibyte_string)
547 (make_string_from_bytes, make_specified_string, make_float)
548 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
549 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
550 memcpy, memmove, memset, memcmp.
551 * atimer.c (start_atimer, set_alarm): Likewise.
552 * buffer.c (clone_per_buffer_values, report_overlay_modification)
553 (mmap_realloc, init_buffer_once): Likewise.
554 * callint.c (Fcall_interactively): Likewise.
555 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
556 (getenv_internal_1): Likewise.
557 * casefiddle.c (casify_object): Likewise.
558 * ccl.c (ccl_driver): Likewise.
559 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
560 * charset.c (load_charset_map_from_file)
561 (load_charset_map_from_file, load_charset_map_from_vector)
562 (Fdefine_charset_internal): Likewise.
563 * cm.c (Wcm_clear): Likewise.
564 * coding.c (decode_eol, decode_coding_object)
565 (Fset_coding_system_priority, make_subsidiaries): Likewise.
566 * data.c (Faset): Likewise.
567 * dired.c (directory_files_internal, file_name_completion_stat):
568 Likewise.
569 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
570 (clear_glyph_row, copy_row_except_pointers)
571 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
572 (save_current_matrix, restore_current_matrix)
573 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
574 (mirror_line_dance, scrolling_window): Likewise.
575 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
576 Likewise.
577 * doprnt.c (doprnt): Likewise.
578 * editfns.c (Fuser_full_name, make_buffer_string_both)
579 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
580 * emacs.c (sort_args): Likewise.
581 * eval.c (Fapply, Ffuncall): Likewise.
582 * fileio.c (Ffile_name_directory, make_temp_name)
583 (Fexpand_file_name, search_embedded_absfilename)
584 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
585 (auto_save_error): Likewise.
586 * fns.c (Fstring_equal, Fcopy_sequence, concat)
587 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
588 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
589 (Fmake_hash_table): Likewise.
590 * fringe.c (Fdefine_fringe_bitmap): Likewise.
591 * ftfont.c (ftfont_text_extents): Likewise.
592 * getloadavg.c (getloadavg): Likewise.
593 * image.c (define_image_type, make_image, make_image_cache)
594 (x_create_x_image_and_pixmap, xbm_image_p)
595 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
596 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
597 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
598 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
599 (tiff_image_p, tiff_read_from_memory, gif_image_p)
600 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
601 Likewise.
602 * indent.c (scan_for_column, compute_motion): Likewise.
603 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
604 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
605 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
606 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
607 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
608 (store_user_signal_events, menu_bar_items, tool_bar_items)
609 (process_tool_bar_item, append_tool_bar_item)
610 (read_char_minibuf_menu_prompt, read_key_sequence)
611 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
612 Likewise.
613 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
614 Likewise.
615 * lisp.h (STRING_COPYIN): Likewise.
616 * lread.c (Fload, read1, oblookup): Likewise.
617 * msdos.c (Frecent_doskeys): Likewise.
618 * nsfns.m (Fx_create_frame): Likewise.
619 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
620 Likewise.
621 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
622 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
623 Likewise.
624 * nsmenu.m (ns_update_menubar): Likewise.
625 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
626 * print.c (print_unwind, printchar, strout, print_string)
627 (print_error_message): Likewise.
628 * process.c (conv_lisp_to_sockaddr, set_socket_option)
629 (Fmake_network_process, Fnetwork_interface_list)
630 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
631 (init_process): Likewise.
632 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
633 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
634 Likewise.
635 * scroll.c (do_scrolling, do_direct_scrolling)
636 (scrolling_max_lines_saved): Likewise.
637 * search.c (search_buffer, wordify, Freplace_match): Likewise.
638 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
639 * syntax.c (skip_chars, skip_syntaxes): Likewise.
640 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
641 (emacs_set_tty): Likewise.
642 * term.c (encode_terminal_code, calculate_costs)
643 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
644 Likewise.
645 * termcap.c (tgetst1, gobble_line): Likewise.
646 * termhooks.h (EVENT_INIT): Likewise.
647 * tparam.c (tparam1): Likewise.
648 * unexalpha.c (unexec): Likewise.
649 * unexec.c (write_segment): Likewise.
650 * unexmacosx.c (unexec_write_zero): Likewise.
651 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
652 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
653 * w32font.c (w32font_list_family, w32font_text_extents)
654 (w32font_list_internal, w32font_match_internal)
655 (w32font_open_internal, compute_metrics, Fx_select_font):
656 Likewise.
657 * w32menu.c (set_frame_menubar, add_menu_item)
658 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
659 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
660 * w32uniscribe.c (uniscribe_list_family): Likewise.
661 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
662 * window.c (make_window, replace_window, set_window_buffer)
663 (Fsplit_window): Likewise.
664 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
665 (add_to_log, message3, x_consider_frame_title)
666 (append_space_for_newline, extend_face_to_end_of_line)
667 (decode_mode_spec_coding, init_glyph_string): Likewise.
668 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
669 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
670 (face_attr_equal_p, make_realized_face, make_face_cache)
671 (free_realized_faces, lookup_named_face, smaller_face)
672 (face_with_height, lookup_derived_face)
673 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
674 (Finternal_set_font_selection_order, realize_default_face)
675 (compute_char_face, face_at_buffer_position)
676 (face_for_overlay_string, face_at_string_position, merge_faces):
677 Likewise.
678 * xfns.c (xic_create_fontsetname, Fx_create_frame)
679 (Fx_window_property, x_create_tip_frame)
680 (Fx_backspace_delete_keys_p): Likewise.
681 * xfont.c (xfont_list, xfont_match, xfont_list_family)
682 (xfont_text_extents): Likewise.
683 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
684 * xrdb.c (magic_file_p, x_get_resource): Likewise.
685 * xselect.c (x_queue_event, x_get_window_property)
686 (receive_incremental_selection): Likewise.
687 * xsmfns.c (x_session_check_input): Likewise.
688 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
689 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
690 Likewise.
691 * character.h (BCOPY_SHORT): Removed.
692 * config.in: Regenerate.
693 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
694 * emacs.c (main) [PROFILING]: Don't declare
695 dump_opcode_frequencies.
696 * lisp.h (safe_bcopy): Remove declaration.
697 (memset) [!HAVE_MEMSET]: Declare.
698 (memcpy) [!HAVE_MEMCPY]: Likewise.
699 (memmove) [!HAVE_MEMMOVE]: Likewise.
700 (memcmp) [!HAVE_MEMCMP]: Likewise.
701 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
702 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
703 Don't define.
704 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
705 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
706 (BCOPY_DOWNWARD_SAFE): Don't define.
707 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
708 (memcpy) [!HAVE_MEMCPY]: Define.
709 (memmove) [!HAVE_MEMMOVE]: Define.
710 (memcmp) [!HAVE_MEMCMP]: Define.
711
712 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
713
714 * process.c (kbd_is_on_hold): New variable.
715 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
716 New functions.
717 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
718 select on empty input mask.
719 (init_process): Initialize kbd_is_on_hold to 0.
720
721 * process.h (hold_keyboard_input, unhold_keyboard_input)
722 (kbd_on_hold_p): Declare.
723
724 * keyboard.c (input_available_signal): Declare.
725 (kbd_buffer_nr_stored): New function.
726 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
727 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
728 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
729 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
730 (tty_read_avail_input): If input is on hold, return.
731 Don't read more that free slots in kbd_buffer (Bug#6571).
732
733 2010-07-07 Eli Zaretskii <eliz@gnu.org>
734
735 * msdos.h:
736 * msdos.c:
737 * dosfns.c:
738 * w16select.c: Convert function definitions to ANSI C.
739
740 * msdos.h (ctrl_break_func, install_ctrl_break_check):
741 Remove unused prototypes.
742
743 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
744
745 * coding.c, sysdep.c: Convert some more functions to standard C.
746
747 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
748
749 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
750 (encode_coding_object): Use SPECPDL_INDEX.
751 (syms_of_coding): Use DOS_NT.
752
753 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
754
755 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
756
757 Make the function member of Lisp_Subr use standard C prototypes.
758 * lisp.h (struct Lisp_Subr): Use a union for the function member.
759 (DECL_ALIGN): Add a cast for the function.
760 * eval.c (Feval, Ffuncall): Use the proper type for each type
761 function call.
762
763 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
764
765 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
766 fringe face id, so face-remapping-alist works (Bug#6091).
767
768 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
769
770 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
771 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
772 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
773
774 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
775
776 * xterm.c (x_get_keysym_name): Change type of parameter to int.
777 * lisp.h: Declare x_get_keysym_name.
778 * keyboard.c (modify_event_symbol): Don't declare
779 x_get_keysym_name here.
780
781 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
782
783 * ecrt0.c: Revert conversion to standard C.
784
785 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
786
787 * vm-limit.c (memory_warnings):
788 * keyboard.c (modify_event_symbol):
789 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
790 (round2, emacs_rint):
791 * process.c (send_process, old_sigpipe): Convert function
792 definitions and declarations to standard C.
793
794 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
795
796 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
797 * xdisp.c: Convert function definitions to standard C.
798
799 * cm.c (cmputc): Arg C is now int, not char.
800 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
801
802 2010-07-05 James Cloos <cloos@jhcloos.com>
803
804 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
805
806 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
807 _NET_WM_ICON_NAME atoms.
808
809 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
810 and _NET_WM_ICON_NAME properties, too, matching what is
811 done in the Gtk+ case.
812
813 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
814
815 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
816
817 * xsmfns.c (SSDATA): New macro.
818 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
819 passed to strlen/strcpy/strcat.
820 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
821 7:th arg to XChangeProperty to (unsigned char *)
822
823 * xsettings.c (something_changedCB, parse_settings)
824 (apply_xft_settings): Reformat prototype.
825 (something_changedCB, init_gconf): Remove unused variable i.
826 (read_settings): Remove unused variable long_len.
827
828 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
829 (xg_get_image_for_pixmap, create_dialog)
830 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
831 (menuitem_highlight_callback, make_menu_item)
832 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
833 (xg_create_scroll_bar, xg_update_scrollbar_pos)
834 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
835 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
836 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
837 (xg_tool_bar_item_expose_callback): Reformat prototype.
838 (xg_update_menubar): GList *group => GSList *group.
839 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
840 before use.
841 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
842 to GTK_IMAGE (wimage).
843
844 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
845
846 * atimer.c: Use "" instead of <> for local includes for
847 consistency with the rest of the code.
848
849 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
850 * xrdb.c (get_system_name):
851 * window.c (shrink_windows):
852 * syntax.c (forw_comment):
853 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
854 (ins_del_costs):
855 * mem-limits.h (start_of_data):
856 * lread.c (readevalloop):
857 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
858 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
859 * frame.c (x_get_focus_frame):
860 * floatfns.c (fmod_float):
861 * fileio.c (choose_write_coding_system):
862 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
863 (malloc_initialize_hook, sort_args, synchronize_locale):
864 * doprnt.c (doprnt):
865 * dired.c (compile_pattern):
866 * data.c (fmod_float):
867 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
868 (map_char_table_for_charset):
869 * charset.c (define_charset_internal):
870 * alloc.c (Fgarbage_collect): Convert declarations or definitions
871 to standard C.
872
873 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
874 Stefan Monnier <monnier@iro.umontreal.ca>
875
876 * lread.c (read1): Fix up last change to not mess up `c'.
877
878 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
879
880 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
881
882 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
883
884 Fix prototypes.
885
886 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
887 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
888 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
889 arg, as required by internal_condition_case_1.
890 * print.c (strout): Use const char* for arg PTR.
891 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
892 (analyse_first): Fix "const const".
893 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
894 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
895 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
896
897 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
898
899 * alloc.c: Convert function definitions to standard C.
900 * atimer.c:
901 * bidi.c:
902 * bytecode.c:
903 * callint.c:
904 * callproc.c:
905 * casefiddle.c:
906 * casetab.c:
907 * category.c:
908 * ccl.c:
909 * character.c:
910 * charset.c:
911 * chartab.c:
912 * cmds.c:
913 * coding.c:
914 * composite.c:
915 * data.c:
916 * dbusbind.c:
917 * dired.c:
918 * dispnew.c:
919 * doc.c:
920 * doprnt.c:
921 * ecrt0.c:
922 * editfns.c:
923 * fileio.c:
924 * filelock.c:
925 * filemode.c:
926 * fns.c:
927 * font.c:
928 * fontset.c:
929 * frame.c:
930 * fringe.c:
931 * ftfont.c:
932 * ftxfont.c:
933 * gtkutil.c:
934 * indent.c:
935 * insdel.c:
936 * intervals.c:
937 * keymap.c:
938 * lread.c:
939 * macros.c:
940 * marker.c:
941 * md5.c:
942 * menu.c:
943 * minibuf.c:
944 * prefix-args.c:
945 * print.c:
946 * ralloc.c:
947 * regex.c:
948 * region-cache.c:
949 * scroll.c:
950 * search.c:
951 * sound.c:
952 * strftime.c:
953 * syntax.c:
954 * sysdep.c:
955 * termcap.c:
956 * terminal.c:
957 * terminfo.c:
958 * textprop.c:
959 * tparam.c:
960 * undo.c:
961 * unexelf.c:
962 * window.c:
963 * xfaces.c:
964 * xfns.c:
965 * xfont.c:
966 * xftfont.c:
967 * xgselect.c:
968 * xmenu.c:
969 * xrdb.c:
970 * xselect.c:
971 * xsettings.c:
972 * xsmfns.c:
973 * xterm.c: Likewise.
974
975 2010-07-03 Eli Zaretskii <eliz@gnu.org>
976
977 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
978 frames other than the initial one. Fix reversal of colors when
979 `reverse' is specified in the frame parameters. Call
980 update_face_from_frame_parameter instead of
981 internal-set-lisp-face-attribute. Initialize screen colors from
982 initial_screen_colors[] when f->default_face_done_p is zero,
983 instead of depending on being called with default-frame-alist as
984 the alist argument.
985
986 * xfaces.c (update_face_from_frame_parameter): Move out of
987 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
988 with HAVE_WINDOW_SYSTEM.
989
990 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
991 to menu-bar-mode, if not set in the frame parameters or in
992 default-frame-alist.
993
994 * w32console.c (sys_tputs): Adjust argument list to prototype in
995 term.c.
996
997 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
998
999 * lisp.h (memory_warnings): Fix prototype.
1000
1001 * cm.h (evalcost): Fix prototype.
1002
1003 * cm.c (evalcost): Fix arg type.
1004
1005 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1006
1007 * term.c (term_clear_mouse_face, Fidentity):
1008 * syssignal.h (signal_handler_t):
1009 * lisp.h (memory_warnings):
1010 * coding.h (preferred_coding_system):
1011 * cm.h (evalcost):
1012 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1013
1014 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1015
1016 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1017 from prototypes.
1018
1019 * msdos.h (load_pixmap): Don't define away.
1020
1021 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1022
1023 * lisp.h:
1024 * atimer.h: Remove define for P_.
1025
1026 * alloc.c: Remove __P and P_ from .c and .m files.
1027 * atimer.c:
1028 * buffer.c:
1029 * callint.c:
1030 * category.c:
1031 * charset.c:
1032 * chartab.c:
1033 * cm.c:
1034 * coding.c:
1035 * composite.c:
1036 * data.c:
1037 * dired.c:
1038 * dispnew.c:
1039 * doc.c:
1040 * editfns.c:
1041 * emacs.c:
1042 * eval.c:
1043 * fileio.c:
1044 * filelock.c:
1045 * fns.c:
1046 * font.c:
1047 * fontset.c:
1048 * frame.c:
1049 * ftfont.c:
1050 * ftxfont.c:
1051 * gmalloc.c:
1052 * gtkutil.c:
1053 * image.c:
1054 * indent.c:
1055 * intervals.c:
1056 * keyboard.c:
1057 * keymap.c:
1058 * lread.c:
1059 * marker.c:
1060 * menu.c:
1061 * minibuf.c:
1062 * print.c:
1063 * process.c:
1064 * scroll.c:
1065 * search.c:
1066 * sound.c:
1067 * strftime.c:
1068 * syntax.c:
1069 * sysdep.c:
1070 * term.c:
1071 * terminal.c:
1072 * textprop.c:
1073 * unexalpha.c:
1074 * w32console.c:
1075 * w32fns.c:
1076 * w32font.c:
1077 * w32menu.c:
1078 * w32term.c:
1079 * w32uniscribe.c:
1080 * window.c:
1081 * xdisp.c:
1082 * xfaces.c:
1083 * xfns.c:
1084 * xfont.c:
1085 * xftfont.c:
1086 * xmenu.c:
1087 * xselect.c:
1088 * xterm.c: Likewise.
1089
1090 Remove P_ and __P macros.
1091 * atimer.h: Remove P_ and __P macros.
1092 * buffer.h:
1093 * category.h:
1094 * ccl.h:
1095 * character.h:
1096 * charset.h:
1097 * cm.h:
1098 * coding.h:
1099 * composite.h:
1100 * dispextern.h:
1101 * disptab.h:
1102 * dosfns.h:
1103 * font.h:
1104 * fontset.h:
1105 * frame.h:
1106 * gtkutil.h:
1107 * indent.h:
1108 * intervals.h:
1109 * keyboard.h:
1110 * keymap.h:
1111 * lisp.h:
1112 * macros.h:
1113 * md5.h:
1114 * menu.h:
1115 * msdos.h:
1116 * nsterm.h:
1117 * puresize.h:
1118 * region-cache.h:
1119 * syntax.h:
1120 * syssignal.h:
1121 * systime.h:
1122 * termhooks.h:
1123 * w32font.h:
1124 * w32term.h:
1125 * widget.h:
1126 * window.h:
1127 * xgselect.h:
1128 * xsettings.h:
1129 * xterm.h: Likewise.
1130
1131 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1132
1133 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1134
1135 Cleanup old code.
1136 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1137 * syssignal.h: Remove code for Lynx, not supported anymore.
1138 * vm-limit.c: Remove unused code the depends on emacs not being
1139 defined and NO_LIM_DATA being defined.
1140 * mem-limits.h: Remove dead code.
1141
1142 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1143
1144 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1145
1146 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1147 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1148
1149 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1150 parameters, they are already absolute.
1151
1152 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1153 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1154
1155 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1156
1157 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1158 Update FRAME_TOOLBAR_HEIGHT.
1159
1160 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1161 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1162
1163 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
1164
1165 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1166 check default-frame-alist.
1167
1168 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1169
1170 * process.c (create_process): Avoid using invalid file descriptors.
1171
1172 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1173
1174 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1175
1176 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1177 Improve documentation. Return font regardless of use_system_font.
1178 (syms_of_xsettings): Improve documentation for font-use-system-font.
1179
1180 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * xfaces.c (realize_face): Garbage the frame if a face is removed
1183 (Bug#6593).
1184
1185 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1186
1187 * keyboard.c: Remove duplicate <setjmp.h>.
1188 (read_key_sequence): Remove volatile qualifiers.
1189
1190 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1191
1192 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1193 (struct glyph_row): New members left_fringe_offset and
1194 right_fringe_offset.
1195
1196 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1197 specially.
1198 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1199 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1200
1201 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1202 Take account of bitmap offset.
1203 (draw_window_fringes): Take account of window vscroll.
1204 (update_window_fringes): Likewise. Extend top-aligned top indicator
1205 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1206 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1207 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1208
1209 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1210
1211 * w32fns.c (Qtooltip): Declare.
1212 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1213
1214 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1215
1216 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1217 grab on just Press (Bug#6499).
1218
1219 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
1220
1221 * frame.c (Qtooltip): New var.
1222 (delete_frame): Use it. Fix faulty if statement. Don't update
1223 mode line for tooltip frames. Suggested by Martin Rudalics.
1224
1225 * xfns.c (x_create_tip_frame):
1226 * w32fns.c (x_create_tip_frame): Use it.
1227
1228 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1229
1230 * xftfont.c (xftfont_open): Check font width one by one also when
1231 spacing is dual.
1232
1233 * ftfont.c (ftfont_open): Ditto.
1234
1235 2010-06-30 Glenn Morris <rgm@gnu.org>
1236
1237 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1238
1239 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1240
1241 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1242 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1243 * s/darwin.h (SYSTEM_MALLOC):
1244 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1245
1246 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1247
1248 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1249 (ns_get_screen): Don't assign integer to f.
1250 (Fx_display_color_cells): Declarations before statements.
1251
1252 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1253
1254 * xfns.c (x_default_font_parameter): Remove got_from_system
1255 (Bug#6526).
1256
1257 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1258 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1259 defines based on what configure finds.
1260
1261 * xterm.c (XTflash): Use gtk_widget_get_window.
1262 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1263 gtk_adjustment_get_page_size.
1264 (handle_one_xevent): Use gtk_widget_get_mapped.
1265 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1266 messages.
1267
1268 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1269
1270 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1271 HAVE_GTK_FILE_SELECTION_NEW.
1272
1273 * gtkutil.c (xg_display_open, xg_display_close): Remove
1274 HAVE_GTK_MULTIDISPLAY, it is always defined.
1275 (xg_display_open): Return type is void.
1276 (gtk_widget_set_has_window)
1277 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1278 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1279 (gtk_adjustment_set_page_increment)
1280 (gtk_adjustment_get_step_increment): #define these if not found
1281 by configure.
1282 (remove_submenu): New define based on Gtk+ version.
1283 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1284 gtk_widget_get_window.
1285 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1286 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1287 (create_dialog): Use gtk_dialog_get_action_area and
1288 gtk_dialog_get_content_area.
1289 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1290 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1291 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1292 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1293 g_object_ref and g_object_unref.
1294 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1295 gtk_widget_get_sensitive.
1296 (xg_update_submenu): Use remove_submenu.
1297 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1298 properties instead to get old x and y position.
1299 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1300 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
1301 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
1302 (xg_get_tool_bar_widgets): New function.
1303 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1304 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1305 (toolbar_set_orientation): New #define based on if configure
1306 finds gtk_orientable_set_orientation.
1307 (xg_create_tool_bar): Call toolbar_set_orientation.
1308 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1309 instead of gtk_box_pack_start_defaults.
1310
1311 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
1312
1313 * cmds.c (Fdelete_backward_char): Move into Lisp.
1314
1315 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1316
1317 * s/freebsd.h (BSD4_2): Remove redundant definition.
1318 bsd-common.h defines it already.
1319
1320 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
1321
1322 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1323 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1324 tool-bar-mode, which are now set using these X resources at
1325 startup, to determine the defaults (Bug#2249).
1326
1327 * w32fns.c (Fx_create_frame):
1328 * nsfns.m (Fx_create_frame): Likewise.
1329
1330 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1331
1332 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
1333
1334 * gtkutil.c (xg_update_scrollbar_pos):
1335 Avoid C99 mid-block variable declaration.
1336
1337 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1338
1339 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1340
1341 * gtkutil.h (xg_show_scroll_bar): Remove.
1342
1343 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1344 if height is less than scroll bar min size.
1345 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1346
1347 * xfns.c (x_default_font_parameter): Try to open font from system
1348 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1349
1350 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1351
1352 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1353
1354 2010-06-20 Eli Zaretskii <eliz@gnu.org>
1355
1356 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1357 most-positive-fixnum, be extra accurate when scrolling window
1358 start, to avoid missing the cursor line.
1359
1360 2010-06-19 Eli Zaretskii <eliz@gnu.org>
1361
1362 * xdisp.c (try_scrolling): Compute the limit for searching point
1363 in forward scroll from scroll_max, instead of an arbitrary limit
1364 of 10 screen lines. See
1365 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1366 and
1367 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1368 for details.
1369
1370 2010-06-16 Glenn Morris <rgm@gnu.org>
1371
1372 * editfns.c (Fbyte_to_string): Pacify compiler.
1373
1374 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1375
1376 * lread.c (read1): Phase out old-style backquotes a bit more.
1377
1378 2010-06-12 Eli Zaretskii <eliz@gnu.org>
1379
1380 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1381 bidimirror.h.
1382
1383 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1384
1385 * bidi.c (bidi_initialize): Remove explicit initialization of
1386 bidi_type_table; include biditype.h instead. Don't support
1387 entries whose second codepoint is zero. Initialize bidi_mirror_table.
1388 (bidi_mirror_char): Use bidi_mirror_table.
1389
1390 * biditype.h: New file.
1391
1392 * bidimirror.h: New file.
1393
1394 * window.c (syms_of_window): Doc fix (bug#6409).
1395
1396 2010-06-12 Romain Francoise <romain@orebokech.com>
1397
1398 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1399 ediff-hook.
1400
1401 2010-06-10 Glenn Morris <rgm@gnu.org>
1402
1403 * editfns.c (Fbyte_to_string): Pacify compiler.
1404
1405 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1406
1407 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1408
1409 * alloc.c (Fmake_byte_code): Don't access undefined argument
1410 (Bug#6517).
1411
1412 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
1413
1414 * xdisp.c (next_element_from_image): Ensure that after-strings are
1415 read the next time we hit handle_stop (Bug#1336).
1416
1417 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1418
1419 * lread.c (read1): Signal error if #s is not followed by paren.
1420
1421 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
1422
1423 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1424
1425 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1426
1427 2010-06-15 Glenn Morris <rgm@gnu.org>
1428
1429 * editfns.c (Fbyte_to_string): Pacify compiler.
1430
1431 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1432
1433 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1434 Check `object's type before accessing its guts.
1435
1436 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1437
1438 * s/usg5-4.h: Fix previous change.
1439 Suggested by Lawrence Mitchell <wence@gmx.li>
1440
1441 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1442
1443 * minibuf.c (Fall_completions): Add more checks.
1444
1445 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
1446
1447 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1448
1449 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1450
1451 * lread.c (X_OK): Remove, unused.
1452
1453 * dispnew.c: Remove obsolete comment.
1454
1455 Remove INCLUDED_FCNTL.
1456 * xterm.c (INCLUDED_FCNTL):
1457 * callproc.c (INCLUDED_FCNTL):
1458 * alloc.c (INCLUDED_FCNTL):
1459 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1460 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1461
1462 2010-06-07 Martin Rudalics <rudalics@gmx.at>
1463
1464 * window.c (Fselect_window): Move `record_buffer' up to the
1465 beginning of this function, so the buffer gets recorded
1466 even if the selected window does not change.
1467 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1468
1469 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
1470
1471 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1472 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1473
1474 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1475
1476 Remove BSTRING related code, all platforms define it.
1477 * s/usg5-4.h (BSTRING): Remove definition.
1478 * s/template.h (BSTRING):
1479 * s/msdos.h (BSTRING):
1480 * s/ms-w32.h (BSTRING):
1481 * s/hpux10-20.h (BSTRING):
1482 * s/gnu-linux.h (BSTRING):
1483 * s/darwin.h (BSTRING):
1484 * s/cygwin.h (BSTRING):
1485 * s/bsd-common.h (BSTRING):
1486 * s/aix4-2.h (BSTRING): Likewise.
1487 * sysdep.c: Remove code depending on BSTRING not being defined.
1488
1489 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
1490
1491 Remove obsolete macro BASE_LEADING_CODE_P.
1492 * character.h (BASE_LEADING_CODE_P): Remove.
1493 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1494 * buffer.c (Fset_buffer_multibyte):
1495 * indent.c (scan_for_column, compute_motion):
1496 * insdel.c (count_combining_before, count_combining_after):
1497 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1498
1499 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
1500
1501 Turn `directory-sep-char' into a noop.
1502
1503 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1504 (DIRECTORY_SEP): Define unconditionally.
1505
1506 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1507
1508 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1509 call dostounix_filename directly.
1510
1511 * fileio.c (CORRECT_DIR_SEPS): Remove.
1512 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1513 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1514 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1515 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1516
1517 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1518 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1519
1520 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1521
1522 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1523 (Bug#6346)
1524
1525 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1526
1527 * ccl.c (Fccl_program_p): Fix typo in docstring.
1528
1529 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1530
1531 Move UNEXEC definition to autoconf.
1532 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1533 * s/sol2-10.h (UNEXEC):
1534 * s/irix6-5.h (UNEXEC):
1535 * s/hpux10-20.h (UNEXEC):
1536 * s/gnu-linux.h (UNEXEC):
1537 * s/darwin.h (UNEXEC):
1538 * s/cygwin.h (UNEXEC):
1539 * s/bsd-common.h (UNEXEC):
1540 * s/aix4-2.h (UNEXEC):
1541 * m/alpha.h (UNEXEC): Likewise.
1542 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1543
1544 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
1545
1546 Remove obsolete pre-unicode2 macros.
1547 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1548 * composite.c (composition_reseat_it):
1549 * data.c (Faset):
1550 * fns.c (Ffillarray):
1551 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1552 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1553
1554 2010-06-03 Juri Linkov <juri@jurta.org>
1555
1556 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1557 (Fswitch_to_buffer): Remove unused variable `err'.
1558
1559 2010-06-03 Glenn Morris <rgm@gnu.org>
1560
1561 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1562
1563 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1564 now that AH_BOTTOM does it.
1565
1566 * m/hp800.h (HAVE_ALLOCA):
1567 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1568
1569 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1570 Remove NOT_C_CODE tests, it is always true now.
1571
1572 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1573
1574 Fix config.h includes.
1575 * xsettings.c:
1576 * xgselect.c:
1577 * nsterm.m:
1578 * nsselect.m:
1579 * nsimage.m:
1580 * nsfont.m:
1581 * nsfns.m:
1582 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1583 other files do.
1584
1585 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1586
1587 * s/sol2-6.h: Remove obsolete comments.
1588
1589 Remove unnecessary alloca.h includes.
1590 * keymap.c: Do not include alloca.h, config.h does that.
1591 * sysdep.c: Likewise. Do not define fwrite, not used.
1592
1593 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1594
1595 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1596 the HAVE_TERMIO where it belongs (bug#6149).
1597
1598 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1599
1600 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1601 of bug#6305).
1602
1603 2010-05-30 Eli Zaretskii <eliz@gnu.org>
1604
1605 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1606 state is always cached (bug#6306).
1607
1608 2010-05-29 Eli Zaretskii <eliz@gnu.org>
1609
1610 Fix cursor motion in bidi-reordered continued lines.
1611 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1612 only after finding point's row. Fix the logic. Rewrite the loop
1613 over continuation lines in bidi-reordered buffers. Return
1614 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1615 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1616
1617 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
1618
1619 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1620
1621 2010-05-28 Kenichi Handa <handa@m17n.org>
1622
1623 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1624 Don't sheck SPEC if it is nil.
1625 (font_list_entities): Call font_delete_unmatched if
1626 Vface_ignored_fonts is non-nil. (Bug#6287)
1627
1628 2010-05-28 Glenn Morris <rgm@gnu.org>
1629
1630 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1631
1632 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1633
1634 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1635 whether to trash.
1636 (internal_delete_file, Frename_file): Callers changed.
1637 (delete_by_moving_to_trash): Doc fix.
1638 (Fdelete_directory_internal): Don't move to trash.
1639
1640 * callproc.c (delete_temp_file):
1641 * buffer.c (Fkill_buffer): Callers changed.
1642
1643 * lisp.h: Update prototype.
1644
1645 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
1646
1647 * xdisp.c (redisplay_window): After redisplay, check if point is
1648 still valid before setting it (Bug#6177).
1649
1650 2010-05-27 Glenn Morris <rgm@gnu.org>
1651
1652 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1653 Convert comments to Makefile format.
1654
1655 * Makefile.in (bootstrap-clean): No more Makefile.c.
1656
1657 2010-05-26 Glenn Morris <rgm@gnu.org>
1658
1659 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1660 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1661
1662 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1663 Remove.
1664 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1665
1666 2010-05-26 Kenichi Handa <handa@m17n.org>
1667
1668 * composite.c (composition_compute_stop_pos): Fix condition for
1669 backward scanning.
1670
1671 2010-05-25 Glenn Morris <rgm@gnu.org>
1672
1673 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1674 Move before TEMACS_LDFLAGS.
1675 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1676 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1677
1678 * Makefile.in (NOT_C_CODE): No longer define.
1679 (config.h): No longer include.
1680
1681 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1682 variables it may reference.
1683
1684 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1685 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1686
1687 2010-05-25 Kenichi Handa <handa@m17n.org>
1688
1689 * dispextern.h (struct composition_it): New members rule_idx and
1690 charpos.
1691
1692 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1693 that the character positions of IT point the last character of the
1694 current grapheme cluster.
1695 (next_element_from_composition): Don't change character positions
1696 of IT.
1697 (append_composite_glyph): Set glyph->charpos to
1698 it->cmp_it.charpos.
1699
1700 * composite.c (autocmp_chars): Change the first argument to RULE,
1701 and try composition with RULE only.
1702 (composition_compute_stop_pos): Record the index number of the
1703 composition rule in CMP_IT->rule_idx.
1704 (composition_reseat_it): Call autocmp_chars repeatedly until the
1705 correct rule of the composition is found.
1706 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1707 is at the last character of the current grapheme cluster when
1708 CMP_IT->reversed_p is nonzero.
1709
1710 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1711
1712 * editfns.c (Fbyte_to_string): New function.
1713
1714 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1715
1716 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1717 Suggested by Masatake YAMATO <yamato@redhat.com>.
1718
1719 2010-05-23 Eli Zaretskii <eliz@gnu.org>
1720
1721 * dispextern.h (init_iterator): Sync prototype with changed definition.
1722
1723 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1724
1725 * s/netbsd.h: If terminfo is found, use it in preference to
1726 termcap. (Bug#6190) [Backport from trunk]
1727
1728 2010-05-19 Eli Zaretskii <eliz@gnu.org>
1729
1730 Redesign and reimplement bidi-aware edge positions of glyph rows.
1731
1732 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1733 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1734 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1735 and maxpos members instead of start.pos and end.pos, respectively.
1736
1737 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1738 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1739 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
1740 (try_window_reusing_current_matrix, try_window_id):
1741 Use ROW->minpos rather than ROW->start.pos.
1742 (init_from_display_pos, init_iterator): Use EMACS_INT for
1743 character and byte positions.
1744 (find_row_edges): Rename from find_row_end. Accept additional
1745 arguments for minimum and maximum buffer positions seen by
1746 display_line for this row. Don't use iterator to find the
1747 position following the maximum one; instead, increment the
1748 position found by display_line directly. Fix logic; eol_pos
1749 should be tested before the rest. Handle the case of characters
1750 delivered from display vector (bug#6036). Fix tests related to
1751 it->method. Handle the truncated_on_right_p rows.
1752 (RECORD_MAX_MIN_POS): New macro.
1753 (display_line): Use it to record the minimum and maximum buffer
1754 positions for glyphs in the row being assembled. Record the
1755 position of the newline that terminates the line. If word wrap is
1756 in effect, restore minimum and maximum positions seen up to the
1757 wrap point, when iterator returns to it.
1758 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1759 row and cursor not already at point. Restore original pre-bidi
1760 code for unidirectional buffers.
1761
1762 * dispnew.c (increment_row_positions, check_matrix_invariants):
1763 Increment and check row->start.pos and row->end.pos, in addition
1764 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1765
1766 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1767 Display truncated_on_left_p and truncated_on_right_p flags.
1768 Formatting fixes.
1769 (pmtxrows): Display the ordinal number of each row. Don't display
1770 rows beyond the last one.
1771
1772 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1773 it is not copied by bidi_copy_it.
1774
1775 2010-05-22 Eli Zaretskii <eliz@gnu.org>
1776
1777 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1778 (Bug#6237)
1779
1780 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
1781
1782 * image.c (Fimage_flush): Rename from image-refresh.
1783
1784 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
1785
1786 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1787 just one window.
1788
1789 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1790 (clear_image_cache): If the number of cached images is unusually
1791 large, decrease the cache eviction delay (Bug#6230).
1792
1793 2010-05-21 Glenn Morris <rgm@gnu.org>
1794
1795 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1796 Move these rules to ns.mk.
1797 * ns.mk: New file.
1798
1799 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1800
1801 * Makefile.in (CANNOT_DUMP): New, set by configure.
1802 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1803
1804 2010-05-20 Juri Linkov <juri@jurta.org>
1805
1806 * fileio.c (Fdelete_file): Change interative spec to use
1807 `read-file-name' like in `find-file-read-args' where the default
1808 value is `default-directory' instead of `buffer-file-name'.
1809 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1810
1811 2010-05-20 Kevin Ryde <user42@zip.com.au>
1812
1813 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1814 (Voverriding_terminal_local_map, Vsystem_key_alist)
1815 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1816
1817 2010-05-20 Glenn Morris <rgm@gnu.org>
1818
1819 * Makefile.in (DEPDIR): New constant.
1820 (DEPFLAGS): Set with configure, not cpp.
1821 (MKDEPDIR): New, set by configure.
1822 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1823 (clean): Use $DEPDIR.
1824 (deps_frag): Include from configure.
1825 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1826 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1827
1828 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1829 reallocation of the cache. (Bug#6210)
1830
1831 2010-05-19 Glenn Morris <rgm@gnu.org>
1832
1833 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1834
1835 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1836 (GNULIB_VAR): Remove.
1837 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1838
1839 * m/ibms390x.h (LINKER):
1840 * m/macppc.h (LINKER) [GNU_LINUX]:
1841 * s/aix4-2.h (ORDINARY_LINK):
1842 * s/cygwin.h (LINKER):
1843 * s/darwin.h (ORDINARY_LINK):
1844 * s/gnu.h (ORDINARY_LINK):
1845 * s/netbsd.h (LINKER):
1846 * s/usg5-4.h (ORDINARY_LINK):
1847 Move to configure.
1848
1849 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1850
1851 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
1852
1853 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1854 prevent stack overflow if number of arguments is too large
1855 (Bug#6214).
1856
1857 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
1858
1859 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1860
1861 2010-05-18 Glenn Morris <rgm@gnu.org>
1862
1863 * s/gnu-linux.h: Combine two conditionals.
1864
1865 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
1866 $(POST_ALLOC_OBJ).
1867
1868 * Makefile.in (RALLOC_OBJ): New, set by configure.
1869 (rallocobj): Replace with the previous variable.
1870 (otherobj): Use $RALLOC_OBJ.
1871
1872 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1873 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1874
1875 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1876 (gmallocobj, vmlimitobj): Replace with previous two variables.
1877 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1878
1879 2010-05-17 Glenn Morris <rgm@gnu.org>
1880
1881 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1882 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1883
1884 2010-05-16 Glenn Morris <rgm@gnu.org>
1885
1886 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1887
1888 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1889
1890 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1891 trailing "/".
1892
1893 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1894 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1895
1896 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1897 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1898 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1899 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1900 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1901
1902 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1903 Remove ${STARTFLAGS}, nothing ever sets it.
1904
1905 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1906
1907 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1908
1909 2010-05-16 Glenn Morris <rgm@gnu.org>
1910
1911 * Makefile.in (LIBX_BASE): Always define.
1912
1913 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1914
1915 * Makefile.in (LIBXT): Always define.
1916
1917 2010-05-15 Glenn Morris <rgm@gnu.org>
1918
1919 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
1920
1921 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1922 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1923
1924 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
1925
1926 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
1927 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1928
1929 * emacs.c (main): Initialize initial-environment and
1930 process-environment before generating from env, not after.
1931
1932 Handle --version reasonably in CANNOT_DUMP configuration.
1933 * emacs.c (emacs_version, emacs_copyright): New string variables.
1934 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1935 (syms_of_emacs): Defvar them, and initialize them from the C
1936 string variables.
1937 (main): If initialization hasn't been done, print initial version
1938 info from the C strings, instead of starting an interactive session.
1939
1940 2010-05-15 Eli Zaretskii <eliz@gnu.org>
1941
1942 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1943 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
1944 (bidi_paragraph_init): Remove redundant assertion that we are at
1945 the beginning of a line after call to bidi_find_paragraph_start.
1946
1947 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1948 (syms_of_xdisp): Defsubr it.
1949
1950 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1951
1952 * Makefile.in: Fix MSDOS-related comments.
1953
1954 2010-05-15 Glenn Morris <rgm@gnu.org>
1955
1956 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1957 (really-lwlib, really-oldXMenu): Always define.
1958 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1959
1960 * Makefile.in: Simplify cpp conditional.
1961
1962 * Makefile.in (${ns_appdir}): Simplify using umask.
1963
1964 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1965
1966 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1967
1968 * eval.c (specbind): Remove left-over duplicate test.
1969 Disallow let-binding frame-local vars. Add comment.
1970
1971 2010-05-14 Eli Zaretskii <eliz@gnu.org>
1972
1973 Make the cache of bidi iterator states dynamically allocated.
1974 * bidi.c (bidi_cache_shrink): New function.
1975 (bidi_init_it): Call it.
1976 (bidi_cache_iterator_state): Enlarge the cache if needed.
1977
1978 * bidi.c (bidi_move_to_visually_next): Rename from
1979 bidi_get_next_char_visually. All callers changed.
1980
1981 2010-05-14 Kenichi Handa <handa@m17n.org>
1982
1983 * dispextern.h (struct composition_it): New member reversed_p.
1984
1985 * composite.c (composition_compute_stop_pos): Search backward if
1986 ENDPOS < CHARPOS.
1987 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1988 Set CMP_IT->reversed_p.
1989 (composition_update_it): Pay attention to CMP_IT->reversed_p.
1990
1991 * xdisp.c (set_iterator_to_next):
1992 Call composition_compute_stop_pos with negative ENDPOS if we are
1993 scanning backward. Call composition_compute_stop_pos if scan
1994 direction is changed.
1995 (next_element_from_buffer): Call composition_compute_stop_pos with
1996 negative ENDPOS if we are scanning backward.
1997 (next_element_from_composition): Pay attention to
1998 IT->cmp_it.reversed_p.
1999
2000 2010-05-14 Kenichi Handa <handa@m17n.org>
2001
2002 * font.c (font_range): Return the range for the font found at first.
2003
2004 2010-05-14 Glenn Morris <rgm@gnu.org>
2005
2006 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2007
2008 * Makefile.in (mktime, X11, register): Move undefs to configure.
2009
2010 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2011 (MSDOS_X_OBJ): New variable.
2012 (MSDOS_SUPPORT_REAL): New constant.
2013 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2014 (obj): Use MSDOS_X_OBJ.
2015 (lisp): Use MSDOS_SUPPORT as a variable.
2016
2017 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2018 (GPM_MOUSE_SUPPORT): Now it's a constant.
2019 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2020 not cpp.
2021
2022 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2023 (ns_appresdir): Remove, unused.
2024
2025 * Makefile.in (SHELL): Move outside cpp section.
2026
2027 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2028
2029 2010-05-13 Glenn Morris <rgm@gnu.org>
2030
2031 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2032 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2033
2034 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2035 HAVE_WINDOW_SYSTEM must be too.
2036
2037 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2038 (lisp): Remove WINNT_SUPPORT.
2039
2040 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2041 Let configure set these variables (to empty) in this case as well.
2042
2043 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2044 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2045
2046 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2047 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2048 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2049 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2050 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2051 the values output by configure.
2052 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2053
2054 2010-05-12 Glenn Morris <rgm@gnu.org>
2055
2056 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2057 (LINKER_WAS_SPECIFIED): Remove.
2058
2059 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2060 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2061 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2062 * s/cygwin.h (LIB_GCC):
2063 * s/freebsd.h (LIB_GCC):
2064 * s/gnu-linux.h (LIB_GCC):
2065 * s/msdos.h (LIB_GCC):
2066 * s/netbsd.h (LIB_GCC):
2067 Move to configure.
2068
2069 2010-05-11 Karel Klic <kklic@redhat.com>
2070
2071 * ftfont.c: Fix incorrect parentheses of #if condition for
2072 definining M17N_FLT_USE_NEW_FEATURE.
2073
2074 2010-05-11 Glenn Morris <rgm@gnu.org>
2075
2076 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2077 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2078
2079 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2080
2081 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2082 unibyte buffers. See
2083 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2084
2085 2010-05-10 Glenn Morris <rgm@gnu.org>
2086
2087 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2088 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2089 (LIBES): Use LIBS_SYSTEM as a variable.
2090 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2091 * s/aix4-2.h (LIBS_SYSTEM):
2092 * s/freebsd.h (LIBS_SYSTEM):
2093 * s/hpux10-20.h (LIBS_SYSTEM):
2094 * s/sol2-6.h (LIBS_SYSTEM):
2095 * s/unixware.h (LIBS_SYSTEM):
2096 Move to configure.
2097
2098 * s/aix4-2.h (MAIL_USE_LOCKF):
2099 * s/bsd-common.h (MAIL_USE_FLOCK):
2100 * s/darwin.h (MAIL_USE_FLOCK):
2101 * s/gnu-linux.h (MAIL_USE_FLOCK):
2102 * s/irix6-5.h (MAIL_USE_FLOCK):
2103 * s/template.h (MAIL_USE_FLOCK):
2104 Move to configure.
2105
2106 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2107
2108 * Version 23.2 released.
2109
2110 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2111
2112 * composite.c (autocmp_chars): Save point as marker before calling
2113 auto-composition-function (Bug#5984).
2114
2115 * lisp.h (restore_point_unwind): Add prototype.
2116
2117 * fileio.c (restore_point_unwind): Remove static attribute.
2118
2119 2010-05-08 Kenichi Handa <handa@m17n.org>
2120
2121 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2122 new feature of libotf and m17n-flt.
2123 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2124 Call OTF_check_features even if no specific feature is given.
2125 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2126 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2127 that OUT is NULL. Use OTF_drive_gsub_with_log and
2128 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2129 OTF_drive_gpos.
2130 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2131 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2132 Setup mflt_enable_new_feature and mflt_try_otf.
2133
2134 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2135
2136 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2137
2138 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2139 box and toolbar (Bug #6139).
2140 (xg_create_tool_bar): Remove comment (Bug #6139).
2141 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2142 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2143
2144 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
2145
2146 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2147 Update dependencies.
2148
2149 2010-05-08 Eli Zaretskii <eliz@gnu.org>
2150
2151 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2152 R2L lines.
2153
2154 2010-05-08 Glenn Morris <rgm@gnu.org>
2155
2156 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2157
2158 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2159 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2160 (termcapobj): Replace with TERMCAP_OBJ.
2161 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2162 (LIBES): Use LIBS_TERMCAP as a variable.
2163
2164 * s/freebsd.h (osreldate.h): No longer include, since this file
2165 does not use __FreeBSD_version any more.
2166
2167 * s/aix4-2.h (TERMINFO):
2168 * s/cygwin.h (TERMINFO):
2169 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2170 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2171 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2172 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2173 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2174 * s/irix6-5.h (TERMINFO):
2175 * s/netbsd.h (LIBS_TERMCAP):
2176 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2177 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2178 * s/usg5-4.h (TERMINFO):
2179 Move to configure.
2180
2181 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2182
2183 * eval.c (unbind_to): Don't unbind a local binding into the global
2184 binding when the local binding disappeared. Inversely, don't unbind
2185 a global binding into a newly created local binding.
2186 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2187 can specify the frame to use, when applicable. Adjust callers.
2188
2189 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
2190 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2193
2194 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2195
2196 * w32fns.c: Include w32.h.
2197 (Fw32_shell_execute): Decode the error message before passing it
2198 to `error'. (Bug#6126)
2199
2200 * msdos.c (dos_set_window_size):
2201 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2202 instead of `XSYMBOL (foo)->value'.
2203
2204 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2205
2206 Fix the MS-DOS build, broken by autoconfiscation.
2207
2208 * Makefile.in: Don't use Make-style comments past the "start of
2209 cpp stuff" line.
2210 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2211
2212 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2213 edited directly by msdos/sed1v2.inp).
2214
2215 2010-05-07 Glenn Morris <rgm@gnu.org>
2216
2217 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2218 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2219 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2220 move out of cpp section.
2221 * s/freebsd.h (LD_SWITCH_SYSTEM):
2222 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2223 * s/netbsd.h (LD_SWITCH_SYSTEM):
2224 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2225
2226 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2227
2228 Define LIB_STANDARD and START_FILES using autoconf.
2229 * s/usg5-4.h (LIB_STANDARD):
2230 * s/netbsd.h (START_FILES):
2231 * s/irix6-5.h (LIB_STANDARD):
2232 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2233 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2234 * s/freebsd.h (START_FILES):
2235 * s/darwin.h (START_FILES):
2236 * s/cygwin.h (START_FILES):
2237 * s/aix4-2.h (LIB_STANDARD):
2238 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2239 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2240 autoconf, not cpp.
2241
2242 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2243
2244 Remove NEED_BSDTTY and NEED_UNISTD_H.
2245 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2246 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2247 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2248 <sys/ptyio.h> and <unistd.h>.
2249
2250 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2251
2252 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2253 * s/gnu.h (START_FILES): Remove empty definition.
2254
2255 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2256
2257 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2258
2259 2010-05-06 Glenn Morris <rgm@gnu.org>
2260
2261 * Makefile.in (CPP, LN_S): Remove unused variables.
2262
2263 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2264
2265 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2266
2267 2010-05-05 Lawrence Mitchell <wence@gmx.li>
2268
2269 * m/sparc.h: Fix typo in earlier change.
2270
2271 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2272
2273 Misc tweaks.
2274 * eval.c (Fdefvaralias): Remove unintended nested if.
2275 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2276
2277 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
2278
2279 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2280
2281 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2282
2283 Remove BSD_PGRPS.
2284 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2285 * s/gnu-linux.h (BSD_PGRPS): Remove.
2286 * term.c (dissociate_if_controlling_tty):
2287 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2288 (init_sys_modes, reset_sys_modes):
2289 * emacs.c (main):
2290 * callproc.c (Fcall_process, child_setup): Remove code depending
2291 on BSD_PGRPS.
2292
2293 Remove POSIX_SIGNALS.
2294 * s/usg5-4.h (POSIX_SIGNALS):
2295 * s/netbsd.h (POSIX_SIGNALS):
2296 * s/msdos.h (POSIX_SIGNALS):
2297 * s/ms-w32.h (POSIX_SIGNALS):
2298 * s/hpux11.h (POSIX_SIGNALS):
2299 * s/gnu.h (POSIX_SIGNALS):
2300 * s/gnu-linux.h (POSIX_SIGNALS):
2301 * s/freebsd.h (POSIX_SIGNALS):
2302 * s/darwin.h (POSIX_SIGNALS):
2303 * s/cygwin.h (POSIX_SIGNALS):
2304 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2305 * s/unixware.h:
2306 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2307 * process.c (create_process):
2308 * syssignal.h:
2309 * sysdep.c (wait_for_termination, init_signals):
2310 * process.c (create_process):
2311 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2312 remove all code that assumes the contrary.
2313
2314 2010-05-04 Glenn Morris <rgm@gnu.org>
2315
2316 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2317 variable.
2318 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2319 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2320 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2321 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2322 LD_SWITCH_SYSTEM_tmp.
2323 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2324 New variables, set by configure.
2325
2326 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2327 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2328 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2329 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2330 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2331
2332 * s/aix4-2.h (C_SWITCH_SYSTEM):
2333 * m/alpha.h (C_SWITCH_MACHINE):
2334 Move to configure.in.
2335 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2336 New variables, set by configure.
2337 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2338 $c_switch_machine and $c_switch_system.
2339
2340 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2341
2342 * s/hpux10-20.h (LIB_STANDARD): New definition.
2343 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2344 on it, not used anymore.
2345
2346 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
2347
2348 * eval.c (internal_condition_case_n): Rename from
2349 internal_condition_case_2.
2350 (internal_condition_case_2): New function.
2351
2352 * xdisp.c (safe_call): Use internal_condition_case_n.
2353
2354 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2355 (internal_delete_file, Frename_file): Callers changed.
2356
2357 * buffer.c (Fkill_buffer):
2358 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2359
2360 * lisp.h: Update prototypes.
2361
2362 2010-05-03 Glenn Morris <rgm@gnu.org>
2363
2364 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2365 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2366 (LIBXT): Set with configure, not cpp.
2367 (LIBX): Remove.
2368 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2369
2370 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2371
2372 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2373 The FreeBSD is not needed, the default works, Solaris version is
2374 not needed, and the remaining case is not supported by configure.
2375
2376 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2377
2378 * xsmfns.c (CHDIR_OPT): New define.
2379 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2380 restarting emacs.
2381
2382 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2383 shut_down_emacs.
2384
2385 * emacs.c (USAGE1): Mention --chdir.
2386 (main): Handle --chdir.
2387 (standard_args): Add --chdir.
2388 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2389 #5552).
2390
2391 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2392
2393 Remove LD_SWITCH_MACHINE.
2394 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2395 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2396
2397 Clean up IRIX code.
2398 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2399 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2400
2401 Clean up AIX code.
2402 * m/ibmrs6000.inp: Remove file, unused.
2403 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2404 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2405 definition ...
2406 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2407
2408 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2409 unused.
2410
2411 2010-05-01 Eli Zaretskii <eliz@gnu.org>
2412
2413 Emulate POSIX_SIGNALS on MS-Windows.
2414
2415 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2416 (SIG_SETMASK, SIG_UNBLOCK): Define.
2417
2418 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2419 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2420 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2421
2422 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2423 New stubs.
2424
2425 Miscellaneous fixes of bidi display.
2426
2427 * xdisp.c (find_row_end): New function, refactored from display_line.
2428 (display_line): Use it.
2429 (extend_face_to_end_of_line): In almost-filled rows, extend only
2430 if the row is R2L and not continued.
2431 (display_line): Fix prepending of truncation glyphs to R2L rows.
2432 Preserve overlay and string info in row->end.
2433 (insert_left_trunc_glyphs): Support addition of left truncation
2434 glyphs to R2L rows.
2435 (set_cursor_from_row): Don't place cursor on the vertical border
2436 glyph between adjacent windows. Fix a crash when a display string
2437 is continued to the next line. Don't return zero if cursor was
2438 found by `cursor' property of a display string.
2439 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2440 test for that explicitly.
2441
2442 2010-05-01 Glenn Morris <rgm@gnu.org>
2443
2444 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2445 for clarity.
2446 (OTHER_OBJ): Remove.
2447 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2448 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2449
2450 2010-05-01 Karel Klíč <kklic@redhat.com>
2451
2452 * fileio.c (Ffile_selinux_context): Context functions may return null.
2453
2454 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2455
2456 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
2457
2458 2010-04-30 Glenn Morris <rgm@gnu.org>
2459
2460 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2461 (OTHER_OBJ): Define as a separate variable, for clarity.
2462
2463 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2464
2465 * xsettings.c: include limits.h and update file comment.
2466
2467 2010-04-30 Glenn Morris <rgm@gnu.org>
2468
2469 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2470 Set with configure, not cpp.
2471 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2472
2473 * Makefile.in (mallocobj): Remove.
2474 (otherobj): Simplify using @OTHER_OBJ@.
2475
2476 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2477 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2478 Don't bother making nsgui.h dependency platform-specific.
2479
2480 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2481
2482 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2483
2484 * process.c (read_process_output, exec_sentinel): Don't burp if the
2485 sentinel/filter kills the current buffer (bug#6060).
2486
2487 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
2488 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2489 Remove unused var `args'.
2490 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2491 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2492 * doc.c (store_function_docstring): Use XSETCAR.
2493
2494 2010-04-28 Glenn Morris <rgm@gnu.org>
2495
2496 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2497 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2498
2499 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2500
2501 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2502 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2503
2504 * Makefile.in (FONT_OBJ): New, set by configure.
2505 (FONT_DRIVERS): Use $FONT_OBJ.
2506
2507 * Makefile.in (LIBXMU): Set with configure, not cpp.
2508 * s/aix4-2.h (LIBXMU):
2509 * s/hpux10-20.h (LIBXMU):
2510 Remove definition, now set in configure.
2511
2512 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2513
2514 * m/amdx86-64.h [i386]: Move this test to configure.in.
2515
2516 2010-04-27 Glenn Morris <rgm@gnu.org>
2517
2518 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2519 * s/unixware.h (NEED_LIBW): Remove definition.
2520
2521 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2522 (TOOLKIT_LIBW): New, set by configure.
2523 (@X_TOOLKIT_TYPE@): No longer define it.
2524
2525 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2526 (MOTIF_LIBW): Set with configure, not cpp.
2527 * s/aix4-2.h (LIB_MOTIF):
2528 * s/gnu-linux.h (LIB_MOTIF):
2529 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2530
2531 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2532
2533 Reduce CPP usage.
2534 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2535 (obj): Use autoconf for unexec instead of cpp.
2536 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2537 definitions and undefs. Inline definitions in the only user.
2538 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
2539
2540 2010-04-27 Glenn Morris <rgm@gnu.org>
2541
2542 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2543 since the defaults (set by the system file) are fine in most cases.
2544 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2545 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2546 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2547 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2548 Remove definitions, since they are set correctly in s/gnu-linux.h.
2549 * s/freebsd.h (START_FILES, LIB_STANDARD):
2550 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2551 * s/hpux10-20.h (START_FILES):
2552 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2553 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2554
2555 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2556 (MOTIF_LIBW): Use $LIBXP.
2557 (otherobj): Use $WIDGET_OBJ.
2558
2559 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2560
2561 * Makefile.in (LIBS_MACHINE): Remove, unused.
2562
2563 Use autoconf instead of cpp for LIB_MATH.
2564 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2565 * s/cygwin.h (LIB_MATH): Likewise.
2566 * Makefile.in (LIB_MATH): Do not define with cpp.
2567 (LIBES): Use autoconf for LIB_MATH.
2568
2569 2010-04-26 Kenichi Handa <handa@m17n.org>
2570
2571 * composite.c (Ffind_composition_internal): Fix the return value
2572 for an automatic composition.
2573
2574 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 Remove all NO_ARG_ARRAY uses.
2577 * fns.c (concat2, concat3, nconc2):
2578 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2579 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2580 * m/xtensa.h (NO_ARG_ARRAY):
2581 * m/template.h (NO_ARG_ARRAY):
2582 * m/sparc.h (NO_ARG_ARRAY):
2583 * m/sh3.h (NO_ARG_ARRAY):
2584 * m/mips.h (NO_ARG_ARRAY):
2585 * m/macppc.h (NO_ARG_ARRAY):
2586 * m/iris4d.h (NO_ARG_ARRAY):
2587 * m/intel386.h (NO_ARG_ARRAY):
2588 * m/ibms390x.h (NO_ARG_ARRAY):
2589 * m/ibms390.h (NO_ARG_ARRAY):
2590 * m/ibmrs6000.h (NO_ARG_ARRAY):
2591 * m/ia64.h (NO_ARG_ARRAY):
2592 * m/hp800.h (NO_ARG_ARRAY):
2593 * m/arm.h (NO_ARG_ARRAY):
2594 * m/amdx86-64.h (NO_ARG_ARRAY):
2595 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2596
2597 2010-04-25 Eli Zaretskii <eliz@gnu.org>
2598
2599 * xdisp.c (display_line): Don't assume 2nd call to
2600 get_next_display_element cannot return zero. (Bug#6030)
2601 (iterate_out_of_display_property): New function, body from pop_it.
2602 (pop_it): Use it.
2603
2604 2010-04-24 Glenn Morris <rgm@gnu.org>
2605
2606 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2607 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2608 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2609 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2610
2611 2010-04-24 Eli Zaretskii <eliz@gnu.org>
2612
2613 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2614 use `get_next_display_element' and `set_iterator_to_next' to
2615 advance to the next character, when looking for the character that
2616 begins the next row.
2617
2618 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2619 definition of "struct Lisp_Symbol".
2620
2621 2010-04-24 Glenn Morris <rgm@gnu.org>
2622
2623 * Makefile.in (CRT_DIR): New variable, set by configure.
2624 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2625 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2626
2627 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2628
2629 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2630
2631 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2632
2633 Remove redundant flags.
2634 * s/freebsd.h (C_SWITCH_SYSTEM):
2635 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2636 * s/netbsd.h (C_SWITCH_SYSTEM):
2637 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2638 of these.
2639
2640 Simplify m/intel386.h.
2641 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2642 user: ecrt0.c.
2643 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2644 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2645 the only user: s/unixware.h.
2646 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2647 from m/intel386.h.
2648 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2649 moved here from m/intel386.h.
2650
2651 * m/mips.h: Remove #if 0 code.
2652
2653 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2654
2655 Fix display of composed characters from L2R scripts in bidi buffers.
2656 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2657 After advancing IT past the composition, resync the bidi iterator
2658 with IT's position. (Bug#5977)
2659
2660 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2661
2662 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2663 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2664
2665 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2666
2667 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2668
2669 2010-04-23 Eli Zaretskii <eliz@gnu.org>
2670
2671 Support `display' text properties and overlay strings in bidi buffers.
2672 * xdisp.c (pop_it): When the stack is popped after displaying
2673 from a string, bidi-iterate to exit from the text portion covered
2674 by the `display' property or overlay. (Bug#5988, bug#5920)
2675
2676 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2677
2678 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2679 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2680
2681 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2682 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2683
2684 Simplify STARTFILES definition.
2685 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2686 relying on Makefile.in to define it.
2687 * s/cygwin.h (START_FILES): Likewise.
2688 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2689
2690 Clean up Solaris code.
2691 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2692 (LIB_MOTIF): Remove, configure takes care of this.
2693 (NOT_USING_MOTIF): Remove, unused.
2694 * xrdb.c: Remove #if 0-ed #include.
2695 (SYSV): Remove conditional for old SysV.
2696 * sysdep.c (closedir): Remove conditional code for Solaris,
2697 Solaris has closedir.
2698
2699 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2700
2701 * xsettings.c (read_and_apply_settings): Check if current_font is
2702 NULL before strcmp (Bug#6001).
2703
2704 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2705
2706 Clean up HP-UX files.
2707 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2708 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2709 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2710 * s/hpux10-20.h: ... to the only user, here.
2711
2712 2010-04-21 Eli Zaretskii <eliz@gnu.org>
2713
2714 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2715 use buffer-local values of paragraph-start and paragraph-separate.
2716 <paragraph_start_re, paragraph_separate_re>: Rename from
2717 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2718 (Bug#5992)
2719
2720 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2721
2722 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2723 current_tool_bar_style are new.
2724 (store_config_changed_event): Rename from store_font_changed_event.
2725 (XSETTINGS_TOOL_BAR_STYLE): New define.
2726 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2727 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2728 HAVE_XFT.
2729 (something_changedCB): store_font_changed_event is now
2730 store_config_changed_event
2731 (parse_settings): Rename from parse_xft_settings. Read
2732 non-xft xsettings outside #ifdef HAVE_XFT.
2733 (read_settings): Renamed from read_xft_settings.
2734 (apply_xft_settings): Take current settings as parameter. Do not
2735 call read_(xft)_settings.
2736 (read_and_apply_settings): New function.
2737 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2738 read_and_apply_settings if there are settings to be read.
2739 (init_xsettings): Renamed from init_xfd_settings.
2740 Call read_and_apply_settings unconditionally.
2741 (xsettings_initialize): Call init_xsettings.
2742 (Ftool_bar_get_system_style): New function.
2743 (syms_of_xsettings): Define Qmonospace_font_name and
2744 Qtool_bar_style. Initialize current_tool_bar_style to nil.
2745 defsubr Stool_bar_get_system_style. Fprovide on
2746 dynamic-setting.
2747 Move misplaced HAVE_GCONF
2748
2749 * xsettings.h (Ftool_bar_get_system_style): Declare.
2750
2751 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2752 Qtext, Qboth, Qboth_horiz are new.
2753 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2754 Vtool_bar_style, tool_bar_max_label_size.
2755
2756 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2757
2758 * keyboard.c: QClabel is new.
2759 (parse_tool_bar_item): Take out QClabel from tool bar items.
2760 Try to construct a label if ther is no QClabel.
2761 (syms_of_keyboard): Intern :label as QClabel.
2762
2763 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2764 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2765 New.
2766
2767 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2768 dynamic-setting.el.
2769
2770 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2771 (xg_make_tool_item, xg_show_toolbar_item): New function.
2772 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2773 Call xg_make_tool_item to make a tool bar item.
2774 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2775
2776 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2777 into account for toolbars.
2778
2779 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2780
2781 * data.c (make_blv): Declarations before code (Bug#5993).
2782
2783 2010-04-21 Glenn Morris <rgm@gnu.org>
2784
2785 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2786 Define using autoconf, not cpp.
2787 (LIBXSM): New variable, set by autoconf.
2788 (LIBXT): Use $LIBXSM.
2789
2790 2010-04-21 Dan Nicolaescu <local_user@dannlt>
2791
2792 Remove NOMULTIPLEJOBS, unused.
2793 * s/template.h (NOMULTIPLEJOBS):
2794 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2795
2796 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2797 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2798 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2799 detects -znocombreloc and passes it to the linker
2800 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2801
2802 2010-04-21 Glenn Morris <rgm@gnu.org>
2803
2804 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2805
2806 2010-04-21 Karel Klíč <kklic@redhat.com>
2807
2808 * Makefile.in (LIBSELINUX_LIBS): New.
2809 (LIBES): Add $LIBSELINUX_LIBS.
2810 * eval.c, lisp.h (call7): New function.
2811 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2812 (Ffile_selinux_context, Fset_file_selinux_context):
2813 New functions.
2814 (Fcopy_file): New parameter preserve-selinux-context.
2815 (Frename_file): Preserve selinux context when renaming by copy-file.
2816
2817 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
2818 Eli Zaretskii <eliz@gnu.org>
2819
2820 Don't depend on cm.c or termcap.c on Windows, use stubs.
2821 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2822 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2823 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2824 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2825 (sys_tputs, sys_tgetstr): New stubs.
2826 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2827 (tputs, tgetstr): New; define to sys_*.
2828
2829 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
2830
2831 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2832
2833 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2834
2835 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2836 Just signal a warning rather than an error when inside a let.
2837 (Fmake_variable_frame_local): Add the same test.
2838
2839 * font.c (syms_of_font): Make the style table vars read-only.
2840
2841 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2842 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2843
2844 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2845
2846 2010-04-20 Eli Zaretskii <eliz@gnu.org>
2847
2848 Fix R2L paragraph display on TTY.
2849
2850 * xdisp.c (unproduce_glyphs): New function.
2851 (display_line): Use it when produced glyphs are discarded from R2L
2852 glyph rows.
2853 (append_composite_glyph): In R2L rows, prepend the glyph rather
2854 than appending it.
2855
2856 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2857 rather than append it. Set up the resolved_level and bidi_type
2858 attributes of the appended glyph.
2859 (produce_special_glyphs): Mirror the backslash continuation
2860 character in R2L lines.
2861
2862 Implement display of R2L paragraphs in GUI sessions.
2863
2864 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2865 append_stretch_glyph.
2866 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2867 off-by-one error in computing x at end of text in the row.
2868 (append_stretch_glyph): In reversed row, prepend the glyph rather
2869 than append it. Set resolved_level and bidi_type of the glyph.
2870 (extend_face_to_end_of_line): If the row is reversed, prepend a
2871 stretch glyph whose width is such that the rightmost glyph will be
2872 drawn at the right margin of the window. Fix off-by-one error on
2873 TTY frames in testing whether a line needs face extension. Fix
2874 face extension at ZV. If this is the last glyph row, use
2875 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2876 region face.
2877 (set_cursor_from_row, display_line): Use
2878 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2879 row->continuation_lines_width.
2880 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2881 are at ZV. Fixes a crash when reseated to ZV by
2882 try_window_reusing_current_matrix.
2883 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2884 which happens with R2L glyph rows. Fixes a crash when inserting a
2885 character at end of an R2L line.
2886 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2887 treat them as having zero-width characters. Improve comments.
2888 Don't reverse pos_before and pos_after for reversed glyph rows.
2889 Set cursor.x to negative value when the cursor might be on the
2890 left fringe.
2891 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2892 left fringe, not the right one.
2893 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2894 (erase_phys_cursor): For reversed cursor_row, support cursor on
2895 the left fringe.
2896
2897 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2898 of continuation indicators on the fringes.
2899 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2900 left fringe.
2901
2902 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2903 draw cursor on the left fringe.
2904
2905 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2906 cursor on the left fringe.
2907
2908 * dispnew.c (update_text_area): Handle reversed desired rows when
2909 the cursor is on the left fringe.
2910 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2911 below, not by 0, for when the cursor is on the left fringe.
2912
2913 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2914
2915 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2916 widget is a scrollbar.
2917
2918 2010-04-20 Kenichi Handa <handa@m17n.org>
2919
2920 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2921 only when the arg CHARSET_LIST is nil.
2922
2923 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2924
2925 Make variable forwarding explicit rather the using special values.
2926 Basically, this makes the structure of buffer-local values and object
2927 forwarding explicit in the type of Lisp_Symbols rather than use
2928 special Lisp_Objects for that. This tends to lead to slightly more
2929 verbose code, but is more C-like, simpler, and makes it easier to make
2930 sure we handled all cases, among other things by letting the compiler
2931 help us check it.
2932 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2933 Removing forwarding objects.
2934 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2935 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2936 explicit rather than hiding them inside Lisp_Object "values".
2937 (XFWDTYPE): New macro.
2938 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2939 (XBUFFER_LOCAL_VALUE): Remove.
2940 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2941 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2942 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2943 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2944 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2945 Remove the Lisp_Misc_* header.
2946 (struct Lisp_Buffer_Local_Value): Redefine.
2947 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2948 (struct Lisp_Misc_Any): Add filler to get the right size.
2949 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2950 Lisp_Intfwd.
2951 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2952 (DEFVAR_KBOARD): Allocate a forwarding object.
2953 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2954 (let_shadows_global_binding_p): New function.
2955 (union Lisp_Val_Fwd): New type.
2956 (make_blv): New function.
2957 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2958 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2959 (swap_in_symval_forwarding, find_symbol_value, Fset)
2960 (let_shadows_buffer_binding_p, set_internal, default_value)
2961 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2962 (Fkill_local_variable, Fmake_variable_frame_local)
2963 (Flocal_variable_p, Flocal_variable_if_set_p)
2964 (Fvariable_binding_locus):
2965 * xdisp.c (select_frame_for_redisplay):
2966 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2967 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2968 * frame.c (store_frame_param):
2969 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2970 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2971 value structure.
2972 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2973 (clone_per_buffer_values): Only adjust markers into the current buffer.
2974 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2975 (Fbuffer_local_value, set_buffer_internal_1)
2976 (swap_out_buffer_local_variables):
2977 Adapt to the new symbol value structure.
2978 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2979 (defvar_per_buffer): Take a new arg for the fwd object.
2980 (buffer_lisp_local_variables): Return a proper alist (different fix
2981 for bug#4138).
2982 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2983 (Fgarbage_collect): Don't handle buffer_defaults specially.
2984 (mark_object): Handle new symbol value structure rather than the old
2985 special Lisp_Misc_* objects.
2986 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2987 * term.c (set_tty_color_mode):
2988 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2989 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2990 a buffer_local_flags.
2991 * print.c (print_object): Get rid of impossible forwarding objects.
2992
2993 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2994
2995 * bidi.c (bidi_get_type, bidi_get_category)
2996 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
2997 (bidi_type_of_next_char, bidi_level_of_next_char):
2998 Declare static. Use `INLINE' rather than `inline'.
2999
3000 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3001
3002 * dired.c (Ffile_attributes): Fix typo in docstring.
3003
3004 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3005
3006 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3007 NSInteger (Bug#5811).
3008
3009 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3010
3011 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3012 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3013
3014 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3015
3016 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3017
3018 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
3019
3020 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3021 terminal frames (Bug#5837).
3022
3023 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3024
3025 * .gdbinit (xsubchartable): New command.
3026
3027 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3028
3029 * xdisp.c (display_line): Don't write beyond the last glyph row in
3030 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3031 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3032 and
3033 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3034
3035 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3036
3037 * alloc.c (Fpurecopy): Hash-cons if requested.
3038 (syms_of_alloc): Update purify-flag docstring.
3039
3040 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3041
3042 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3043 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3044
3045 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3046
3047 Fix a crash when an NSM character is inserted at BEGV.
3048
3049 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3050 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3051 NEUTRAL_B or UNKNOWN_BT.
3052
3053 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3054
3055 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3056 other rows with cursor unless they are different from this row and
3057 this row is part of a continued line. (Bug#5943)
3058
3059 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3060
3061 * s/freebsd.h: Restore osreldate.h include.
3062 Suggested by Naohiro Aota.
3063
3064 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3065
3066 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3067
3068 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3069
3070 * s/cygwin.h: Avoid linking against static libgcc.
3071
3072 2010-04-15 Juri Linkov <juri@jurta.org>
3073
3074 * window.c: Add Qscroll_command.
3075 Remove Vscroll_preserve_screen_position_commands.
3076 (window_scroll_pixel_based, window_scroll_line_based): Check the
3077 `scroll-command' property on the last command instead of searching
3078 the last command in Vscroll_preserve_screen_position_commands.
3079 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3080 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3081 (scroll-preserve-screen-position): Doc fix.
3082 (Vscroll_preserve_screen_position_commands): Remove variable.
3083
3084 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3085
3086 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3087
3088 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3089
3090 Reduce cpp use in Makefile.in.
3091 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3092 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3093 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3094 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3095 (CRT0_COMPILE): Remove, inline it in the only user.
3096
3097 2010-04-14 Juri Linkov <juri@jurta.org>
3098
3099 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3100 `scroll-up-command' and `M-v' from `scroll-down' to
3101 `scroll-down-command'.
3102
3103 2010-04-14 Juri Linkov <juri@jurta.org>
3104
3105 * window.c (Vscroll_preserve_screen_position_commands): New variable
3106 with the default value as the list of Qscroll_down and Qscroll_up.
3107 (window_scroll_pixel_based, window_scroll_line_based): Search the
3108 last command in the list Vscroll_preserve_screen_position_commands
3109 instead of comparing with Qscroll_up and Qscroll_down.
3110
3111 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3112
3113 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3114 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3115 does that.
3116
3117 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3118 to zero.
3119
3120 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3121
3122 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3123
3124 Try to solve the problem of spurious EOF chars in long lines of text
3125 sent to interactive subprocesses.
3126 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3127 (system_process_attributes): Remove unused var `ttotal'.
3128 * process.c (send_process): Don't bother breaking long line with EOF
3129 chars when talking to ttys any more.
3130 (wait_reading_process_output): Output a warning when called in such
3131 a way that it could block without being interruptible.
3132
3133 Try to detect file modification within the same second.
3134 * buffer.h (struct buffer): New field modtime_size.
3135 * buffer.c (reset_buffer): Initialize it.
3136 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3137 (Fverify_visited_file_modtime): Check it.
3138 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3139 (Fset_visited_file_modtime): Set (or clear) it.
3140
3141 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3142
3143 * process.c (status_notify): Remove unused var `ro'.
3144
3145 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3146
3147 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3148 more than one visual (Bug#5938).
3149
3150 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3151
3152 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3153 Undefine.
3154
3155 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3156
3157 Remove C_SWITCH_SYSTEM_TEMACS.
3158 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3159 (malloc, realloc, free): Use emacs, not temacs for conditional
3160 definition.
3161
3162 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3163 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3164
3165 Use autoconf, not cpp for some variables.
3166 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3167 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3168 (ALL_CFLAGS): Use them as make variables.
3169 (really-lwlib, really-oldXMenu): Do not pass them.
3170
3171 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3172
3173 * xmenu.c (apply_systemfont_to_dialog): New.
3174 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3175
3176 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3177
3178 * process.c (exec_sentinel): Preserve current-buffer.
3179
3180 * process.c (read_process_output): Move the save-current-buffer to
3181 apply to both the filter and the non-filter branches.
3182
3183 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3184
3185 * s/msdos.h (UNEXEC): New definition.
3186
3187 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3188
3189 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3190 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3191
3192 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3193 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3194 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3195 TRY_WINDOW_CHECK_MARGINS.
3196
3197 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
3198 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3199 width only when it is for padding.
3200
3201 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3202
3203 * xfns.c (Fx_show_tip): Call try_window in a loop until
3204 fonts_changed_p is zero (Bug#2423).
3205
3206 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3207
3208 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3209 the end of TEXT_AREA. (Bug#5856)
3210
3211 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3212
3213 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3214 HAVE_GCONF.
3215
3216 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3217
3218 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3219 prev.orig_type, for resolving type of NSM. (Bug#5858)
3220
3221 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3222
3223 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3224 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3225 in current_font.
3226 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3227 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3228 New functions.
3229 (syms_of_xsettings): Initialize current_font.
3230 defsubr Sfont_get_system_normal_font.
3231
3232 * xsettings.h (Ffont_get_system_normal_font,
3233 xsettings_get_system_normal_font): Declare.
3234
3235 * xfns.c (extern xlwmenu_default_font): Remove.
3236 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3237 to xlwmenu.c.
3238
3239 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3240 menu items in UTF-8.
3241
3242 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3243 (apply_systemfont_to_menu): New function.
3244 (set_frame_menubar, create_and_show_popup_menu): Call
3245 apply_systemfont_to_menu.
3246
3247 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3248
3249 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3250 FRAME_LINE_TO_PIXEL_Y.
3251
3252 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3253 pixelwidth/height.
3254
3255 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3256
3257 Simplify code for HP machines.
3258 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3259 for GNU_LINUX, not needed.
3260 (UNEXEC, NEED_BSDTTY): Move definitions...
3261 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3262
3263 * m/iris4d.h (UNEXEC): Move definition ...
3264 * s/irix6-5.h (UNEXEC): ... here.
3265
3266 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3267
3268 * xfns.c (set_machine_and_pid_properties): New function.
3269 (Fx_create_frame): Call set_machine_and_pid_properties.
3270
3271 2010-04-03 Eli Zaretskii <eliz@gnu.org>
3272
3273 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3274 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3275 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3276
3277 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3278 in this function. (Bug#5703)
3279
3280 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
3281
3282 * nsterm.h: Fix last change.
3283
3284 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3285
3286 * m/intel386.h (NO_REMAP): Move definition ...
3287 * s/msdos.h (NO_REMAP): ... here.
3288
3289 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3290
3291 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3292 used on those platforms.
3293
3294 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3295
3296 Remove extern errno declarations.
3297 * xterm.c:
3298 * xrdb.c:
3299 * w32term.c:
3300 * unexec.c:
3301 * unexaix.c:
3302 * sysdep.c:
3303 * process.c:
3304 * lread.c:
3305 * keyboard.c:
3306 * floatfns.c:
3307 * filelock.c:
3308 * fileio.c:
3309 * emacs.c (main):
3310 * ecrt0.c:
3311 * dispnew.c:
3312 * callproc.c:
3313 * buffer.c: Remove errno extern declarations.
3314 * s/netbsd.h (NEED_ERRNO): Remove.
3315
3316 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3317
3318 Remove all uses of LIBX11_SYSTEM.
3319 * Makefile.in (LIBX11_SYSTEM): Remove.
3320 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3321 instead.
3322
3323 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3324
3325 Remove support for DJGPP v1.x (bug#5813).
3326
3327 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
3328 * s/msdos.h:
3329 * unexec.c (make_hdr, copy_text_and_data):
3330 * sysdep.c (wait_for_termination, sys_subshell):
3331 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
3332 (IT_set_terminal_modes, __write, _rename, gethostname)
3333 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3334 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3335 the value of __DJGPP__.
3336 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3337 compatibility code.
3338 * lread.c:
3339 * gmalloc.c (memalign):
3340 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3341 * emacs.c (main):
3342 * dosfns.c (init_dosfns):
3343 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3344
3345 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3346
3347 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3348 string with `cursor' property comes from an `after-string'
3349 overlay. (Bug#5816)
3350
3351 2010-04-01 Glenn Morris <rgm@gnu.org>
3352
3353 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3354 Define as Makefile variables.
3355 (LIBX): Use above variables rather than directly using autoconf.
3356
3357 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3358
3359 Clean up BSD_SYSTEM use.
3360 * xterm.c:
3361 * process.c:
3362 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3363 for including <sys/ioctl.h>.
3364 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3365 code is only used for MSDOS.
3366
3367 2010-03-31 Juri Linkov <juri@jurta.org>
3368
3369 * image.c: Add `Qextension_data'.
3370 (syms_of_image): Initialize and staticpro `Qextension_data'.
3371 (Fimage_metadata): Rename from `Fimage_extension_data'.
3372 (gif_load): Put GIF extension data to the property
3373 `Qextension_data'.
3374
3375 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3376
3377 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3378 * nsterm.h: Fix prototype.
3379
3380 2010-03-31 Eli Zaretskii <eliz@gnu.org>
3381
3382 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3383 trailing whitespace in right-to-left rows.
3384
3385 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3386
3387 Get rid of the direct_output optimizations.
3388 * keyboard.c (nonundocount): Remove extern declaration.
3389 (command_loop_1): Remove brittle optimisation for cheap and
3390 common operations.
3391 * xdisp.c (redisplay_internal): Don't bother checking
3392 redisplay_performed_directly_p any more.
3393 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3394 any more.
3395 * dispnew.c (redisplay_performed_directly_p)
3396 (direct_output_for_insert, direct_output_forward_char):
3397 * dispextern.h (redisplay_performed_directly_p)
3398 (direct_output_for_insert, direct_output_forward_char): Remove.
3399 * cmds.c (nonundocount): Make it static.
3400
3401 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
3402
3403 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3404
3405 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
3406
3407 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3408 invisible (Bug#5766).
3409
3410 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
3411
3412 * xdisp.c (x_consider_frame_title, update_window_cursor):
3413 Remove HAVE_NS conditionals.
3414 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
3415
3416 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3417 filename for the title.
3418 (ns_set_doc_edited): Do nothing if the selected window is a
3419 minibuffer window.
3420
3421 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3422 ns_set_doc_edited.
3423
3424 * nsterm.m: Remove unneeded prototype.
3425
3426 2010-03-31 Glenn Morris <rgm@gnu.org>
3427
3428 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3429 in the DOC file. (Bug#5336)
3430
3431 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3432
3433 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3434
3435 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3436
3437 * window.c (keys_of_window): Remove redundant/overridden bindings.
3438
3439 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3440
3441 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3442 Restore original behavior when the iterator is not bidi_p.
3443
3444 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3445
3446 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3447
3448 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3449
3450 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3451 are outside the range of cached character positions.
3452
3453 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
3454
3455 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3456
3457 2010-03-30 Eli Zaretskii <eliz@gnu.org>
3458
3459 Initial support for bidirectional editing.
3460
3461 * Makefile.in (obj): Include bidi.o.
3462 (bidi.o): New target.
3463
3464 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3465 ($(BLD)/bidi.$(O)): New target.
3466
3467 * bidi.c: New file.
3468
3469 * buffer.h (struct buffer): New members bidi_display_reordering
3470 and bidi_paragraph_direction.
3471
3472 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3473 and bidi_paragraph_direction.
3474 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3475 and bidi-paragraph-direction.
3476 (Fbuffer_swap_text): Swap the values of
3477 bidi_display_reordering and bidi_paragraph_direction.
3478
3479 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3480 (bidi_type_t, bidi_dir_t): New types.
3481 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3482 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3483 prev_stop, base_level_stop, and eol_pos.
3484 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3485 (IT_STACK_SIZE): Enlarge to 5.
3486 (struct glyph_row): New member reversed_p.
3487 <string_buffer_position>: Update prototype.
3488 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3489 glyph_row if bidi_it.paragraph_dir == R2L.
3490 (struct glyph): New members resolved_level and bidi_type.
3491
3492 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3493 processing or buffer's direction is right-to-left.
3494 (prepare_desired_row): Preserve the reversed_p flag.
3495 (row_equal_p): Compare the reversed_p attributes as well.
3496
3497 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3498 bidi_init_it and set it->paragraph_embedding from the current
3499 buffer's value of bidi_paragraph_direction.
3500 (reseat_1): Initialize bidi_it.first_elt.
3501 (set_iterator_to_next, next_element_from_buffer): Use the value of
3502 paragraph_embedding to determine the paragraph direction.
3503 (set_iterator_to_next): Under bidi reordering, call
3504 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3505 new_paragraph flag is set in the bidi iterator.
3506 (next_element_from_buffer): If bidi_it.first_elt is set,
3507 initialize paragraph direction and find the first character to
3508 display in the visual order. If reseated to a middle of a line,
3509 prime the bidi iterator starting at the line's beginning. Handle
3510 the situation where we overstepped stop_charpos due to
3511 non-linearity of the bidi iteration. Likewise for when we back up
3512 beyond the previous stop_charpos. When moving across stop_charpos,
3513 record it in prev_stop.
3514 (display_line): Set row->end and it->start for the next row to the
3515 next character in logical order. Always extend reversed_p rows to
3516 the end of line, even if they end at ZV. Copy the reversed_p flag
3517 to the next glyph row. Keep calling set_cursor_from_row for
3518 bidi-reordered rows even if we already have a possible candidate
3519 for cursor position. Set row_end after all the row's glyphs have
3520 been produced, by looping over the glyphs. Record the position
3521 after EOL in it->eol_pos, and use it to set end_pos of the last
3522 row produced for a continued line.
3523 <Qright_to_left, Qleft_to_right>: New variables.
3524 (syms_of_xdisp): Initialize and staticpro them.
3525 (string_buffer_position_lim): New function.
3526 (string_buffer_position): Most of code moved to
3527 string_buffer_position_lim. Last argument and return value are
3528 now EMACS_INT; all callers changed.
3529 (set_cursor_from_row): Rewritten to support bidirectional text and
3530 reversed glyph rows.
3531 (text_outside_line_unchanged_p, try_window_id): Disable
3532 optimizations if we are reordering bidirectional text and the
3533 paragraph direction can be affected by the change.
3534 (append_glyph, append_composite_glyph)
3535 (produce_image_glyph, append_stretch_glyph): Set the
3536 resolved_level and bidi_type members of each glyph.
3537 (append_glyph): If the glyph row is reversed, prepend the glyph
3538 rather than appending it.
3539 (handle_stop_backwards): New function.
3540 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3541 (reseat): call handle_stop_backwards to recompute prev_stop and
3542 base_level_stop for the new position.
3543 (handle_invisible_prop): Under bidi iteration, skip invisible text
3544 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3545 paragraph direction. Update IT->prev_stop after skipping
3546 invisible text.
3547 (move_it_in_display_line_to): New variables prev_method
3548 and prev_pos. Compare for strict equality in
3549 BUFFER_POS_REACHED_P.
3550 (try_cursor_movement): Examine all the candidate rows that occlude
3551 point, to return the best match. If rows are bidi-reordered
3552 and point moved backwards, back up to the row that is not a
3553 continuation line, and start looking for a suitable row from
3554 there.
3555
3556 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3557 rather than appending, if the glyph_row's reversed_p flag is set.
3558 Set the resolved_level and bidi_type members of each glyph.
3559
3560 * .gdbinit (pbiditype): New command.
3561 (pgx): Use it to display bidi level and type of the glyph.
3562 (pitx): Display some bidi information about the iterator.
3563 (prowlims, pmtxrows): New commands.
3564
3565 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3566
3567 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3568 * s/usg5-4.h (LIBS_DEBUG):
3569 * s/irix6-5.h (C_DEBUG_SWITCH):
3570 * s/gnu-linux.h (LIBS_DEBUG):
3571 * s/darwin.h (LIBS_DEBUG):
3572 * s/bsd-common.h (LIBS_DEBUG):
3573 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3574 * m/iris4d.h (LIBS_DEBUG):
3575 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3576
3577 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3578 (LIBS_DEBUG): Remove definition.
3579
3580 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
3581
3582 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3583 Windows.
3584
3585 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3586
3587 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3588 `connect' (Bug#5723).
3589
3590 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
3591
3592 * process.c (Fmake_network_process): Call `select' for interrupted
3593 `connect' rather than creating new socket (Bug#5173).
3594
3595 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
3596
3597 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3598
3599 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3600
3601 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3602
3603 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3604
3605 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3606 XLoadQueryFont.
3607
3608 2010-03-24 Kenichi Handa <handa@m17n.org>
3609
3610 * coding.c (decode_coding_ccl): Fix previous change for the
3611 multibyte case.
3612 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3613 case that the output buffer is fullfilled.
3614 (encode_coding): Setup ccl program here.
3615
3616 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3617
3618 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3619
3620 Simplify LIBS_MACHINE definitions.
3621 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3622 * m/iris4d.h (LIBS_MACHINE): Likewise.
3623 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3624 * s/aix4-2.h (LIBS_SYSTEM): ... here.
3625 * s/netbsd.h: Remove commented out code.
3626
3627 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3628
3629 Remove dead code dealing with POSIX_SIGNALS.
3630 * atimer.c (set_alarm): Remove dead code, all USG systems define
3631 POSIX_SIGNALS.
3632 * data.c (arith_error): Likewise.
3633 * keyboard.c (input_available_signal, handle_user_signal)
3634 (interrupt_signal): Likewise.
3635 * process.c (sigchld_handler): Likewise.
3636 (create_process): Remove if 0 code. Remove HPUX conditional when
3637 !defined (POSIX_SIGNALS), it cannot be true.
3638 * syssignal.h: Remove USG5_4 and USG conditionals when
3639 !POSIX_SIGNALS, they cannot be true.
3640
3641 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3642 NO_SOCK_SIGIO, not used anymore.
3643
3644 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3645
3646 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3647 support vax on BSDs.
3648
3649 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3650 * s/aix4-2.h (ORDINARY_LINK): ... here.
3651
3652 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3653
3654 * Makefile.in (abs_builddir): Define.
3655 (bootstrap_exe): Use it.
3656 (VPATH): Use $(srcdir) instead of @srcdir@.
3657
3658 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3659
3660 * Makefile.in (bootstrap_exe): Use an absolute name.
3661
3662 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3663
3664 Remove support for old GNU/Linux using libc version 5.
3665 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3666 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3667
3668 Consolidate redundant definitions in s/bsd-common.h.
3669 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3670 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3671 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3672 doing it in all files that include this one.
3673 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3674 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3675 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3676 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3677 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3678 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3679 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3680 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3681 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3682
3683 Consolidate redundant definitions.
3684 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3685 it's undefined in all files that include this one.
3686 (POSIX_SIGNALS): Define here instead of doing it in all files that
3687 include this one.
3688 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3689 (POSIX_SIGNALS): Do not define.
3690 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3691 (POSIX_SIGNALS): Do not define.
3692 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3693 (POSIX_SIGNALS): Do not define.
3694
3695 Remove support for old UNIX System V systems.
3696 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3697 * s/usg-5-4-2.h: Remove.
3698
3699 Remove support for Solaris on PPC and for old versions.
3700 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3701 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3702 that cancel each other.
3703 * s/sol2-3.h:
3704 * s/sol2-4.h:
3705 * s/sol2-5.h: Remove.
3706 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3707 (NO_REMAP): Remove, unused.
3708 (UNEXEC): Move definition ...
3709 * s/aix4-2.h (UNEXEC): ... here.
3710
3711 * s/openbsd.h: Remove support for non-ELF and for systems that do
3712 not support shared libraries.
3713 * s/netbsd.h:
3714 * s/freebsd.h: Likewise.
3715
3716 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3717
3718 Remove non-working support for lynxos 3.0.
3719 * s/lynxos.h: Remove file.
3720
3721 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3722 COFF_BSD_SYMBOLS, nothing defines it anymore.
3723
3724 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3725
3726 Remove obsolete uses of HAVE_SHM.
3727 * emacs.c (standard_args):
3728 (Fdump_emacs):
3729 (syms_of_emacs): Remove code depending on HAVE_SHM.
3730
3731 * alloc.c: Remove HAVE_SHM dependent definition.
3732
3733 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3734
3735 2010-03-18 Glenn Morris <rgm@gnu.org>
3736
3737 * emacs.c (USAGE4): Hard-code bug address.
3738 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3739 (bug_reporting_address): Remove.
3740 (main): Don't call bug_reporting_address.
3741
3742 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3743 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3744
3745 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * xfns.c (Fx_create_frame):
3748 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3749 on left.
3750
3751 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3752
3753 * editfns.c (Fformat): Account for string precision when computing
3754 field width (Bug#5710).
3755
3756 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
3757
3758 * xfns.c (Fx_create_frame): Set default to Qright.
3759
3760 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3761 all window systems.
3762
3763 2010-03-12 Eli Zaretskii <eliz@gnu.org>
3764
3765 These changes remove termcap.c from the build on Posix platforms.
3766 * Makefile.in (termcapobj): Move termcap.o from here...
3767 (MSDOS_OBJ): ...to here.
3768 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3769 now identical to when LIBS_TERMCAP is defined.
3770
3771 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3772
3773 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3774
3775 * config.in: Regenerated. (See top-level ChangeLog.)
3776
3777 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
3778
3779 * Branch for 23.2.
3780
3781 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3782
3783 Cleanup setup of gl_state in various parts of the code.
3784 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3785 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3786 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3787 (skip_chars):
3788 * regex.c (regex_compile): Use it.
3789 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3790 it's now set in regex_compile when/if we need it.
3791
3792 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3793
3794 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3795 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3796 (QUIT): Use it to consolidate code and remove redundancy.
3797 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3798
3799 * regex.c (regex_compile): Setup gl_state as well.
3800
3801 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3802 (in_classes): Use CONSP before XCAR/XCDR.
3803
3804 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
3805
3806 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3807 definitions, so that keyboard macros are correctly handled
3808 (Bug#5481).
3809
3810 2010-03-02 Eli Zaretskii <eliz@gnu.org>
3811
3812 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3813 text that could be relocated inside the call to emacs_mule_char.
3814 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3815 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3816
3817 2010-03-02 Kenichi Handa <handa@m17n.org>
3818
3819 * character.c (parse_str_as_multibyte): Fix handling of the
3820 multibyte form of raw-bytes.
3821 (str_as_multibyte): Likewise.
3822
3823 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3824 form of raw-bytes.
3825
3826 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
3827
3828 * charset.c (load_charset_map_from_file)
3829 (load_charset_map_from_vector): Zero out allocated
3830 charset_map_entries before using them.
3831
3832 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3833
3834 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3835
3836 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
3837
3838 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3839 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
3840
3841 2010-02-26 Kenichi Handa <handa@m17n.org>
3842
3843 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3844
3845 * xdisp.c (reseat_to_string): Fix previous change.
3846
3847 2010-02-26 David Reitter <david.reitter@gmail.com>
3848
3849 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3850 Lisp_Object (Bug#4736).
3851
3852 2010-02-25 Kenichi Handa <handa@m17n.org>
3853
3854 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3855
3856 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3857
3858 * xterm.c (XTflash): Move declarations before statements.
3859
3860 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3861 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3862 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3863 (xg_create_tool_bar): Remove unused variables.
3864 (x_wm_set_size_hint): Move declarations before statements.
3865 (xg_create_frame_widgets): Remove variable grav.
3866
3867 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
3868
3869 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3870
3871 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3872
3873 * term.c (fatal): Add a final \n if needed (bug#5596).
3874
3875 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
3876
3877 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3878
3879 2010-02-18 Glenn Morris <rgm@gnu.org>
3880
3881 * callint.c (Finteractive): Doc fix.
3882
3883 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3884
3885 * coding.c (record_conversion_result):
3886 Handle CODING_RESULT_INSUFFICIENT_DST.
3887 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3888 memory allocation error.
3889
3890 2010-02-17 Kenichi Handa <handa@m17n.org>
3891
3892 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3893 Fix for the case that the output buffer is fullfilled.
3894 (decode_coding): Setup ccl program here. Keep looping when the
3895 decoder stopped because the output buffer is
3896 fullfilled (bug#5534).
3897
3898 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3899
3900 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3901
3902 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
3903 bug #5571.
3904 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
3905 overdrawn.
3906
3907 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3908
3909 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3910 doing_interact here.
3911 (ice_connection_closed): New function.
3912 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3913 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3914 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3915 returns I/O error.
3916 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3917 bug #5512.
3918
3919 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
3920
3921 * nsfont.m (nsfont_open): The system's value for the font descent
3922 is negative, so round it down to avoid clipping.
3923
3924 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
3925
3926 * charset.c (load_charset_map_from_file)
3927 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
3928 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
3929
3930 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
3931
3932 * charset.c (load_charset_map_from_file): Allocate large
3933 charset_map_entries structure on the heap rather than the stack.
3934 (Bug#5526).
3935
3936 2010-01-31 Kenichi Handa <handa@m17n.org>
3937
3938 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
3939 size in NAME is invalid, return -1 (Bug#5396).
3940
3941 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
3942
3943 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3944 <deactivated@gmail.com> (Bug#3605).
3945
3946 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
3947
3948 * fileio.c (Frename_file): Correctly rename symlinks to
3949 directories (Bug#5496).
3950
3951 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3952
3953 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3954
3955 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3956
3957 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3958
3959 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
3960
3961 * frame.c (DEFAULT_ROWS): Change default to 35.
3962
3963 * xfns.c (x_default_font_parameter): Change default XFT font to
3964 monospace-10 (Bug#3643).
3965
3966 2010-01-29 Eli Zaretskii <eliz@gnu.org>
3967
3968 * w32inevt.c (key_event): Remove unnecessary comparison of
3969 event->uChar.AsciiChar with 128.
3970
3971 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
3972
3973 * fileio.c (Frename_file): Fix last change (Bug#5487).
3974
3975 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3976
3977 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3978
3979 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3980
3981 * xfns.c (Fx_create_frame): Remove window size matching code from
3982 2010-01-15.
3983 (x_get_current_desktop, x_get_desktop_workarea): Remove.
3984
3985 2010-01-27 Jason Rumney <jasonr@gnu.org>
3986
3987 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
3988 (key_event): Use unicode for characters 128 and higher (Bug#4567).
3989
3990 2010-01-27 Kenichi Handa <handa@m17n.org>
3991
3992 * regex.c (analyse_first): Fix setting of fastmap for unibyte
3993 pattern string (Bug#4209).
3994
3995 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
3996
3997 * fileio.c (Frename_file): Call copy-directory and
3998 delete-directory for directories, in order to handle cross-device
3999 renaming (Bug#3353).
4000
4001 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4002
4003 * xfns.c (Fx_create_frame): If frame height is too big, try
4004 sizes 24 and 10. Bug #3643.
4005
4006 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4007
4008 Try and fix bug#788, hopefully for real this time.
4009 * keymap.c (shadow_lookup): Add `remap' arg.
4010 (describe_map, describe_vector): Update calls to shadow_lookup.
4011 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4012 `remapped' so this flag is applicable to `sequence'. Be careful to
4013 perform remapping during shadow_lookup check of remapped_sequences.
4014
4015 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4016
4017 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4018 png_check_sig, which has been removed in libpng 1.4.
4019
4020 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4021
4022 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4023 lacks this header file).
4024
4025 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4026
4027 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4028 as in Emacs 22.
4029
4030 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4031
4032 * lisp.h (make_pure_string): String pointer arg now points to const.
4033
4034 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4035 args now point to const.
4036
4037 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4038
4039 * lread.c (Fload): Don't treat files without .elc extension as
4040 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4041 them. (bug#5303)
4042
4043 2010-01-20 Kenichi Handa <handa@m17n.org>
4044
4045 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4046 treat the source as actual byte sequence.
4047
4048 2010-01-19 Alan Mackenzie <acm@muc.de>
4049
4050 Fix spurious before-change-functions invocation from (insert ?\n).
4051 * textprop.c (set_text_properties): Rename parameter
4052 `signal_after_change_p' to `coherent_change_p', and make the
4053 invocation of `modify_region' conditional on it.
4054
4055 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4056
4057 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4058 for debug purpose.
4059 (syms_of_xsettings): Declare xft-settings.
4060
4061 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4062
4063 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4064
4065 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4066
4067 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4068
4069 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4070
4071 * emacs.c (standard_args): Adjust arg priorities to reflect how
4072 they are processed in startup.el.
4073
4074 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4075
4076 * Makefile.in (lisp, shortlisp): Update.
4077
4078 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4079
4080 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4081 code, link the new kboard into all_kboard before running Lisp code,
4082 and protect the new terminal with GCPRO (Bug#5365).
4083 (x_term_init): Remove unused var `atom'.
4084 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4085
4086 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4087
4088 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4089 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4090 to find out usable size of the desktop. Don't make frames larger than
4091 this. Bug #3643.
4092
4093 2010-01-15 Kenichi Handa <handa@m17n.org>
4094
4095 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4096
4097 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4098
4099 * nsterm.m (Qnone): Define.
4100
4101 * nsfns.m (Qnone): Move definition to nsterm.m.
4102
4103 2010-01-14 Kenichi Handa <handa@m17n.org>
4104
4105 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4106 systems.
4107
4108 2010-01-14 Kenichi Handa <handa@m17n.org>
4109
4110 Make auto-composition work on all buffers even if they are
4111 fundamental mode.
4112
4113 * composite.c (Vauto_composition_mode): New variable.
4114 (composition_compute_stop_pos): Check Vauto_composition_mode
4115 instead of Vauto_composition_function.
4116 (composition_adjust_point, Ffind_composition_internal): Likewise.
4117 (syms_of_composite): Declare Lisp variable
4118 "auto-composition-mode" here.
4119
4120 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
4121
4122 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4123 during call to vendor-specific-keysyms (Bug#5365).
4124
4125 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4126
4127 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4128 Call SIGNAL_THREAD_CHECK (Bug#5333).
4129
4130 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4131 Call SIGNAL_THREAD_CHECK.
4132
4133 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4134
4135 Try to fix bug#5314. This is probably not the final word, tho.
4136 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4137 recent-auto-save-p as a side-effect.
4138 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4139 * buffer.c (Fkill_buffer, reset_buffer):
4140 * editfns.c (Fsubst_char_in_region):
4141 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4142 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4143
4144 2010-01-13 Kenichi Handa <handa@m17n.org>
4145
4146 Display buffer name, etc. in mode line by composing correctly.
4147
4148 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4149 STRING is not nil.
4150 (display_mode_element): Adjust for the change of
4151 decode_mode_spec and display_line.
4152 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4153 (display_string): Handle the case that STRING is non-null and
4154 LISP_STRING is not nil.
4155
4156 * xterm.c (x_draw_composite_glyph_string_foreground):
4157 Pay attention to s->face->overstrike.
4158
4159 * composite.c (composition_reseat_it): Don't check PT if STRING is
4160 non nil.
4161
4162 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4163
4164 * keyboard.c (read_char): Don't apply previous change when current
4165 buffer is unchanged by command execution.
4166
4167 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4168
4169 * keyboard.c (read_char): Return after executing from special map.
4170
4171 2010-01-12 Glenn Morris <rgm@gnu.org>
4172
4173 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4174 bug-gnu-emacs rather than emacs-pretest-bug.
4175
4176 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
4177
4178 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4179 initializing the Lisp variables that depend on them.
4180
4181 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4182
4183 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4184 Clear areas that will not be updated after change of menu bar lines.
4185 Clear the menu bar window's current matrix when the window gets empty.
4186
4187 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
4188
4189 * intervals.h, textprop.c (extend_property_ranges): Return value
4190 and args changed. Discard properties that begin at or after the
4191 new end (Bug#5306).
4192
4193 * editfns.c (Fformat): Caller changed.
4194
4195 * nsterm.m (ns_set_default_prefs): Delete function.
4196 (syms_of_nsterm): Initialize ns_command_modifier,
4197 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4198 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4199
4200 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4201 position (Bug#4040).
4202
4203 2010-01-09 Eli Zaretskii <eliz@gnu.org>
4204
4205 * editfns.c (Ffloat_time): Doc fix.
4206
4207 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4208
4209 * xfns.c (Fx_create_frame): Don't create frame larger than display
4210 by default bug#3643.
4211
4212 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4213
4214 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4215 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4216 windows above internal border.
4217
4218 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4219 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4220 windows above internal border.
4221
4222 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4223 tool bar windows specially.
4224
4225 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4226
4227 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4228 specially.
4229 (XTflash): Take account of menu bar height.
4230
4231 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4232 specially.
4233
4234 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4235
4236 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4237 also be true before we can return early (bug #5339).
4238
4239 2010-01-06 David Reitter <david.reitter@gmail.com>
4240
4241 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4242 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4243 (Bug#3233).
4244
4245 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4246
4247 * font.c (font_open_entity): Enable chache and call cached_font_ok
4248 for the driver if defined.
4249 (QCuser_spec): New symbol.
4250 (font_spec_from_name): Save name as user-spec.
4251 (font_load_for_lface): Keep user-spec instead of name.
4252 (font_open_by_name): Save name as user-spec.
4253 (syms_of_font): Initialize QCuser_spec.
4254 (font_clear_prop): Clear name if it exists in font (bug#5157).
4255
4256 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4257 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4258 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4259
4260 * font.h (struct font_driver): Add cached_font_ok.
4261
4262 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4263
4264 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4265
4266 * xterm.c (x_new_font): Move code for setting rows/cols before
4267 resizing ...
4268 (x_set_window_size): ... to here. Bug #2568.
4269
4270 * gtkutil.c (xg_clear_under_internal_border): New function.
4271 (xg_frame_resized, xg_frame_set_char_size):
4272 Call xg_clear_under_internal_border.
4273 (xg_update_scrollbar_pos): Clear under old scroll bar position.
4274
4275 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * keyboard.c (read_key_sequence): Catch keyboard switch after
4278 making a new tty frame (Bug#5095).
4279
4280 2010-01-05 Kenichi Handa <handa@m17n.org>
4281
4282 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4283
4284 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4285
4286 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4287 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4288 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4289
4290 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
4291
4292 * dbusbind.c (xd_add_watch): Improve debug message.
4293 (xd_remove_watch): Improve debug message. If DATA is the session
4294 bus, unset D-Bus session environment.
4295 (Fdbus_init_bus): Pass the bus as argument to
4296 dbus_connection_set_watch_functions. (Bug#5283)
4297
4298 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
4299
4300 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4301
4302 * lread.c (syms_of_lread): Make it clearer that these are the
4303 names of loaded files (Bug#5068).
4304
4305 * eval.c (run_hook_with_args): Handle the case where the global
4306 value has the obsolete single-function form (Bug#5026).
4307
4308 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
4309
4310 * minibuf.c (Fall_completions): Minor optimization.
4311
4312 2009-12-26 Eli Zaretskii <eliz@gnu.org>
4313
4314 * .gdbinit (pgx): Fix display of composite glyphs.
4315 Display cmp.from and cmp.to as well.
4316 (pitx): Fix last change.
4317
4318 2009-12-25 Kenichi Handa <handa@m17n.org>
4319
4320 * composite.h (composition_adjust_point): Update prototype.
4321
4322 * composite.c (composition_reseat_it): Don't make a composition
4323 spanning over point.
4324 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4325 composable characters.
4326 (composition_adjust_point): New arg NEW_PT. Callers changed.
4327
4328 * keyboard.c (command_loop_1): Force redisplay if the last point
4329 was within a composition.
4330 (adjust_point_for_property): Don't adjust point for automatic
4331 composition when called after buffer modification.
4332
4333 2009-12-19 Eli Zaretskii <eliz@gnu.org>
4334
4335 * .gdbinit (pitx): Don't use enum names, use their values.
4336 Remove reference to non-existing value GET_FROM_COMPOSITION.
4337 (pgx): Don't use enum names, use their values.
4338 (pitmethod): New helper command.
4339 (pitx): Use it to display iteration method.
4340 (pgrowit): New command.
4341
4342 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4343
4344 Update dependencies in Makefile.in.
4345
4346 * Makefile.in (alloc.o): Depend on termhooks.h.
4347 (atimer.o): Depend on blockinput.h.
4348 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4349 and frame.h.
4350 (callint.o): Depend on systime.h, coding.h, and composite.h.
4351 (callproc.o): Depend on buffer.h.
4352 (casefiddle.o): Don't depend on charset.h.
4353 (casetab.o): Depend on character.h.
4354 (ccl.o): Depend on composite.h.
4355 (chartab.o): Depend on ccl.h.
4356 (cm.o): Depend on dispextern.h.
4357 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4358 (coding.o): Don't depend on $(INTERVALS_H).
4359 (composite.o): Don't depend on dispextern.h explicitly (it's in
4360 $(INTERVALS_H)). Depend on ccl.h.
4361 (data.o): Depend on systime.h, coding.h, composite.h,
4362 dispextern.h, font.h, and ccl.h.
4363 (dired.o): Depend on composite.h.
4364 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4365 composite.h (it's in $(INTERVALS_H)).
4366 (doc.o): Depend on systime.h, coding.h, and composite.h.
4367 (editfns.o): Don't depend explicitly on dispextern.h.
4368 (emacs.o): Depend on frame.h and coding.h.
4369 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4370 (fileio.o): Depend on frame.h and commands.h. Don't depend
4371 explicitly on dispextern.h.
4372 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4373 composite.h.
4374 (fns.o): Don't depend on termhooks.h.
4375 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4376 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4377 coding.h, $(INTERVALS_H), window.h, xterm.h.
4378 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4379 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4380 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4381 fontset.h, ccl.h, and ftfont.h.
4382 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4383 (gtkutil.o): Depend on dispextern.h and composite.h.
4384 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4385 termhooks.h, and ccl.h.
4386 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4387 (intervals.o): Depend on systime.h and coding.h.
4388 (keyboard.o): Depend on composite.h and coding.h.
4389 (keymap.o): Depend on coding.h and frame.h.
4390 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4391 (macros.o): Depend on systime.h, coding.h, and composite.h.
4392 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4393 and atimer.h.
4394 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4395 dispextern.h explicitly.
4396 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4397 Don't depend explicitly on dispextern.h and composite.h.
4398 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4399 (regex.o): Don't depend on charset.h.
4400 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4401 (search.o): Don't depend explicitly on composite.h.
4402 (sound.o): Depend on atimer.h and systime.h.
4403 (syntax.o): Don't depend explicitly on composite.h.
4404 (sysdep.o): Depend on coding.h and composite.h.
4405 (term.o): Depend on xterm.h and buffer.h.
4406 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4407 (textprop.o): Don't depend on dispextern.h explicitly.
4408 (undo.o): Depend on dispextern.h.
4409 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4410 dispextern.h and composite.h explicitly.
4411 (xdisp.o): Depend on ccl.h.
4412 (xfaces.o): Depend on coding.h and ccl.h.
4413 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4414 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4415 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4416 ftfont.h.
4417 (xgselect.o): New dependency.
4418 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4419 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4420 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4421 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4422 (xsmfns.o): Depend on frame.h and dispextern.h.
4423 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4424 sysselect.h.
4425
4426 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4427
4428 * font.c (Fclear_font_cache): Pass correct cache argument to
4429 font_clear_cache.
4430
4431 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4432
4433 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4434 twice.
4435
4436 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
4437
4438 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4439 calling file-remote-p. Reported by Jim Meyering.
4440
4441 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
4442
4443 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
4444 avoid compiler warnings. (Bug #5217)
4445
4446 2009-12-14 Kenichi Handa <handa@m17n.org>
4447
4448 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4449 in 8-bit encoding.
4450
4451 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
4452
4453 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4454 tooltip windows.
4455
4456 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4457
4458 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4459 Xatom_net_window_type.
4460
4461 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4462 Xatom_net_window_type.
4463
4464 * xterm.c (my_log_handler): New function.
4465 (x_term_init): Set my_log_handler as log handler during gtk_init
4466 so we can filter out buggy messages. (Bug #5120).
4467
4468 * xterm.c (xg_scroll_callback): Parameter list changed,
4469 use parameter GtkScrollType to determine scroll/line/page.
4470 Only allow dragging if a button < 4 is grabbed (bug #5177).
4471 (xg_end_scroll_callback): New function.
4472 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4473 xg_create_scroll_bar.
4474
4475 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4476 (scroll_end_callback): Remove.
4477 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4478 button-release-event. Replace value-changed event with change-value,
4479 bug #5177,
4480 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4481 bug #5177.
4482
4483 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4484 (xg_create_scroll_bar): Add GCallback end_callback.
4485
4486 * xftfont.c (QClcdfilter): New variable.
4487 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4488 (syms_of_xftfont): Initialize QClcdfilter.
4489
4490 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4491
4492 * xsettings.c (struct xsettings): Add member seen.
4493 (parse_xft_settings): Update member seen with what we have read.
4494 Return non-zero if Xft-settings have been parsed, 0 otherwise.
4495 (apply_xft_settings): Only update Xft settings with what member seen
4496 indicates as new.
4497
4498 2009-12-12 Eli Zaretskii <eliz@gnu.org>
4499
4500 * dispextern.h (struct text_pos): Use EMACS_INT;
4501 (struct glyph): Use EMACS_INT for charpos.
4502 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4503 region_beg_charpos, region_end_charpos,
4504 redisplay_end_trigger_charpos, and also for
4505 iterator_stack_entry.end_charpos and
4506 iterator_stack_entry.stop_charpos.
4507
4508 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4509
4510 * gtkutil.c (scroll_end_callback): New function (bug #5177).
4511 (xg_create_scroll_bar): Call scroll_end_callback on button release
4512 event (bug #5177).
4513 (xg_event_is_for_scrollbar): != replaced with ==.
4514
4515 2009-12-12 Kenichi Handa <handa@m17n.org>
4516
4517 * ftfont.c (struct ftfont_info): New member matrix.
4518 (ftfont_open): Setup xftfont_info->matrix.
4519 (MFLTFontFT): New member matrix.
4520 (FLOOR, CEIL, ROUND): New macros.
4521 (ftfont_get_metrics): Handle matrix transformation.
4522 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4523
4524 * xftfont.c (struct xftfont_info): New member matrix.
4525 (xftfont_open): Setup xftfont_info->matrix.
4526
4527 2009-12-10 Kenichi Handa <handa@m17n.org>
4528
4529 * xdisp.c (append_space_for_newline): Consider face-remapping.
4530
4531 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4532
4533 * xsettings.c: Include "keyboard.h".
4534
4535 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4536
4537 Fix implicit function declarations.
4538 * cmds.c: Include "frame.h".
4539 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4540 * frame.h: Move declaration of delete_frame outside of
4541 HAVE_WINDOW_SYSTEM.
4542
4543 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4544
4545 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4546
4547 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4548 GTK builds.
4549
4550 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4551
4552 * unexelf.c (unexec): Don't search for .data twice.
4553
4554 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
4555
4556 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4557 if push failed.
4558 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4559 of push_display_prop (Bug#5000).
4560
4561 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4562 value of font_list_entities (Bug#5085).
4563
4564 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
4565
4566 Fix `string-to-number' to deal consistently with integers and floats.
4567 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4568 trailing characters, not just whitespace.
4569 (read1): Pass new arg 0 to keep old behavior.
4570 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4571 trailing chars, as it is already done for integers. Doc fixes.
4572 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4573
4574 2009-12-04 Eli Zaretskii <eliz@gnu.org>
4575
4576 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4577 Delete unused enumeration value.
4578
4579 2009-12-03 Eli Zaretskii <eliz@gnu.org>
4580
4581 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4582
4583 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4584
4585 * process.c (Fmake_network_process): Fix up the tests for
4586 "connectionless socket", so they DTRT for seqpacket sockets as well.
4587
4588 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4589
4590 * process.c (Qseqpacket): New symbol.
4591 (HAVE_SEQPACKET): New macro.
4592 (Fmake_network_process): Accept new :type `seqpacket'.
4593 (init_process): Add `seqpacket' feature when applicable.
4594 (syms_of_process): Initialize Qseqpacket.
4595
4596 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4597
4598 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4599 if entity is Qnil.
4600
4601 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4602
4603 * print.c (print_preprocess): Preprocess the key_and_value table of
4604 hashtables, even tho they're "hidden" (bug#5082).
4605
4606 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4607
4608 * frame.c (frame_make_pointer_invisible)
4609 (frame_make_pointer_visible): Declare f before statements.
4610
4611 2009-11-28 Eli Zaretskii <eliz@gnu.org>
4612
4613 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4614 omitted dependencies on lisp.h.
4615
4616 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4617
4618 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4619 is NULL.
4620
4621 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4622
4623 * frame.c (frame_make_pointer_invisible)
4624 (frame_make_pointer_visible): Just return if there isn't any selected
4625 frame.
4626
4627 * search.c (simple_search): Remove warning by making *p const.
4628
4629 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4630
4631 * xdisp.c (power_letter): Remove duplicate const.
4632
4633 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4634
4635 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4636
4637 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
4638 defaults (bug #5025).
4639
4640 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4641
4642 * insdel.c (adjust_markers_for_delete): Move it in the
4643 right direction! (bug#4803)
4644
4645 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4646
4647 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4648
4649 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4650
4651 2009-11-24 Glenn Morris <rgm@gnu.org>
4652
4653 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4654
4655 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4656
4657 * Makefile.in: Must create deps for ecrt0.o in its rule.
4658
4659 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4660 because that is what Gtk+ font dialog understands.
4661
4662 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4663 of Fcopy_sequence.
4664 (font_open_by_name): Put name given into QCname for font-object returned.
4665
4666 * frame.c (x_set_font): Save original font name as frame parameter
4667 font-parameter.
4668
4669 * xsettings.c (set_default_xft_settings): New function.
4670 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4671 is found.
4672
4673 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4674
4675 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4676 searching backwards through multibyte buffer.
4677
4678 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4679
4680 * xterm.c: #include xgselect.h.
4681 (x_initialize): Call xgselect_initialize.
4682
4683 * xsettings.c (something_changedCB): C++ comments => C comments.
4684 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4685 does that now.
4686
4687 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4688 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4689 (scroll_bar_button_cb): Remove.
4690 (create_menus): C++ comments => C comments. Don't bind grab-notify
4691 event.
4692 (xg_create_scroll_bar): Don't bind button-press-event and
4693 button-release-event.
4694
4695 * process.c: Include xgselect.h if defined (USE_GTK) ||
4696 defined (HAVE_GCONF).
4697 (wait_reading_process_output): Call xg_select for the same condition.
4698
4699 * xgselect.c (xg_select): New function to better integrate with
4700 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4701
4702 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4703
4704 * Makefile.in (XOBJ): Add xgselect.o.
4705
4706 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4707
4708 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4709 Remove ignored second argument. All callers changed.
4710 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4711 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4712 * xdisp.c (string_char_and_length): Likewise.
4713
4714 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4715
4716 * xterm.c (x_new_font):
4717 * print.c (print_object):
4718 * cmds.c (Fself_insert_command): Move declarations before statements.
4719
4720 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4721
4722 * s/cygwin.h: Remove unneeded linker flags.
4723
4724 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4725
4726 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4727
4728 * xsettings.h: Declare xsettings_get_system_font.
4729
4730 * xsettings.c (xsettings_get_system_font): New function.
4731 (init_gconf): No use initiating gconf unless we have Xft also.
4732 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4733 HAVE_GCONF.
4734
4735 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4736 add a blank entry so it doesn't collapse into nothing.
4737
4738 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4739
4740 * lread.c (Funintern): Comment out last change.
4741
4742 2009-11-19 Richard Stallman <rms@gnu.org>
4743
4744 * lread.c (Funintern): Error if symbol is t or nil.
4745
4746 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4747
4748 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4749 representation of Lisp integers.
4750 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4751
4752 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4753
4754 * lisp.h: Remove declaration of Ffont_get_system_font.
4755 * xfns.c: Move include of "xsettings.h".
4756 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4757
4758 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4759
4760 * xsettings.c (something_changedCB, Ffont_get_system_font):
4761 Check use_system_font.
4762 (syms_of_xsettings): DEFVAR font-use-system-font.
4763
4764 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4765
4766 * xfns.c (x_default_font_parameter): Remove dead assignment.
4767
4768 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4769
4770 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4771
4772 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
4773 not have FC_LCD_*. #define them if not there.
4774
4775 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
4776
4777 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4778
4779 * xterm.c (handle_one_xevent): Call xft_settings_event for
4780 ClientMessage, PropertyNotify and DestroyNotify.
4781 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4782 Call xsettings_initialize.
4783
4784 * xftfont.c (xftfont_fix_match): New function.
4785 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4786 Call xftfont_fix_match after XftFontMatch.
4787
4788 * xfont.c (xfont_driver): Initialize all members.
4789
4790 * xfns.c (x_default_font_parameter):
4791 Try font from Ffont_get_system_font.
4792 Do not get font from x_default_parameter if we got one from
4793 Ffont_get_system_font.
4794 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
4795
4796 * w32font.c (w32font_driver): Initialize all members.
4797
4798 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4799
4800 * lisp.h: Declare syms_of_xsettings.
4801
4802 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4803 Handle CONFIG_CHANGED_EVENT.
4804
4805 * ftfont.c (ftfont_filter_properties): New function.
4806
4807 * frame.c (x_set_font): Remove unused variable lval.
4808
4809 * font.h (struct font_driver): Add filter_properties.
4810
4811 * font.c (font_put_extra): Don't return if val is nil, it means
4812 boolean option is off.
4813 (font_parse_fcname): Collect all extra properties in extra_props
4814 and call filter_properties for all drivers with extra_props and
4815 font as parameter.
4816 (font_open_entity): Do not use cache, it does not pick up new
4817 fontconfig settings like hinting.
4818 (font_load_for_lface): If spec had a name in it, store it in entity.
4819
4820 * emacs.c (main): Call syms_of_xsettings.
4821
4822 * config.in: HAVE_GCONF is new.
4823
4824 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4825 xsettings.o is new.
4826
4827 2009-11-17 Kenichi Handa <handa@m17n.org>
4828
4829 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4830 back to the default font in case that no suitable font is found.
4831
4832 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4833
4834 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4835 Suggested by Chad Brown <yandros@mit.edu>.
4836 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4837
4838 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4839
4840 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4841
4842 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4843
4844 * Makefile.in: Ignore errors from mkdir when creating deps directory.
4845
4846 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4847
4848 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4849 has a parent.
4850
4851 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
4852 dependency files in deps/. Include those files into Makefile.
4853
4854 * config.in: Generated (AUTO_DEPEND).
4855
4856 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
4857
4858 * dbusbind.c (Vdbus_registered_objects_table): Rename from
4859 Vdbus_registered_functions_table, because it contains also
4860 properties. Fix docstring.
4861 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
4862
4863 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4864
4865 * alloc.c (mark_object): Don't reprocess marked strings.
4866 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4867 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4868
4869 2009-11-13 Kenichi Handa <handa@m17n.org>
4870
4871 * category.c (word_boundary_p): Adjust for the change of the
4872 semantics of Vword_combining_categories.
4873 (Vword_combining_categories): Describe the slight change of the
4874 semantics.
4875
4876 2009-11-13 Eli Zaretskii <eliz@gnu.org>
4877
4878 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4879
4880 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4881
4882 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4883
4884 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4885
4886 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
4887
4888 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4889
4890 2009-11-11 David Reitter <david.reitter@gmail.com>
4891
4892 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4893 variables to fix 2009-11-09 change.
4894
4895 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4896
4897 * process.c (ifflag_def): Make flag_sym constant.
4898 (Fnetwork_interface_info): Use a constant pointer.
4899 (ifflag_table):
4900 * xfns.c (cursor_bits):
4901 * xdisp.c (power_letter):
4902 * termcap.c (speeds, esctab):
4903 * sysdep.c (baud_convert):
4904 * keyboard.c (lispy_accent_codes, modifier_names):
4905 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4906 (jpeg_format, tiff_format, gif_format, svg_format)
4907 (interlace_start, interlace_increment, gs_format):
4908 * gtkutil.c (separator_names):
4909 * fringe.c (swap_nibble):
4910 * fns.c (base64_value_to_char, base64_char_to_value):
4911 * fileio.c (make_temp_name_tbl):
4912 * coding.c (suffixes): Make constant.
4913
4914 * frame.c (make_initial_frame):
4915 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4916 build_string.
4917 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4918
4919 * s/freebsd.h:
4920 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4921
4922 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4923 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4924
4925 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4926 * xterm.c (syms_of_xterm):
4927 * xfaces.c (syms_of_xfaces):
4928 * xdisp.c (syms_of_xdisp):
4929 * lread.c (syms_of_lread):
4930 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4931 build_string.
4932
4933 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4934
4935 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4936
4937 * fns.c (Fplist_get): Merge the active and the commented out code.
4938
4939 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4940
4941 * keyboard.h: Declare timer_check.
4942
4943 * keyboard.c (timer_check_2): New function that does what the old
4944 timer_check did.
4945 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4946 returned, i.e. don't return -1 with timers pending.
4947
4948 * process.c: Remove extern declaration of timer_check.
4949
4950 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4951 even if timer_check returned -1.
4952
4953 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4954 xg_dialog_data.
4955 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4956 the event loop.
4957 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4958 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4959 Destroy the dialog after xg_dialog_run.
4960
4961 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4962
4963 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4964
4965 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4966
4967 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4968
4969 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
4970
4971 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4972
4973 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4974
4975 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4976 w32menu.c, and nsmenu.m.
4977 Simplify the obsolete case where position is nil.
4978 (cleanup_popup_menu): New function, moved from nsmenu.m.
4979 (struct skp): Remove slot `notreal'.
4980 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4981 adjust callers.
4982 (single_menu_item): Adjust call to parse_menu_item.
4983 (syms_of_menu): Defsubr x-popup-menu.
4984 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4985 (keymap_panes): Don't export any more.
4986 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4987 (xmenu_show): Declare.
4988 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4989 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4990 * keyboard.h (parse_menu_item): Update declaration.
4991 * xmenu.c (Fx_popup_menu): Remove.
4992 (syms_of_xmenu): Don't defsubr x-popup-menu.
4993 * w32menu.c (Fx_popup_menu): Remove.
4994 (syms_of_w32menu): Don't defsubr x-popup-menu.
4995 * nsmenu.m (cleanup_popup_menu): Remove.
4996 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4997 moved to menu.c's Fx_popup_menu.
4998 (Fx_popup_menu): Remove.
4999 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5000 menu_items (it's done in menu.c already).
5001
5002 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5003
5004 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5005 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5006
5007 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5008
5009 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5010 xmenu_show. Hide any tooltip before opening a menu.
5011 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5012 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5013
5014 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5015
5016 Let integers use up 2 tags to give them one extra bit and thus double
5017 their range.
5018 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5019 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5020 New macros.
5021 (enum Lisp_Type): Use them. Give explicit values.
5022 (Lisp_Type_Limit): Remove.
5023 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5024 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5025 Pay attention to USE_2_TAGS_FOR_INTS.
5026 (INTEGERP): Use LISP_INT_TAG_P.
5027 * fns.c (internal_equal): Simplify the default case.
5028 (sxhash): Use case_Lisp_Int.
5029 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5030 any more.
5031 (Ftype_of): Use case_Lisp_Int.
5032 (store_symval_forwarding): Take into account the fact that Ints can
5033 now have more than one tag.
5034 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5035 buffer_slot_type_mismatch):
5036 * xfaces.c (face_attr_equal_p):
5037 * print.c (print_object):
5038 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5039 Use case_Lisp_Int.
5040
5041 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5042
5043 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5044
5045 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5046 warning.
5047
5048 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5049
5050 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5051
5052 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5053
5054 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5055 ButtonPressRelease and MotionNotify (bug#4870).
5056
5057 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5058
5059 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5060
5061 * xterm.c (syms_of_xterm):
5062 * xselect.c (syms_of_xselect):
5063 * xmenu.c (syms_of_xmenu):
5064 * xfns.c (syms_of_xfns):
5065 * xfaces.c (syms_of_xfaces):
5066 * xdisp.c (syms_of_xdisp):
5067 * window.c (syms_of_window):
5068 * w32fns.c (syms_of_w32fns):
5069 * undo.c (syms_of_undo):
5070 * textprop.c (syms_of_textprop):
5071 * terminal.c (syms_of_terminal):
5072 * syntax.c (syms_of_syntax):
5073 * sound.c (syms_of_sound):
5074 * search.c (syms_of_search):
5075 * print.c (syms_of_print):
5076 * minibuf.c (syms_of_minibuf):
5077 * macros.c (syms_of_macros):
5078 * keymap.c (syms_of_keymap, initial_define_key)
5079 (initial_define_lispy_key):
5080 * keyboard.c (syms_of_keyboard):
5081 * insdel.c (syms_of_insdel):
5082 * image.c (syms_of_image):
5083 * fringe.c (syms_of_fringe):
5084 * frame.c (syms_of_frame):
5085 * fontset.c (syms_of_fontset):
5086 * fns.c (syms_of_fns):
5087 * fns.c (syms_of_fns):
5088 * fileio.c (syms_of_fileio):
5089 * fileio.c (syms_of_fileio):
5090 * eval.c (syms_of_eval):
5091 * doc.c (syms_of_doc):
5092 * dispnew.c (syms_of_display):
5093 * dired.c (syms_of_dired):
5094 * dbusbind.c (syms_of_dbusbind):
5095 * data.c (syms_of_data):
5096 * composite.c (syms_of_composite):
5097 * coding.c (syms_of_coding):
5098 * cmds.c (syms_of_cmds):
5099 * charset.c (define_charset_internal, syms_of_character):
5100 * ccl.c (syms_of_ccl):
5101 * category.c (syms_of_category, init_category_once):
5102 * casetab.c (syms_of_casetab):
5103 * casefiddle.c (syms_of_casefiddle):
5104 * callint.c (syms_of_callint):
5105 * bytecode.c (syms_of_bytecode):
5106 * buffer.c (keys_of_buffer, syms_of_buffer):
5107 * alloc.c (syms_of_alloc):
5108 * process.c (syms_of_process, init_process):
5109 * lread.c (syms_of_lread, init_obarray):
5110 * font.c (build_style_table):
5111 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5112 intern_c_string, calls to make_pure_string with
5113 make_pure_c_string. Use pure_cons instead of Fcons.
5114
5115 * process.c (socket_options): Make it const.
5116 (set_socket_option, init_process): Use a const pointer.
5117
5118 * lread.c (intern_c_string): New function.
5119 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5120 (defvar_int): Uset it. Make the name const char*.
5121
5122 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5123 (defvar_int): Update prototypes.
5124 (DEFUN, EXFUN): Support for prototypes is now required.
5125 (intern_c_string): New prototype.
5126 (struct Lisp_Subr): Make symbol_name constant.
5127
5128 * font.c (struct table_entry): Remove unused member. Make NAMES
5129 constant.
5130 (weight_table, slant_table, width_table): Make constant.
5131
5132 * emacs.c (struct standard_args): Make name and longname constant.
5133
5134 * character.h (DEFSYM): Use intern_c_string.
5135
5136 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5137
5138 * alloc.c (make_pure_c_string): New function.
5139
5140 * eval.c (Fautoload): Purecopy all arguments.
5141
5142 2009-11-05 Kenichi Handa <handa@m17n.org>
5143
5144 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5145 the buffer in case of replace.
5146
5147 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5148
5149 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5150
5151 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5152
5153 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5154 when applicable (bug#4851).
5155
5156 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5157 (P_): Support for prototypes is now required.
5158
5159 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
5160
5161 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5162 (Bug#4827).
5163
5164 2009-10-30 Eli Zaretskii <eliz@gnu.org>
5165
5166 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5167
5168 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5169
5170 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5171
5172 * lread.c (Fload): Purecopy the file name when building
5173 Vpreloaded_file_list.
5174
5175 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5176
5177 * w32fns.c (syms_of_w32fns): Change default value of
5178 w32-scroll-lock-modifier to nil. (Bug#2827)
5179
5180 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5181
5182 * minibuf.c (Fall_completions): Fix typos in docstring.
5183
5184 2009-10-26 Andreas Schwab <schwab@redhat.com>
5185
5186 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5187
5188 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5189
5190 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5191 For delta < 0, skip check that only makes sense when the mini-window
5192 is going to be enlarged. (Bug#4534)
5193
5194 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
5195
5196 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5197 string in menu maps (Bug#4471).
5198
5199 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
5200
5201 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5202 FRAME_NS_VIEW on terminal frames (Bug#4765).
5203
5204 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5205
5206 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5207 DBUS_TYPE_UINTnn separately to get proper sign extension.
5208
5209 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5210 can properly handle unsigned types.
5211 (make_uid, make_gid): Remove.
5212
5213 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5214 types again.
5215
5216 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5217 (system_process_attributes): Likewise.
5218
5219 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5220
5221 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5222
5223 * eval.c (Fautoload): Purecopy the filename. Simplify.
5224
5225 * category.c (Fdefine_category): Purecopy docstring.
5226
5227 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5228
5229 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5230
5231 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5232
5233 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5234
5235 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5236 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5237 (Bug#4775).
5238
5239 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5240
5241 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5242 (init_fileio_once):
5243 * lisp.h (init_fileio_once): Remove.
5244 * emacs.c (main): Don't call init_fileio_once.
5245
5246 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5247
5248 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5249
5250 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5251
5252 * doprnt.c (doprnt): Fix overflow check.
5253
5254 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5255
5256 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5257
5258 * xterm.h (x_wait_for_event): Declare it.
5259
5260 * xterm.c (pending_event_wait): New variable.
5261 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5262 see pending_event_wait.eventtype.
5263 (handle_one_xevent): Don't change gravity when parent changes.
5264 (x_new_font): Call change_frame_size with new rows/columns before we
5265 try to resize the frame.
5266 (x_wait_for_event): New function.
5267 (x_set_window_size_1): Don't change gravity unless change_gravity
5268 is set.
5269 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5270 don't change frame size, instead wait for the ConfigureNotify.
5271 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5272 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5273 (x_initialize): Initialize pending_event_wait.
5274
5275 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5276 size.
5277
5278 * widget.c (EmacsFrameSetValues): Add comment.
5279 (EmacsFrameSetCharSize): Just call x_set_window_size.
5280
5281 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5282 x_wait_for_event.
5283 (flush_and_sync): Remove again.
5284 (xg_get_font_name): Suggest monospace if no previous font is known.
5285
5286 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5287
5288 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5289 8th bit, since that only made sense in the ASCII world (bug#4751).
5290
5291 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5292
5293 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5294 processing pending events when event is filtered for input method.
5295 (Bug#3681)
5296
5297 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
5298
5299 * fns.c: Add #endif accidentally removed in previous change.
5300
5301 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5302
5303 * fns.c: Remove code for unsupported system: MAC_OS.
5304 * image.c: Likewise. Include setjmp.h.
5305
5306 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5307
5308 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5309 pixel -1 (bug #4742).
5310
5311 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5312
5313 * process.c (create_pty): Remove conditionals for no longer
5314 supported systems: UNIPLUS and RTU.
5315
5316 * xterm.c:
5317 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5318
5319 * alloc.c: Do not define struct catchtag.
5320 * eval.c: Move struct catchtag definition ...
5321 * lisp.h: ... here.
5322
5323 * image.c: Move png.h #include earlier to avoid warnings.
5324
5325 * xterm.c:
5326 * xsmfns.c:
5327 * xselect.c:
5328 * xrdb.c:
5329 * xmenu.c:
5330 * xftfont.c:
5331 * xfont.c:
5332 * xfns.c:
5333 * xfaces.c:
5334 * xdisp.c:
5335 * window.c:
5336 * widget.c:
5337 * w32xfns.c:
5338 * w32uniscribe.c:
5339 * w32term.c:
5340 * w32select.c:
5341 * w32reg.c:
5342 * w32proc.c:
5343 * w32menu.c:
5344 * w32inevt.c:
5345 * w32heap.c:
5346 * w32font.c:
5347 * w32fns.c:
5348 * w32console.c:
5349 * w32.c:
5350 * w16select.c:
5351 * vm-limit.c:
5352 * unexsol.c:
5353 * unexec.c:
5354 * unexcw.c:
5355 * unexaix.c:
5356 * undo.c:
5357 * tparam.c:
5358 * textprop.c:
5359 * terminfo.c:
5360 * terminal.c:
5361 * termcap.c:
5362 * term.c:
5363 * syntax.c:
5364 * sound.c:
5365 * sheap.c:
5366 * search.c:
5367 * scroll.c:
5368 * region-cache.c:
5369 * regex.c:
5370 * ralloc.c:
5371 * process.c:
5372 * print.c:
5373 * nsterm.m:
5374 * nsselect.m:
5375 * nsmenu.m:
5376 * nsimage.m:
5377 * nsfont.m:
5378 * nsfns.m:
5379 * msdos.c:
5380 * minibuf.c:
5381 * menu.c:
5382 * marker.c:
5383 * macros.c:
5384 * keymap.c:
5385 * keyboard.c:
5386 * intervals.c:
5387 * insdel.c:
5388 * indent.c:
5389 * gtkutil.c:
5390 * ftxfont.c:
5391 * ftfont.c:
5392 * fringe.c:
5393 * frame.c:
5394 * fontset.c:
5395 * font.c:
5396 * fns.c:
5397 * floatfns.c:
5398 * filelock.c:
5399 * fileio.c:
5400 * emacs.c:
5401 * editfns.c:
5402 * dosfns.c:
5403 * doprnt.c:
5404 * doc.c:
5405 * dispnew.c:
5406 * dired.c:
5407 * dbusbind.c:
5408 * data.c:
5409 * composite.c:
5410 * coding.c:
5411 * cmds.c:
5412 * cm.c:
5413 * chartab.c:
5414 * charset.c:
5415 * character.c:
5416 * ccl.c:
5417 * category.c:
5418 * casetab.c:
5419 * casefiddle.c:
5420 * callproc.c:
5421 * callint.c:
5422 * bytecode.c:
5423 * buffer.c:
5424 * atimer.c: Include setjmp.h. (Bug#4643)
5425
5426 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5427
5428 Remove leftover table unibyte_to_multibyte_table.
5429 * character.c (unibyte_to_multibyte_table): Remove.
5430 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5431 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5432 * character.h (UNIBYTE_TO_CHAR): New macro.
5433 (MAKE_CHAR_MULTIBYTE): Use it.
5434 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5435 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5436 (message_dolog, set_message_1):
5437 * search.c (Freplace_match):
5438 * editfns.c (Fcompare_buffer_substrings):
5439 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5440 (concat):
5441 * insdel.c (copy_text, count_size_as_multibyte):
5442 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5443 * term.c (produce_glyphs):
5444 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5445 * regex.c (RE_CHAR_TO_MULTIBYTE):
5446 * cmds.c (internal_self_insert):
5447 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5448
5449 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5450
5451 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5452
5453 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5454
5455 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
5456
5457 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5458
5459 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5460
5461 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5462 still needed under Tiger.
5463
5464 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5465
5466 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5467 __Apple__.
5468
5469 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5470
5471 2009-10-15 Kenichi Handa <handa@m17n.org>
5472
5473 * print.c (print_object): Escape a symbol like "2E10" too.
5474
5475 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
5476
5477 Cleanups and changes for 64-bit compile under Snow Leopard.
5478 Based on suggestions by Erik Charlebois.
5479
5480 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5481
5482 * nsfont.m (ns_char_width): Replace deprecated call.
5483 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5484 cast argument.
5485 (nsfont_open): Use ns_char_width() everywhere.
5486 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
5487
5488 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5489
5490 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5491 where appropriate.
5492
5493 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5494 where appropriate.
5495 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5496 Use stringWithUTF8String.
5497 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5498
5499 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5500 Add formal protocol mention to inheritance.
5501 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5502
5503 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5504 Fix printf format.
5505 (ns_query_color): Use CGFloat where appropriate.
5506 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
5507 (EmacsScroller-mouseDown:): Use long format in printf, and cast
5508 argument.
5509
5510 * config.in (NS_HAVE_NSINTEGER): Drop.
5511
5512 * dbusbind.c (dbus-method-return-internal)
5513 (dbus-method-error-internal): Use long format in printf, and cast
5514 argument.
5515
5516 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5517 in printf, and cast argument.
5518
5519 * process.c (list_processes_1): Use long format in printf, and
5520 cast argument.
5521
5522 2009-10-11 Glenn Morris <rgm@gnu.org>
5523
5524 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5525
5526 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5527
5528 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5529 menu bar with a small width so it doesn't enlarge the frame.
5530
5531 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
5532
5533 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5534
5535 2009-10-06 Glenn Morris <rgm@gnu.org>
5536
5537 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5538 SOME_MACHINE_LISP (this enters indirectly via DOC).
5539
5540 2009-10-05 Eli Zaretskii <eliz@gnu.org>
5541
5542 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5543
5544 2009-10-04 Eli Zaretskii <eliz@gnu.org>
5545
5546 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5547 Doc fix.
5548
5549 2009-10-03 Martin Rudalics <rudalics@gmx.at>
5550
5551 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5552
5553 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
5554
5555 * lisp.h (Qdelete_directory_internal): Remove, because it is not
5556 used anymore outside fileio.c.
5557
5558 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5559
5560 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
5561
5562 * lisp.h (Qdelete_directory_internal):
5563 Declare, instead of Qdelete_directory.
5564
5565 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5566
5567 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5568
5569 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5570
5571 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
5572
5573 * fileio.c (Fdelete_directory_internal): Rename from
5574 Fdelete_directory. It is not a command anymore. It has no file
5575 name handler.
5576
5577 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5578
5579 * xdisp.c (get_next_display_element): Use an enum in last change.
5580
5581 2009-09-28 Kenichi Handa <handa@m17n.org>
5582
5583 * xdisp.c (get_next_display_element): Pay attention to
5584 unibyte_display_via_language_environment in handling
5585 Vnobreak_char_display.
5586
5587 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5588
5589 * nsterm.h (ns_app_name): New extern variable.
5590
5591 * nsterm.m (ns_app_name): New variable.
5592 (ns_term_init): Set and use it.
5593 (ns_term_shutdown): Use it.
5594
5595 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5596 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5597
5598 * nsfns.m (ns_set_name_iconic, ns_set_name)
5599 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5600 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5601
5602 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5603 Remove double-casting in client_data comparison.
5604
5605 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5606
5607 * keyboard.c (make_lispy_event): Remember last wheel direction.
5608 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5609
5610 2009-09-26 Glenn Morris <rgm@gnu.org>
5611
5612 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5613 internal.elc. Add term/pc-win.elc.
5614 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5615 term/x-win.elc.
5616 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5617 term/w32-win.elc.
5618 (NS_SUPPORT): New.
5619 (lisp): Add NS_SUPPORT.
5620 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5621
5622 2009-09-25 David Reitter <david.reitter@gmail.com>
5623
5624 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5625 on Mac OS X 10.6+ (bug#4513).
5626
5627 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5628
5629 * frame.c (xrdb_get_resource): Return nil for empty string resources;
5630 some parts of Emacs code (like font selection) don't grok them.
5631 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
5632
5633 2009-09-24 Andreas Schwab <schwab@redhat.com>
5634
5635 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5636
5637 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
5638
5639 * dired.c (Fdirectory_files): Fix typo in docstring.
5640
5641 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5642
5643 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5644 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5645 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5646 under GNUstep.
5647 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5648
5649 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5650 glyph advancement.
5651
5652 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5653
5654 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
5655 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
5656
5657 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5658 deleted (bug #4492).
5659
5660 * nsfont.m (Vns_reg_to_script): New lisp variable.
5661 (syms_of_nsfont): Declare it.
5662 (ns_registry_to_script): New function.
5663 (ns_get_req_script): Call it.
5664 (ns_findfonts): Don't give up on non-unicode registry.
5665
5666 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5667
5668 2009-09-20 Tom Tromey <tromey@redhat.com>
5669
5670 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5671 batch mode (bug#4228).
5672
5673 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
5674
5675 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
5676 carefully. (Bug #4339)
5677
5678 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
5679
5680 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
5681
5682 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5683
5684 * emacs.c (inhibit_x_resources): Update doc string for NS.
5685 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
5686 legacy code for -NXHost. Fix error printf in daemon case.
5687
5688 * nsterm.h (ns_no_defaults): Remove.
5689
5690 * nsterm.m (ns_no_defaults): Remove.
5691 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5692 (ns_use_qd_smoothing): Remove legacy variable.
5693 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5694 don't update the NSWindow itself.
5695 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
5696 state detection and store user rect ourselves. (Bug #3581)
5697
5698 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5699 ns_use_qd_smoothing.
5700
5701 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5702 platform versions. Drop support for emacs-20-style face specs.
5703 (x-close-connection): Drop PSFlush() under OS X.
5704 (x-focus-frame): Activate the app first. (Bug #4180)
5705
5706 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
5707
5708 * emacs.c (inhibit_x_resources): New variable.
5709 (main) [HAVE_NS]: Don't process --quick command line option.
5710 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5711
5712 * lisp.h (inhibit_x_resources): Declare it extern.
5713
5714 * w32reg.c (x_get_string_resource):
5715 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5716
5717 2009-09-17 Eli Zaretskii <eliz@gnu.org>
5718
5719 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5720 Add lisp/term/internal.elc.
5721
5722 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5723
5724 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5725 (bug#4461).
5726
5727 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5728
5729 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5730
5731 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5732 (OBJECTS_MACHINE): Remove, unused.
5733
5734 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5735
5736 * frame.c (x_get_resource_string): Remove unused.
5737
5738 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5739
5740 * xterm.c (x_new_font): Call change_frame_size before calling
5741 x_set_window_size, in case frame size won't change.
5742
5743 * frame.c (x_set_font): Remove dead code.
5744
5745 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5746
5747 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5748
5749 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5750
5751 * lread.c (Fload): Don't output a message after loading an obsolete
5752 package any more (done in Lisp now).
5753
5754 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
5755
5756 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5757
5758 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5759
5760 * keymap.c (Fwhere_is_internal): Use nconc2.
5761
5762 2009-09-11 Alan Mackenzie <acm@muc.de>
5763
5764 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5765 batch mode.
5766
5767 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5768
5769 * xdisp.c (display_mode_element): Detect cycles.
5770
5771 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5772
5773 * keymap.c (where_is_internal): Don't erroneously return nil right after
5774 filling the cache.
5775 (where_is_internal_1): Fix up typo.
5776
5777 2009-09-11 Glenn Morris <rgm@gnu.org>
5778
5779 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5780 share a common doc-string.
5781
5782 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5783
5784 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5785 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5786
5787 * keymap.c (QCadvertised_binding): New constant.
5788 (syms_of_keymap): Initialize it.
5789 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5790 if applicable.
5791
5792 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5793
5794 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5795 (parse_menu_item): Streamline since bindings are recomputed all the
5796 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5797 more and don't support lmenu's menu-alias any more either.
5798
5799 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5800 (where_is_internal): Strip it down to only traverse the keymaps.
5801 Move the cache handling from Fwhere_is_internal to here.
5802 (Fwhere_is_internal): Move the handling of remapping and the choice of
5803 the best binding from where_is_internal to here.
5804 Unify the cached/noncached paths, so remapping is also handled
5805 correctly when the cache is used, and so the cache can be used to
5806 speed up remap-handling when applicable.
5807 Give preference to non-remapped bindings.
5808 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5809 non-remapped bindings.
5810 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5811 command remapping.
5812
5813 * xdisp.c (display_mode_element): Move list length limit from 50 to
5814 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5815
5816 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
5817
5818 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5819
5820 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5821
5822 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5823 (Bug#4334)
5824
5825 * keymap.c (where_is_internal): Filter out shadowed remappings.
5826 Assume that where_is_internal returns unshadowed bindings to simplify
5827 the code and get rid of the gotos. Use ASIZE.
5828
5829 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5830
5831 * xterm.c (x_focus_changed): If we get a focusout and pointer
5832 is invisible, make it visible.
5833
5834 * xterm.h: Remove condition for declaration of
5835 x_*_window_to_frame.
5836
5837 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5838
5839 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5840 initial terminal as well.
5841
5842 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5843
5844 * xterm.h: Rename x_non_menubar_window_to_frame to
5845 x_menubar_window_to_frame.
5846
5847 * xterm.c: Remove declarations also in xterm.h.
5848 (XTmouse_position): Do not return valid positions
5849 for clicks in the menubar and the toolbar for Gtk+.
5850
5851 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5852 if the widget for the event has the same top level as a frame,
5853 return the frame.
5854 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5855 internal windows, bug #4122.
5856 (x_non_menubar_window_to_frame): Remove.
5857
5858 2009-09-02 Glenn Morris <rgm@gnu.org>
5859
5860 * buffer.c (default-major-mode): Move most of the doc from here...
5861 (major-mode): ... to here.
5862
5863 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
5864
5865 * process.c (wait_reading_process_output): Keep the descriptor
5866 when pty is used by a non-child process, e.g., in I/O buffer of
5867 GDB this allows inferior to be restarted.
5868
5869 2009-08-29 Eli Zaretskii <eliz@gnu.org>
5870
5871 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5872 both branches into one.
5873
5874 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5875
5876 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5877 (main): Use enable-multibyte-characters rather than
5878 default-enable-multibyte-characters. Output a warning message when
5879 running a unibyte session.
5880
5881 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5882
5883 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5884 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5885 (copy_data_segment): Also copy __program_vars section.
5886 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5887 (dump_it) [LC_DYLD_INFO]: Use it.
5888
5889 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5890
5891 2009-08-28 Eli Zaretskii <eliz@gnu.org>
5892
5893 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5894 $(SRC)/buildobj.h.
5895 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5896 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5897 $(SRC)/buildobj.h.
5898 (clean): Add buildobj.h.
5899
5900 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5901
5902 * print.c (print_object): Set escapeflag to 1 when printing
5903 hashtable keys and values.
5904
5905 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5906
5907 * lread.c (read_integer): Use doubles (and potentially return a float
5908 number) as we do in string-to-number.
5909 (read1): Use strtol to read integers, signal errors on strtol's
5910 overflow and use floats if strtol's output is too large for
5911 Elisp integers.
5912
5913 2009-08-27 Eli Zaretskii <eliz@gnu.org>
5914
5915 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5916 (make-buildobj-SH): Fix last change.
5917 (SRC): Move to before where it's first used.
5918
5919 2009-08-27 Kenichi Handa <handa@m17n.org>
5920
5921 * process.c (send_process): Use encode_coding_object instead of
5922 encode_coding_string to perform eol-conversion even if the string
5923 is unibyte.
5924
5925 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5926 character.
5927
5928 * cmds.c (Fself_insert_command): Avoid unnecessay
5929 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
5930
5931 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5932
5933 * callproc.c (Fcall_process): Remove always true #if.
5934
5935 * lisp.h: Replace #if 0 code for checking with text pointing to
5936 the --enable-checking configure flag.
5937
5938 * emacs.c (main): Mention the --enable-profiling configure flag
5939 instead of using CFLAGS.
5940
5941 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
5942
5943 * Makefile.in (buildobj.h): New target.
5944 (doc.o): Depend on it.
5945 (temacs${EXEEXT}): Don't generate buildobj.lst.
5946 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5947 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5948 ($(BLD)/doc.$(O)): Depend on it.
5949 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5950 provided by Eli Zaretskii.)
5951 ($(TEMACS)): Don't generate buildobj.lst.
5952 * doc.c: Include buildobj.h.
5953 (buildobj): New static variable.
5954 (Fsnarf_documentation): Use it, instead of opening and reading
5955 buildobj.lst.
5956
5957 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
5958
5959 * dbusbind.c (Fdbus_call_method)
5960 (Fdbus_call_method_asynchronously): Use English numeric format for
5961 timeout values in doc string.
5962
5963 2009-08-25 Kenichi Handa <handa@m17n.org>
5964
5965 * alloc.c (mark_char_table): New function.
5966 (mark_object): Use mark_char_table for a char-table.
5967
5968 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5969 (CHAR_TABLE_REF): Use it.
5970
5971 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
5972
5973 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5974 before invoking the newly build emacs to check for load-path
5975 shadowing.
5976
5977 2009-08-22 Glenn Morris <rgm@gnu.org>
5978
5979 * Makefile.in (bootstrap_exe): New variable.
5980 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5981 Use ${bootstrap_exe}.
5982
5983 2009-08-22 Eli Zaretskii <eliz@gnu.org>
5984
5985 * coding.h (encode_coding_string): Don't encode unibyte strings.
5986 (Bug#4047)
5987
5988 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
5989
5990 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5991
5992 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5993 intended as hotfix only.
5994 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5995
5996 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5997
5998 * nsterm.m (ns_get_color): Update documentation properly for last
5999 change, and clean up loose ends in the code left by it. Fix
6000 longstanding bug with 16-bit hex parsing, and add support for
6001 yet another X11 format (rgb:r/g/b) for compatibility.
6002 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6003 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6004
6005 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6006
6007 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6008
6009 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6010
6011 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6012 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6013 (xd_initialize, xd_pending_messages): Check, whether
6014 $DBUS_SESSION_BUS_ADDRESS is set.
6015
6016 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6017
6018 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6019
6020 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6021
6022 2009-08-20 Glenn Morris <rgm@gnu.org>
6023
6024 * emacs.c (system-type): Doc fix.
6025
6026 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6027
6028 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6029 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6030
6031 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6032
6033 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6034 New functions.
6035 (xd_initialize): Revert change from 2009-08-16.
6036
6037 2009-08-18 Kenichi Handa <handa@m17n.org>
6038
6039 * fontset.c (Ffontset_font): If a nil element is found in a
6040 font-group vector, return nil.
6041
6042 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6043
6044 * process.c (status_notify): Don't perform redisplay.
6045 (Fdelete_process, list_processes_1, process_send_signal):
6046 Expliticly perform redisplay.
6047 (wait_reading_process_output): Always check process status, but
6048 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6049
6050 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6051
6052 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6053 (XFLOAT_INIT): New macro for storing a float value.
6054 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6055 * fns.c (sxhash): Copy out the value of a float in order to
6056 examine its bytes.
6057 * dbusbind.c (xd_append_arg): Likewise.
6058
6059 * emacs.c (main): Don't call syms_of_data twice.
6060
6061 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6062
6063 * dbusbind.c (xd_initialize): Add connection file descriptor to
6064 input_wait_mask, in order to let select() detect, whether a new
6065 message has been arrived.
6066 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6067
6068 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6069
6070 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6071 New functions.
6072
6073 * lisp.h (xd_pending_messages): Declare.
6074
6075 * keyboard.c (readable_events): Call xd_pending_messages.
6076
6077 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6078
6079 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6080
6081 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6082
6083 * buffer.c (set_buffer_internal_1)
6084 (swap_out_buffer_local_variables): Check for unbound local
6085 variables (Bug#4138).
6086
6087 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6088
6089 * process.c (create_pty): Fix last change.
6090
6091 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6092
6093 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6094 (xbm_load_image): Caller changed.
6095 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6096
6097 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6098
6099 * process.c (create_pty): New function.
6100 (Fstart_process): Use it to allow Emacs to just associate a pty
6101 with the buffer. See associated change in gdb-mi.el.
6102 (list_processes_1): Deal with no program name.
6103 (start_process_unwind): Use pid == -2 to mean no process.
6104
6105 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6106
6107 * cmds.c (nonundocount): New global variable.
6108 (keys_of_cmds): Initialize it.
6109 (Fself_insert_command): Use it to combine upto 20 sequential chars
6110 into a single undo entry, just like the Qself_insert_command code in
6111 keyboard.c does.
6112 Call frame_make_pointer_invisible, also like the Qself_insert_command
6113 code in keyboard.c does.
6114 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6115 than its own local replacement for it.
6116
6117 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
6118
6119 * fns.c (concat): Don't re-set string length to its current value.
6120
6121 * coding.h (decode_coding_string, encode_coding_string):
6122 Use SBYTES macro.
6123
6124 * doprnt.c (doprnt_lisp): Delete unused function.
6125 (doprnt): Merge with doprnt1, discarding lispstrings code.
6126 * lisp.h (doprnt_lisp): Don't declare.
6127
6128 2009-08-07 Juri Linkov <juri@jurta.org>
6129
6130 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6131
6132 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6133
6134 * print.c (syms_of_print): Undo previous change.
6135
6136 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6137
6138 * lread.c (read1, syms_of_lread): Read hashtables back from the
6139 readable format.
6140
6141 * print.c (print_preprocess, print_object): Print hashtables fully
6142 and readably.
6143 (syms_of_print): Provide 'hashtable-print-readable.
6144
6145 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6146
6147 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6148 no family set.
6149 (nsfont_open): Handle case when entity has no family.
6150
6151 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6152
6153 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6154 element, not a list, for match case.
6155
6156 2009-07-28 Kenichi Handa <handa@m17n.org>
6157
6158 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6159 rigidly.
6160
6161 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6162 font_parse_xlfd. Check font properties more rigidly.
6163
6164 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6165
6166 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6167 bsd-common.h.
6168
6169 2009-07-27 Kenichi Handa <handa@m17n.org>
6170
6171 * xfaces.c (face_with_height): Call font_clear_prop.
6172
6173 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
6174
6175 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6176
6177 * xterm.c (x_term_init): Use Qx.
6178
6179 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6180
6181 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6182 (ns_get_color): Revert 2009-07-16 change.
6183
6184 2009-07-25 Eli Zaretskii <eliz@gnu.org>
6185
6186 * lread.c (syms_of_lread) <force_load_messages>: New variable.
6187 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6188
6189 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
6190
6191 * coding.h (decode_coding_string, encode_coding_string):
6192 Use SCHARS macro.
6193
6194 * lread.c: Rewrite 2009-07-21 changes.
6195 (load_depth): Delete.
6196 (Qload_in_progress): New variable.
6197 (load_unwind): Don't reference load_depth or load_in_progress.
6198 (Fload): Likewise; specbind Qload_in_progress instead.
6199 (init_lread): Don't initialize load_depth.
6200 (syms_of_lread): Initialize and protect Qload_in_progress.
6201
6202 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6203
6204 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6205
6206 2009-07-23 Yavor Doganov <yavor@gnu.org>
6207
6208 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6209
6210 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6211
6212 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6213 Bugs 3792, 3720, 2402.
6214 (ns_lookup_indexed_color): Check for bad index.
6215 (ns_index_color): Init unused slot to 0.
6216 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6217 Bug 3714, possibly 3082.
6218
6219 2009-07-22 Jason Rumney <jasonr@gnu.org>
6220
6221 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6222 Position IME window at cursor (Bug#2570).
6223 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6224 (globals_of_w32fns): Dynamically load functions required above.
6225
6226 * w32term.c (w32_draw_window_cursor): Send message to reposition
6227 any IME window.
6228
6229 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6230
6231 * fileio.c: Revert 2009-07-16 changes.
6232 (Vauto_save_include_big_deletions): New variable.
6233 (Fdo_auto_save): Disable auto-save only if
6234 auto-save-include-big-deletions is nil.
6235
6236 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6237
6238 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6239 the overflowed pixels into account (Bug#3879).
6240
6241 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
6242
6243 * lread.c (load_depth): New variable.
6244 (Fload, load_unwind, init_lread): Set it to the load recursion
6245 depth; set load_in_progress as a simple boolean based on the
6246 current load_depth. (Bug#3892)
6247
6248 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6249
6250 * nsfont.m (ns_has_attribute): Remove.
6251 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6252
6253 2009-07-18 Juri Linkov <juri@jurta.org>
6254
6255 * process.c (Fset_process_query_on_exit_flag): Mention killing
6256 a buffer in docstring.
6257
6258 2009-07-17 Kenichi Handa <handa@m17n.org>
6259
6260 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6261
6262 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6263
6264 * nsfns.m (Fns_set_alpha): Remove function.
6265 (syms_of_nsfns): Don't defsubr it.
6266
6267 * nsterm.m (ns_get_color): Remove incompatible color formats.
6268 (ns_color_to_lisp): Generate #rrggbb color format string.
6269
6270 2009-07-16 Richard Stallman <rms@gnu.org>
6271
6272 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6273 (Fset_buffer_auto_saved): Handle save_length = -2.
6274
6275 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * xterm.c (Qx_gtk_map_stock): New var.
6278
6279 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6280 of calling intern each time.
6281
6282 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6283
6284 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6285 does tiling.
6286
6287 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6288
6289 2009-07-14 Kenichi Handa <handa@m17n.org>
6290
6291 * font.c (font_vconcat_entity_vectors): New function.
6292 (struct font_sort_data): New member font_driver_preference.
6293 (font_compare): Check font_driver_preference.
6294 (font_sort_entities): The format of the first argument changed.
6295 (font_delete_unmatched): Likewise.
6296 (font_list_entities): The return type changed.
6297 (font_select_entity): The format of the second argument changed.
6298 (font_find_for_lface): Adjuste for the above changes.
6299 Don't suppress the checking of C even if the repertory supports it.
6300 (Flist_fonts): Adjust for the above changes.
6301
6302 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6303 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
6304 Reject a font who has adstyle property that is different from a
6305 langname derived from registry property.
6306 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
6307
6308 2009-07-13 Eli Zaretskii <eliz@gnu.org>
6309
6310 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6311 local copy of dirfilename.
6312
6313 2009-07-13 Kenichi Handa <handa@m17n.org>
6314
6315 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6316 against max_char.
6317
6318 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6319 calling XSYMBOL (sym).
6320
6321 2009-07-11 Eli Zaretskii <eliz@gnu.org>
6322
6323 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6324 New function.
6325 (directory_files_internal) [WINDOWSNT]:
6326 Bind w32-get-true-file-attributes to either t or nil, depending whether
6327 the filesystem of the directory is fast or slow.
6328
6329 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6330 file name.
6331 (is_slow_fs): New function.
6332 (stat): Use it to determine whether to issue more system calls to
6333 get accurate file attributes, when w32-get-true-file-attributes is
6334 `local'.
6335
6336 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6337
6338 * xfns.c (Fx_select_font): Remember last font selected in
6339 x_last_font_name and use that the next time. Also try the frame
6340 parameter font-parameter as default to the font dialog.
6341
6342 2009-07-10 Kenichi Handa <handa@m17n.org>
6343
6344 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6345
6346 2009-07-09 Eli Zaretskii <eliz@gnu.org>
6347
6348 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6349
6350 * w32.c (stat): Treat UNC file names as residing on remote
6351 drives. (Bug#3542)
6352
6353 2009-07-09 Kenichi Handa <handa@m17n.org>
6354
6355 * fontset.c (fontset_find_font): Fix previous change.
6356
6357 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
6358
6359 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6360 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6361 error flag.
6362
6363 2009-07-08 Kenichi Handa <handa@m17n.org>
6364
6365 * fontset.c (fontset_find_font): Fix the logic of handling
6366 charset_matched.
6367 (font_for_char): Delete unused var.
6368 (generate_ascii_font_name): Delete it.
6369
6370 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6371
6372 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6373 (encode_coding_sjis): Fix the code range check.
6374
6375 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
6376
6377 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6378 (Fexpand_file_name): Copy string data properly (Bug#3772).
6379
6380 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6381
6382 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6383 first MapNotify.
6384
6385 2009-07-07 Kenichi Handa <handa@m17n.org>
6386
6387 * character.h (unibyte_has_multibyte_table): Delete extern.
6388 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6389
6390 * charset.c (Fset_charset_priority): Update charset_unibyte.
6391 (syms_of_charset): Initialize charset_unibyte.
6392
6393 * character.c (unibyte_has_multibyte_table): Delete it.
6394 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6395 charset_unibyte.
6396 (multibyte_char_to_unibyte_safe): Likewise.
6397 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6398
6399 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6400 (x_produce_glyphs): Likewise.
6401
6402 * .gdbinit (xcharset): Fix the treating $arg0.
6403
6404 2009-07-04 Eli Zaretskii <eliz@gnu.org>
6405
6406 Emulation of `getloadavg' on MS-Windows.
6407 * w32.c: Include float.h.
6408 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6409 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6410 (get_native_system_info, get_system_times): New functions.
6411 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6412 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6413 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6414 g_b_init_get_system_times, and num_of_processors.
6415
6416 2009-07-03 Jason Rumney <jasonr@gnu.org>
6417
6418 * w32term.c (w32_initialize): Use standard types.
6419
6420 2009-07-03 Eli Zaretskii <eliz@gnu.org>
6421
6422 * dired.c (Ffile_attributes): Decode user and group names by the
6423 locale's encoding. (Bug#3443)
6424
6425 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6426
6427 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6428 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6429
6430 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6431
6432 * term.c (init_tty): Remove spurious #ifdef.
6433
6434 * m/mips.h: Mention this file is also used for netbsd.
6435 * m/pmax.h: Remove file.
6436
6437 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6438
6439 * xterm.h (struct x_display_info): Add invisible_cursor.
6440 (struct x_output): Add current_cursor.
6441
6442 * xterm.c (XTtoggle_invisible_pointer): New function.
6443 (x_define_frame_cursor): Don't define cursor if invisible or the
6444 same as before. Set current_cursor.
6445 (x_create_terminal): Set toggle_invisible_pointer_hook.
6446
6447 * xfns.c (make_invisible_cursor): New function.
6448 (x_set_mouse_color): Call make_invisible_cursor.
6449 Set current_cursor.
6450 (x_window): Set current_cursor.
6451
6452 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6453
6454 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6455 inserting a character.
6456 (read_avail_input): Call frame_make_pointer_visible.
6457
6458 * frame.c (Vmake_pointer_invisible): New variable.
6459 (frame_make_pointer_invisible, frame_make_pointer_visible):
6460 New functions.
6461 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6462
6463 * frame.h: Declare frame_make_pointer_invisible and
6464 frame_make_pointer_visible.
6465 (struct frame): Add pointer_invisible.
6466
6467 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6468
6469 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6470 frame isn't visible.
6471 (xg_frame_resized): If width/height is -1, get size of window
6472 from X server.
6473
6474 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6475 for MapNotify.
6476
6477 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
6478 here or call change_frame_size. Just call flush_and_sync.
6479 (flush_and_sync): Reintroduce.
6480
6481 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
6482
6483 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
6484
6485 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6486 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6487
6488 * frame.h: Declare Qsticky.
6489
6490 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6491
6492 * nsfns.m (ns_frame_parm_handlers): Ditto.
6493
6494 * frame.c: Declare Qsticky.
6495 (frame_parms): Add sticky.
6496
6497 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6498
6499 * xterm.h: Declare x_set_sticky.
6500
6501 * xterm.c (x_set_sticky): New function.
6502
6503 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6504 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6505 xg_tool_bar_proxy_help_callback.
6506
6507 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6508
6509 * frame.c: Qmaximized is new.
6510 (x_set_frame_parameters): Do not handle fullscreen specially.
6511 Only set width and height if explicitly set.
6512 (x_set_fullscreen): Handle Qmaximized.
6513 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6514 (syms_of_frame): Initialize Qmaximized.
6515
6516 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6517 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
6518
6519 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
6520 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6521 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
6522 set gravity to NorthWestGravity when USE_GTK.
6523 (set_wm_state): New function.
6524 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
6525 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6526 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
6527 or the case when no window manager is running. That means remove calls
6528 to x_real_positions and x_fullscreen_adjust.
6529
6530 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6531 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6532 flush_and_sync.
6533 (xg_height_changed): New function.
6534 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
6535 and gtk_window_set_policy. Set frame gravity after parsing the
6536 geometry string.
6537 (xg_update_frame_menubar, free_frame_menubar)
6538 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6539 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6540 Remove calls to xg_frame_set_char_size.
6541
6542 2009-07-01 Kenichi Handa <handa@m17n.org>
6543
6544 * keyboard.c (decode_keyboard_code): New function.
6545 (tty_read_avail_input): Decode the input bytes if necessary.
6546
6547 * coding.c (setup_coding_system):
6548 Initialize coding->carryover_bytes to 0.
6549 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6550 use Qno_conversion.
6551
6552 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6553
6554 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6555
6556 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
6557
6558 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
6559
6560 2009-06-30 Jason Rumney <jasonr@gnu.org>
6561
6562 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6563 is already loaded.
6564 Set user model ID if supported (bug#1849).
6565
6566 2009-06-29 Jim Meyering <meyering@redhat.com>
6567
6568 Remove useless if-before-xfree test.
6569 * nsfont.m (nsfont_close): Remove useless test.
6570 * term.c (delete_tty): Likewise.
6571 * w32.c (system_process_attributes): Likewise.
6572 * w32font.c (w32font_close): Likewise.
6573 * xfaces.c (x_free_gc): Likewise.
6574 * xselect.c (buffer): Likewise.
6575
6576 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6577
6578 * process.c (send_process): Keep decoded string in a local
6579 variable and protect it from GC. (Bug#3521)
6580
6581 2009-06-28 Eli Zaretskii <eliz@gnu.org>
6582
6583 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6584 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6585
6586 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
6587
6588 * xdisp.c (start_display, handle_face_prop)
6589 (move_it_vertically_backward, cursor_row_fully_visible_p)
6590 (redisplay_window, try_window_id, produce_image_glyph):
6591 Delete some #ifdef-ed out code chunks that are now obsolete.
6592
6593 * xterm.c (x_update_window_begin, x_new_focus_frame)
6594 (x_scroll_bar_handle_click, handle_one_xevent)
6595 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6596 (x_make_frame_visible, x_make_frame_invisible)
6597 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6598 code chunks that are now obsolete.
6599
6600 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
6601
6602 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6603 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6604 for hours, when optimzation is enabled.
6605 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6606 (xd_read_message): Make them static.
6607
6608 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6609
6610 * term.c (turn_on_face): Allow simultaneously bold and dim
6611 terminal faces (Bug#3530).
6612
6613 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6616
6617 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6618 truncation glyphs (Bug#3686).
6619
6620 2009-06-27 Glenn Morris <rgm@gnu.org>
6621
6622 * m/pmax.h: Restore file, with only netbsd portions.
6623
6624 2009-06-26 David Reitter <david.reitter@gmail.com>
6625
6626 * nsterm.m (keydown): Avoid infinite loop.
6627
6628 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6629
6630 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6631 the arg FORCE_SYMBOL.
6632
6633 2009-06-25 Kenichi Handa <handa@m17n.org>
6634
6635 * fontset.c (fontset_find_font): When a usable rfont_def is found
6636 in a fallback font-group, make it the first element of the group.
6637
6638 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
6639
6640 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6641
6642 2009-06-24 Kenichi Handa <handa@m17n.org>
6643
6644 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6645 set for C.
6646 (fontset_font): Record the availability of a font for C both in
6647 the realized fontsets of the current one and the default one.
6648
6649 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6650
6651 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6652 conditional, it is always defined on AIX.
6653
6654 2009-06-23 Miles Bader <miles@gnu.org>
6655
6656 * window.c (Vrecenter_redisplay): New variable.
6657 (syms_of_window): Initialize it.
6658 (Qtty): New extern declaration.
6659 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6660
6661 2009-06-23 Jim Meyering <meyering@redhat.com>
6662
6663 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6664 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
6665 pointer dereferences are guaranteed to be valid.
6666
6667 2009-06-23 Kenichi Handa <handa@m17n.org>
6668
6669 * emacs.c (main): Call init_font ().
6670
6671 * font.h (Vfont_log): Extern it.
6672 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6673
6674 * font.c (font_sort_entities, font_list_entities)
6675 (font_matching_entity, font_open_entity)
6676 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6677 (Vfont_log): Delete static.
6678 (font_log_env_checked): Delete this variable.
6679 (font_add_log): Don't check font_log_env_checked.
6680 (font_deferred_log): Check Vfont_log.
6681 (init_font): New function.
6682
6683 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6684
6685 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6686
6687 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6688
6689 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6690
6691 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6692 (face_for_char): Don't call font_deferred_log here.
6693 (font_for_char): Likewise.
6694
6695 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
6696
6697 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6698 rather than its background_width for drawing the overline and
6699 underline (Bug#489).
6700
6701 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6702 rather than its background_width for drawing the overline and
6703 underline (Bug#489).
6704 (xg_default_icon_file): New variable.
6705 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6706 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
6707
6708 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6709 (load_overlay_strings): Remove externs.
6710 (fast_find_position): Function deleted.
6711 (mouse_face_from_buffer_pos): New function, based on
6712 fast_find_position. Correctly handle before-strings,
6713 display-strings, and after-strings (Bug#1220).
6714 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6715
6716 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6717
6718 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
6719 (move_it_in_display_line_to, move_it_in_display_line_to)
6720 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6721
6722 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
6723
6724 * Branch for 23.1.
6725
6726 2009-06-21 Jason Rumney <jasonr@gnu.org>
6727
6728 * w32term.c (keyboard_codepage): New static variable.
6729 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6730 (w32_read_socket) [WM_CHAR]: Use it to decode character
6731 input (bug#3237).
6732 (w32_initialize): Initialize it.
6733 (codepage_for_locale): New function.
6734
6735 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
6736
6737 * process.c (status_message): Pass Faset index argument as a lisp
6738 object, so as to work with USE_LISP_UNION_TYPE.
6739
6740 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6741
6742 * coding.c (Ffind_coding_systems_region_internal):
6743 Cache checked characters.
6744
6745 2009-06-18 Kenichi Handa <handa@m17n.org>
6746
6747 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
6748
6749 2009-06-18 Andreas Schwab <aschwab@redhat.com>
6750
6751 * xdisp.c (redisplay_internal): Check that the frame is still
6752 live after redisplay of its windows.
6753 (redisplay_windows): Check that the window is still live.
6754
6755 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6756
6757 * coding.c (detect_coding_utf_16): Fix previous change.
6758
6759 2009-06-16 Kenichi Handa <handa@m17n.org>
6760
6761 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6762 UTF-16 by checking the dispersion of Eth and Oth bytes.
6763
6764 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6765
6766 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6767
6768 2009-06-15 Kenichi Handa <handa@m17n.org>
6769
6770 * process.c (status_message): Fix previous change. Be sure to
6771 decode a localized string.
6772
6773 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6774
6775 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6776 add comment explaining why.
6777
6778 2009-06-14 Sidney Markowitz <sidney@sidney.com>
6779
6780 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
6781
6782 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6783
6784 * nsfont.m (ns_attribute_value): Remove.
6785 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6786 (ns_has_attribute): Shrink the normal range.
6787 (ns_findfonts): Don't worry about requested spec in determining
6788 need for synthItal.
6789 (ns_get_covering_families): Retain scriptToFamilies.
6790
6791 2009-06-14 Seiji Zenitani <zenitani@mac.com>
6792
6793 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6794
6795 2009-06-11 Kenichi Handa <handa@m17n.org>
6796
6797 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6798 overhang for the static composition case.
6799
6800 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6801
6802 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6803 overhang for the automatic composition case.
6804
6805 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6806 composition case.
6807
6808 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
6809
6810 * xdisp.c (get_next_display_element): When handling wrap-prefix
6811 and line-prefix, treat \n as a control character (bug#3502).
6812
6813 2009-06-10 Kenichi Handa <handa@m17n.org>
6814
6815 * font.c (font_parse_family_registry): Fix for one-char foundry.
6816 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6817
6818 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6819
6820 * process.c (status_message): Fix handling of multibyte signal
6821 string (Bug#3499).
6822
6823 2009-06-09 Jim Meyering <meyering@redhat.com>
6824
6825 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6826 color name is missing.
6827
6828 2009-06-09 Kenichi Handa <handa@m17n.org>
6829
6830 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6831 FROM-CODE and TO-CODE are codepoints of CHARSET.
6832
6833 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6834
6835 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6836
6837 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6838
6839 Changes to support :script/:lang/:otf in NS font driver.
6840 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6841 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6842 indicate not part of font driver interface, and change callers.
6843 (ns_get_family): Remove pointless null check.
6844 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6845 ns_spec_to_descriptor, ns_descriptor_to_entity.
6846 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6847 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6848 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6849 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6850 (ns_get_req_script, ns_accumulate_script_ranges)
6851 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6852 New functions.
6853 (nsfont_list, nsfont_match): Use ns_findfonts.
6854 (nsfont_open): Use font descriptor instead of traits.
6855 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6856 (dump_glyphstring): Rename to ns_dump_glyphstring.
6857
6858 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6859
6860 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6861
6862 * fontset.c (fontset_from_font): Remove NS-specific code.
6863
6864 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
6865
6866 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6867 nonactive windows.
6868
6869 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
6870
6871 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
6872
6873 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6874
6875 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6876
6877 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
6878
6879 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6880 account for the overflowing of newlines into the last glyph on the
6881 display line (Bug#3482).
6882
6883 2009-06-05 David Reitter <david.reitter@gmail.com>
6884
6885 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6886 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
6887 Fns_selection_exists_p, Fns_selection_owner_p.
6888
6889 2009-06-03 Jason Rumney <jasonr@gnu.org>
6890
6891 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6892 available. (Bug#3379)
6893
6894 2009-05-29 Kenichi Handa <handa@m17n.org>
6895
6896 * coding.c (get_translation_table):
6897 Check Venable_character_translation.
6898
6899 2009-05-26 David Reitter <david.reitter@gmail.com>
6900
6901 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6902 (x_make_frame_visible): Move frame to front rather than calling
6903 ns_raise_frame().
6904 (keyDown:): Do not swallow events that aren't re-sent if frame
6905 isn't key window.
6906 (drawRect:): Do not set visibility/iconified flags because
6907 drawRect may be called by NSView even if the frame is hidden.
6908
6909 * nsfns.m (Fx_create_frame): Follow other ports in
6910 determining visibility; default to t. Ensure async_visible is set.
6911
6912 2009-05-23 Eli Zaretskii <eliz@gnu.org>
6913
6914 * dired.c (Ffile_attributes): Doc fix.
6915
6916 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
6917
6918 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6919
6920 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6921
6922 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6923 and xfont_scratch_props.
6924 (syms_of_xfont): Do it here instead.
6925 (xfont_find_ccl_program): Delete, unused.
6926 (xfont_open): Delete unused var `i'.
6927
6928 2009-05-21 Kenichi Handa <handa@m17n.org>
6929
6930 * fontset.c (Qlatin): Don't make it static.
6931
6932 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6933 New functions.
6934 (xfont_scripts_cache, xfont_scratch_props): New variables.
6935 (Qlatin, Vscalable_fonts_allowed): Extern it.
6936 (xfont_list_pattern): Argument changed. Callers changed.
6937 Check Vscalable_fonts_allowed. Check the support of a script.
6938 (xfont_list): Don't reject a font spec with :script property.
6939 (xfont_has_char): Fix setting of encoding.
6940 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6941 xfont_scratch_props.
6942
6943 2009-05-19 Kenichi Handa <handa@m17n.org>
6944
6945 * font.c (font_sort_entities): Rename from font_sort_entites.
6946 Callers changed.
6947
6948 2009-05-18 Kenichi Handa <handa@m17n.org>
6949
6950 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6951
6952 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6953
6954 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6955 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6956
6957 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6958
6959 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6960 (x_delete_terminal): Dissociate resource database from display and
6961 then call XrmDestroyDatabase before closing display.
6962
6963 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6964
6965 * nsterm.m (ns_read_socket): Remove unused variable.
6966 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6967 whether selected frame is viable before raising it (based on patch
6968 by David Reitter), and improve commentary.
6969 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
6970
6971 2009-05-15 Kenichi Handa <handa@m17n.org>
6972
6973 * font.c (Ffont_spec): Check arguments.
6974
6975 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
6976
6977 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6978 weight when testing attributes (Bug#3282).
6979
6980 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6981
6982 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6983 what we expect to get in the next ConfigureNotify event.
6984
6985 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6986 before Xft one (Bug#1696).
6987
6988 2009-05-07 David Reitter <david.reitter@gmail.com>
6989
6990 * nsfns.m (Fx_display_planes): Compute bitplanes using
6991 NSBitsPerPixelFromDepth (Bug#3207).
6992
6993 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
6994
6995 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6996
6997 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
6998
6999 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7000
7001 2009-05-07 David Reitter <david.reitter@gmail.com>
7002
7003 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7004 Respect mouse face background.
7005
7006 2009-05-07 David Reitter <david.reitter@gmail.com>
7007
7008 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7009 Mouse movement/highlight: bracket drawing operations
7010 in ns_update_begin and ns_update_end.
7011
7012 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * nsfns.m (ns_get_screen): Rewrite.
7015 Don't presume selected-frame is of type `ns'.
7016
7017 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7018 all drivers.
7019
7020 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7021
7022 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7023
7024 * keyboard.h (add_user_signal): Fix typo in extern.
7025
7026 * lisp.h (add_user_signal): Remove extern.
7027
7028 * unexelf.c (unexec): Consider a section to precede the .bss section
7029 if its addresses overlap that of .bss.
7030 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7031 instead of dumping process.
7032
7033 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7034
7035 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7036
7037 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7038
7039 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7040
7041 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7042
7043 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7044 any statements.
7045
7046 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7047
7048 * process.c (read_process_output): Make sure the current buffer is
7049 always restored.
7050
7051 * coding.c (record_conversion_result): Don't modify
7052 Vlast_code_conversion_error for successful result.
7053 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7054
7055 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7056
7057 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7058 (load_charset_map): Remove unnecessary code.
7059
7060 2009-04-30 David Reitter <david.reitter@gmail.com>
7061
7062 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7063 through f24.
7064
7065 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7066
7067 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7068
7069 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7070 face_at_buffer_position.
7071 (face_before_or_after_it_pos, get_next_display_element)
7072 (note_mouse_highlight): Update face_at_buffer_position call.
7073
7074 * term.c (term_mouse_highlight):
7075 * msdos.c (IT_note_mouse_highlight):
7076 * fontset.c (Finternal_char_font):
7077 * font.c (font_at, font_range): Update face_at_buffer_position call.
7078
7079 * dispextern.h (face_at_buffer_position): Update prototype.
7080
7081 2009-04-30 Kenichi Handa <handa@m17n.org>
7082
7083 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7084
7085 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7086
7087 * callproc.c (Fcall_process): Fix GC protection. Make sure
7088 current buffer is always restored.
7089
7090 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7091
7092 * atimer.c (init_atimer): Also clear stopped_atimers.
7093
7094 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7095
7096 * process.c (create_process): Clean up merger residues of
7097 2008-07-17 change.
7098
7099 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7100
7101 * lread.c (Vread_circle): New variable.
7102 (read1): Disable recursive read if Vread_circle is nil.
7103
7104 2009-04-29 Kenichi Handa <handa@m17n.org>
7105
7106 * fontset.h (set_default_ascii_font): Delete extern.
7107
7108 * fontset.c (set_default_ascii_font): Delete this unused function.
7109
7110 * frame.c (x_set_font): When ARG is a font-object, check if the
7111 font-object matches with the ASCII font-spec of the frame's
7112 fontset. If not, create a new fontset for the frame. (Bug #3075)
7113
7114 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7115
7116 * fns.c (Flocale_info): Protect vector from GC during decoding.
7117
7118 * process.c (Fstart_process): Protect argv strings from GC during
7119 encoding.
7120
7121 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7122
7123 * sysdep.c: Include <ctype.h>.
7124
7125 2009-04-27 David Reitter <david.reitter@gmail.com>
7126
7127 * nsfont.m (nsfont_open): Remove unused variable shrink.
7128 Remove commented-out code.
7129
7130 2009-04-26 Johan Bockgård <bojohan@gnu.org>
7131
7132 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7133
7134 2009-04-25 Jason Rumney <jasonr@gnu.org>
7135
7136 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7137
7138 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7139
7140 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7141 Swap bytes in short integer if fringe bitmap width > 8.
7142
7143 2009-04-23 Kenichi Handa <handa@m17n.org>
7144
7145 * xfaces.c (Fx_list_fonts): If a font size is specified in
7146 PATTERN, set it in returned scalable fonts.
7147
7148 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * keyboard.c (Fset_input_meta_mode): Doc fix.
7151
7152 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7153
7154 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7155
7156 * coding.c (Fterminal_coding_system): Doc fix.
7157
7158 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7159 (Fx_display_pixel_height, Fx_display_planes)
7160 (Fx_display_color_cells, Fx_server_max_request_size)
7161 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7162 (Fx_display_mm_height, Fx_display_mm_width)
7163 (Fx_display_backing_store, Fx_display_visual_class)
7164 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7165 Doc fixes, replacing "terminal id" with "terminal object".
7166 (check_x_display_info): Handle terminal objects instead of
7167 terminal ids.
7168
7169 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7170 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7171 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7172 Doc fixes, replacing "terminal id" with "terminal object".
7173
7174 2009-04-21 Kenichi Handa <handa@m17n.org>
7175
7176 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7177 (font_score): Check AVGWIDTH too.
7178
7179 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7180 worst case.
7181 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7182 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7183
7184 2009-04-19 Jason Rumney <jasonr@gnu.org>
7185
7186 The following changes fix Bug#3005 for wide glyphs on each platform,
7187 without reintroducing Bug#1258 for stretch glyphs.
7188
7189 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7190 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7191 get_phys_cursor_geometry.
7192
7193 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7194 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7195 using get_phys_cursor_geometry.
7196
7197 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7198 correctly calculated.
7199
7200 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7201
7202 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7203 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7204 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7205 is deprecated.
7206
7207 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7208
7209 * font.c (font_put_frame_data): Use xfree instead of free.
7210
7211 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
7212
7213 * w32font.c (Qja, Qko): Remove declarations.
7214 (syms_of_w32font): Don't DEFSYM them.
7215
7216 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
7217
7218 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7219
7220 * font.h (Qja, Qko): Extern them.
7221
7222 * ftfont.c (Qja, Qko): Remove declarations.
7223
7224 * xfont.c (Qja, Qko): Remove declarations.
7225
7226 2009-04-17 Kenichi Handa <handa@m17n.org>
7227
7228 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7229 string from a vector to handle Latin-1 characters correctly.
7230
7231 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7232 entity even if the cache hits.
7233
7234 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7235
7236 * search.c (boyer_moore): Use zero as marker value for a possible
7237 match instead of depending on overflow behavior. (Bug#2844)
7238
7239 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7240 * lisp.h: Adjust prototypes.
7241
7242 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
7243
7244 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7245 change (Bug#3003).
7246
7247 2009-04-16 Kenichi Handa <handa@m17n.org>
7248
7249 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7250
7251 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7252 adstyle.
7253
7254 * ftfont.c (Qja, Qko): Don't make them static.
7255 (enum ftfont_cache_for): New enum.
7256 (fc_charset_table): Undo the previous change.
7257 (ftfont_get_latin1_charset): Delete it.
7258 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7259 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
7260 non-scarable font, try to get AVERAGE_WIDTH.
7261 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7262 Change ft_face_cache from a list of a hash-table. Don't check
7263 `ja' and `ko' adstyle here.
7264 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7265 FTFONT_CACHE_FOR_CHARET.
7266 (ftfont_get_charset): Undo the previous change.
7267 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7268 (ftfont_close): Likewise.
7269 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7270
7271 * font.c (font_sort_entites): Change the meaning of the arg
7272 BEST-ONLY. Don't optimize for VEC of lenght 1.
7273 (font_select_entity): Just return the value of font_sort_entites.
7274
7275 * xfaces.c (merge_face_vectors): Reflect font properties in
7276 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7277 font_clear_prop if a face attribute doesn't change.
7278
7279 * charset.h (charset_ksc5601): Extern it.
7280
7281 * charset.c (charset_ksc5601): New variable.
7282 (Fdefine_charset_internal): Set charset_ksc5601.
7283 (init_charset_once): Initialize charset_ksc5601 to -1.
7284
7285 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7286
7287 * fileio.c (history_delete_duplicates): Remove unused declaration.
7288
7289 * callint.c (history_delete_duplicates): New declaration.
7290 (Fcall_interactively): Remove command history duplicates when
7291 history_delete_duplicates is true.
7292
7293 2009-04-14 Eli Zaretskii <eliz@gnu.org>
7294
7295 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7296
7297 2009-04-14 Kenichi Handa <handa@m17n.org>
7298
7299 * font.c (Ffont_info): Fix docstring. Fix the second element of
7300 the returned value (bug#2949).
7301
7302 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
7303
7304 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7305
7306 2009-04-14 Kenichi Handa <handa@m17n.org>
7307
7308 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7309 encoding charset is ascii_compatible.
7310
7311 * charset.c (Fdefine_charset_internal): Make charset
7312 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7313 code_offset is 0, and covers all ASCII characters.
7314
7315 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7316
7317 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7318 (ns_string_to_pasteboard_internal):
7319 * nsmenu.m (process_dialog):
7320 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7321 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7322 * lisp.h (Fx_load_color_file): Declare.
7323
7324 2009-04-13 Kenichi Handa <handa@m17n.org>
7325
7326 * font.c (font_delete_unmatched): Preserve the order of list elements.
7327 (font_select_entity): Suppress the code to optimize for the same
7328 kind of fonts.
7329 (font_load_for_lface): Get a font that supports at least ASCII
7330 characters.
7331
7332 * ftfont.c (Qja, Qko): New variables.
7333 (fc_charset_table): Delete uniquifier data for iso8859-1.
7334 (ftfont_get_latin1_charset): New function.
7335 (get_adstyle_property): New function.
7336 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7337 bitmap fonts.
7338 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7339 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7340 `ko' or `ja'.
7341 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
7342 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
7343 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7344 property.
7345 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7346 (syms_of_ftfont): DEFSYM Qja and Qko.
7347
7348 2009-04-09 Kenichi Handa <handa@m17n.org>
7349
7350 * charset.c (map_charset_chars): For a charset of `superset'
7351 method, fix calculation of code range.
7352
7353 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7354 from the list of extra properties.
7355 (font_clear_prop): Be sure to delete `:name' font property.
7356
7357 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7358
7359 * dispnew.c (redraw_overlapping_rows): Fix detection of
7360 overlapping for topmost and bottommost rows.
7361
7362 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
7363
7364 2009-04-06 Jason Rumney <jasonr@gnu.org>
7365
7366 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7367
7368 2009-04-06 Kenichi Handa <handa@m17n.org>
7369
7370 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7371
7372 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7373
7374 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7375
7376 * ftfont.c (ftfont_open): Fix checking of the return value of
7377 FT_Load_Char. Fix setting font->underline_thickness.
7378
7379 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
7380
7381 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7382 (Fterminal_parameters, Fterminal_parameter)
7383 (Fset_terminal_parameter): In doc string, refer to terminal
7384 objects rather than terminal ids.
7385
7386 2009-04-04 Eli Zaretskii <eliz@gnu.org>
7387
7388 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7389 ret_lim_data. (Bug#2867)
7390
7391 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
7392
7393 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7394 so they don't get wider than the window, matching 2006-01-23
7395 change to the partner function in xdisp.c (Bug#2800).
7396
7397 2009-04-03 Kenichi Handa <handa@m17n.org>
7398
7399 * print.c (print_object): Make each lowest sub_char_table start a
7400 new line (Bug#2866).
7401
7402 2009-04-02 Kenichi Handa <handa@m17n.org>
7403
7404 * fontset.c (fontset_font): Record no-font when a fontset
7405 explicitly tells not to try another font-specs.
7406
7407 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7408
7409 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7410
7411 2009-03-30 Kenichi Handa <handa@m17n.org>
7412
7413 * fontset.c (fontset_from_font): Specify only registry in a
7414 font-spec for all characters supported by that registry.
7415
7416 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7417 even if HAVE_M17N_FLT is not defined.
7418
7419 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7420
7421 * ftfont.c: Conditionalize prototyping and use of
7422 ftfont_variation_glyphs.
7423
7424 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7425
7426 * frame.c (delete_frame): Work around compiler bug.
7427
7428 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7429 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7430 Some more EMACS_INT.
7431 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7432
7433 * xdisp.c (dump_glyph): Fix typo.
7434
7435 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7436 (adjust_markers_gap_motion, adjust_markers_for_delete)
7437 (adjust_markers_for_insert, adjust_point)
7438 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7439 (make_gap, copy_text, count_size_as_multibyte, insert)
7440 (insert_and_inherit, insert_before_markers)
7441 (insert_before_markers_and_inherit, insert_1)
7442 (count_combining_before, count_combining_after, insert_1_both)
7443 (insert_from_string, insert_from_string_before_markers)
7444 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7445 (insert_from_buffer_1, adjust_after_replace)
7446 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7447 (replace_range_2, del_range, del_range_1, del_range_byte)
7448 (del_range_both, del_range_2, modify_region)
7449 (prepare_to_modify_buffer, signal_before_change)
7450 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7451 for buffer positions and sizes.
7452 * lisp.h: Adjust prototypes accordingly.
7453
7454 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7455 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7456 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7457
7458 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7459
7460 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7461
7462 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7463 lines and columns so we keep the same pixel height and width.
7464
7465 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7466 the property _NET_WM_STATE has changed.
7467 (x_handle_net_wm_state): New function to update frame parameter
7468 fullscreen.
7469 (x_term_init): Initialize atoms for _NET_WM_STATE.
7470
7471 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7472
7473 2009-03-27 Kevin Ryde <user42@zip.com.au>
7474
7475 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7476 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7477 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7478 (Fgpm_mouse_stop): Pass that new parameter.
7479 * termhooks.h (close_gpm): Adjust prototype.
7480
7481 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7482
7483 * lisp.h (Fx_focus_frame): Declare.
7484
7485 * callint.c (Fcall_interactively): For '^' just delegate the work to
7486 handle-shift-selection.
7487 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7488
7489 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
7490
7491 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7492
7493 * data.c (Qinteractive_form): New variable.
7494 (Finteractive_form): Use it.
7495
7496 * eval.c (Fcommandp): Use Qinteractive_form.
7497
7498 2009-03-24 Jason Rumney <jasonr@gnu.org>
7499
7500 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7501 Calculate total size precisely. Decode environment variables
7502 before substituting. (Bug#38)
7503
7504 2009-03-24 Kenichi Handa <handa@m17n.org>
7505
7506 * font.c (find_font_encoding): Return Qnil for unsupported
7507 encoding (Bug#2722).
7508
7509 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7510
7511 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7512 that gdpy is set.
7513
7514 2009-03-22 Alan Mackenzie <acm@muc.de>
7515
7516 * callint.c (Finteractive): Clarify the doc string - even
7517 promptless elements need \n separators.
7518
7519 2009-03-22 Jason Rumney <jasonr@gnu.org>
7520
7521 * w32term.c (syms_of_w32term): Doc fix for
7522 x-use-underline-position-properties.
7523
7524 2009-03-21 Eli Zaretskii <eliz@gnu.org>
7525
7526 * w32.c (getpwuid): Change argument type to unsigned.
7527 (struct w32_id): Change type of `rid' member to unsigned.
7528 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7529 argument ID to unsigned. All callers changed.
7530 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7531
7532 2009-03-20 Eli Zaretskii <eliz@gnu.org>
7533
7534 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7535 negative, produce a float value.
7536
7537 * dired.c (make_uid, make_gid): New functions.
7538 (Ffile_attributes): Use them to avoid negative UID and GID.
7539
7540 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
7541
7542 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7543 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7544 Fix typos in docstrings.
7545
7546 2009-03-19 Kenichi Handa <handa@m17n.org>
7547
7548 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
7549 changed, use font_load_for_lface to get a new font object.
7550 Call free_realized_fontset after handling ASCII font change.
7551
7552 * frame.c (x_set_font): Handle the case that ARG is a cons.
7553
7554 2009-03-19 Glenn Morris <rgm@gnu.org>
7555
7556 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7557
7558 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
7559
7560 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7561
7562 2009-03-19 Kenichi Handa <handa@m17n.org>
7563
7564 * charset.c (load_charset_map_from_file): When a mapfile can't be
7565 loaded, signal an error.
7566
7567 2009-03-18 Eli Zaretskii <eliz@gnu.org>
7568
7569 * dired.c (Ffile_attributes): Make sure UID and GID are always
7570 positive, even if the value is too large for a positive EMACS_INT.
7571 Doc fix.
7572
7573 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7574
7575 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7576
7577 * xmenu.c (xdialog_show): Move Fredisplay call ...
7578 (Fx_popup_dialog): ... here.
7579
7580 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7581
7582 * dired.c (file_name_completion): Disable the first optimization just
7583 installed, since it is not implemented correctly.
7584
7585 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7586
7587 * dired.c (file_name_completion): Check completion-ignored-extensions
7588 only if the entry can affect bestmatch.
7589 Stop the search early, as Ftry_completion already does.
7590
7591 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
7592
7593 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
7594
7595 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
7596
7597 * keyboard.c (parse_menu_item): Don't display remappings as menu
7598 equivalent bindings (Bug#788).
7599
7600 2009-03-15 Jason Rumney <jasonr@gnu.org>
7601
7602 * w32term.h (WM_EMACS_PAINT): New message.
7603 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7604 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7605 before passing to lisp thread. (Bug#950)
7606
7607 2009-03-14 David Reitter <david.reitter@gmail.com>
7608
7609 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7610 variable as it was never reset.
7611 (ns_term_init): Remove initialization of Lisp-settable defaults
7612 and ns_expand_space.
7613 (-setPanelFromDefaultValues): Remove ns_expand_space.
7614 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7615 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
7616 i.e. no additional spacing, similar to Carbon port.
7617
7618 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7619 * nsfns.m (ns-popup-prefs-panel): Remove.
7620
7621 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7622
7623 * sound.c (alsa_configure): Remove call to deprecated
7624 snd_pcm_sw_params_set_xfer_align.
7625
7626 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
7627
7628 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7629 after clicking in a detached tool bar.
7630 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7631
7632 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7633
7634 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7635 int/Lisp_Object mixup).
7636
7637 2009-03-13 Kenichi Handa <handa@m17n.org>
7638
7639 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
7640 Handle NAME nil and t correctly. Callers changed.
7641 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7642 (set_fontset_font): Change ARG to a vector. Handle range_list in
7643 ARG correctly.
7644 (Fset_fontset_font): Fix the case that TARGET is both a script
7645 name and charset name. Adjust the arg to set_fontset_font for
7646 the above change.
7647 (fontset_from_font): Fix previous change.
7648 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
7649 entry. If FONTSET is the default fontset, don't set the extra
7650 slot of the returning char-table.
7651
7652 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
7653
7654 * nsfns.m (Fx_close_connection): Doc fix.
7655 (Fns_do_applescript): Reflow docstring.
7656 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7657 (Fx_display_pixel_width, Fx_display_pixel_height)
7658 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7659 Fix typos in docstrings.
7660 (Fns_set_alpha): Fix typos in error messages.
7661
7662 2009-03-12 David Reitter <david.reitter@gmail.com>
7663
7664 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
7665 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7666 were used for such events.
7667
7668 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7669 (toggleToolbar, performDragOperation, runHelp): Use it.
7670
7671 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
7672 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7673
7674 2009-03-11 Kenichi Handa <handa@m17n.org>
7675
7676 * font.h (font_open_by_spec): Extern it.
7677
7678 * font.c (font_open_by_spec): New function.
7679 (font_open_by_name): Use font_open_by_spec.
7680
7681 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7682 fontset of the frame.
7683
7684 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7685 modify the default font of frames that use this fontset.
7686 (num_auto_fontsets): New variable.
7687 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7688 name. Be sure to set FONTSET_ASCII to the correct font name.
7689 (update_auto_fontset_alist): New function.
7690
7691 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
7692
7693 * makefile.w32-in: Update dependencies.
7694
7695 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7696
7697 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7698
7699 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7700
7701 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7702
7703 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * lread.c (Feval_buffer): Doc fix.
7706
7707 2009-03-09 Kenichi Handa <handa@m17n.org>
7708
7709 * charset.c (Qfile_name_handler_alist): Extern it.
7710 (load_charset_map_from_file): Temporarily bind
7711 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7712
7713 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
7714
7715 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7716 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
7717
7718 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7719
7720 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7721 (x_set_window_size): Change back to calculated method of setting
7722 toolbar height under Cocoa. (Bug#2546)
7723 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7724 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7725
7726 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7727
7728 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7729 accelerator in parens under GNUstep.
7730
7731 2009-03-06 Kenichi Handa <handa@m17n.org>
7732
7733 These changes are to detect incorrect composition sequence without
7734 looking ahead the source. (Bug#2370)
7735
7736 * coding.h: Include "composite.h".
7737 (enum compisition_state): New enum.
7738 (struct compisition_status): New struct.
7739 (struct iso_2022_spec): New member cmp_status.
7740 (struct emacs_mule_spec): New struct.
7741 (struct coding_system): New members ctext_extended_segment_len and
7742 embedded_utf_8. Change the union member
7743 spec.emacs_mule_full_support to spec.emacs_mule.
7744
7745 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7746 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
7747 (MAX_ANNOTATION_LENGTH): Define to 5.
7748 (ADD_COMPOSITION_DATA): New arg nbytes.
7749 (emacs_mule_char): New arg cmp_status.
7750 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7751 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7752 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7753 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7754 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7755 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7756 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7757 (EMACS_MULE_COMPOSITION_END): New macro.
7758 (emacs_mule_finish_composition): New function.
7759 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7760 (decode_coding_emacs_mule): Avoid long looking ahead while
7761 handling composition.
7762 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7763 (ENCODE_COMPOSITION_RULE): New macro.
7764 (finish_composition): New function.
7765 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7766 (DECODE_COMPOSITION_START): New implementation.
7767 (DECODE_COMPOSITION_END): Likewise.
7768 (STORE_COMPOSITION_RULE): New macro.
7769 (decode_coding_iso_2022): Avoid long looking ahead while handling
7770 composition, CTEXT extended segment, and embedded UTF-8.
7771 (setup_coding_system): For a coding of type iso-2022, reset
7772 CODING_ISO_EXTSEGMENT_LEN (coding) and
7773 CODING_ISO_EMBEDDED_UTF_8 (coding).
7774 (get_translation): Delete arguments last_block, from_nchars,
7775 to_nchars. Callers changed.
7776 (produce_chars): Don't modify charbuf. Adjusted for the change of
7777 get_translation.
7778 (produce_composition): Adjust for the new annotation sequence.
7779 (handle_composition_annotation): Likewise.
7780 (consume_chars): Adjust for the change of get_translation.
7781
7782 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7783
7784 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
7785
7786 2009-03-05 Kenichi Handa <handa@m17n.org>
7787
7788 * font.c (font_select_entity): New function.
7789 (font_find_for_lface): Use font_select_entity to select a font.
7790
7791 * fontset.c (fontset_find_font): If a font found without
7792 restricting to the characters C doesn't support C, try to find a
7793 font with C restriction.
7794
7795 2009-03-04 Nikolaj Schumacher <me@nschum.de>
7796
7797 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
7798
7799 2009-03-04 Jason Rumney <jasonr@gnu.org>
7800
7801 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
7802 characters that have already been read. (Bug#2569)
7803
7804 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7805 Log an error message if check_image_size failed.
7806 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
7807 (gs_load): Mention max-image-size in size error message. (Bug#2560)
7808
7809 2009-03-02 Eli Zaretskii <eliz@gnu.org>
7810
7811 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7812 when decoding process output.
7813
7814 2009-03-01 Richard M Stallman <rms@gnu.org>
7815
7816 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7817
7818 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7819
7820 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7821
7822 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7823 (decode_coding_emacs_mule, decode_coding_iso_2022)
7824 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7825 (decode_coding_raw_text, decode_coding_charset)
7826 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7827 Honor inhibit-eol-conversion. (Bug #2186)
7828
7829 2009-02-28 Jason Rumney <jasonr@gnu.org>
7830
7831 * coding.c (detect_coding_charset): If not checking latin extra,
7832 fail on characters between 0x80 and 0xA0. (Bug#2354)
7833
7834 2009-02-28 Eli Zaretskii <eliz@gnu.org>
7835
7836 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
7837 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
7838
7839 2009-02-27 Glenn Morris <rgm@gnu.org>
7840
7841 * callint.c (Finteractive): Doc fix.
7842
7843 2009-02-27 Kenichi Handa <handa@m17n.org>
7844
7845 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7846
7847 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
7848
7849 * font.c (font_style_to_value): Set value for unknown symbols to
7850 100 instead of 255.
7851 (weight_table, slant_table, width_table): Treat "unspecified" as
7852 the default value.
7853
7854 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
7855
7856 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7857
7858 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
7859
7860 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7861 error as soon as a recursive load is detected.
7862
7863 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7864
7865 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7866 before caching.
7867
7868 2009-02-24 Kenichi Handa <handa@m17n.org>
7869
7870 * fontset.c (fontset_find_font): Fix the condition for checking
7871 unavailable font.
7872
7873 2009-02-24 Glenn Morris <rgm@gnu.org>
7874
7875 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7876 whitespace that confuses documentation.
7877
7878 2009-02-23 Miles Bader <miles@gnu.org>
7879
7880 * process.c (Flist_system_processes, Fprocess_attributes)
7881 (syms_of_process): Rename `system-process-attributes' to
7882 `process-attributes'.
7883
7884 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7885
7886 * coding.h (struct coding_system): Make safe_charsets a pointer to
7887 unsigned char.
7888 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7889 being 255.
7890 (SAFE_CHARSET_P): Likewise.
7891 (setup_iso_safe_charsets): Properly setup safe_charsets.
7892 (Fdefine_coding_system_internal): Likewise.
7893 (setup_coding_system): Likewise. Remove unneeded casts.
7894 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7895 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7896 unneeded casts.
7897
7898 * insdel.c (del_range_2): Don't modify gap contents when called
7899 from decode_coding_object. (Bug#1809)
7900
7901 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
7902
7903 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7904 Qfont_object.
7905 (Ftype_of): Recognize font objects.
7906
7907 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7908
7909 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7910 moved to data.c.
7911
7912 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7913
7914 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7915 async_iconified. Based on a patch by Christian Lynbech
7916 <christian.lynbech@tieto.com>.
7917 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7918
7919 2009-02-20 Glenn Morris <rgm@gnu.org>
7920
7921 * syntax.c (Fskip_chars_forward): Fix doc typo.
7922
7923 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
7924
7925 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7926
7927 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
7928
7929 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7930
7931 2009-02-19 Kenichi Handa <handa@m17n.org>
7932
7933 * coding.c (detect_coding): Preserve coding->mode.
7934 Don't overflow coding->carryover. (Bug#2370)
7935
7936 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7937
7938 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7939
7940 2009-02-18 Kenichi Handa <handa@m17n.org>
7941
7942 * font.c (font_check_otf_features): Fix handling of `nil' element.
7943 (Ffont_spec): Describe :lang and :otf in the docstring.
7944
7945 2009-02-16 Andreas Schwab <schwab@suse.de>
7946
7947 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7948 string.
7949
7950 2009-02-16 Kenichi Handa <handa@m17n.org>
7951
7952 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
7953 (Bug#1723)
7954
7955 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
7956
7957 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
7958
7959 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7960 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7961
7962 2009-02-14 Eli Zaretskii <eliz@gnu.org>
7963
7964 * msdos.c (MAX_SCREEN_BUF): New macro.
7965 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7966 Encode the entire run of glyphs sharing the same face, instead of
7967 doing that one glyph at a time (fixes a bug with displaying
7968 double-size characters).
7969
7970 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7971
7972 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7973
7974 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7975 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
7976 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
7977
7978 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
7979 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
7980
7981 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7982
7983 * keyboard.c (adjust_point_for_property): Allow stopping between two
7984 invisible areas.
7985
7986 2009-02-12 Jason Rumney <jasonr@gnu.org>
7987
7988 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7989 (add_font_entity_to_list): Call check_face_name even when family
7990 is unspecified.
7991
7992 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7993 Release DC when finished. Use NULL window to refer to desktop.
7994 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
7995
7996 * w32font.c (add_font_entity_to_list): Fix check for substituted
7997 raster fonts. (Bug#2219)
7998
7999 2009-02-12 Kenichi Handa <handa@m17n.org>
8000
8001 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8002 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8003 (autocmp_chars): Use fast_looking_at. Don't compose more
8004 characters than MAX_COMPOSITION_COMPONENTS.
8005 (find_automatic_composition): While looking forward and backward,
8006 check static composition. Fix where to stop looking forward.
8007 (composition_adjust_point): Fix checking of static composition.
8008 (Fcomposition_get_gstring): Pay attention to
8009 MAX_COMPOSITION_COMPONENTS.
8010
8011 * lisp.h (fast_looking_at): Extern it.
8012
8013 * search.c (fast_looking_at): New function.
8014
8015 * term.c (encode_terminal_code): Adjust for the change of
8016 <struct glyph>.u.cmp.to.
8017 (append_composite_glyph): Likewise.
8018
8019 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8020 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8021 composition.
8022 (append_composite_glyph): Adjust for the change of
8023 <strcut glyph>.u.cmp.to.
8024
8025 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
8026
8027 * casetab.c (init_casetab_once):
8028 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8029 * font.c (font_update_lface):
8030 * fontset.c (Fnew_fontset):
8031 * ftfont.c (ftfont_drive_otf):
8032 * xfont.c (xfont_open):
8033 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8034
8035 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8036
8037 * fileio.c (Fwrite_region): !NILP -> CONSP.
8038
8039 2009-02-10 Andreas Schwab <schwab@suse.de>
8040
8041 * process.c (send_process): Properly relocate pointer into data
8042 when using encoded data. (Bug#2272)
8043
8044 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8045
8046 * coding.c (detect_coding_charset): Fix previous change.
8047
8048 2009-02-08 Jason Rumney <jasonr@gnu.org>
8049
8050 * w32fns.c (w32_hide_hourglass): Handle case where frame
8051 disappeared while hourglass was displayed. (Bug #2193)
8052
8053 2009-02-07 Andreas Schwab <schwab@suse.de>
8054
8055 * unexelf.c (unexec): Fix error message.
8056
8057 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8058
8059 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8060 when modal window is active. (Bug #2152)
8061 (applicationShouldTerminate:): Remove now-unneeded while loop
8062 around NSRunAlertPanel.
8063
8064 * nsmenu.m (popupSession): New file-global variable.
8065 (pop_down_menu): End the popupSession before closing dialog.
8066 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8067 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8068 don't query NSApp for events (just sleep instead).
8069
8070 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8071
8072 * coding.c (syms_of_coding) <translation-table-for-input>:
8073 Modify doc string to discourage use for character code unification.
8074
8075 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8076
8077 * atimer.c (run_timers): Update pending_atimers.
8078
8079 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * image.c (svg_load_image): Fix last change.
8082
8083 * xfns.c (Fx_create_frame): Signal an error if no font is
8084 found (Bug#2147).
8085
8086 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8087
8088 * character.c (syms_of_character) <script-representative-chars>:
8089 Fix typo in docstring.
8090
8091 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8092
8093 * nsmenu.m (pop_down_menu): New function.
8094 (ns_popup_dialog): Call it on unwind.
8095 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8096 call timer_check() (Bug#2154).
8097 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8098 handling_signal is set.
8099 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8100
8101 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8102
8103 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8104
8105 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8106
8107 * keyboard.c (poll_for_input_1, handle_async_input):
8108 Set handling_signal under HAVE_NS.
8109
8110 2009-02-04 Glenn Morris <rgm@gnu.org>
8111
8112 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8113
8114 2009-02-04 Kenichi Handa <handa@m17n.org>
8115
8116 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8117
8118 * charset.c (Fchar_charset): New optional arg restriction.
8119
8120 * coding.h (coding_system_charset_list): Extern it.
8121
8122 * coding.c (coding_system_charset_list): New function.
8123
8124 * composite.c: Include coding.h and termhooks.h.
8125 (composition_gstring_p): Fix for the terminal case.
8126 (composition_gstring_width): Likewise.
8127 (fill_gstring_body): Likewise.
8128 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8129 the frame.
8130 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8131 is within a composition.
8132 (Fcomposition_get_gstring): Fix the terminal case.
8133
8134 * term.c (encode_terminal_code): Fix handling of composition.
8135 (produce_composite_glyph): For static composition, get pixel_width
8136 from struct composition.
8137
8138 2009-02-02 Andreas Schwab <schwab@suse.de>
8139
8140 * unexelf.c (unexec): Handle unaligned bss offset.
8141
8142 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8143
8144 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8145 XT,w32read_socket changes to ns_read_socket.
8146
8147 * keyboard.c (handle_interrupt): Don't call
8148 quit_throw_to_read_char() under NS.
8149
8150 * blockinput.h: Remove NS-specific code.
8151
8152 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8153
8154 * dispnew.c (window_change_signal): Don't try to get the size of a
8155 suspended tty frame.
8156 * term.c (Fresume_tty): Resize if the size has changed while the
8157 tty was suspended.
8158
8159 * alloc.c (mark_stack): Properly conditionalize previous change.
8160
8161 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8162
8163 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8164 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8165 Remove; this code is not used on Windows.
8166
8167 2009-01-30 Eli Zaretskii <eliz@gnu.org>
8168
8169 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8170 EOLs that also has stray ^M characters.
8171
8172 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8173
8174 * atimer.c (run_timers, alarm_signal_handler):
8175 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8176 * w32inevt.c (w32_console_read_socket):
8177 * w32term.c (w32_read_socket):
8178 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8179
8180 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
8181
8182 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8183 Initialize it as a relative filename pattern.
8184 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8185 (Fcall_process_region): Simplify temp file creation using
8186 temporary-file-directory.
8187
8188 2009-01-29 Eli Zaretskii <eliz@gnu.org>
8189
8190 * msdos.c: Rename pending_signals to msdos_pending_signals.
8191 (sig_suspender, sigprocmask): Adjust.
8192
8193 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
8194
8195 * keyboard.c (pending_signals): New var.
8196 (poll_for_input, input_available_signal, init_keyboard): Set it.
8197 (process_pending_signals): New function.
8198
8199 * lisp.h (QUIT): Check pending_signals instead of
8200 interrupt_input_pending. Use process_pending_signals.
8201
8202 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8203
8204 * process.c (wait_reading_process_output): Use process_pending_signals.
8205
8206 * sysdep.c (emacs_write): Use process_pending_signals.
8207
8208 * xterm.c (XTread_socket): Update pending_signals.
8209
8210 * w32term.c (w32_read_socket): Update pending_signals.
8211
8212 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8213
8214 2009-01-29 Kenichi Handa <handa@m17n.org>
8215
8216 * xftfont.c (xftfont_has_char): New function.
8217 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8218
8219 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8220
8221 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8222 under GNUstep.
8223 (ns_query_color): New declaration.
8224
8225 * nsterm.m (ns_confirm_quit): New variable.
8226 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8227 (EmacsApp-applicationShouldTerminate:): Use it.
8228 (EmacsPrefsController): Let user set it.
8229 (ns_query_color): New function.
8230 (ns_defined_color): Use it.
8231 (ns_initialize): Drop.
8232 (ns_term_init): Add two lines from ns_initialize(), and set
8233 input_interrupt_mode to nil.
8234
8235 * image.c (svg_load_image): Don't right-shift background RGB when
8236 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
8237
8238 2009-01-28 Kenichi Handa <handa@m17n.org>
8239
8240 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8241 (fontset_get_font_group): Remember that no font-group is specified
8242 for C.
8243
8244 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
8245
8246 * fns.c (concat): Check for string overflow (bug#1787).
8247
8248 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8249 Quadruple undo limits (bug#1501).
8250
8251 2009-01-27 Kenichi Handa <handa@m17n.org>
8252
8253 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8254 directly use GT_Get_Char_index.
8255
8256 * xftfont.c (struct xftfont_info): New member `index'.
8257
8258 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8259 (Ffontset_font): Adjust for the change of fontset entry.
8260
8261 2009-01-26 Kenichi Handa <handa@m17n.org>
8262
8263 * fontset.c (fontset_find_font): Fix handling of non-cons return
8264 value of fontset_get_font_group.
8265 (fontset_font): Revert last change.
8266
8267 2009-01-26 Jason Rumney <jasonr@gnu.org>
8268
8269 * w32font.c (w32font_list_internal): Return quickly if registry is
8270 unknown. Simplify final return.
8271 (add_font_entity_to_list): Break complex logic down into more
8272 manageable chunks. Move unknown registry check to
8273 w32font_list_internal.
8274
8275 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
8277 Changes to remove Feval calls from GUI under NS.
8278
8279 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8280 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8281 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8282
8283 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8284 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8285 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8286 instead of NON_ASCII_KEYSTROKE_EVENT.
8287 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8288 (EmacsApp-applicationShouldTerminate:): Query user.
8289 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8290 instead of Feval.
8291
8292 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8293
8294 * keyboard.c (kbd_buffer_get_event): Check for it.
8295 (keys_of_keyboard): Define lispy keys for
8296 ns-put/unput-working-text.
8297
8298 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8299 versions.
8300 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8301
8302 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
8305 setting current_buffer directly. (Bug#2044)
8306
8307 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
8308
8309 * fontset.c (fontset_font): If we know there is no font, don't do
8310 any work. (Bug#1952, bug#1990).
8311
8312 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
8313
8314 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8315
8316 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
8317 (ns_no_defaults): New declaration.
8318 (main): Use it.
8319
8320 * nsterm.h (ns_no_defaults): New declaration.
8321
8322 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8323
8324 * nsterm.m (ns_no_defaults): New variable.
8325 (ns_initialize): Don't read defaults when ns_no_defaults.
8326 (EmacsView-readSelectionFromPasteboard:)
8327 (writeSelectionToPasteboard:types:): New stubbed-out methods for
8328 NSServicesRequests protocol. (Bug#1435)
8329 (ns_dumpglyphs_stretch): New function.
8330 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
8331 of 2008-11-15 to other terms. (Bug#615)
8332
8333 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8334
8335 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8336
8337 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8338 call for Sparc64.
8339
8340 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8341
8342 * nsfns.m:
8343 * nsgui.h:
8344 * nsmenu.m:
8345 * nsselect.m:
8346 * nsterm.h:
8347 * nsterm.m: Remove '23' comments that indicated code added during
8348 update from emacs-20 -> emacs-23.
8349
8350 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8351
8352 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
8353 ns_alternate_modifier. (Bug#1217)
8354
8355 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8356 Display all shortcuts, including those w/o super modifier.
8357
8358 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8359
8360 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
8361
8362 * fileio.c (Vwrite_region_post_annotation_function)
8363 (Vwrite_region_annotation_buffers): New vars.
8364 (build_annotations_unwind): Just reset
8365 Vwrite_region_annotation_buffers.
8366 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8367 Call write-region-post-annotation-function.
8368 (build_annotations): Add to Vwrite_region_annotation_buffers if
8369 buffer changes.
8370
8371 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8372
8373 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8374 Tiger.
8375 * nsfns.m (ns_do_applescript):
8376 Conditionalize typeUTF16ExternalRepresentation on Tiger.
8377
8378 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8379
8380 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8381
8382 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8383
8384 * nsmenu.m (NSMENUPROFILE): Change #if style.
8385
8386 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8387
8388 * nsterm.m (x_set_frame_alpha): Add prototype.
8389 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8390 handle Ctrl-tab. (Bug#1841)
8391 (ns_get_color): Use unsigned long long for scanned hex string value.
8392 (ns_term_shutdown): Abort on non SIGTERM signals.
8393 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
8394 (EmacsPrefsController-setPanelFromDefaultValues): New function.
8395 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
8396 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
8397 (ns_defined_color): Fix settings of the XColor variable fields:
8398 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
8399
8400 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
8401 DPI. (Bug#1316)
8402 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8403 values in onTiger section.
8404
8405 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
8406
8407 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8408 Check return value of font_spec_from_name.
8409 (Fx_list_fonts): Doc fix. (Bug#1951)
8410
8411 * font.c (font_spec_from_name): Return Qnil if font name could not
8412 be parsed.
8413 (font_parse_name): Treat a `?' character as part of an XLFD.
8414
8415 * fns.c (Fsubstring): Doc fix.
8416
8417 2009-01-19 Kenichi Handa <handa@m17n.org>
8418
8419 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
8420 (ftfont_list): Likewise.
8421
8422 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
8423
8424 * dbusbind.c (Fdbus_register_signal):
8425 * process.c (conv_sockaddr_to_lisp):
8426 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8427
8428 * callproc.c (Fgetenv_internal): Doc fix.
8429
8430 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
8431
8432 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8433 it is not even used.
8434
8435 2009-01-16 Glenn Morris <rgm@gnu.org>
8436
8437 * font.c (Ffont_variation_glyphs): Silence compiler.
8438
8439 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
8440
8441 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8442 Reported by David Robinow <drobinow@gmail.com>.
8443
8444 2009-01-15 Kenichi Handa <handa@m17n.org>
8445
8446 * coding.c (detect_coding_system): Fix handling of null_byte_found.
8447
8448 2009-01-14 Jason Rumney <jasonr@gnu.org>
8449
8450 * frame.c (x_set_font): Always store a font to the font parameter,
8451 never a fontset. (Bug#1562)
8452
8453 2009-01-14 Kenichi Handa <handa@m17n.org>
8454
8455 * coding.c (TWO_MORE_BYTES): New macro.
8456 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
8457
8458 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * font.c (font_clear_prop): If clearing the family, clear the font
8461 width index too.
8462
8463 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
8464
8465 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
8466
8467 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8468 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8469 functions, use sizeof.
8470
8471 2009-01-12 Martin Rudalics <rudalics@gmx.at>
8472
8473 * keyboard.c (read_char): Fix case where last_nonmenu_event
8474 returned a bad value with submenus. (Bug#447)
8475
8476 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
8477
8478 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8479 family, clear the font width index too.
8480
8481 2009-01-11 Jason Rumney <jasonr@gnu.org>
8482
8483 * keyboard.c (cmd_error_internal): Exit when errors occur before
8484 frame creation and not in daemon mode. (Bug#1836)
8485
8486 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
8487
8488 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8489 of a display vector, backtrack.
8490 (try_window_reusing_current_matrix): Check glyph type before
8491 referencing charpos member.
8492
8493 2009-01-10 Eli Zaretskii <eliz@gnu.org>
8494
8495 Fix Bug #876:
8496
8497 * coding.c (inhibit_null_byte_detection): New variable.
8498 (detect_coding, detect_coding_system): Don't pay attention to null
8499 bytes if inhibit_null_byte_detection is non-zero.
8500 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
8501 <inhibit-iso-escape-detection>: Doc fix.
8502
8503 2009-01-09 Jason Rumney <jasonr@gnu.org>
8504
8505 * w32font.c (add_font_entity_to_list): Don't report unknown
8506 Windows charset as any unrecognized registry. (Bug#1548)
8507 Only report Unicode Plane 2 fonts as unicode-sip.
8508
8509 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
8510
8511 * xfaces.c (Fx_font_family_list): Delete function.
8512 Move compatibility version to faces.el.
8513
8514 * font.c (Ffont_family_list): Return a list of strings, not symbols.
8515
8516 2009-01-09 Martin Rudalics <rudalics@gmx.at>
8517
8518 * frame.c (x_set_frame_parameters): Remember requested value for
8519 fullscreen before it's reset by the parameter handler.
8520
8521 2009-01-09 Glenn Morris <rgm@gnu.org>
8522
8523 * keyboard.c (last_command_char): For clarity, rename to...
8524 (last_command_event): ... and update all users.
8525 (last_input_char): For clarity, rename to...
8526 (last_input_event): ... and update all users.
8527 (last-command-char, last-input-char): Move to subr.el as aliases.
8528 * cmds.c, commands.h: Update for last_command_char rename.
8529
8530 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
8531
8532 * font.c (font_open_for_lface): Handle unspecified height attribute.
8533
8534 2009-01-08 Jason Rumney <jasonr@gnu.org>
8535
8536 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8537 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8538 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8539 Don't declare.
8540 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
8541 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8542
8543 2009-01-07 Kenichi Handa <handa@m17n.org>
8544
8545 * fileio.c (Finsert_file_contents): In the case of replace,
8546 remember the coding system used for decoding in
8547 coding_system (Bug#1039).
8548
8549 * coding.c (decode_coding_utf_8): Check byte_after_cr before
8550 breaking the loop. (Bug#870)
8551 (decode_coding_utf_16, decode_coding_emacs_mule)
8552 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8553 (decode_coding_charset): Likewise.
8554
8555 2009-01-05 Martin Rudalics <rudalics@gmx.at>
8556
8557 * frame.c (x_set_frame_parameters): Make sure height (width) get
8558 applied when fullwidth (fullheight) is set. (Bug#1522)
8559
8560 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
8561
8562 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8563 (utc_base): Declare as ULONGLONG, not long double.
8564 (convert_time_raw): Delete.
8565 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8566 (initialize_utc_base): New function.
8567 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8568 (convert_from_time_t): Use initialize_utc_base; compute result with
8569 64-bit arithmetic.
8570 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8571
8572 2009-01-03 Eli Zaretskii <eliz@gnu.org>
8573
8574 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
8575 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8576 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8577 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8578 [!subprocesses]: Define.
8579 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8580 (Flist_system_processes, Fsystem_process_attributes)
8581 [!subprocesses]: Call list_system_processes and
8582 system_process_attributes instead of returning Qnil.
8583
8584 * dosfns.c (system_process_attributes, list_system_processes):
8585 New functions.
8586
8587 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8588
8589 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8590 Don't use the default (no-op) implementation.
8591
8592 2009-01-03 Jason Rumney <jasonr@gnu.org>
8593
8594 * keyboard.c (parse_modifiers_uncached): Wheel events are
8595 clicks (bug#687).
8596
8597 * w32term.c (x_query_colors, x_query_color): New functions.
8598
8599 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8600 (svg_load_image): Cast returned pointers from dynamically loaded
8601 functions. Eliminate W32 specific code.
8602
8603 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8604
8605 * nsfns.m (x_set_foreground_color, x_set_background_color)
8606 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8607 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8608 x_ prefix instead of ns_. Update references.
8609 (syms_of_nsfns): Add a FIXME comment.
8610
8611 * nsterm.m (x_set_cursor_type): New prototype.
8612 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8613
8614 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8615 for Solaris instead of incorrectly providing Qutime and Qcutime.
8616
8617 2009-01-02 Eli Zaretskii <eliz@gnu.org>
8618
8619 * w32.c (process_times): Compute sum of utime and stime.
8620 (system_process_attributes): Add Qtime to the alist.
8621
8622 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8623 and add them to the alist.
8624
8625 * process.c (top level) <Qtime, Qctime>: New variables.
8626 (syms_of_process): staticpro them.
8627 (Fsystem_process_attributes): Add their documentation to the doc
8628 string.
8629
8630 * process.h: Declare Qtime and Qctime.
8631
8632 2009-01-02 Jason Rumney <jasonr@gnu.org>
8633
8634 * image.c (Qgobject): New symbol.
8635 (syms_of_image): Initialize it.
8636 (init_svg_functions): Load some functions from gobject library.
8637
8638 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8639
8640 * frame.c (make_terminal_frame): Remove redundant code and useless
8641 block.
8642
8643 2009-01-01 Andreas Schwab <schwab@suse.de>
8644
8645 * process.c (conv_sockaddr_to_lisp): Add workaround for
8646 getsockname bug on BSD.
8647
8648 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
8649
8650 * xfns.c (x_create_tip_frame): Set border width of the X window.
8651
8652 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
8653
8654 2009-01-01 Jason Rumney <jasonr@gnu.org>
8655
8656 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
8657 Don't block input, as per earlier xterm.c changes.
8658
8659 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8660
8661 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8662 (ns_appkit_version_int): New function.
8663 (x-server-version): Use ns_appkit_version_int and follow 21+
8664 convention of returning 3 integers.
8665
8666 2008-12-30 Kenichi Handa <handa@m17n.org>
8667
8668 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8669 (CHAR_SURROGATE_PAIR_P): New macro.
8670
8671 * font.h (struct font_driver): New member get_variation_glyphs.
8672
8673 * font.c (font_range): Don't require a font for a variation selector.
8674 (Ffont_variation_glyphs): New function.
8675 (syms_of_font): Defsubr it.
8676
8677 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8678 ftfont_variation_glyphs.
8679 (setup_otf_gstring): New function.
8680 (ftfont_drive_otf): Use it.
8681 (ftfont_shape_by_flt): Handle variation selector.
8682 (ftfont_variation_glyphs): New function.
8683
8684 2008-12-30 Martin Rudalics <rudalics@gmx.at>
8685
8686 * frame.c (Vemacs_iconified): Remove.
8687
8688 2008-12-30 Jason Rumney <jasonr@gnu.org>
8689
8690 * frame.c (store_frame_param, x_get_arg): Enable newer code on
8691 WINDOWSNT too, as related changes have already been synced. (Bug#117)
8692
8693 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
8694
8695 * indent.c (Fvertical_motion): Don't advance iterator if we have
8696 reseated to the desired position.
8697
8698 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8699 checking for pos match.
8700
8701 2008-12-30 Kenichi Handa <handa@m17n.org>
8702
8703 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8704 just get the low 8-bit of the code.
8705
8706 * font.c (font_intern_prop): Validate str as multibyte.
8707
8708 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8709
8710 * dispextern.h (struct face): Move lface and hash from the middle
8711 of bitfields.
8712
8713 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8714
8715 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8716
8717 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8718 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8719 instead of intervals.h.
8720
8721 2008-12-26 Andreas Schwab <schwab@suse.de>
8722
8723 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8724 cons.
8725
8726 2008-12-26 Martin Rudalics <rudalics@gmx.at>
8727
8728 * textprop.c (Qminibuffer_prompt): New variable.
8729 (syms_of_textprop): Initialize it.
8730 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8731 in minibuffer-prompt face. (Bug#1662)
8732
8733 2008-12-25 Jason Rumney <jasonr@gnu.org>
8734
8735 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8736
8737 2008-12-24 Jason Rumney <jasonr@gnu.org>
8738
8739 * ralloc.c (r_alloc_reset_variable): New function.
8740
8741 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
8742 record of what points where. (Bug#716)
8743
8744 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8745
8746 * minibuf.c (read_minibuf): Follow the non-interactive case when
8747 running as a daemon, before detaching.
8748
8749 2008-12-22 Andreas Schwab <schwab@suse.de>
8750
8751 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8752 * gtkutil.c (free_widget_value): Use xfree instead of free.
8753
8754 2008-12-22 Martin Rudalics <rudalics@gmx.at>
8755
8756 * frame.c (delete_frame): New function derived from
8757 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8758 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8759 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8760 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8761 * frame.h: Extern delete_frame.
8762 * window.c (window_loop):
8763 * terminal.c (delete_terminal):
8764 * xterm.c (x_connection_closed):
8765 * xfns.c (Fx_hide_tip):
8766 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
8767
8768 2008-12-21 Jason Rumney <jasonr@gnu.org>
8769
8770 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8771 when character maps to .notdef character.
8772
8773 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8774
8775 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8776
8777 2008-12-20 Jason Rumney <jasonr@gnu.org>
8778
8779 * frame.c (Fmake_terminal_frame): Raise an error when called from
8780 a graphical frame on Windows. (Bug#1325)
8781
8782 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8783
8784 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8785
8786 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * minibuf.c (Fread_buffer): Doc fix.
8789
8790 2008-12-20 Jason Rumney <jasonr@gnu.org>
8791
8792 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
8793 server name in UNC paths. (Bug#719)
8794
8795 * coding.c (decode_coding): Clear chars_at_source flag when using
8796 charbuf. (Bug#1035)
8797
8798 2008-12-19 Daniel Engeler <engeler@gmail.com>
8799
8800 * sysdep.c (serial_configure): Fix typo.
8801
8802 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8803
8804 * sysdep.c: Include alloca.h.
8805 (system_process_attributes): Add implementation for Solaris.
8806
8807 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
8808
8809 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8810
8811 Reorganize implementation of Flist_system_processes and
8812 Fsystem_process_attributes. No functional changes.
8813 * process.c: Don't #include pwd.h, grp.h and limits.h.
8814 (Flist_system_processes): Just call list_system_processes.
8815 (Fsystem_process_attributes): Just call system_process_attributes.
8816 (procfs_list_system_processes, time_from_jiffies)
8817 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8818 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8819
8820 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8821 (list_system_processes): Rename from
8822 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8823 Provide a do nothing implementation.
8824 (system_process_attributes): Rename from
8825 procfs_list_system_processes.
8826 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8827 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
8828
8829 * w32.c (list_system_processes): Rename from
8830 w32_list_system_processes.
8831 (system_process_attributes): Rename from
8832 w32_system_process_attributes.
8833
8834 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8835
8836 * process.h (w32_list_system_processes)
8837 (w32_system_process_attributes): Remove.
8838 (list_system_processes, system_process_attributes):
8839 New prototypes.
8840
8841 2008-12-19 Kenichi Handa <handa@m17n.org>
8842
8843 * xfont.c (xfont_decode_coding_xlfd): New function.
8844 (xfont_encode_coding_xlfd): New function.
8845 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8846 (xfont_list): Decode and encode XLFD by iso-8859-1.
8847 (xfont_match): Likewise.
8848 (xfont_list_family): Likewise.
8849 (xfont_open): Likewise.
8850
8851 * ftfont.c (ftfont_open): Generate a multibyte string if given
8852 names are utf-8.
8853
8854 * xftfont.c (xftfont_open): Generate a multibyte string if given
8855 names are utf-8.
8856
8857 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8858
8859 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8860 changed.
8861 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8862 clicked on a detached tool bar button.
8863
8864 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8865
8866 * emacs.c (main): Print and error and exit when no data is read
8867 from the pipe.
8868
8869 2008-12-17 Jason Rumney <jasonr@gnu.org>
8870
8871 * w32font.c (w32font_has_char): Always return -1.
8872
8873 2008-12-16 Kenichi Handa <handa@m17n.org>
8874
8875 * font.c (font_open_entity): Fix previous change.
8876
8877 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8878
8879 * process.c: Include <limits.h>.
8880
8881 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
8882
8883 * font.c (font_update_drivers): Fix mistake in reconstructing the
8884 driver list.
8885
8886 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
8887
8888 * font.c (font_clear_cache): Fix format of font cache data.
8889
8890 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
8891
8892 * xftfont.c (xftfont_open): Free Xft font pattern if
8893 XftFontOpenPattern fails.
8894
8895 * xterm.c (x_free_frame_resources): Remove extraneous call to
8896 free_frame_faces.
8897
8898 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8899
8900 * xterm.c (x_delete_display): Move xim_close_dpy call to
8901 x_delete_terminal.
8902 (x_delete_terminal): Call xim_close_dpy.
8903
8904 2008-12-13 Jason Rumney <jasonr@gnu.org>
8905
8906 * w32font.c (intern_font_name): New function.
8907 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8908 (w32font_open_internal, Fx_select_font): Decode font name.
8909 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8910
8911 * w32font.h (intern_font_name): Declare new function.
8912
8913 * w32uniscribe.c (add_opentype_font_name_to_list):
8914 Use intern_font_name.
8915
8916 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8917
8918 * frame.c (Fdelete_frame): Call free_font_driver_list.
8919
8920 * font.c (free_font_driver_list): Implement missing function.
8921
8922 * w32term.c (w32_term_init): Don't initialize the image cache
8923 here; it will be done in init_frame_faces.
8924
8925 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8926 (struct x_display_info): Remove unused member null_pixel. New
8927 member xim_callback_data.
8928
8929 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8930 (xim_initialize): Save pointer to callback function data.
8931 (xim_close_dpy): Free callback function data. Call XCloseIM,
8932 reverting 2008-11-04 change by David Smith.
8933 (x_term_init): Don't initialize the image cache here; it will be
8934 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8935 (x_delete_display): Free x_dnd_atoms member.
8936
8937 2008-12-13 Kenichi Handa <handa@m17n.org>
8938
8939 * font.c (font_rescale_ratio): Moved from xfaces.c.
8940 Argument type changed. Handle a font-spec too.
8941 (font_score): Check Vface_font_rescale_alist.
8942 (font_open_entity): Likewise. (Bug#1547)
8943
8944 * xfaces.c (font_rescale_ratio): Moved to font.c.
8945
8946 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8947
8948 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8949
8950 2008-12-12 Jason Rumney <jasonr@gnu.org>
8951
8952 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8953 Vwindow_system_version to the real w32 major version.
8954
8955 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8956
8957 * term.c (init_tty): Move setting the terminal name before the
8958 potential user: maybe_fatal.
8959
8960 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
8961
8962 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8963 all callers changed. Call free_frame_faces to free the face cache.
8964
8965 2008-12-11 Jason Rumney <jasonr@gnu.org>
8966
8967 * w32font.c (fill_in_logfont): Don't assume symbol script means
8968 SYMBOL_CHARSET. (Bug#547)
8969
8970 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
8971 size for surrogates. (Bug#1096, bug#872)
8972
8973 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8974
8975 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8976
8977 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8978
8979 * process.c (Fsystem_process_attributes, syms_of_process):
8980 Fix typo in name of Ssystem_process_attributes.
8981 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8982
8983 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8984
8985 * syntax.c (Fmodify_syntax_entry): Doc fix.
8986
8987 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8988
8989 * font.c (Ffont_spec): Move usage to end of docstring.
8990
8991 2008-12-10 Jason Rumney <jasonr@gnu.org>
8992
8993 * w32font.c (Qcham): New symbol.
8994 (font_supported_scripts): Add cham, and comments for other new
8995 scripts in bitfield from OpenType spec.
8996 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8997 contain characters beyond the bmp.
8998
8999 2008-12-10 Kenichi Handa <handa@m17n.org>
9000
9001 * ftfont.c (fc_charset_table): Add "unicode-sip".
9002 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9003 Qunicode_sip.
9004
9005 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9006
9007 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9008 (Fcoding_system_put): Use QCdefault_char.
9009 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9010
9011 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9012
9013 * xftfont.c (syms_of_xftfont): Fix typo.
9014
9015 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9016
9017 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9018
9019 * emacs.c (main): Close daemon_pipe on exec.
9020
9021 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
9022
9023 * termchar.h (struct tty): New members termcap_term_buffer and
9024 termcap_strings_buffer.
9025
9026 * term.c (encode_terminal_code): Free any previous memory blocks
9027 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9028 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9029 All callers changed.
9030 (init_tty): Store termcap data and string buffers in new struct
9031 tty members termcap_term_buffer and termcap_strings_buffer.
9032 (delete_tty): Free them.
9033 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9034
9035 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9036
9037 * nsfns.m (ns_set_background_color): Remove code duplication.
9038 It was a substitute for face-transparency on OS X 10.3.
9039
9040 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9041
9042 * coding.c (make_conversion_work_buffer): Disable buffer
9043 modification hooks in the work buffer.
9044
9045 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9046
9047 * process.c (procfs_system_process_attributes): If `nread' has a
9048 negative value, assign zero to it.
9049
9050 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9051
9052 * eval.c (Vdebug_on_error): Doc fix.
9053
9054 2008-12-05 Kenichi Handa <handa@m17n.org>
9055
9056 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9057 second character is a combining character.
9058
9059 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9060
9061 * process.c (procfs_system_process_attributes): Don't use cmd,
9062 cmdsize, and q without initializing them first.
9063
9064 2008-12-04 Jason Rumney <jasonr@gnu.org>
9065
9066 * w32font.c (w32font_draw): Initialize orig_clip before getting
9067 it, and delete it when finished.
9068
9069 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9070
9071 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9072 case when running as a daemon before detaching.
9073
9074 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9075
9076 * w32.c (init_environment): Don't unload library shell32.dll.
9077
9078 2008-12-03 Kenichi Handa <handa@m17n.org>
9079
9080 * font.c (font_at): Set `multibyte' at first.
9081
9082 * coding.c (decode_coding_charset): Check type of an element of
9083 vector VALIDS.
9084 (encode_coding_emacs_mule): Be sure to set `code'.
9085
9086 * fontset.c (face_for_char): Handle invalid charset property correctly.
9087 (font_for_char): Likewise.
9088
9089 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9090
9091 * font.c (Fopen_font): Compute pixel size correctly.
9092 (font_update_lface): Handle fonts with corrupted size specs,
9093 i.e. non-int and non-float.
9094
9095 * ftfont.c (ftfont_match): Initialize entity variable.
9096 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9097 (ftfont_list_family): Initialize list var earlier.
9098
9099 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9100
9101 * xterm.c (x_draw_glyph_string): Fall back on
9102 underline_minimum_offset for underline position.
9103
9104 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9105
9106 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9107
9108 * character.c (c_string_width): Specify the type for LEN.
9109
9110 2008-12-03 Kenichi Handa <handa@m17n.org>
9111
9112 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9113 (decode_coding_utf_8): Likewise.
9114 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9115 (produce_chars): Initialize consumed_chars to 0.
9116
9117 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9118
9119 * keyboard.c (make_lispy_position): Only use PT if the selected
9120 window is current.
9121
9122 2008-12-02 Andreas Schwab <schwab@suse.de>
9123
9124 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9125
9126 * doprnt.c (doprnt1): Fix size of charbuf.
9127
9128 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9129
9130 * keyboard.c (timer_check): Revert last change.
9131
9132 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
9133
9134 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9135
9136 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
9137
9138 * makefile.w32-in: Update dependencies.
9139 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9140
9141 2008-12-01 Andreas Schwab <schwab@suse.de>
9142
9143 * font.c (register_font_driver): Use xmalloc.
9144 (font_put_frame_data): Likewise.
9145
9146 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
9147
9148 * xfaces.c (realize_x_face): Make abort condition clearer.
9149
9150 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9151
9152 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * keyboard.c (timer_check): After a timer runs, ensure that the
9155 selected window's buffer is current.
9156
9157 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
9158
9159 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9160 It was accidentally restored by the Unicode merge.
9161
9162 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9163
9164 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
9165
9166 * w32proc.c: Include "coding.h".
9167 (Fw32_short_file_name): Encode filename passed to Windows API.
9168 (Fw32_long_file_name): Encode filename passed to Windows API and
9169 decode back the result. (Bug#1433)
9170
9171 2008-11-29 Kenichi Handa <handa@m17n.org>
9172
9173 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9174 not before accessing it.
9175
9176 * charset.c (Fdefine_charset_internal): After calculating
9177 min_char, max_char, and fastmap, copy the charset structure again.
9178 (encode_char): Fix the previous change.
9179
9180 2008-11-28 Seiji Zenitani <zenitani@mac.com>
9181
9182 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9183
9184 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9185
9186 * nsterm.m (x_set_frame_alpha): New function.
9187
9188 2008-11-27 Eli Zaretskii <eliz@gnu.org>
9189
9190 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9191
9192 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
9193
9194 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9195 pointer to check_face_name.
9196
9197 2008-11-27 Kenichi Handa <handa@m17n.org>
9198
9199 * category.h (SET_CATEGORY_SET): Call set_category_set.
9200 (set_category_set): Extern it.
9201
9202 * category.c (hash_get_category_set): New function.
9203 (Fmodify_category_entry): Adjusted for the change of
9204 char_table_ref_and_range. Call hash_get_category_set to get a
9205 category set to store in the table.
9206
9207 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9208 Funify_charset.
9209
9210 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9211 (DECODE_CHAR): Check if the decoder vector is ready.
9212 (ENCODE_CHAR): Check if the encoder char-table is ready.
9213 (maybe_unify_char): Extern it.
9214
9215 * charset.c (Vchar_unified_charset_table): Delete it.
9216 (inhibit_load_charset_map): New variable.
9217 (temp_charset_work): New variable.
9218 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9219 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9220 New macros.
9221 (load_charset_map): Meaning of control_flag changed. If
9222 inhibit_load_charset_map is nonzero, setup a table in
9223 temp_charset_work.
9224 (load_charset): New argument control_flag.
9225 (map_charset_for_dump): New function.
9226 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9227 map_charset_for_dump.
9228 (Fdefine_charset_internal): If the charset method is MAP, load
9229 mapping tables by calling load_charset.
9230 (Funify_charset): Don't load a mapping table but directly set
9231 Vchar_unify_table.
9232 (maybe_unify_char): New function.
9233 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9234 Handle the case of inhibit_load_charset_map being nonzero.
9235 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9236 Handle the case of inhibit_load_charset_map being nonzero.
9237 (Fclear_charset_maps): Just free temp_charset_work.
9238 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9239 variable.
9240
9241 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9242 change of char_table_ref_and_range.
9243 (char_table_ref_and_range): Change the meaning of argument FROM
9244 and TO. Now the caller must provide initial values for *FROM
9245 and *TO.
9246
9247 * fontset.c (fontset_add): Adjusted for the change of
9248 char_table_ref_and_range.
9249 (fontset_get_font_group): Likewise.
9250 (Ffontset_info): Likewise.
9251
9252 * keymap.c (describe_vector): Adjusted for the change of
9253 char_table_ref_and_range. For char-table, put boundary between
9254 non-ASCII and 8-bit characters.
9255
9256 * print.c (print_object): For bool-vector, delete unnecessary
9257 check of ASCII_BYTE_P.
9258
9259 2008-11-26 Jason Rumney <jasonr@gnu.org>
9260
9261 * w32font.c (w32font_open_internal): Don't include external
9262 leading in font height. (Bug#879)
9263
9264 2008-11-26 Glenn Morris <rgm@gnu.org>
9265
9266 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9267 redefinition with ifdef. (Bug#1383)
9268
9269 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9270
9271 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9272
9273 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9274
9275 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9276 New EmacsView methods.
9277 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9278 Fixes bug #1048,1357,1414.
9279
9280 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9281
9282 Fix bug #1362.
9283 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9284 is not an indexed color.
9285 * nsterm.m (free_indexed_color): Add argument checking.
9286 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9287
9288 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
9289
9290 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9291 Document confirm-after-completion value for
9292 minibuffer-completion-confirm.
9293
9294 2008-11-24 Jason Rumney <jasonr@gnu.org>
9295
9296 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9297 warning.
9298
9299 2008-11-23 Jason Rumney <jasonr@gnu.org>
9300
9301 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9302 restored before returning.
9303
9304 * w32font.c (check_face_name): New function.
9305 (add_font_entity_to_list): Use it to filter out common substituted
9306 fonts. (Bug#642)
9307
9308 2008-11-22 Martin Rudalics <rudalics@gmx.at>
9309
9310 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9311 confirm-nonexistent-file-or-buffer in doc-string.
9312
9313 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9314
9315 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9316 Fix copy/paste typo. Add checks.
9317
9318 2008-11-21 Kenichi Handa <handa@m17n.org>
9319
9320 * coding.c (detect_coding_iso_2022): Reject invalid composition
9321 sequence.
9322 (DECODE_COMPOSITION_START): If the current source is the last
9323 block, and the current composition doesn't end, regard this
9324 sequence as invalid.
9325 (decode_coding_iso_2022): Handle invalid composition sequence.
9326
9327 2008-11-20 Martin Rudalics <rudalics@gmx.at>
9328
9329 * window.c (coordinates_in_window): Don't return
9330 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9331 line when the window is not the rightmost one. (Bug#1372)
9332
9333 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9334
9335 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9336
9337 2008-11-15 Eli Zaretskii <eliz@gnu.org>
9338
9339 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9340 and bright_bg if noninteractive is non-zero.
9341
9342 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9343
9344 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9345 x_draw_glyph_string_background.
9346
9347 * w32term.c (x_draw_glyph_string): Likewise.
9348
9349 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
9350
9351 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9352 the next glyph string once past the overhang width.
9353
9354 * nsterm.m (ns_draw_glyph_string): Likewise.
9355
9356 * w32term.c (x_draw_glyph_string): Likewise.
9357
9358 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9359
9360 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9361 double file close.
9362
9363 2008-11-14 Martin Rudalics <rudalics@gmx.at>
9364
9365 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9366 dedicated status of window before attempting to display another
9367 buffer in it.
9368
9369 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
9370
9371 * msdos.c (Fmsdos_long_file_names):
9372 (syms_of_msdos) <dos-unsupported-char-glyph>:
9373 * dosfns.c (Fint86): Fix typos in docstrings.
9374
9375 2008-11-14 Eli Zaretskii <eliz@gnu.org>
9376
9377 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9378
9379 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9380
9381 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9382
9383 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9384
9385 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9386
9387 * frame.h: Negative alpha means "don't touch".
9388
9389 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9390
9391 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9392
9393 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9394
9395 * hftctl.c:
9396 * chpdef.h:
9397 * acldef.h: Remove files used only for systems no longer supported.
9398
9399 * Makefile.in: Fix .o alphabetical ordering.
9400 (hftctl.o): Remove dependency, file removed.
9401 (keymap.o, print.o): Depend on charset.h.
9402
9403 2008-11-10 Kenichi Handa <handa@m17n.org>
9404
9405 * character.c (Fget_byte): Fix and make it faster for unibyte target.
9406
9407 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
9408
9409 * dired.c (file_name_completion): If completion_ignore_case is
9410 enabled, ignore case when checking completion-regexp-list.
9411
9412 2008-11-08 Eli Zaretskii <eliz@gnu.org>
9413
9414 * vm-limit.c (get_lim_data): Fix last change.
9415
9416 2008-11-08 Kenichi Handa <handa@m17n.org>
9417
9418 * character.c (Fget_byte): New function.
9419 (syms_of_character): Defsubr Fget_byte.
9420
9421 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
9422
9423 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9424 cursor position is valid after scrolling.
9425
9426 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
9427
9428 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9429
9430 2008-11-06 Glenn Morris <rgm@gnu.org>
9431
9432 * xterm.c (handle_one_xevent): Don't let popup menus cause
9433 mouse-autoselect-window related window switching. (Bug#1261)
9434
9435 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9436
9437 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9438
9439 2008-11-04 Andreas Schwab <schwab@suse.de>
9440
9441 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9442
9443 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * xfns.c (Fx_wm_set_size_hint): New function.
9446
9447 2008-11-03 Martin Rudalics <rudalics@gmx.at>
9448
9449 * textprop.c (Fprevious_single_char_property_change): Return 0
9450 when there's no change in a string. (Bug#1301)
9451
9452 2008-11-02 Martin Rudalics <rudalics@gmx.at>
9453
9454 * frame.c (do_switch_frame): New argument NORECORD passed to
9455 Fselect_window.
9456 (Fselect_frame): New argument NORECORD passed to
9457 do_switch_frame.
9458 (Fset_frame_selected_window): New argument NORECORD passed to
9459 Fselect_frame.
9460 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9461 in call of do_switch_frame.
9462 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9463 Handle NORECORD argument in call of Fselect_frame.
9464 * lisp.h (do_switch_frame, Fselect_frame)
9465 (Fset_frame_selected_window): Adjust declarations.
9466 * window.c (select_frame_norecord): New function.
9467 (run_window_configuration_change_hook): Use it and call
9468 Fselect_frame with NORECORD set.
9469 (Fselect_window): Pass NORECORD to Fselect_frame.
9470 (Fset_window_configuration): Handle NORECORD argument in call of
9471 do_switch_frame.
9472 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9473 Fset_frame_selected_window.
9474 * keyboard.c (command_loop_1): Handle NORECORD in call of
9475 Fselect_frame (currently ifdefd).
9476
9477 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9478
9479 * emacs.c (USAGE2): Untabify.
9480
9481 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9482
9483 * composite.c (fill_gstring_header): Fix copy/paste typo.
9484
9485 2008-10-31 Martin Rudalics <rudalics@gmx.at>
9486
9487 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9488 (Fother_window): Rename argument and rewrite doc-string.
9489 (select_window_norecord): Fix return value. (Bug#1276)
9490
9491 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
9492
9493 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9494 new frames overriding foreground for tooltips. Based on similar patch
9495 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9496
9497 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
9498
9499 * emacs.c (Fdaemon_initialized): Initialize nfd.
9500
9501 2008-10-29 Martin Rudalics <rudalics@gmx.at>
9502
9503 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9504 (Fwindow_text_height): Clarify doc-strings.
9505 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9506 doc-string of window-scroll-functions.
9507
9508 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9509
9510 * category.c (syms_of_category): Fix typo in docstring.
9511
9512 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
9513
9514 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9515 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9516 Fix typos in docstrings.
9517
9518 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9519
9520 * emacs.c (daemon_pipe): Make non-static.
9521 (IS_DAEMON): Move definition ...
9522 * lisp.h (IS_DAEMON): ... here.
9523 (daemon_pipe): Declare.
9524 (is_daemon): Remove.
9525 * dispnew.c (init_display): Use IS_DAEMON.
9526
9527 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9528
9529 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9530 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9531
9532 * emacs.c (is_daemon): Remove.
9533 (main): Don't set is_daemon.
9534 (IS_DAEMON): New macro.
9535 (Fdaemonp, Fdaemon_initialized): Use it.
9536 (Fdaemon_initialized): Write a char into the pipe to make sure the
9537 parent exits.
9538 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9539
9540 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
9541
9542 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9543 over-sized glyph, draw it with the default glyph width.
9544
9545 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9546 glyph, draw it with the default glyph width.
9547
9548 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9549 glyph, draw it with the default glyph width.
9550
9551 * xdisp.c (try_scrolling): When computing the distance from the
9552 scroll margin to PT, try moving some distance past the window
9553 bottom before giving up.
9554
9555 2008-10-27 Martin Rudalics <rudalics@gmx.at>
9556
9557 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9558 (Fset_window_buffer): Explain in doc-string that a window can be
9559 "strongly" dedicated to its buffer.
9560
9561 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9562
9563 * emacs.c (daemon_name): New variable.
9564 (main): Deal with --daemon=SERVER_NAME.
9565 (Fdaemonp): Return a name if one was passed to --daemon.
9566
9567 2008-10-26 Romain Francoise <romain@orebokech.com>
9568
9569 * emacs.c (daemon_pipe): New variable.
9570 (main): Create a pipe before forking, make the parent exit only after
9571 the child has closed its end of the pipe. Move closing the
9572 descriptors ...
9573 (Fdaemon_initialized): ... here. New function.
9574
9575 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9576
9577 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9578 the previous unoptimized table.
9579
9580 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9581 the distinction between non-nil and non-t value of `dedicated'.
9582
9583 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
9584
9585 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
9586 read_char_minibuf_menu_text is large enough to hold the menu string.
9587
9588 2008-10-25 Martin Rudalics <rudalics@gmx.at>
9589
9590 * window.c (Fget_buffer_window, Fdelete_windows_on)
9591 (Freplace_buffer_in_windows): Make buffer argument optional and
9592 rename to buffer_or_name.
9593
9594 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * xdisp.c (handle_single_display_spec, handle_display_prop):
9597 Undo 2005-05-16 change.
9598 (handle_stop): Pop iterator if it's loaded with an empty string.
9599 (get_overlay_strings_1): Don't save iterator if it's loaded with
9600 an empty string (bug#1201).
9601
9602 2008-10-24 Kenichi Handa <handa@m17n.org>
9603
9604 * ftfont.c (ftfont_otf_features): Fix previous change.
9605 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9606 calling ftfont_otf_features.
9607
9608 2008-10-24 Kenichi Handa <handa@m17n.org>
9609
9610 * font.c (font_match_p): Fix for the case that a vector of
9611 characters is in script-representative-chars.
9612
9613 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
9614
9615 * dbusbind.c (xd_in_read_queued_messages): New variable.
9616 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
9617 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9618 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
9619 macro. (Bug#1186)
9620
9621 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9622
9623 * s/sol2-10.h: New file.
9624
9625 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9626
9627 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9628 poor beast has survived 9+ years and the jump from xterm.c!).
9629
9630 2008-10-23 Martin Rudalics <rudalics@gmx.at>
9631
9632 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9633 Reword doc-string.
9634 (Fbury_buffer): In doc-string say what happens to the buffer's window.
9635
9636 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
9637
9638 * character.c (syms_of_character) <script-representative-chars>:
9639 <unicode-category-table>: Doc fixes.
9640
9641 2008-10-23 Noah Friedman <friedman@splode.com>
9642
9643 * coding.c (make_conversion_work_buffer): Check that
9644 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9645 Fget_buffer_create.
9646
9647 2008-10-23 Kenichi Handa <handa@m17n.org>
9648
9649 * font.c (font_add_log): Check the values of extra properties.
9650
9651 2008-10-22 Martin Rudalics <rudalics@gmx.at>
9652
9653 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9654 Reword doc-string.
9655 (Fset_window_parameter): Use NILP.
9656 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
9657 (Frecenter): Use "selected" instead of "current" window in doc-strings.
9658
9659 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9660
9661 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9662
9663 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9664
9665 * nsfns.m (ns_appkit_version): New function.
9666 (x-server-version): Use it.
9667 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9668 (x-server-vendor): Don't check_ns().
9669
9670 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9671
9672 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
9673
9674 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9675 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9676
9677 2008-10-22 Kenichi Handa <handa@m17n.org>
9678
9679 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9680 scripts.
9681
9682 * category.c (word_boundary_p): Check scripts instead of charset.
9683 Handle nil value in word-separating-categories and
9684 word-combining-categories.
9685 (syms_of_category): Fix docstrings of word-separating-categories
9686 and word-combining-categories.
9687
9688 2008-10-21 Eli Zaretskii <eliz@gnu.org>
9689
9690 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9691 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9692
9693 2008-10-21 Martin Rudalics <rudalics@gmx.at>
9694
9695 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9696 Rename arg "buffer" to "buffer_or_name".
9697 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9698 it optional.
9699 (no_switch_window): Remove since the return value is not used.
9700 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
9701 Consider window as dedicated when Fwindow_dedicated_p returns a
9702 non-nil value.
9703 * lisp.h: Remove prototype for no_switch_window.
9704
9705 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9706
9707 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
9708 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
9709
9710 2008-10-21 Kenichi Handa <handa@m17n.org>
9711
9712 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9713 check Vlatin_extra_code_table.
9714
9715 2008-10-20 Eli Zaretskii <eliz@gnu.org>
9716
9717 * fileio.c (Fset_file_modes): Doc fix.
9718
9719 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
9720
9721 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9722 in arrays.
9723
9724 2008-10-19 Martin Rudalics <rudalics@gmx.at>
9725
9726 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9727 Mention kill-buffer in doc-string.
9728 (Fset_window_buffer): Reinsert tem check removed in last commit.
9729 (Fenlarge_window, Fshrink_window): Have argument names and
9730 doc-string follow Elisp manual more closely.
9731
9732 2008-10-18 Eli Zaretskii <eliz@gnu.org>
9733
9734 * fileio.c (Fset_file_modes): Doc fix.
9735
9736 2008-10-18 Martin Rudalics <rudalics@gmx.at>
9737
9738 * window.c (Fwindow_width, Fset_window_start)
9739 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
9740 (Fdelete_windows_on, Freplace_buffer_in_windows):
9741 Make doc-strings follow code and Elisp manual more closely.
9742 (Fwindow_dedicated_p): Make window argument optional.
9743 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9744 (Fset_window_buffer): Respect any non-nil dedicated value for
9745 window. Rename "buffer" argument to "buffer_or_name".
9746
9747 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
9748
9749 * m/sh3.h: New file, machine description for SuperH.
9750
9751 2008-10-17 Martin Rudalics <rudalics@gmx.at>
9752
9753 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9754
9755 2008-10-17 Kenichi Handa <handa@m17n.org>
9756
9757 * ftfont.c (ftfont_otf_features): Fix indexing
9758 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9759
9760 2008-10-16 Magnus Henoch <mange@freemail.hu>
9761
9762 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9763 (Fdbus_call_method_asynchronously): Ditto.
9764 This change makes C-h f display the argument list.
9765
9766 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
9767
9768 * fileio.c (Fexpand_file_name): Doc fix.
9769
9770 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9771 of :foreground and :background equivalent to unspecified (20.x
9772 compatibility).
9773
9774 2008-10-15 Eli Zaretskii <eliz@gnu.org>
9775
9776 * buffer.c (syms_of_buffer): Doc fix.
9777
9778 2008-10-14 Kenichi Handa <handa@m17n.org>
9779
9780 * font.c (font_clear_prop): When clearing font width, clear the
9781 average width field too.
9782
9783 2008-10-12 Andreas Schwab <schwab@suse.de>
9784
9785 * ftfont.c (ftfont_shape_by_flt): Make static.
9786 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9787
9788 * font.c: Don't include <m17n-flt.h>.
9789
9790 2008-10-10 Eli Zaretskii <eliz@gnu.org>
9791
9792 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9793
9794 2008-10-09 Eli Zaretskii <eliz@gnu.org>
9795
9796 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9797 away code.
9798
9799 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
9800
9801 * dispnew.c (update_text_area): Avoid looping due to large glyph
9802 overhangs (bug#1070).
9803
9804 2008-10-09 Kenichi Handa <handa@m17n.org>
9805
9806 * fontset.c (face_for_char): If face->fontset is negative, just
9807 return ascii_face.
9808
9809 * font.c (font_delete_unmatched): Fix previous change.
9810 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
9811
9812 2008-10-09 Martin Rudalics <rudalics@gmx.at>
9813
9814 * frame.c (Fraise_frame): On text-only terminals select frame in
9815 order to make it visible. (Bug#1061)
9816
9817 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
9818
9819 * fontset.c (fontset_find_font): Check frame validity.
9820
9821 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
9822
9823 * gtkutil.c (xg_display_open): Reset default display if none exists.
9824 (xg_display_close): Allow Emacs to close all displays (bug#985).
9825
9826 2008-10-06 Andreas Schwab <schwab@suse.de>
9827
9828 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
9829
9830 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
9831
9832 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
9833
9834 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
9835
9836 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9837 during initialization.
9838
9839 2008-10-04 Eli Zaretskii <eliz@gnu.org>
9840
9841 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9842 whole thing on MSDOS frames as well as on a TTY.
9843
9844 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9845 well as for TTY.
9846 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9847 well as on a TTY.
9848
9849 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9850 as well as for TTY.
9851
9852 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9853
9854 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9855 MSDOS frames as well.
9856
9857 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9858
9859 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9860 correct arguments.
9861 * menu.c (find_and_return_menu_selection): Add cast.
9862
9863 2008-10-03 Glenn Morris <rgm@gnu.org>
9864
9865 * emacs.c (USAGE1): Add --daemon.
9866
9867 2008-10-02 Eli Zaretskii <eliz@gnu.org>
9868
9869 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9870 100, so it's in percents as advertised.
9871
9872 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9873
9874 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9875 (ns_output.current_cursor, ns_output.desired_cursor)
9876 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9877 (FRAME_NEW_CURSOR_COLOR): Remove.
9878
9879 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
9880 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
9881 enumeration (HOLLOW_BOX_CURSOR, etc.).
9882
9883 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9884 (draw_window_cursor): Simplify code.
9885 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9886 Don't change cursor type. In latter, call rehighlight instead of doing
9887 updates manually.
9888 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9889 Use core Emacs cursor types.
9890
9891 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
9892
9893 2008-10-02 Martin Rudalics <rudalics@gmx.at>
9894
9895 * process.c (Faccept_process_output): Fix doc-string.
9896
9897 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9898
9899 * gmalloc.c (__sbrk): Also define for uClibc.
9900
9901 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9902 for uClibc.
9903
9904 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9905
9906 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9907 styles.
9908 (nsfont_open): Reenable the cache.
9909
9910 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9911
9912 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9913 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9914
9915 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9916
9917 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9918 a suspended terminal.
9919
9920 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
9921
9922 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9923
9924 2008-09-30 Eli Zaretskii <eliz@gnu.org>
9925
9926 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9927
9928 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
9929
9930 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9931 in a continued line coincides with a line beginning.
9932
9933 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9934
9935 * nsfont.m (nsfont_trait_distance): Fix bug.
9936 (nsfont_list): Return a list rather than a vector (syncs with Handa
9937 changes of 2008-05-14).
9938 (nsfont_open): Improve logging.
9939
9940 2008-09-29 Andreas Schwab <schwab@suse.de>
9941
9942 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9943
9944 2008-09-28 Martin Rudalics <rudalics@gmx.at>
9945
9946 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9947 name as char-resolve-modifiers.
9948 Reported by: Markus Triska <markus.triska@gmx.at>
9949
9950 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9951
9952 * dispnew.c (init_display): Return earlier when running as a daemon.
9953
9954 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9955
9956 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9957
9958 2008-09-27 Eli Zaretskii <eliz@gnu.org>
9959
9960 * composite.c (Fcomposition_get_gstring)
9961 (Fcompose_region_internal, Fcompose_string_internal)
9962 (Ffind_composition_internal): Doc fix.
9963 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9964 (syms_of_composite) <auto-composition-function>: Doc fix.
9965 (syms_of_composite) <composition-function-table>: Doc fix.
9966
9967 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
9968
9969 * search.c (wordify): New argument for lax word-ends.
9970 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9971
9972 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9973
9974 * lisp.h (is_daemon): Declare.
9975 * dispnew.c (init_display): Do not try to initialize the terminal
9976 when running as a daemon.
9977
9978 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
9979
9980 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9981 x_display_pixel_height.
9982
9983 2008-09-22 Martin Rudalics <rudalics@gmx.at>
9984
9985 * undo.c (record_point): Don't call Fundo_boundary for first
9986 change. (Bug#731)
9987
9988 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
9989
9990 * emacs.c (Fdaemonp): Doc fix.
9991
9992 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9993
9994 * emacs.c (main): Place #ifdef in the proper place.
9995
9996 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9997
9998 * emacs.c (standard_args): Add --daemon.
9999 (main): Disconnect from the terminal when --daemon is passed.
10000 (is_daemon): New variable.
10001 (Fdaemonp): New function.
10002 (syms_of_emacs): Defsubr it.
10003
10004 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10005
10006 * xdisp.c (get_next_display_element): Handle string display
10007 correctly when checking for the end of a box run.
10008
10009 2008-09-20 Glenn Morris <rgm@gnu.org>
10010
10011 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10012 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10013 (Frename_file): Avoid copying to trash if a rename involves
10014 a delete. (Bug#964).
10015
10016 2008-09-20 Eli Zaretskii <eliz@gnu.org>
10017
10018 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10019 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10020 frames as well as termcap frames.
10021 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10022 get_named_tty.
10023
10024 2008-09-19 Eli Zaretskii <eliz@gnu.org>
10025
10026 * process.c (procfs_system_process_attributes): Fix cmdline in
10027 case /proc/PID/cmdline is empty.
10028
10029 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10030 x_display_pixel_height.
10031
10032 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10033
10034 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10035
10036 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10037 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10038
10039 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10040
10041 * dispextern.h (struct it): Move line_wrap away from the middle of
10042 bitfields. Move voffset in struct iterator_stack_entry after the
10043 bitfields. Move tab_width near after another short.
10044
10045 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10046
10047 * frame.h (struct frame): Move alpha from the middle of bitfields.
10048
10049 * window.h (struct window): Move frozen_window_start_p after the
10050 rest of the bitfields to reduce padding.
10051
10052 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * xterm.h (x_display_info): Remove `height' and `width' members.
10055
10056 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10057
10058 * w32term.h (w32_display_info): Remove `height', `width',
10059 `height_in', and `width_in' members.
10060
10061 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10062 New functions.
10063 (x_calc_absolute_position): Use them.
10064 (x_term_init): Omit removed `height' and `width' members.
10065
10066 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10067 New functions.
10068 (w32_read_socket, x_calc_absolute_position): Use them.
10069 (w32_initialize_display_info, w32_term_init): Omit removed members
10070 of w32_display_info.
10071
10072 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10073 New functions.
10074 (ns_initialize_display_info): Omit removed members of ns_display_info.
10075
10076 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10077 New functions.
10078 (x_calc_absolute_position): Use them.
10079 (x_term_init): Omit removed `height' and `width' members.
10080
10081 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10082 (compute_tip_xy):
10083 * frame.c (x_fullscreen_adjust):
10084 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10085 x_display_pixel_width.
10086
10087 2008-09-18 Kenichi Handa <handa@m17n.org>
10088
10089 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10090 (composition_compute_stop_pos): Fix handling of static composition.
10091 (Fcomposition_get_gstring): Check FROM and TO at first.
10092
10093 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10094
10095 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10096 mixup (YAILOM).
10097
10098 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10099
10100 * indent.c (Fvertical_motion): Use position reported by iterator
10101 instead of PT for determining screen motion (bug#943).
10102
10103 2008-09-17 Romain Francoise <romain@orebokech.com>
10104
10105 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10106
10107 2008-09-17 Kenichi Handa <handa@m17n.org>
10108
10109 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10110
10111 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10112 if necessary.
10113
10114 2008-09-16 Kenichi Handa <handa@m17n.org>
10115
10116 * coding.c (make_conversion_work_buffer): Avoid calling
10117 Fget_buffer_create if it is not necessary.
10118
10119 2008-09-15 Martin Rudalics <rudalics@gmx.at>
10120
10121 * window.c (Fselect_window): Don't update window_select_count and
10122 use_time when norecord is not nil.
10123
10124 2008-09-14 Kenichi Handa <handa@m17n.org>
10125
10126 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10127 specpdl_ptr.
10128
10129 2008-09-12 Kenichi Handa <handa@m17n.org>
10130
10131 * indent.c (scan_for_column): Don't handle automatic composition
10132 if the current buffer is not associated with a window.
10133
10134 * composite.c (composition_reseat_it): If the current buffer is
10135 not associated with a window, ignore the automatic composition.
10136 (find_automatic_composition): Likewise.
10137
10138 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10139
10140 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10141 (Fgpm_mouse_stop): Use it.
10142 * termhooks.h (close_gpm): Declare.
10143 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10144 connection if Gpm_GetEvent fails.
10145
10146 * window.c (set_window_buffer): Always preserve current-buffer.
10147
10148 2008-09-12 Glenn Morris <rgm@gnu.org>
10149
10150 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10151
10152 2008-09-11 Glenn Morris <rgm@gnu.org>
10153
10154 * charset.c (charset-map-path): Doc fix.
10155
10156 2008-09-10 Kenichi Handa <handa@m17n.org>
10157
10158 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10159
10160 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10161 compose a grapheme cluster with the preceding base glyph.
10162
10163 * composite.c (composition_compute_stop_pos): Fix previous change.
10164 Reset cmp_it->id to -1 at first.
10165
10166 2008-09-10 Glenn Morris <rgm@gnu.org>
10167
10168 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10169
10170 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * keyboard.c (read_key_sequence): Reapply translation maps when
10173 switching keyboards.
10174
10175 2008-09-09 Kenichi Handa <handa@m17n.org>
10176
10177 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10178 characters.
10179
10180 * composite.c (FORWARD_CHAR): Fix calculation
10181 of (POSITION).pos_byte.
10182 (composition_compute_stop_pos): Limit the search of composition to
10183 at most 500 characters ahead. If we reach the limit or find a
10184 newline, set cmp_it->ch to -2 and return 0.
10185 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10186
10187 2008-09-08 Kenichi Handa <handa@m17n.org>
10188
10189 * indent.c (Fvertical_motion): Be sure to set
10190 it_overshoot_expected if it.cmp_it.id is non-negative.
10191
10192 2008-09-07 Andreas Schwab <schwab@suse.de>
10193
10194 * callproc.c (Fcall_process): Don't hold references to string data
10195 across garbage collection. Move initialisation of new_argv down
10196 to avoid compiler bug.
10197
10198 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10199
10200 * process.c (Fsystem_process_attributes): Doc fix.
10201
10202 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
10203
10204 * callproc.c (Fcall_process): Canonicalize current directory name.
10205
10206 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10207 iterator advances to the next line if the current line ends in a
10208 continued tab.
10209
10210 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10211
10212 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10213 member to point to cmp_from.
10214
10215 * xdisp.c: Doc fix for references to gidx data member.
10216
10217 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10218
10219 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10220
10221 2008-09-07 Kenichi Handa <handa@m17n.org>
10222
10223 * composite.c (FORWARD_CHAR): Check STOP after
10224 incrementing (POSITION).pos.
10225
10226 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10227
10228 * process.c (Fsystem_process_attributes): Doc fix.
10229
10230 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10231
10232 * keyboard.c (Ftop_level): Doc fix.
10233
10234 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10235
10236 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10237 minibuffer, don't let lower part of menu invade the echo area.
10238
10239 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10240 "char *q" to access menu text and advance through it. Revert the
10241 change that displayed ">" instead of ASCII character 0x10.
10242
10243 2008-09-05 Eli Zaretskii <eliz@gnu.org>
10244
10245 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10246 toggle boxes and radio buttons on MS-DOS as well.
10247
10248 2008-09-05 Kenichi Handa <handa@m17n.org>
10249
10250 * composite.c (autocmp_chars): Check lookback count.
10251 (composition_compute_stop_pos): Set cmp_it->lookback.
10252 (composition_reseat_it): Check lookback count.
10253 (struct position_record): New struct.
10254 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10255 (find_automatic_composition): New function.
10256 (composition_adjust_point): Use find_automatic_composition.
10257
10258 * dispextern.h (struct composition_it): New member lookback.
10259
10260 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
10261
10262 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10263 if moving by a single line.
10264
10265 2008-09-02 Andreas Schwab <schwab@suse.de>
10266
10267 * xterm.c (x_delete_display): Fix merge error.
10268
10269 * fileio.c (Fexpand_file_name): Remove unused variables.
10270
10271 2008-09-02 Eli Zaretskii <eliz@gnu.org>
10272
10273 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10274 storage on all platforms, not just on DOS_NT.
10275
10276 2008-09-02 Jason Rumney <jasonr@gnu.org>
10277
10278 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10279 Ensure mouse is not grabbed after menu is finished.
10280
10281 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
10282
10283 * xfaces.c (Finternal_set_alternative_font_family_alist)
10284 (Finternal_set_alternative_font_registry_alist): Properly copy
10285 entire alist structure.
10286
10287 2008-09-01 Kenichi Handa <handa@m17n.org>
10288
10289 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10290 representative chars of the script is a vector.
10291 (ftfont_list): Handle the case where the representative chars of
10292 the script is a vector.
10293
10294 * character.c (syms_of_character): Docstring of
10295 script-representative-chars fixed.
10296
10297 2008-08-31 Eli Zaretskii <eliz@gnu.org>
10298
10299 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10300 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10301 the menu. Allocate larger buffer for `text', to account for
10302 possible ^C characters.
10303
10304 2008-08-31 Martin Rudalics <rudalics@gmx.at>
10305
10306 * xdisp.c (prepare_menu_bars): Don't call
10307 Vwindow_size_change_functions with arg Qt.
10308
10309 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10310
10311 * font.h (font_range):
10312 * fileio.c (report_file_error):
10313 * composite.c (composition_update_it): Yet another int/Lisp_Object
10314 mixup (YAILOM).
10315
10316 2008-08-30 Glenn Morris <rgm@gnu.org>
10317
10318 * data.c (Fmake_variable_frame_local): Doc fix.
10319
10320 * frame.c (Fmodify_frame_parameters): Doc fix.
10321
10322 2008-08-30 Eli Zaretskii <eliz@gnu.org>
10323
10324 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10325 needed by GetTokenInformation.
10326 (w32_system_process_attributes): Check return values of all system
10327 APIs.
10328
10329 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10330 only when the state changes.
10331 (IT_update_begin, IT_update_end): Add termscript trace.
10332
10333 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10334 clipboard is unavailable. Set dst to NULL if it doesn't point to
10335 malloc'ed data.
10336 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10337 passing random values to xfree.
10338
10339 * dispnew.c (init_display): Set `tty's association in frame's
10340 parameters alist to the name of the terminal device, if that is known.
10341
10342 2008-08-29 Jason Rumney <jasonr@gnu.org>
10343
10344 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10345
10346 2008-08-29 Eli Zaretskii <eliz@gnu.org>
10347
10348 * composite.c (fill_gstring_body): Avoid compiler warnings.
10349
10350 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10351 LGLYPH_SET_CODE to avoid compiler warnings.
10352
10353 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
10354
10355 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10356
10357 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10358 LGLYPH_SET_CODE.
10359
10360 2008-08-29 Kenichi Handa <handa@m17n.org>
10361
10362 * fileio.c (report_file_error): Don't downcase the first character
10363 of errstring if it is still unibyte.
10364
10365 2008-08-29 Kenichi Handa <handa@m17n.org>
10366
10367 These changes are to re-implement the automatic composition so
10368 that it doesn't use text properties.
10369
10370 * Makefile.in (ftfont.o): Depend on composite.h.
10371 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10372
10373 * character.h (Vunicode_category_table): Extern it.
10374
10375 * character.c (Vunicode_category_table): New variable.
10376 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10377
10378 * chartab.c (optimize_sub_char_table): Perform more greedy
10379 optimization.
10380
10381 * composite.h (enum composition_method):
10382 Delete COMPOSITION_WITH_GLYPH_STRING.
10383 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10384 (Vcomposition_function_table): Extern it.
10385 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10386 (composition_gstring_put_cache, composition_gstring_from_id)
10387 (composition_gstring_p, composition_gstring_width)
10388 (composition_compute_stop_pos, composition_reseat_it)
10389 (composition_update_it, composition_adjust_point): Extern them.
10390 (Fcomposition_get_gstring): EXFUN it.
10391
10392 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
10393 (Vcomposition_function_table)
10394 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
10395 (gstring_hash_table, gstring_work, gstring_work_headers):
10396 New variables.
10397 (gstring_lookup_cache, composition_gstring_put_cache)
10398 (composition_gstring_from_id, composition_gstring_p)
10399 (composition_gstring_width, fill_gstring_header)
10400 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10401 (composition_reseat_it, composition_update_it)
10402 (composition_adjust_point, Fcomposition_get_gstring): New functions.
10403 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10404 and gstring_work_headers. DEFVAR_LISP composition-function-table.
10405 Defsubr composition_get_gstring.
10406
10407 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10408 cmp_id.
10409 (struct glyph_string): Delete the member gidx. New members
10410 cmp_id, cmp_from, and cmp_to.
10411 (enum it_method): Delete GET_FROM_COMPOSITION.
10412 (struct composition_it): New struct.
10413 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10414 Delete c, len, cmp_id, cmp_len in u.comp.
10415
10416 * font.h (enum lgstring_indices): Delete it.
10417 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
10418 (enum lglyph_indices): Likewise.
10419 (font_range): Adjust extern.
10420 (font_fill_lglyph_metrics): Extern it.
10421
10422 * font.c (QCf): New variable.
10423 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10424 (font_prepare_composition): Delete this function.
10425 (font_range): Type and arguments changed.
10426 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10427 (font_fill_lglyph_metrics): New function.
10428 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
10429 (syms_of_font): DEFSYM QCf. Delete defsubr for
10430 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10431 Defsubr Sfont_shape_gstring.
10432
10433 * fontset.h (font_for_char): Extern it.
10434
10435 * fontset.c (font_for_char): New function.
10436
10437 * ftfont.c: Include composite.h.
10438 (ftfont_resolve_generic_family): Add langset "en" to pattern.
10439 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10440
10441 * indent.c: Include composite.h and dispextern.h.
10442 (check_composition): Delete this function.
10443 (scan_for_column): Handle composition by
10444 composition_compute_stop_pos, composition_reseat_it, and
10445 composition_update_it.
10446 (compute_motion): Likewise.
10447 (Fvertical_motion): Fix checking of composition.
10448
10449 * keyboard.c (adjust_point_for_property): Check composition by
10450 composition_adjust_point.
10451
10452 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
10453 struct glyph_string.
10454
10455 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10456 (append_composite_glyph): Adjust for the change of struct it and
10457 struct glyph.
10458 (produce_composite_glyph): Likewise.
10459
10460 * w32term.c (x_draw_composite_glyph_string_foreground):
10461 Adjust for the change of struct glyph_string.
10462 (x_draw_glyph_string): Likewise.
10463
10464 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10465 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10466
10467 * xdisp.c: Include font.h.
10468 (it_props): Delete the entry for Qauto_composed.
10469 (init_iterator): Initialize it->cmp_it.id to -1.
10470 (compute_stop_pos): Call composition_compute_stop_pos.
10471 (face_before_or_after_it_pos): Adjust for the change of struct it.
10472 (handle_auto_composed_prop): Delete it.
10473 (handle_composition_prop): Handle only static composition.
10474 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10475 from xassert. Initialize it->cmp_it.stop_pos.
10476 (push_it): Adjust for the change of struct it.
10477 (pop_it): Likewise.
10478 (get_next_element): Delete next_element_from_composition.
10479 (CHAR_COMPOSED_P): New macro.
10480 (get_next_display_element): For automatic composition, get a face
10481 from the font in the glyph-string.
10482 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
10483 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
10484 (next_element_from_string): Check if the character at the current
10485 position is composed by CHAR_COMPOSED_P.
10486 (next_element_from_buffer): Likewise.
10487 (next_element_from_composition): Adjust for the change of struct it.
10488 Update it->cmp_it.
10489 (dump_glyph): Adjust for the change of struct glyph.
10490 (fill_composite_glyph_string): Adjust for the change of struct
10491 it and struct glyph. Don't handle automatic composition here.
10492 (fill_gstring_glyph_string): New function.
10493 (x_get_glyph_overhangs): Handle automatic composition.
10494 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
10495 (BUILD_GSTRING_GLYPH_STRING): New macro.
10496 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10497 automatic composition.
10498 (append_composite_glyph): Adjust for the change of struct it and
10499 struct glyph.
10500 (x_produce_glyphs): Adjust for the change of struct it.
10501
10502 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10503 the change of struct glyph_string.
10504 (x_draw_glyph_string): Likewise.
10505
10506 2008-08-29 Glenn Morris <rgm@gnu.org>
10507
10508 * buffer.c (word-wrap): Doc fix.
10509 * xdisp.c (truncate-partial-width-windows): Doc fix.
10510 Increase default to 50.
10511
10512 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
10513
10514 * xdisp.c (update_tool_bar_unwind): New function.
10515 (update_tool_bar): Temporarily set selected frame before building
10516 tool-bar items.
10517
10518 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
10519
10520 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10521 snprintf, respectively.
10522 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10523
10524 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
10525
10526 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10527 LDFLAGS to GNUstep CC invocation.
10528
10529 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
10530
10531 * indent.c (Fvertical_motion): Revert last change. Handle the
10532 general case where we are moving forward, and PT spans multiple
10533 screen lines.
10534
10535 * eval.c (find_handler_clause): Temporarily increase
10536 max-lisp-eval-depth while printing the backtrace buffer, to
10537 guarantee that help-mode code can run.
10538
10539 2008-08-27 Eli Zaretskii <eliz@gnu.org>
10540
10541 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10542 colors under -rv.
10543 (IT_set_frame_parameters): Don't swap foreground and background
10544 colors if `(reverse . t)' is present in the frame properties.
10545 (internal_terminal_init): Call init_frame_faces only for the
10546 initial frame.
10547
10548 2008-08-27 Andreas Schwab <schwab@suse.de>
10549
10550 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10551
10552 2008-08-27 Andreas Schwab <schwab@suse.de>
10553
10554 * search.c (search_buffer): Set char_base to zero only at the end.
10555
10556 2008-08-27 Kenichi Handa <handa@m17n.org>
10557
10558 * fileio.c (report_file_error): Fix handling of multibyte error string.
10559
10560 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10561
10562 * xterm.c (x_term_init): Temporarily hide the partially
10563 initialized terminal while calling vendor-specific-keysyms.
10564
10565 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10566
10567 * msdos.c (internal_terminal_init): Most initializations done only
10568 once, especially initial_screen_colors[] and termscript open.
10569
10570 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10571
10572 * eval.c (Fcondition_case): Doc fix.
10573
10574 * widgetprv.h (EmacsFramePart): Change font member to the new font
10575 struct.
10576
10577 * widget.c: Include character.h and font.h for XSETFONT.
10578 (setup_frame_gcs): Compute X font id from font struct, just once.
10579
10580 2008-08-26 Eli Zaretskii <eliz@gnu.org>
10581
10582 * term.c (get_named_tty): Fix last change.
10583
10584 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
10585
10586 * indent.c (Fvertical_motion): If moving forward starting from a
10587 multi-line string, move the iterator to the last line of that string.
10588
10589 2008-08-25 Eli Zaretskii <eliz@gnu.org>
10590
10591 * frame.c (do_switch_frame): Mark previously displayed frame as
10592 obscured for FRAME_MSDOS_P frames as well.
10593
10594 2008-08-24 Eli Zaretskii <eliz@gnu.org>
10595
10596 * frame.c (make_terminal_frame): Initialize f->terminal,
10597 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10598 Set the top frame to newly created frame.
10599 (Fmake_terminal_frame): Reuse the_only_display_info.
10600
10601 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10602 estimating available memory.
10603
10604 2008-08-23 David Reitter <david.reitter@gmail.com>
10605
10606 * nsterm.m (ns_draw_window_cursor): Don't call
10607 NSDisableScreenUpdates and NSEnableScreenUpdates on
10608 non-NS_IMPL_COCOA systems.
10609
10610 2008-08-23 Andreas Schwab <schwab@suse.de>
10611
10612 * process.c (procfs_system_process_attributes): Fix use of
10613 uninitialized variables.
10614
10615 2008-08-23 Eli Zaretskii <eliz@gnu.org>
10616
10617 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10618
10619 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10620 calling tty-set-up-initial-frame-faces.
10621
10622 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10623 Allow MSDOS frames along with X frames.
10624
10625 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10626 addition to output_termcap.
10627
10628 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10629
10630 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10631 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10632 highlight.
10633
10634 * process.c [!subprocesses]: Define QCname.
10635 (syms_of_process): Intern and staticpro it.
10636
10637 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
10638 Adjust for changes in encoding/decoding routines.
10639 Use encode_coding_object and decode_coding_object instead of
10640 encode_coding and decode_coding.
10641
10642 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
10643
10644 * dosfns.c: Include frame.h before termhooks.h.
10645 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10646 variable termscript.
10647
10648 * s/msdos.h (USER_FULL_NAME): Define.
10649 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10650
10651 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10652 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10653 pw->pw_gecos.
10654
10655 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10656 SELECTED_FRAME as additional (1st) argument.
10657 (tty_read_avail_input): Handle output_msdos_raw in
10658 addition to output_termcap.
10659
10660 * msdos.c: Include frame.h before termhooks.h.
10661 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10662 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10663 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10664 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10665 (IT_set_terminal_modes, IT_reset_terminal_modes)
10666 (IT_set_frame_parameters): Use tty->termscript instead of a global
10667 variable termscript.
10668 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10669 global variable terminal_coding. Don't refer to
10670 Vnonascii_translation_table.
10671 (internal_terminal_init): Set Vwindow_system in current_kboard.
10672 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10673 Announce date and time of session start, if termscript is open.
10674 Don't zero out the_only_display_info (it is done in
10675 term.c:init_tty). Open termscript only of not already open.
10676 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
10677 here instead of dos_ttraw. Don't initialize display if this is an
10678 initial tty. Don't set FRAME_FONT.
10679 (Vwindow_system_version): Bump to 23.
10680 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10681 is available, set up mouse_position_hook.
10682 (dos_ttraw, IT_set_terminal_modes): If called with initial
10683 terminal, do nothing.
10684 (IT_set_frame_parameters): Handle the Qtty_type frame
10685 parameter by calling internal_terminal_init.
10686 (dos_set_window_size, show_mouse_face)
10687 (clear_mouse_face, IT_note_mode_line_highlight)
10688 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10689 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10690 (initialize_msdos_display): New function.
10691 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10692 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10693 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10694 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
10695 Accept additional argument: a pointer to a frame. Update all callers.
10696 (request_sigio, unrequest_sigio): Don't define, now defined on
10697 sysdep.c.
10698 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10699
10700 * term.c [MSDOS]: Include msdos.h.
10701 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10702 conditional to DOS_NT. Allow only one call to this function in a
10703 session. Don't allocate a new struct tty_display_info; instead,
10704 reuse the_only_display_info. Call get_tty_size to get screen
10705 dimensions. Call init_baud_rate to set bad_rate.
10706 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10707 (Fsuspend_tty) [MSDOS]: Don't close input and output.
10708 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
10709 (get_tty_terminal, get_named_tty, Ftty_type)
10710 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10711 output_termcap.
10712 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10713 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
10714 only when subprocesses are supported.
10715
10716 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10717 f->output_data.x.
10718 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10719 terminal devices.
10720
10721 * msdos.h: Remove definition of struct x_display_info and struct
10722 x_output.
10723 (FRAME_FONT): Use output_data.tty.
10724 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
10725 (struct x_display_info): Rename from display_info. Update all users in
10726 msdos.c.
10727 (struct x_output): Remove background_pixel and foreground_pixel.
10728 (the_only_display_info): Rename from the_only_x_display.
10729 (dos_ttraw): Update prototype.
10730
10731 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10732 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10733
10734 2008-08-23 Jason Rumney <jasonr@gnu.org>
10735
10736 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10737 (fn_TIFFSetDirectory): New library function used.
10738 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10739 (tiff_load): Use :index to select among multiple images. Set count
10740 property when multiple images exist.
10741 (gif_format): Use :index, not :image.
10742
10743 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
10744
10745 * xdisp.c (try_scrolling): Check INT_MAX instead of
10746 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10747 to obtain INT_MAX.
10748
10749 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10750
10751 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10752
10753 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10754
10755 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10756 GNUstep library location.
10757
10758 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
10759
10760 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10761 before using it.
10762
10763 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10764
10765 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10766
10767 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10768 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10769 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10770 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10771 (EmacsApp-cursor_blink_handler): Remove declaration.
10772 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10773 match 01 Feb 2008 changes in xterm.c.
10774 (ns_read_socket): Add cast to avoid warning.
10775 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10776 GNUstep.
10777
10778 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
10779
10780 * xselect.c (x_get_foreign_selection): Return nil if desired
10781 selection could not be obtained, instead of signalling an error.
10782
10783 2008-08-20 David Reitter <david.reitter@gmail.com>
10784
10785 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10786 * nsterm.m: Remove ns-specific code for cursor blinking.
10787 (ns_draw_window_cursor): Clear cursor properly rather than
10788 redrawing the area. Respect width of bar cursors.
10789 These changes enable the use of generic blink-cursor-mode and
10790 generic cursor types in NS and support smooth cursor movements (do
10791 not blink off after command).
10792 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10793 Nextstep, too.
10794
10795 2008-08-19 Kenichi Handa <handa@m17n.org>
10796
10797 * font.c (Vfont_log_deferred): New variable.
10798 (font_add_log): Check Vfont_log_deferred.
10799 (font_deferred_log): New function.
10800
10801 * font.h (font_deferred_log): Extern it.
10802
10803 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10804 for sorting.
10805 (face_for_char): Use deferred log.
10806
10807 2008-08-18 Kenichi Handa <handa@m17n.org>
10808
10809 * fontset.c (face_for_char): Add font log.
10810
10811 * font.c (font_add_log): Add the font properties :script, :lang,
10812 and :otf in the log.
10813
10814 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
10815
10816 * xdisp.c: Remove dead code.
10817 (handle_invisible_prop, next_overlay_string): Defer call to
10818 setup_for_ellipsis.
10819 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10820
10821 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
10822
10823 * xfaces.c (lookup_derived_face): Properly handle possible zero
10824 return value of get_lface_attributes.
10825 (merge_faces): Don't tell lookup_derived_face to signal an error
10826 if face is not found.
10827
10828 * dired.c (Fdirectory_files): Doc fix.
10829
10830 * process.c (make_process): Initialize kill_without_query struct
10831 member.
10832
10833 2008-08-15 Eli Zaretskii <eliz@gnu.org>
10834
10835 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10836 Alternative calculation of totphys for Visual Studio 6.
10837
10838 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10839
10840 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10841 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10842 All users changed.
10843 (stat): Only root directory passed to GetDriveType. Allow RAM
10844 disk as well as local fixed disk when w32-get-true-file-attributes
10845 is set to `local'.
10846 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10847 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10848 (w32_cached_id, w32_add_to_cache): New functions.
10849 (get_name_and_id): Look account names in the cache before calling
10850 lookup_account_sid.
10851 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10852 New initialization flags.
10853 (globals_of_w32): Initialize them to zero.
10854 (w32_system_process_attributes): Use w32_cached_id and
10855 w32_add_to_cache.
10856
10857 2008-08-14 Lawrence Mitchell <wence@gmx.li>
10858
10859 * lread.c (Fread_char, Fread_char_exclusive): If no character
10860 event is read before timeout is reached, return nil, rather than
10861 converting to a number.
10862
10863 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
10864
10865 * fns.c (use_dialog_box): Doc fix.
10866
10867 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10868 on OS X.
10869
10870 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
10871
10872 * frame.c (Qns_parse_geometry): New var.
10873 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10874
10875 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
10876
10877 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10878 space character in calculating tabs.
10879
10880 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10881
10882 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10883
10884 2008-08-10 Glenn Morris <rgm@gnu.org>
10885
10886 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10887 silence gcc "limited range of data type" warnings in some
10888 make_fixnum_or_float calls.
10889
10890 2008-08-09 Eli Zaretskii <eliz@gnu.org>
10891
10892 * w32.c (w32_system_process_attributes): If the process does not
10893 exist, return nil.
10894
10895 * w32.c: Include thelp32.h, psapi.h and coding.h.
10896 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10897 declarations.
10898 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10899 (Process32Next_Proc): New typedefs.
10900 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10901 (g_b_init_process32_next, g_b_init_open_thread_token)
10902 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10903 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10904 (g_b_init_get_process_working_set_size)
10905 (g_b_init_global_memory_status_ex): New static variables.
10906 (globals_of_w32): Initialize them.
10907 (create_toolhelp32_snapshot, process32_first, process32_next)
10908 (open_thread_token, impersonate_self, revert_to_self)
10909 (get_process_memory_info, get_process_working_set_size)
10910 (global_memory_status, global_memory_status_ex): New wrapper
10911 functions.
10912 (w32_list_system_processes, w32_system_process_attributes)
10913 (enable_privilege, restore_privilege, ltime, process_times):
10914 New functions.
10915 (convert_time_raw): New function.
10916 (convert_time): Remove conversion of FILETIME into time in 100
10917 nsec units, call convert_time_raw instead.
10918
10919 * process.h (w32_list_system_processes, w32_system_process_attributes):
10920 Add prototypes.
10921 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10922 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10923 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10924 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10925
10926 * process.c (Fsystem_process_attributes): Doc fix.
10927
10928 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
10929
10930 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10931 a continued multi-char glyph; if so, advance to the actual glyph.
10932
10933 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10934
10935 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10936
10937 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10938 (.m.o): Use it.
10939 * config.in: Regenerate.
10940
10941 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
10942
10943 * xdisp.c (redisplay_window): Revert last change.
10944 (try_window): Check bottom scroll margin too.
10945
10946 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10947
10948 * config.in: Regenerate.
10949
10950 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10951 -list-load-path-shadows'.
10952 (nsgui.h): Reduce number of things depending on it.
10953
10954 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10957 instead of window-end which does the wrong thing at eob.
10958 (try_cursor_movement): Minor optimization.
10959 (redisplay_window): If scroll margin is defined, don't assume
10960 window doesn't need scrolling.
10961
10962 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10963
10964 * config.in: Regenerate.
10965
10966 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10967 (mostlyclean): Don't delete *.d under NS.
10968
10969 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10970
10971 2008-08-06 Kenichi Handa <handa@m17n.org>
10972
10973 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10974
10975 2008-08-06 Andreas Schwab <schwab@suse.de>
10976
10977 * config.in: Regenerate.
10978
10979 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
10980
10981 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10982 forcing a window start.
10983
10984 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10985 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10986
10987 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10988
10989 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10990 argument.
10991
10992 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
10993
10994 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10995 <scroll-down-aggressively, before-change-functions>:
10996 <after-change-functions>: Reflow docstrings.
10997
10998 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10999 Ken Raeburn <raeburn@gnu.org>
11000
11001 Dock menu customization, based on a patch by Ken Raeburn, plus some
11002 other fixes.
11003 * nsmenu.m (dockMenu): New variable.
11004 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11005
11006 * nsterm.h (dockMenu): Declare.
11007
11008 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11009 (ns_term_init): Initialize dockMenu.
11010 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11011 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11012 left.
11013
11014 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11015
11016 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11017
11018 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11019
11020 * config.in: Regenerate.
11021
11022 2008-08-04 Seiji Zenitani <zenitani@mac.com>
11023
11024 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11025
11026 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11027
11028 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11029
11030 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11031
11032 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11033
11034 * keyboard.h: Comment an #endif.
11035
11036 * lisp.h (have_menus_p): Adjust comment.
11037
11038 * menu.c (find_and_return_menu_selection): Fix comparison with
11039 client_data.
11040
11041 * nsmenu.m (popup_activated_flag): New variable.
11042 (popup_activated): New function.
11043 (menu-or-popup-active-p): New exported lisp definition.
11044 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11045 when popup done.
11046 (ns_popup_dialog): Set popup_activated_flag.
11047
11048 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11049 version for GNUstep (handled by conditional typedef in nsterm.m).
11050 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11051 in rgb.txt).
11052
11053 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11054
11055 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11056
11057 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11058
11059 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11060 shortcircuit if popup_activated like GTK and X toolkit.
11061
11062 * m/inter386.h: Change DARWIN to DARWIN_OS.
11063
11064 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11065 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11066 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11067 comment on NO_SOCK_SIGIO.
11068
11069 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11070
11071 * nsterm.m (windowDidResize): Remove stopModal call.
11072
11073 2008-08-03 Andreas Schwab <schwab@suse.de>
11074
11075 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11076 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11077
11078 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11079
11080 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11081 Don't use uninitialized pointer variable when using getrlimit.
11082
11083 2008-08-02 Jason Rumney <jasonr@gnu.org>
11084
11085 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11086
11087 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11088
11089 * alloc.c (NSTATICS): Bump to 0x640.
11090
11091 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11092
11093 * lisp.h: Add prototype for directory_files_internal.
11094
11095 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11096 New functions.
11097 (syms_of_process): Defsubr them. Add initializations for various
11098 Q* symbols used in procfs_system_process_attributes.
11099 (procfs_list_system_processes, procfs_system_process_attributes)
11100 [HAVE_PROCFS]: New functions.
11101 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11102 (procfs_get_total_memory): New functions.
11103
11104 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11105
11106 * xfaces.c (Fx_load_color_file): Fix previous change;
11107 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11108
11109 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11110
11111 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11112
11113 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11114
11115 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11116
11117 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
11118
11119 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11120
11121 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11122 define NSApplicationDelegateReplySuccess.
11123 (EmacsView -converstationIdentifier): Use long instead of
11124 NSInteger for GNUstep, since it doesn't have NSInteger.
11125
11126 * xmenu.c: Revert last change.
11127
11128 * keyboard.h: Fix last change.
11129
11130 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11131
11132 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11133 on Windows.
11134
11135 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11136
11137 Warning clearing and clean-up in NS port.
11138 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11139 Add prototypes.
11140 * nsgui.h (FACE_DEFAULT): Remove, unused.
11141 (XGCValues): Change colors to unsigned long.
11142 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11143 nsterm.m.
11144 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11145 (ns_list_fonts): Remove, unused.
11146 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11147 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11148 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11149 (nsfont_draw): Compare face colors to 0, not nil.
11150 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11151 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11152 (-addSubmenuWithTitle:): Use NSMenuItem class.
11153 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11154 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11155 (ns_clip_to_row): Make gc arg a BOOL.
11156 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11157 ns_clip_to_row() call.
11158 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11159 used). Cast FRAME_FONT assignments.
11160 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11161 (ns_string_to_lispmod): Change arg to const char.
11162 (ns_term_init): Use NSMenuItem class.
11163 (EmacsApp -openFile:): Move to different section of file.
11164 (EmacsApp -application:openFiles:): Don't return a value, call
11165 -replyToOpenOrPrint:.
11166 (EmacsView -keyDown:): Fix up cast.
11167 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11168 (EmacsView -menuDown:): Cast tag in call to
11169 find_and_call_menu_selection().
11170 (ns_list_fonts): Remove, unused.
11171 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11172 (ns_fontname_to_xlfd): Make static.
11173 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11174 Remove prototypes (now in keyboard.h).
11175 (next_menubar_widget_id): Remove, unused.
11176 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11177 Remove prototypes (now in keyboard.h).
11178 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11179
11180 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11181
11182 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11183 (floatfns.o): Depend on syssignal.h.
11184 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11185
11186 * systty.h: Fix previous change that removed BSD_TERMIOS.
11187 Add comments to #ifdefs.
11188
11189 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11190
11191 * w32fns.c (w32-load-color-file): Remove.
11192 (x-open-connection): Use renamed Fx_load_color_file.
11193 * xfaces.c (x-load-color-file): Add.
11194 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11195 Emacs.clr.
11196 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11197
11198 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
11199
11200 * dbusbind.c (Fdbus_call_method_asynchronously)
11201 (Fdbus_method_error_internal): New defuns.
11202 (xd_read_message): Handle also reply messages.
11203 (Vdbus_registered_functions_table): Extend docstring.
11204
11205 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
11206
11207 * keyboard.c (gobble_input): Fix previous change.
11208
11209 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11210
11211 * bitmaps/README:
11212 * xfns.c:
11213 * termcap.c:
11214 * term.c:
11215 * syswait.h:
11216 * systty.h:
11217 * systime.h:
11218 * syssignal.h:
11219 * sysdep.c:
11220 * process.h:
11221 * process.c:
11222 * print.c:
11223 * ndir.h:
11224 * lread.c:
11225 * keyboard.c:
11226 * getpagesize.h:
11227 * floatfns.c:
11228 * fileio.c:
11229 * emacs.c:
11230 * doc.c:
11231 * dispnew.c:
11232 * dired.c:
11233 * data.c:
11234 * callproc.c:
11235 * buffer.c:
11236 * README:
11237 * Makefile.in:
11238 * s/template.h:
11239 * s/msdos.h:
11240 * m/vax.h: Remove VMS support.
11241 * s/vms.h:
11242 * vlimit.h:
11243 * uaf.h:
11244 * temacs.opt:
11245 * param.h:
11246 * ioctl.h: Remove file.
11247
11248 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11249
11250 * s/ms-w32.h (MULTI_KBOARD): Remove.
11251 * xterm.c:
11252 * xselect.c:
11253 * xfns.c:
11254 * window.c:
11255 * w32term.c:
11256 * w32fns.c:
11257 * terminal.c:
11258 * termhooks.h:
11259 * term.c:
11260 * sysdep.c:
11261 * keyboard.h:
11262 * keyboard.c:
11263 * frame.h:
11264 * frame.c:
11265 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11266 * config.in: Regenerate.
11267
11268 2008-07-30 Jason Rumney <jasonr@gnu.org>
11269
11270 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11271
11272 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11273 (w32font_open_internal): Get unicode version of textmetrics.
11274 Don't enable or disable glyph indices here.
11275 (w32font_open): Disable use of glyph indices.
11276
11277 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11278
11279 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
11280
11281 * minibuf.c (Vread_buffer_function): Doc fix.
11282
11283 2008-07-30 John Paul Wallington <jpw@pobox.com>
11284
11285 * minibuf.c (read_buffer_completion_ignore_case): New var.
11286 (Fread_buffer): Use it.
11287
11288 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11289
11290 * systty.h (sensemode): Remove empty #if. Remove reference to
11291 BSD_TERMIOS, unused.
11292
11293 * sysdep.c: Remove reference to DGUX.
11294 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11295
11296 * config.in: Regenerate.
11297
11298 2008-07-30 Jason Rumney <jasonr@gnu.org>
11299
11300 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11301
11302 2008-07-29 Jason Rumney <jasonr@gnu.org>
11303
11304 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11305 is populated.
11306 (uniscribe_encode_char): Always use uniscribe.
11307 Avoid using context if cache is populated.
11308
11309 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11310
11311 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11312 open menu.
11313
11314 * gtkutil.c (menu_nav_ended): Remove.
11315 (create_menus): Remove signal connect for menu_nav_ended.
11316
11317 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
11318
11319 * xdisp.c (redisplay_window): Check return value of
11320 compute_window_start_on_continuation_line before forcing a window
11321 start.
11322
11323 2008-07-28 Jason Rumney <jasonr@gnu.org>
11324
11325 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11326
11327 * w32term.c (w32_enable_unicode_output, cleartype_active):
11328 Remove obsolete display options.
11329 (x_draw_glyph_string_background): Don't use old cleartype_active
11330 workaround.
11331 (w32_initialize): Remove cleartype_active initialization.
11332 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11333
11334 2008-07-28 Andreas Schwab <schwab@suse.de>
11335
11336 * lisp.h (init_weak_hash_tables, syms_of_font)
11337 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11338 (remove_hash_entry): Don't declare.
11339 * eval.c (maybe_call_debugger): Make static and move before use.
11340 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11341 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11342 * xterm.h (x_set_frame_alpha): Declare.
11343
11344 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11345
11346 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11347 (create_menus): Connect selection-done to menu_nav_ended.
11348
11349 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11350
11351 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11352 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11353 parameter with read of 'alpha' one.
11354 (Qns_frame_parameter): Remove.
11355 * nsselect.m (selection-coding-system)
11356 (next-selection-coding-system, Vselection_coding_system)
11357 (Vnext_selection_coding_system): Drop.
11358
11359 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11360
11361 * nsfns.m (do-applescript, do_applescript): Rename to
11362 ns-do-applescript, ns_do_applescript, and move within file.
11363
11364 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11365
11366 Remove support for Mac Carbon.
11367 * mactoolbox.c:
11368 * macterm.h:
11369 * macterm.c:
11370 * macselect.c:
11371 * macmenu.c:
11372 * macgui.h:
11373 * macfns.c:
11374 * mac.c: Remove file.
11375 * s/darwin.h:
11376 * m/intel386.h:
11377 * xfaces.c:
11378 * xdisp.c:
11379 * window.c:
11380 * tparam.c:
11381 * termhooks.h:
11382 * termcap.c:
11383 * term.c:
11384 * syssignal.h:
11385 * sysselect.h:
11386 * sysdep.c:
11387 * process.c:
11388 * lread.c:
11389 * lisp.h:
11390 * keyboard.c:
11391 * image.c:
11392 * fringe.c:
11393 * frame.h:
11394 * frame.c:
11395 * fontset.c:
11396 * font.h:
11397 * font.c:
11398 * fns.c:
11399 * fileio.c:
11400 * emacs.c:
11401 * dispnew.c:
11402 * dispextern.h:
11403 * config.in:
11404 * atimer.c:
11405 * Makefile.in: Remove code for Carbon.
11406
11407 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11408
11409 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11410
11411 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11412
11413 * macterm.h (kCGBitmapByteOrder32Host): New define for
11414 non-universal SDKs.
11415
11416 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11417 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11418
11419 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11420 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11421
11422 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11423
11424 * w32inevt.c: Include dispextern.h.
11425
11426 2008-07-26 Andreas Schwab <schwab@suse.de>
11427
11428 * print.c (print_object): Fix off-by-one in last change.
11429
11430 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
11431
11432 * term.c (syms_of_term): Don't initialize default_orig_pair,
11433 default_set_foreground and default_set_background on Windows.
11434
11435 2008-07-25 Jason Rumney <jasonr@gnu.org>
11436
11437 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11438 ScriptItemize. Clean up return value checking. Remove unused
11439 variables.
11440 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11441 shaping engine.
11442
11443 * w32font.c (w32font_has_char): Handle the case where we can't
11444 determine the script for a character.
11445
11446 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11447
11448 * term.c (syms_of_term): Initialize default_orig_pair,
11449 default_set_foreground, and default_set_background.
11450
11451 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11452 clash (bug#86).
11453 (getloadavg): Callers changed.
11454
11455 * image.c (svg_load_image): Fix last change.
11456 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11457 image size is valid. Use g_object_unref instead of deprecated
11458 rsvg_handle_free to free rsvg handle.
11459 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11460
11461 2008-07-25 Jason Rumney <jasonr@gnu.org>
11462
11463 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11464 surrogates before looking up glyph index.
11465 (w32font_text_extents): Encode as surrogates if falling back to
11466 functions that need UTF-16 wide chars.
11467
11468 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11469 BMP as surrogates before looking up glyph index.
11470
11471 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * image.c (svg_load_image): Check for failure in return value of
11474 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11475
11476 2008-07-25 Jason Rumney <jasonr@gnu.org>
11477
11478 * w32font.c (Fx_select_font): Reverse sense of second arg.
11479
11480 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11481
11482 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11483 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11484
11485 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11486 (PURESIZE): Use it.
11487
11488 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11489
11490 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11491 * m/alpha.h (TEXT_END):
11492 * m/ibmrs6000.h (TEXT_END):
11493 * m/macppc.h (TEXT_END):
11494 * s/darwin.h (TEXT_END):
11495 * s/msdos.h (TEXT_END): Remove, unused.
11496 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11497 * s/cygwin.h: Remove comment.
11498
11499 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11500 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11501 * m/intel386.h (DOT_GLOBAL_START):
11502 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11503 (USG): Remove, file not used on USG platforms.
11504
11505 * Makefile.in (HAVE_X11): Remove empty #else.
11506
11507 2008-07-24 Andreas Schwab <schwab@suse.de>
11508
11509 * fileio.c (Finsert_file_contents): Properly adjust undo list
11510 after format conversion.
11511
11512 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11513
11514 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11515 (menu_nav_ended): Remove.
11516 (create_menus): Remove signal connect for menu_nav_ended.
11517 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11518 create_menus.
11519 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11520
11521 2008-07-23 Jason Rumney <jasonr@gnu.org>
11522
11523 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11524 with opened font.
11525 (w32font_open): Set font type to gdi.
11526
11527 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11528
11529 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11530
11531 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11532 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11533 defines it.
11534 * unexec.c (ADDR_CORRECT): Define unconditionally.
11535
11536 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11537
11538 * unexec.c: Remove code depending on !COFF and USG, the file is
11539 not used for such systems.
11540
11541 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11542 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11543 (LD_SWITCH_SYSTEM_1): Remove, update users.
11544
11545 * s/darwin.h (DATA_END):
11546 * m/intel386.h (DATA_END):
11547 * m/ibmrs6000.h (DATA_END):
11548 * m/alpha.h (DATA_END): Remove, unused.
11549
11550 * config.in: Regenerate.
11551 * s/ms-w32.h (subprocesses): Define unconditionally.
11552 * s/template.h (subprocesses): Update comment.
11553 * s/vms.h (subprocesses):
11554 * s/usg5-4.h (subprocesses):
11555 * s/hpux10-20.h (subprocesses):
11556 * s/gnu-linux.h (subprocesses):
11557 * s/cygwin.h (subprocesses):
11558 * s/bsd-common.h (subprocesses):
11559 * s/aix4-2.h (subprocesses):
11560 * s/darwin.h (subprocesses): Do not define, defined by default now.
11561
11562 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11563 Remove all references.
11564 (temacs): Add GNUstep specific ld flags.
11565
11566 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11567 similarly to what X does.
11568
11569 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11570
11571 * nsfns.m (x-list-fonts): Remove.
11572 (syms_of_nsfns): Drop the x-list-fonts declaration.
11573 * nsterm.m: Get rid of remaining "//" comments.
11574
11575 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
11576
11577 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11578
11579 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11580 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11581 (Fns_own_selection_internal, Fx_disown_selection_internal)
11582 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11583
11584 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11585 ... */' style of docstrings. Doc fixes.
11586
11587 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11588
11589 * terminfo.c (UP, BC, PC): Undo previous change.
11590
11591 * nsfns.m: Rename ns prefixed functions/variables to the
11592 corresponding x versions. Update references.
11593
11594 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11595
11596 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11597
11598 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11599
11600 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11601 Remove forwarding functions.
11602 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11603 non-static.
11604 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11605 non-static.
11606 (ns_frame_parm_handlers): Use the new names.
11607 (syms_of_nsfns): Move to the end of file.
11608
11609 * nsterm.m (syms_of_nsterm): Move to the end of file.
11610
11611 * dispnew.c (init_display): Remove code for X10.
11612
11613 2008-07-22 Jason Rumney <jasonr@gnu.org>
11614
11615 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11616 bare drive.
11617
11618 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11619
11620 * nsterm.m (syms_of_nsterm): Remove debugging println.
11621
11622 2008-07-22 David Reitter <david.reitter@gmail.com>
11623
11624 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11625 Carbon implementation of the same functionality: execute arbitrary
11626 AppleScript code.
11627
11628 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11629
11630 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11631 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11632 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11633 (Fx_display_mm_height, Fx_display_mm_width)
11634 (Fx_display_backing_store, Fx_display_visual_class)
11635 (Fx_display_save_under, Fx_open_connection)
11636 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11637 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11638 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11639 (Fx_display_pixel_width, Fx_display_pixel_height)
11640 (Fx_display_usable_bounds, Fx_display_planes)
11641 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11642 ... */' style of docstrings.
11643
11644 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11645
11646 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11647 on this platform.
11648 (mips):
11649 * m/iris4d.h (mips): Do not define.
11650 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11651
11652 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11653
11654 * image.c:
11655 * nsfns.m:
11656 * nsselect.m:
11657 * nsterm.h:
11658 * nsterm.m: Rename ns prefixed functions/variables to the
11659 corresponding x versions. Update references.
11660
11661 * m/ibms390x.h (NO_REMAP): Do not undefine.
11662
11663 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11664
11665 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
11666
11667 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11668 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11669 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11670 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11671 (Fns_display_mm_height, Fns_display_mm_width)
11672 (Fns_display_backing_store, Fns_display_visual_class)
11673 (Fns_display_save_under, Fns_open_connection)
11674 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11675 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11676 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11677 (Fns_display_pixel_width, Fns_display_pixel_height)
11678 (Fns_display_usable_bounds, Fx_display_planes)
11679 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11680
11681 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11682
11683 * print.c (print_object): Check print_depth before searching for
11684 circularities.
11685
11686 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
11687
11688 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11689 only sprintf.
11690
11691 2008-07-21 Kenichi Handa <handa@m17n.org>
11692
11693 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11694
11695 2008-07-20 Andreas Schwab <schwab@suse.de>
11696
11697 * syntax.c (find_start_pos, find_start_value)
11698 (find_start_value_byte, find_start_begv, find_defun_start)
11699 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11700
11701 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11702
11703 * s/sol2-3.h: Insert contents of s/sol2.h.
11704 (LD_SWITCH_SYSTEM): Remove redundant definition.
11705 * s/sol2.h: Remove, unused.
11706
11707 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11708
11709 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11710
11711 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11712
11713 * Makefile.in (ns_appdir): Fix typo in find command.
11714
11715 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11716
11717 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11718
11719 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11720 added not supported anymore.
11721
11722 * s/usg5-4-2.h (LIBS_SYSTEM):
11723 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11724
11725 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11726 * s/lynxos.h (GETPGRP_NO_ARG):
11727 * s/hpux10-20.h (NO_SIOCTL_H):
11728 * s/gnu.h (GETPGRP_NO_ARG):
11729 * s/gnu-linux.h (NO_SIOCTL_H):
11730 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11731 * s/cygwin.h (GETPGRP_NO_ARG):
11732 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11733 (C_DEBUG_SWITCH): Remove duplicate definition.
11734
11735 * m/ibms390.h: Remove boilerplate comments.
11736
11737 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11738
11739 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11740 (wait_reading_process_output): Remove code for SunOS, platform not
11741 supported anymore. Use SOLARIS2 instead of sun.
11742
11743 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11744
11745 * font.c (font_open_by_name): Under NS, default lface height to zero.
11746 (font_open_for_lface): Under NS, set size based on frame fontsize.
11747 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11748 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11749
11750 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11751
11752 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11753 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11754 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11755 YES/NO.
11756 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11757 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11758 * Makefile.in (clean): Clear out build destination dir.
11759
11760 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11761
11762 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11763 xterm, xselect.
11764 * lisp.h: Remove declaration of hash_remove.
11765 * nsgui.h: Remove redefinitions of hash_remove.
11766 * fns.c (hash_remove): Rename to hash_remove_from_table.
11767
11768 2008-07-19 Seiji Zenitani <zenitani@mac.com>
11769
11770 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11771 strdup() the family UTF8String before modifying it.
11772
11773 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11774
11775 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11776 NS_FACE_BACKGROUND with 0 instead of nil.
11777 * nsfont.m (nsfont_draw): Same.
11778
11779 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
11780
11781 * nsfns.m (ns_set_background_color): Fix crash.
11782
11783 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
11784
11785 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11786
11787 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11788
11789 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11790
11791 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11792
11793 * gtkutil.c: Include <config.h> instead of "config.h".
11794
11795 * lisp.h (Foverlay_buffer): Add EXFUN.
11796
11797 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11798 child process to complete child_setup. Undo 2005-09-21 change.
11799
11800 * s/darwin.h: Mention setsid after vfork.
11801
11802 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11803
11804 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11805 Depend on macgui.h.
11806
11807 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11808 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11809
11810 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11811 and f19.
11812 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11813
11814 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11815 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11816 Remove enumerators.
11817
11818 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11819 Check if FACE_FROM_ID returns NULL.
11820
11821 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11822
11823 * w32inevt.c (change_frame_size): Remove extern declaration.
11824 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11825 change_frame_size.
11826
11827 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11828
11829 * getloadavg.c: Revert last change (2008-07-15).
11830
11831 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11832
11833 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
11834 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
11835 from configure.
11836
11837 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11838
11839 * s/sol2.h:
11840 * s/sol2-4.h: Reorganize conditionals.
11841
11842 * ecrt0.c: Remove code depending on m68000, not used anymore.
11843
11844 * fns.c (hash_remove): Make static.
11845 * lisp.h (hash_remove): Don't prototype.
11846
11847 * m/ibmrs6000.h:
11848 * m/ibms390x.h:
11849 * m/macppc.h: Remove boilerplate comments.
11850
11851 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11852 Solaris, which does not need them.
11853
11854 * m/vax.h: Remove comments about unsupported systems.
11855
11856 * s/darwin.h: Reorganize ifdefs.
11857
11858 2008-07-17 Andreas Schwab <schwab@suse.de>
11859
11860 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11861
11862 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11863
11864 Use SDATA. Follow coding convention of placing operators at
11865 beginning of next line rather than end of previous line, and placing
11866 spaces around infix operators.
11867
11868 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11869 in case it was defined already.
11870 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11871 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11872 ns_default.
11873 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11874 Lisp_Objects.
11875 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11876 (ns_defined_color, ns_color_to_lisp): Declare.
11877 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11878 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11879 it's accepted even with USE_LISP_UNION_TYPE.
11880 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11881 (update_frame_tool_bar): Remove apparently obsolete tests for
11882 non-integerness of f->tool_bar_lines.
11883 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11884 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11885 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11886 (nsfont_open): Don't confuse NULL for Qnil.
11887 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11888 * menu.h (find_and_call_menu_selection):
11889 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11890 (find_and_return_menu_selection): Always return something.
11891 * frame.h: Include dispextern.h for Display_Info.
11892 (display_x_get_resource): Declare.
11893
11894 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11895
11896 * syntax.c: Remove stdio.h include accidentally introduced in
11897 Emacs.app commit.
11898 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11899 NS_IMPL_COCOA.
11900 * keyboard.c (handle_async_input, input_available_signal): Remove
11901 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11902
11903 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11904
11905 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11906 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11907 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11908 Use SDATA.
11909
11910 * keymap.c: Remove all NS-specific code.
11911 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11912 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11913 where_is_preferred_modifier, return a different value depending on how
11914 preferred is the binding.
11915 (where_is_internal): Adjust accordingly.
11916 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11917 Adjust to new preferred_sequence_p.
11918 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11919 * keyboard.c (parse_solitary_modifier): Not static any more.
11920 * keyboard.h (parse_solitary_modifier): Declare.
11921
11922 2008-07-16 Andreas Schwab <schwab@suse.de>
11923
11924 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11925 of easymenu.
11926
11927 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
11928
11929 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11930 that we don't move off the line.
11931
11932 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11933
11934 * keyboard.c (Qsuper): Remove.
11935 (parse_menu_item): Don't call where_is_internal specially for NS.
11936
11937 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11938
11939 * s/gnu-linux.h: Remove boilerplate comments.
11940
11941 * m/alpha.h (__ELF__): Consolidate conditions.
11942
11943 * m/m68k.h (linux): Use GNU_LINUX instead.
11944 Remove boilerplate comments.
11945
11946 * m/intel386.h: Undo refactoring from previous change.
11947 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11948 too, remove dead code.
11949 (linux): Use GNU_LINUX instead.
11950
11951 2008-07-16 Jason Rumney <jasonr@gnu.org>
11952
11953 * w32gui.h: Repeat 26 June changes lost by last change.
11954
11955 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11956
11957 * systty.h: Remove code for Aix on 386, unsupported platform.
11958
11959 * s/ms-w32.h: Remove boilerplate comments.
11960 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11961
11962 * s/gnu-linux.h (TERM): Remove support.
11963 (HAVE_SYSVIPC): Remove, unused.
11964 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11965 for this system.
11966
11967 * process.c: Remove support for IRIS, unused.
11968 Remove support for TERM, not relevant anymore.
11969
11970 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11971 used with the definition.
11972
11973 * s/aix4-2.h (static): Do not undef.
11974
11975 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11976 only used on Aix.
11977 (HAVE_SYSVIPC): Remove, unused.
11978
11979 * m/hp800.h (CANNOT_DUMP): Do not undef.
11980
11981 * m/alpha.h: Fix comment.
11982
11983 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11984 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11985 used by this configuration.
11986 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11987 * unexec.c: Remove code depending on HPUX and
11988 USG_SHARED_LIBRARIES, not used with this file. Remove code
11989 depending on IRIS, unused. Remove if 0-ed code.
11990
11991 * s/template.h: Remove comments about static.
11992
11993 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11994 Remove if 0-ed code.
11995 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11996 were the same as the default.
11997 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11998 Remove boilerplate comments.
11999 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12000 (HAVE_SYSVIPC): Remove, unused.
12001 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12002
12003 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12004 Remove boilerplate comments.
12005 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12006 Remove boilerplate comments.
12007 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12008 Remove boilerplate comments.
12009 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12010
12011 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12012 USG systems which do not use DATA_SEG_BITS.
12013 Refactor code. Remove boilerplate comments.
12014
12015 * m/ibms390.h:
12016 * m/m68k.h:
12017 * s/bsd-common.h:
12018 * s/cygwin.h:
12019 * s/darwin.h:
12020 * s/freebsd.h:
12021 * s/gnu.h:
12022 * s/msdos.h: Remove boilerplate comments.
12023
12024 * m/iris4d.h: Remove boilerplate comments and code for systems that
12025 do not use this file.
12026 (IRIS_4D): Remove, unused.
12027
12028 * m/mips.h: Remove boilerplate comments and code for systems that
12029 do not use this file.
12030 (SIGN_EXTEND_CHAR):
12031 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12032 * unexmips.c: Remove file, unused.
12033
12034 * editfns.c (Fuser_full_name): Replace the only use of
12035 USER_FULL_NAME with its value.
12036 * config.in: Regenerate.
12037
12038 2008-07-16 David Reitter <david.reitter@gmail.com>
12039
12040 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12041 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12042
12043 2008-07-16 Glenn Morris <rgm@gnu.org>
12044
12045 * emacs.c (system-type): Doc fix.
12046
12047 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12048
12049 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12050 If the cache doesn't work, let's fix it, rather than work around it.
12051
12052 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12053
12054 * Makefile.in: Correct additions for nsfont.o in last commit.
12055 * nsfont.m: New file (forgot last commit).
12056
12057 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12058
12059 * callproc.c (set_initial_environment): Initialize
12060 Vprocess_environment under CANNOT_DUMP (fixes crash when
12061 batch-compiling for bootstrap).
12062
12063 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12064 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12065
12066 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
12067 fix crash due to different init order.
12068
12069 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12070
12071 Changes and additions for NeXTstep windowing system (Cocoa and
12072 GNUstep) support.
12073
12074 * Makefile.in:
12075 * config.in: Support defines and build commands for NS port.
12076 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12077 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12078 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12079 windowing.
12080 (struct face): Add synth_ital field.
12081 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12082 (init_display): Initialize Vinitial_window_system to "ns" when so
12083 compiled.
12084 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12085 (display_arg): Use under NS.
12086 (main): Under NS, allocate autorelease pool and handle command line
12087 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12088 (standard_args): Add NS-specific args.
12089 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12090 * font.c (DEFAULT_ENCODING): New variable.
12091 (font_find_for_lface): Use it.
12092 (syms_of_font): Load syms_of_nsfont under NS.
12093 * font.h: Declare nsfont_driver when compiled under NS.
12094 * fontset.c: When compiling under NS, include nsterm.h.
12095 (fontset_from_font): Autoconstruct fontset under NS.
12096 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12097 symbol, document and use it.
12098 (do_switch_frame): When for_deletion under Cocoa, add
12099 Fraise_frame(Qnil).
12100 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12101 (x_get_arg): Allow "yes" and "no" as boolean values.
12102 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12103 Qright under Cocoa.
12104 (focus-follows-mouse): Default to 0 under NS.
12105 * frame.h (enum output_method): Add output_ns.
12106 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12107 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12108 (FRAME_WINDOW_P): NS-specific definition.
12109 * fringe.c (max_used_fringe_bitmap): Make public.
12110 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12111 (getloadavg): Use NeXT code under descendant OS's.
12112 * image.c (includes and header section, x_create_bitmap_from_data)
12113 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12114 (image_background_transparent, x_clear_image_1)
12115 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12116 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12117 (x_to_xcolors, x_from_xcolors, x_disable_image)
12118 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12119 other GUIs, including XPM support using code originally written for
12120 Carbon GUI.
12121 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12122 using NS API.
12123 (image_ascent): Use font metrics macros instead of direct struct field
12124 access.
12125 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12126 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12127 Also, handle NS as GTK for menu bar purposes.
12128 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12129 toolkit where they differ.
12130 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12131 use cachelist, still needed under NS.
12132 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12133 (struct widget_value): Define it here for menu.c.
12134 * keymap.c (includes): Include modifier internals.
12135 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12136 NS.
12137 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12138 support for preferring sequences using certain modifiers, specified by
12139 the FIRSTONLY argument.
12140 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12141 under NS GNUstep implementation.
12142 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12143 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12144 * menu.c: Include nsterm.h under NS.
12145 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12146 (free_menubar_widget_tree_value, update_submenu_strings)
12147 (find_and_call_menu_selection): Treat NS as X and NT.
12148 (find_and_return_menu_selection): New function, used for popup menus.
12149 * nsgui.h:
12150 * nsterm.h:
12151 * nsfns.m:
12152 * nsimage.m:
12153 * nsmenu.m:
12154 * nsselect.m:
12155 * nsterm.m: New files.
12156 * process.c (wait_reading_process_output): Under NS, call ns_select()
12157 instead of plain select().
12158 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12159 beginning of buffer.
12160 * sysselect.h (init_process): Rename when compiling under Cocoa to
12161 avoid name conflict.
12162 * termhooks.h (display_info): Add ns_display_info to union.
12163 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12164 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12165 COCOA environment.
12166 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12167 unexec() signature. (Note, this will dump, but the resulting file
12168 crashes; unexosx is used instead; keeping around for reference and
12169 possible aid in getting dump working under GNUstep.)
12170 * w32gui.h (button_type, widget_value): Remove definitions (now in
12171 keyboard.h).
12172 * window.c: Include nsterm.h when compiling under NS.
12173 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12174 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12175 other GUI windowing systems.
12176 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12177 GTK.
12178 (x_consider_frame_title): Under NS, set icon type and frame
12179 modified-state indicator; use ns_set_name_as_filename() when using
12180 formatted title.
12181 (update_window_cursor): Make public when compiling under NS.
12182 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12183 (hourglass_atimer, Vhourglass_delay
12184 * xfaces.c (header section, init_frame_faces, clear_font_table)
12185 (defined_color, unload_color, x_face_list_fonts)
12186 (prepare_face_for_display): Add NS support parallel to other GUIs.
12187 Emulate GCs like other non-X GUIs.
12188 (split_font_name): Don't lowercase font name under NS.
12189 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12190 under NS.
12191 * s/darwin.h: Add support for compilation under NS.
12192
12193 2008-07-15 Jason Rumney <jasonr@gnu.org>
12194
12195 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12196 (w32_show_hourglass): Rename from show_hourglass.
12197 (w32_hide_hourglass): Rename from hide_hourglass.
12198 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12199 (Vhourglass_delay): Declare extern.
12200 (hourglass_started): Remove.
12201
12202 * xdisp.c (Vhourglass_delay): Remove static.
12203 (hourglass_started, start_hourglass, cancel_hourglass):
12204 Don't include these versions on WINDOWSNT.
12205
12206 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12207
12208 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12209 variables (formerly in xfns.c).
12210 (show_hourglass, hide_hourglass): New prototypes (same).
12211 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12212 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12213 in xfns.c).
12214 (syms_of_xdisp): Declare/initialize display-hourglass,
12215 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12216 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12217 formerly in xfns.c.
12218 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12219 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12220 (start_hourglass, cancel_hourglass): Remove.
12221 (show_hourglass, hide_hourglass): Remove prototypes and static
12222 modifiers.
12223 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12224 hourglass_atimer, hourglass_shown_p declaration/initialization.
12225 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12226 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12227 (start_hourglass, cancel_hourglass): Remove.
12228 (show_hourglass, hide_hourglass): Remove prototypes and static
12229 modifiers.
12230 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12231 hourglass_atimer, hourglass_shown_p declaration/initialization.
12232 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12233 (DEFAULT_HOURGLASS_DELAY): Remove.
12234 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12235 hourglass_shown_p declaration/initialization.
12236
12237 2008-07-14 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32fns.c (w32_get_arg): Remove wrapper function.
12240 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12241 directly.
12242 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12243
12244 2008-07-14 Kenichi Handa <handa@m17n.org>
12245
12246 * xfont.c (xfont_open): Add workaround for X's bug.
12247
12248 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12249
12250 * fontset.c: Include <stdio.h> unconditionally.
12251
12252 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
12253
12254 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12255 for filtering.
12256
12257 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12258
12259 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12260
12261 * m/macppc.h:
12262 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12263
12264 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12265 (SPECIAL_EMACS_INT):
12266 * m/ia64.h (SPECIAL_EMACS_INT):
12267 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12268 * s/gnu.h (NLIST_STRUCT):
12269 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12270 * s/gnu-linux.h (LINUX):
12271 * s/msdos.h (HAVE_FACES):
12272 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12273
12274 * systty.h:
12275 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12276 anymore.
12277
12278 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12279
12280 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12281 always defined as int.
12282
12283 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12284 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12285 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12286 * s/freebsd.h (HAVE_WAIT_HEADER):
12287 * s/bsd-common.h (HAVE_UNION_WAIT):
12288 * s/aix4-2.h (HAVE_WAIT_HEADER):
12289 * m/mips.h (HAVE_UNION_WAIT):
12290 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12291 (COFF, static): Do not define, they are undefined later in the file.
12292
12293 * process.c (update_status): Don't use a union.
12294 (status_convert):
12295 (sigchld_handler): Use int instead of WAITTYPE.
12296
12297 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
12298
12299 * indent.c (Fvertical_motion): Restore hscroll before moving to
12300 goal column.
12301
12302 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12303
12304 * lisp.h: Remove left over code.
12305
12306 2008-07-11 Andreas Schwab <schwab@suse.de>
12307
12308 * lisp.h: Fix logic in last change.
12309
12310 * menu.h: New file.
12311 * menu.c: Include it.
12312 * xmenu.c: Likewise.
12313 * Makefile.in: Update dependencies.
12314
12315 2008-07-11 Kenichi Handa <handa@m17n.org>
12316
12317 * fontset.c (fontset_from_font): Cancel the previous change.
12318
12319 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12320
12321 * lisp.h:
12322 * w32heap.c:
12323 * emacs.c:
12324 * alloc.c: Replace all references of NO_UNION_TYPE with
12325 USE_LISP_UNION_TYPE.
12326
12327 * m/xtensa.h (NO_UNION_TYPE):
12328 * m/vax.h (NO_UNION_TYPE):
12329 * m/template.h (NO_UNION_TYPE):
12330 * m/sparc.h (NO_UNION_TYPE):
12331 * m/mips.h (NO_UNION_TYPE):
12332 * m/macppc.h (NO_UNION_TYPE):
12333 * m/m68k.h (NO_UNION_TYPE):
12334 * m/iris4d.h (NO_UNION_TYPE):
12335 * m/intel386.h (NO_UNION_TYPE):
12336 * m/ibms390x.h (NO_UNION_TYPE):
12337 * m/ibms390.h (NO_UNION_TYPE):
12338 * m/ibmrs6000.h (NO_UNION_TYPE):
12339 * m/ia64.h (NO_UNION_TYPE):
12340 * m/hp800.h (NO_UNION_TYPE):
12341 * m/arm.h (NO_UNION_TYPE):
12342 * m/amdx86-64.h (NO_UNION_TYPE):
12343 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12344 defining it the same.
12345
12346 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
12347
12348 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12349
12350 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12351
12352 * fileio.c:
12353 * sysdep.c:
12354 * systty.h:
12355 * m/ibmrs6000.h:
12356 * m/iris4d.h:
12357 * s/aix4-2.h:
12358 * s/freebsd.h:
12359 * s/gnu-linux.h:
12360 * s/hpux10-20.h:
12361 * s/hpux11.h:
12362 * s/netbsd.h:
12363 * s/sol2-3.h:
12364 * s/sol2-4.h:
12365 * s/sol2.h:
12366 * s/usg5-4.h:
12367 * s/vms.h: Remove references to unused variables.
12368
12369 2008-07-10 Andreas Schwab <schwab@suse.de>
12370
12371 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12372 pattern before matching the generic family.
12373
12374 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12375
12376 * unexec.c:
12377 * s/vms.h:
12378 * s/usg5-4-2.h:
12379 * s/sol2-5.h:
12380 * s/freebsd.h:
12381 * s/darwin.h: Remove dead code.
12382
12383 * m/template.h:
12384 * m/sparc.h:
12385 * m/mips.h:
12386 * m/m68k.h:
12387 * m/iris4d.h:
12388 * m/intel386.h:
12389 * m/ibms390x.h:
12390 * m/ibms390.h:
12391 * m/ia64.h:
12392 * m/hp800.h:
12393 * m/arm.h:
12394 * m/amdx86-64.h: Remove dead code and references to unused
12395 and compiler defined symbols.
12396
12397 * unexmips.c:
12398 * unexelf.c: Remove references to desupported systems.
12399
12400 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12401
12402 * m/powermac.h: Remove boilerplate comments.
12403 (NO_REMAP): Remove unused definition.
12404
12405 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12406 define them.
12407
12408 2008-07-10 Kenichi Handa <handa@m17n.org>
12409
12410 * xfont.c (xfont_open): Log the reason of failure.
12411
12412 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12413
12414 * fontset.c (fontset_get_font_group):
12415 * font.c (font_check_otf): Specify argument types.
12416
12417 2008-07-09 Kenichi Handa <handa@m17n.org>
12418
12419 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12420 non-ASCII char is found.
12421
12422 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12423 (reorder_font_vector): Change the arg preferred_family to font.
12424 Prefer the spec matching with font.
12425 (fontset_get_font_group): New function.
12426 (fontset_find_font): Change the format of an element of a realized
12427 fontset. Use fontset_get_font_group.
12428 (fontset_font): Try the current fontset, the default fontset, the
12429 fallbacks of the current fontset, and the fallbacks of the default
12430 fontset in this order.
12431 (face_for_char): Delete the shortcut to use the current font.
12432 (fontset_from_font): Don't set fonts for Latin in the fontset.
12433
12434 * font.h (font_make_object, font_match_p): Adjust prototypes.
12435
12436 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12437
12438 * font.c (font_make_object): New arg entity and pixelsize.
12439 (font_check_otf_features, font_check_otf): New functions.
12440 (font_match_p): Check :lang, :script, and :otf properties.
12441
12442 * xfont.c (xfont_open): Adjust it for the change of
12443 font_make_object.
12444 (xfont_text_extents): Fix initial setting of metrics.
12445
12446 * ftfont.c (struct ftfont_info): New member index, delete member
12447 fc_charset_idx. Make the member order compatible with struct
12448 xftfont_info.
12449 (fc_charset_table): Change charset names to registry names.
12450 (ftfont_pattern_entity): Delete the args registry and
12451 fc_charset_idx. Change the value of :font-entity property
12452 to (FONTNAME . INDEX). Always set :registry property to
12453 `iso10646-1'.
12454 (struct ftfont_cache_data): New struct.
12455 (ftfont_lookup_cache): New arg for_face.
12456 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12457 (ftfont_driver): Set the member otf_capability.
12458 (ftfont_get_charset): Adjust it for the change of
12459 fc_charset_table.
12460 (OTF_TAG_SYM): New macro.
12461 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12462 for the change of fc_charset_table.
12463 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12464 ftfont_pattern_entity. Add FC_INDEX to objset.
12465 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12466 and ftfont_pattern_entity.
12467 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12468 font_make_object, struct ftfont_info.
12469 (ftfont_has_char): Use ftfont_get_fc_charset.
12470 (ftfont_otf_features, ftfont_otf_capability): New functions.
12471 (ftfont_shape): Use ftfont_get_otf.
12472 (ftfont_text_extents): Fix initial setting of metrics.
12473
12474 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12475 member order compatible with struct ftfont_info.
12476 (xftfont_open): Add FC_CHARSET to the pattern. Set
12477 xftfont_info->ft_size. Don't unlock the face. Check BDF
12478 properties if appropriate.
12479 (xftfont_close): Unlock the face.
12480 (xftfont_anchor_point, xftfont_shape): Deleted.
12481 (syms_of_xftfont): Don't set members anchor_point and shape of
12482 xftfont_driver.
12483
12484 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12485 font_make_object.
12486
12487 * w32font.c (w32font_open): Adjust it for the change of
12488 font_make_object.
12489 (w32font_open_internal): Don't set properties of font_object here.
12490
12491 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
12492
12493 * macfns.c (x_create_tip_frame):
12494 * w32fns.c (x_create_tip_frame):
12495 * xfns.c (x_create_tip_frame): Pass parameter argument to
12496 face-set-after-frame-default.
12497
12498 * xfaces.c (Finternal_merge_in_global_face): Save merged
12499 attributes for the default face back into the face vector.
12500
12501 2008-07-08 Andreas Schwab <schwab@suse.de>
12502
12503 * fontset.h: Declare fontset_from_font. Don't declare
12504 new_fontset_from_font and fontset_from_font_name.
12505 * xterm.c: Include "fontset.h".
12506 * Makefile.in (xterm.o): Update dependencies.
12507
12508 2008-07-08 Glenn Morris <rgm@gnu.org>
12509
12510 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12511 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12512
12513 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
12514
12515 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12516 (x_set_frame_parameters): Don't bind it.
12517
12518 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
12519
12520 * w32fns.c (map_w32_filename): Declare extern.
12521
12522 2008-07-07 Jason Rumney <jasonr@gnu.org>
12523
12524 * w32term.c (WS_EX_LAYERED): Define if not already.
12525
12526 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
12527
12528 * xfaces.c (set_font_frame_param): Don't try to set the font
12529 parameter if it is still unspecified in the lface.
12530
12531 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
12532
12533 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12534 face if it didn't already exist.
12535
12536 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12537
12538 2008-07-05 Andreas Schwab <schwab@suse.de>
12539
12540 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12541
12542 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
12543
12544 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12545 word-wrapping.
12546 (IT_DISPLAYING_WHITESPACE): New macro.
12547 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12548 when word-wrapping. Simplify word-wrapping logic. Use correct
12549 pixel positions when saving copies of the iterator.
12550 (display_line): Use proper wrap point if the last character on a
12551 line was preceded by whitespace.
12552
12553 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12554
12555 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12556
12557 2008-07-04 Kenichi Handa <handa@m17n.org>
12558
12559 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12560
12561 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12562
12563 2008-07-02 Jason Rumney <jasonr@gnu.org>
12564
12565 * xfns.c (syms_of_xfns): Only define x-select-font when both
12566 HAVE_FREETYPE and USE_GTK.
12567
12568 * xdisp.c (next_element_from_display_vector): Move assignment out
12569 of if statement.
12570
12571 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12572
12573 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12574
12575 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12576 (syms_of_fileio): Initialize and export them.
12577 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12578
12579 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12580 (Fsystem_move_file_to_trash): New function.
12581 (syms_of_w32fns): Export it to lisp.
12582
12583 2008-07-01 Jason Rumney <jasonr@gnu.org>
12584
12585 * w32font.c (w32font_text_extents): Don't count overhang as part
12586 of width.
12587
12588 2008-06-30 Miles Bader <miles@gnu.org>
12589
12590 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12591 Add `avoid_cursor_p' field.
12592
12593 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12594 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12595 (append_glyph, append_composite_glyph, produce_image_glyph)
12596 (append_stretch_glyph): Initialize avoid_cursor_p.
12597 (get_it_property): Rename from `get_line_height_property'.
12598 (x_produce_glyphs): Use get_it_property.
12599 (handle_line_prefix, push_display_prop): New functions.
12600 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12601 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12602 New variables.
12603 (syms_of_xdisp): Initialize them.
12604
12605 2008-06-30 Kenichi Handa <handa@m17n.org>
12606
12607 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12608 XftDefaultSubstitute (they are called in XftFontMatch).
12609 (xftfont_open): Fix args to ftfont_font_format.
12610
12611 * ftfont.c (fc_charset_table): New member lang.
12612 (ftfont_resolve_generic_family): New arg pattern.
12613 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
12614 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12615 (ftfont_open): Fix args to ftfont_font_format.
12616 (ftfont_font_format): New arg filename.
12617
12618 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
12619
12620 * xfaces.c (Finternal_merge_in_global_face): If default face was
12621 modified, realize it again. Update the font face attribute.
12622
12623 2008-06-29 Jason Rumney <jasonr@gnu.org>
12624
12625 * w32term.c (x_set_frame_alpha): Fix logic.
12626
12627 2008-06-29 Kenichi Handa <handa@m17n.org>
12628
12629 * fontset.c (Finternal_char_font): Return font-object instead of
12630 font-name.
12631
12632 * composite.c (get_composition_id): Fix the width calculation for TAB.
12633
12634 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * indent.c (Fvertical_motion): Properly handle float column arg.
12637
12638 2008-06-28 Jason Rumney <jasonr@gnu.org>
12639
12640 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12641 (pfnSetLayeredWindowAttributes): New function pointer.
12642 (w32_initialize): Initialize it when supported.
12643 (x_set_frame_alpha): New function.
12644
12645 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12646 (w32_frame_parm_handlers): Set alpha handler.
12647
12648 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12649
12650 2008-06-27 Jason Rumney <jasonr@gnu.org>
12651
12652 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12653 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12654 (w32_to_x_charset, x_to_w32_charset)
12655 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12656 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12657 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12658 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12659 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12660 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12661 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12662 (Qw32_charset_unicode): Remove.
12663 (syms_of_w32fns): Update for above changes.
12664
12665 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12666 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12667 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12668 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12669 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12670 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12671 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12672 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12673 (syms_of_w32font): Update for above changes.
12674
12675 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12676
12677 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12678 removed #if.
12679 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12680
12681 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12682 Eli Zaretskii <eliz@gnu.org>
12683
12684 * makefile.w32-in (LOCAL_FLAGS):
12685 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12686
12687 * sysdep.c (_spawnlp, _getpid):
12688 Declare with explicit _cdecl instead of _CRTAPI1.
12689
12690 * editfns.c (Fget_internal_run_time):
12691 Check for WINDOWSNT with #ifdef, not #if.
12692
12693 2008-06-26 Jason Rumney <jasonr@gnu.org>
12694
12695 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12696
12697 * w32term.c (x_draw_glyph_string_foreground)
12698 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12699 Use FONT_HANDLE macro.
12700 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12701
12702 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12703 (uniscribe_encode_char): Use FONT_HANDLE macro.
12704
12705 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12706 (w32font_text_extents): Use precast w32_font.
12707 (w32font_close): Free cached metrics.
12708 (w32font_open_internal): Allocate space for name on stack.
12709
12710 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
12711
12712 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12713
12714 2008-06-26 Jason Rumney <jasonr@gnu.org>
12715
12716 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12717 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12718
12719 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
12720
12721 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12722
12723 2008-06-26 Jason Rumney <jasonr@gnu.org>
12724
12725 * w32bdf.c, w32bdf.h: Remove obsolete files.
12726
12727 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12728
12729 * w32gui.h: Don't include w32bdf.h.
12730 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12731 Remove obsolete font support.
12732
12733 * w32font.h (struct w32font_info): Remove compat_w32_font.
12734 Add hfont member.
12735 (FONT_COMPAT): Remove obsolete macro.
12736
12737 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12738 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12739 (w32font_open_internal): Remove compat code. Set new hfont member.
12740 (Fx_select_font): Use new hfont member.
12741
12742 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12743 (uniscribe_encode_char): Use new hfont member.
12744
12745 * w32term.c (x_draw_glyph_string_foreground)
12746 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12747 (x_draw_glyph_string): Use metrics in w32font_info.
12748
12749 2008-06-26 Kenichi Handa <handa@m17n.org>
12750
12751 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12752
12753 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12754
12755 * unexnext.c:
12756 * m/ews4800.h:
12757 * m/hp9000s300.h:
12758 * m/ibm370aix.h:
12759 * m/mips-siemens.h:
12760 * m/ncr386.h:
12761 * m/next.h:
12762 * m/pmax.h:
12763 * m/powerpcle.h:
12764 * m/tandem-s2.h:
12765 * s/386bsd.h:
12766 * s/bsd386.h:
12767 * s/bsd4-1.h:
12768 * s/bsd4-2.h:
12769 * s/bsdos2-1.h:
12770 * s/bsdos2.h:
12771 * s/bsdos3.h:
12772 * s/bsdos4.h:
12773 * s/nextstep.h:
12774 * s/ultrix4-3.h:
12775 * s/usg5-0.h:
12776 * s/usg5-2-2.h:
12777 * s/usg5-2.h:
12778 * s/usg5-4-3.h:
12779 * s/ux4800.h:
12780 * s/uxpds.h:
12781 * s/uxpv.h: Remove support for obsolete systems.
12782 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
12783 Remove, insert contents in s/hpux10-20.h.
12784 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12785 Remove, insert contents in s/aix4-2.h.
12786 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12787 * s/bsd4-3.h: Rename to ...
12788 * s/bsd-common.h: ... this.
12789 * data.c:
12790 * doc.c:
12791 * ecrt0.c:
12792 * emacs.c:
12793 * fileio.c:
12794 * floatfns.c:
12795 * keyboard.c:
12796 * mem-limits.h:
12797 * print.c:
12798 * process.c:
12799 * sysdep.c:
12800 * syssignal.h:
12801 * systty.h:
12802 * syswait.h:
12803 * term.c:
12804 * unexec.c:
12805 * unexelf.c:
12806 * unexhp9k800.c:
12807 * m/hp800.h:
12808 * m/ibmrs6000.h:
12809 * m/mips.h:
12810 * m/vax.h:
12811 * s/darwin.h:
12812 * s/freebsd.h:
12813 * s/gnu.h:
12814 * s/ms-w32.h:
12815 * s/msdos.h:
12816 * s/netbsd.h:
12817 * s/template.h: Remove references to obsolete variables.
12818
12819 * Makefile.in: Add dependencies for all unexec files.
12820 (admindir): Remove unused variable.
12821 (UNEXEC_SRC): Remove references.
12822
12823 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
12824
12825 * xfns.c (x_default_font_parameter): If Xft is available, first
12826 try Monospace-12 for the default font.
12827
12828 2008-06-25 Jason Rumney <jasonr@gnu.org>
12829
12830 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12831
12832 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12833
12834 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12835
12836 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12837
12838 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
12839
12840 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12841 <scroll-conservatively>: Fix typo in docstring.
12842
12843 * xselect.c (Fx_send_client_event): Doc fix.
12844
12845 2008-06-25 Kenichi Handa <handa@m17n.org>
12846
12847 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12848
12849 * font.c (font_parse_fcname): Remove unused variables.
12850 (font_sort_entites): Delete the arg SPEC. Caller changed.
12851 Fix for the case of ! best_only.
12852 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12853
12854 * lisp.h (Fstring_to_unibyte): EXFUN it.
12855
12856 * character.h (str_to_unibyte): Extern it.
12857
12858 * character.c (str_to_unibyte): New function.
12859
12860 * fns.c (Fstring_to_unibyte): New function.
12861 (syms_of_fns): Defsubr it.
12862
12863 2008-06-24 Kenichi Handa <handa@m17n.org>
12864
12865 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12866 DPI too.
12867 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12868
12869 2008-06-24 Andreas Schwab <schwab@suse.de>
12870
12871 * Makefile.in (${lispsource}loaddefs.el): Rename from
12872 ../lisp/loaddefs.el.
12873 (bootstrap-clean): Do what distclean does but don't remove
12874 Makefile.
12875 (distclean): Depend on bootstrap-clean and remove Makefile.
12876
12877 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
12878
12879 * buffer.h (struct buffer): New member word_wrap.
12880
12881 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12882 word-wrap.
12883 (init_buffer_once): Initialize them.
12884
12885 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12886 line_wrap enum possessing three possible values.
12887
12888 * termopts.h: Replace truncate_partial_width_windows with
12889 Vtruncate_partial_width_windows.
12890
12891 * dispnew.c (direct_output_for_insert): Avoid direct output when
12892 inserting a space with word wrap on.
12893
12894 * indent.c (compute_motion): Obey integer values of
12895 truncate-partial-width-windows.
12896
12897 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12898 replacing truncate_partial_width_windows.
12899 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12900 truncate only if the window width is below that integer.
12901 (start_display, resize_mini_window, produce_stretch_glyph)
12902 (display_string, move_it_in_display_line_to): Use line_wrap.
12903 (back_to_previous_visible_line_start, reseat_1): Reset
12904 string_from_display_prop_p.
12905 (display_line): Extend default face to end of line when wrapping.
12906
12907 2008-06-24 Kim F. Storm <storm@cua.dk>
12908
12909 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12910 to wrap continued lines at word boundaries.
12911
12912 2008-06-24 Jason Rumney <jasonr@gnu.org>
12913
12914 * font.c (Ffont_face_attributes): Multiply pixel size before point
12915 conversion to avoid multiplying rounding error.
12916
12917 2008-06-23 Jason Rumney <jasonr@gnu.org>
12918
12919 * w32term.c (x_draw_glyph_string_background)
12920 (x_draw_glyph_string): Remove old bdf font code.
12921
12922 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12923
12924 2008-06-22 Kenichi Handa <handa@m17n.org>
12925
12926 * font.c (font_find_for_lface): Try the adstyle specified in
12927 the property of LFACE_FONT of LFACE (if any).
12928
12929 2008-06-21 Seiji Zenitani <zenitani@mac.com>
12930 Ryo Yoshitake <ryo@shiftmode.net>
12931
12932 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12933
12934 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12935
12936 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12937 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12938 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12939 (witness-emacs): Remove.
12940 (lisp, shortlisp): Move loaddefs.el earlier.
12941 (mostlyclean): Forget about witness-emacs.
12942
12943 2008-06-22 Glenn Morris <rgm@gnu.org>
12944
12945 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12946 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12947
12948 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12949
12950 * Makefile.in (PRECOMP): Remove.
12951 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12952 (witness-emacs): Run `compile-first'.
12953 (.el.elc): Use the new compile-onefile target.
12954
12955 2008-06-21 Kenichi Handa <handa@m17n.org>
12956
12957 * xftfont.c (xftfont_open): Handle QCembolden only when
12958 FC_EMBOLDEN is defined.
12959
12960 2008-06-21 Andreas Schwab <schwab@suse.de>
12961
12962 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12963 (.el.elc): Likewise.
12964
12965 2008-06-21 Miles Bader <miles@gnu.org>
12966
12967 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12968 build dir, not the lisp source dir.
12969
12970 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12971
12972 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12973 (bootstrapclean): Remove.
12974 (.el.elc): New rule.
12975 (PRECOMP): New var.
12976 (../lisp/subdirs.el): Remove.
12977 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12978 (witness-emacs): New target.
12979 (mostlyclean): Remove witness-emacs as well.
12980 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12981 Add witness-emacs dependency.
12982
12983 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
12984
12985 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12986 defined by the font.
12987
12988 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12989
12990 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12991 (bootstrap-clean): New target that keeps TAGS around.
12992 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12993 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12994
12995 2008-06-20 Jason Rumney <jasonr@gnu.org>
12996
12997 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12998 Remove obsolete font code.
12999
13000 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13001 to determine language support.
13002
13003 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13004
13005 * sysdep.c (cfsetspeed): New fun extracted from the code.
13006 (cfmakeraw): Move before first use.
13007
13008 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13009
13010 * sysdep.c (cfmakeraw): Provide fallback implementation.
13011 (serial_configure): Provide fallback implementation of cfsetspeed.
13012
13013 2008-06-20 Kenichi Handa <handa@m17n.org>
13014
13015 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13016 the pattern.
13017
13018 * fontset.c (fontset_from_font): Copy font_spec before changing
13019 the elements.
13020
13021 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13022
13023 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13024
13025 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13026 for explicit `font' parameters.
13027
13028 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13029
13030 2008-06-19 Kenichi Handa <handa@m17n.org>
13031
13032 * frame.c: Include <ctype.h>.
13033 (x_set_font_backend): Allow spacing characters in the X resource
13034 for FontBackend.
13035
13036 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13037
13038 * w32fns.c, xfns.c (Qfont_param): New var.
13039 (syms_of_w32fns): Initialize it.
13040 (x_default_font_parameter): Record explicit `font' into
13041 `font-parameter'.
13042
13043 2008-06-18 Kenichi Handa <handa@m17n.org>
13044
13045 * font.c (font_parse_xlfd): Fix previous change.
13046 (font_parse_fcname): Don't use :fc-unknown-spec.
13047 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13048 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13049 (font_add_log): Prepend the driver name to the resulting fonts.
13050
13051 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13052 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13053 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13054
13055 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13056 (QCembolden): New variables.
13057 (syms_of_xftfont): DEFSYM them.
13058 (xftfont_open): Call XftFontMatch. Don't trust the result of
13059 XftTextExtents8 if the pixel_size is less than 5.
13060
13061 2008-06-18 Andreas Schwab <schwab@suse.de>
13062
13063 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13064 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13065
13066 2008-06-18 Jason Rumney <jasonr@gnu.org>
13067
13068 * w32font.c (w32font_list, w32font_match): Add logging.
13069
13070 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13071
13072 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13073
13074 * font.c (font_parse_fcname): Store divider characters for
13075 unknown-spec list. For known key symbols, intern using correct
13076 symbol name.
13077
13078 2008-06-17 Kenichi Handa <handa@m17n.org>
13079
13080 * xfaces.c (realize_default_face): If the frame is not on window
13081 system, set the fontset of face to nil.
13082
13083 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13084
13085 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13086
13087 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13088
13089 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13090 (build_font_name_from_vector): Delete externs.
13091
13092 * xfaces.c (struct font_name): Don't declare.
13093
13094 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13095
13096 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13097
13098 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13101
13102 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13103
13104 * font.c (Ffont_spec): Fix usage in docstring.
13105 (Ffont_face_attributes): Doc fix.
13106
13107 2008-06-16 Andreas Schwab <schwab@suse.de>
13108
13109 * font.c (Ffont_face_attributes): Fix definition.
13110
13111 2008-06-16 Jason Rumney <jasonr@gnu.org>
13112
13113 * font.h (font_style_symbolic_from_value): Remove.
13114
13115 * font.c (font_style_symbolic_from_value): Remove.
13116 (font_style_symbolic): Revert to pre 2008-06-13 version.
13117
13118 * w32font.c (w32_to_fc_weight): New function.
13119 (w32font_full_name, logfont_to_fcname): Use it.
13120
13121 2008-06-16 Kenichi Handa <handa@m17n.org>
13122
13123 * font.c (font_check_object): Delete it.
13124 (font_clear_cache): Check if a font-object is alive.
13125 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13126 font-object to nil.
13127 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13128 (font_at): Don't call font_check_object.
13129 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13130
13131 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13132
13133 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13134
13135 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13136
13137 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13138
13139 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
13140
13141 * font.c (font_parse_fcname): Only one decimal point.
13142 (font_unparse_fcname): Handle data in family and foundry indices
13143 as symbols, not strings.
13144 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13145
13146 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13147
13148 * font.h (font_unparse_gtkname): Add prototype.
13149
13150 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13151
13152 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13153
13154 2008-06-15 Andreas Schwab <schwab@suse.de>
13155
13156 * font.c (font_update_drivers): Fix crash when no drivers match.
13157
13158 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13159
13160 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13161 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13162
13163 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13164
13165 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13166
13167 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13168
13169 * process.c (Fserial_process_configure, Fprocess_send_eof):
13170 Use EQ to compare Lisp_Objects.
13171
13172 2008-06-13 Jason Rumney <jasonr@gnu.org>
13173
13174 * w32fns.c (Fw32_select_font): Remove old font API function.
13175
13176 * w32font.c (logfont_to_fcname): New function.
13177 (Fx_select_font): New font dialog function compatible with
13178 GTK/fontconfig version.
13179
13180 * font.c (font_style_symbolic_from_value): New function.
13181 (font_style_symbolic): Use it.
13182
13183 * font.h (font_style_symbolic_from_value): Declare new function.
13184
13185 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
13186
13187 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13188 <font-width-table>: Fix typos in docstrings.
13189
13190 2008-06-13 Daniel Engeler <engeler@gmail.com>
13191
13192 These changes add serial port access.
13193 * process.c: Add HAVE_SERIAL.
13194 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13195 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13196 (list_processes_1, select_wrapper, Fstop_process)
13197 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13198 (status_notify): Modify to handle serial processes.
13199 [HAVE_SERIAL] (Fserial_process_configure)
13200 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13201 New functions.
13202 * process.h (struct Lisp_Process): Add `type'.
13203 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13204 New functions.
13205 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13206 serial ports.
13207 (serial_open, serial_configure): New functions.
13208 * w32.h: Add FILE_SERIAL.
13209 (struct _child_process): Add ovl_read, ovl_write.
13210
13211 2008-06-13 Kenichi Handa <handa@m17n.org>
13212
13213 * dispextern.h (enum lface_attribute_index): New member
13214 LFACE_FOUNDRY_INDEX.
13215
13216 * font.c (font_score): Delete arg alternate_families. Check only
13217 weight, slant, width, and size. Ignore the difference of alias
13218 style symbols.
13219 (font_sort_entites): Adjust for the above change. Reflect the
13220 order of font-driver to scores.
13221 (font_list_entities): Don't check alternate_familes here.
13222 (font_clear_prop): Handle foundry.
13223 (font_update_lface): Don't parse "foundry-family" form here.
13224 Handle FONT_FOUNDRY_INDEX.
13225 (font_find_for_lface): Likewise. Handle alternate families here.
13226 If registry is nil, try iso8859-1 and ascii-0.
13227 (font_open_for_lface): Pay attention to size in ENTITY.
13228 (font_open_by_name): Simplify by calling font_load_for_lface.
13229 (free_font_driver_list): Delete it.
13230 (font_update_drivers): Preserve the order of backends.
13231 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13232 of font_score and font_sort_entites.
13233 (font_update_sort_order): Likewise.
13234
13235 * xfaces.c (LFACE_FOUNDRY): New macro.
13236 (check_lface_attrs): Check foundry.
13237 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13238 (merge_face_vectors): Check foundry.
13239 (merge_face_ref): Likewise.
13240 (Finternal_set_lisp_face_attribute): Likewise.
13241 (x_update_menu_appearance): Likewise.
13242 (Finternal_get_lisp_face_attribute): Likewise.
13243 (lface_hash): Likewise.
13244 (lface_same_font_attributes_p): Likewise.
13245 (x_supports_face_attributes_p): Likewise.
13246 (tty_supports_face_attributes_p): Likewise.
13247 (Finternal_set_alternative_font_family_alist): Intern strings.
13248 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13249 (realize_default_face): Set LFACE_FOUNDRY (lface).
13250
13251 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13252 font-driver at first.
13253
13254 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13255
13256 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13257
13258 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13259
13260 2008-06-12 Jim Meyering <meyering@redhat.com>
13261
13262 Make unexec_free handle NULL the same way free does.
13263 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13264
13265 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13266
13267 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13268 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13269 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13270 (WEAK_ALIAS): Simplify.
13271 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13272 when searching a unibyte buffer.
13273
13274 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
13275
13276 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13277
13278 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
13279
13280 * w32font.c: Include ctype.h.
13281
13282 2008-06-11 Jason Rumney <jasonr@gnu.org>
13283
13284 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13285 misreported as space.
13286 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13287 as aliases for registry iso10646-1.
13288
13289 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13290
13291 * buffer.c (clone_per_buffer_values): Skip `name'.
13292
13293 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
13294
13295 * font.c (font_parse_fcname): Fix last change; accept decimal
13296 points in font size.
13297
13298 2008-06-10 Jason Rumney <jasonr@gnu.org>
13299
13300 * w32uniscribe.c (add_opentype_font_name_to_list):
13301 Skip non unicode fonts.
13302
13303 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13304
13305 * xfns.c (Fx_font_dialog): New function.
13306
13307 * gtkutil.c (xg_dialog_response_cb): Rename from
13308 xg_file_response_callback.
13309 (pop_down_dialog): Rename from pop_down_file_dialog.
13310 (xg_get_file_name): Callers changed.
13311 (xg_get_font_name): New function.
13312
13313 * gtkutil.h (xg_get_font_name): Insert prototype.
13314
13315 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13316
13317 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13318 x_underline_minimum_display_offset.
13319 (syms_of_xdisp): Declare it here rather than in xterm.c.
13320 * dispextern.h (underline_minimum_offset): Declare it.
13321 * w32term.c (x_draw_glyph_string): Use it.
13322 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13323 (syms_of_xterm): Don't declare it any more.
13324 (x_draw_glyph_string): Adjust to the new name.
13325
13326 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
13327
13328 * xterm.c (x_underline_minimum_display_offset): New var.
13329 (x_draw_glyph_string): Use it.
13330 (syms_of_xterm): Declare it.
13331
13332 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13333
13334 * font.c (font_parse_fcname): Accept GTK-style font names too.
13335
13336 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13337
13338 * dired.c (file_name_completion): Don't return t if the match is exact
13339 but with different capitalization.
13340 * minibuf.c (Ftry_completion): Simplify.
13341
13342 * window.c (Vwindow_point_insertion_type): New var.
13343 (set_window_buffer): Use it.
13344 (syms_of_window): Init and export it to Lisp.
13345
13346 2008-06-10 Kenichi Handa <handa@m17n.org>
13347
13348 * font.h (font_intern_prop): Prototype adjusted.
13349
13350 * font.c (font_intern_prop): New arg force_symbol.
13351 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13352 Adjust for the change of font_intern_prop.
13353
13354 * ftfont.c (ftfont_pattern_entity):
13355 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13356 (w32_registry):
13357 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13358 the change of font_intern_prop.
13359
13360 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
13361
13362 * w32menu.c (digest_single_submenu): Declare extern.
13363
13364 2008-06-09 Jason Rumney <jasonr@gnu.org>
13365
13366 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13367
13368 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13369 (parse_single_submenu): Remove.
13370 (digest_single_submenu): Remove.
13371 (syms_of_w32menu): Don't initialise variables that have moved
13372 to menu.c.
13373 (set_frame_menubar): Sync with version in xmenu.c.
13374 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13375
13376 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13377 Make static again.
13378
13379 2008-06-09 Jason Rumney <jasonr@gnu.org>
13380
13381 Changes to w32 files related to the move of common menu code
13382 to menu.c on 2008-06-08 by Chong Yidong.
13383
13384 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13385 defs to w32gui.h.
13386 (single_keymap_panes, push_menu_item, push_menu_pane):
13387 Make globally visible.
13388
13389 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13390 (local_free, malloc_widget_value, free_widget_value)
13391 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13392 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13393 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13394 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13395 (menu_items, menu_items_allocated, menu_items_used)
13396 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13397 (init_menu_items, finish_menu_items, discard_menu_items)
13398 (grow_menu_items, push_submenu_start, push_submenu_end)
13399 (push_left_right_boundary, push_menu_pane, push_menu_item)
13400 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13401 (free_menubar_widget_tree_value, parse_single_submenu)
13402 (update_submenu_strings): Remove functions.
13403 (xmalloc_widget_value): Remove and declare extern.
13404
13405 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13406 (OBJ1): Build it.
13407
13408 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13409 (local_heap, local_alloc, local_free, malloc_widget_value)
13410 (free_widget_value): Define here.
13411
13412 2008-06-09 Kenichi Handa <handa@m17n.org>
13413
13414 * font.h (Qascii_0): Extern it.
13415
13416 * font.c (Qascii_0): New variable.
13417 (syms_of_font): DEFSYM it.
13418 (font_open_by_name): If the registry "iso8859-1" fails, try also
13419 "ascii-0".
13420
13421 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13422
13423 2008-06-08 Kenichi Handa <handa@m17n.org>
13424
13425 * .gdbinit (xfont): New command.
13426
13427 2008-06-08 Andreas Schwab <schwab@suse.de>
13428
13429 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13430 * Makefile.in (menu.o): Update dependencies.
13431
13432 * Makefile.in (obj): Always add menu.o.
13433 * emacs.c (main): Always call syms_of_menu.
13434 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13435
13436 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
13437
13438 * Makefile.in: Compile menu.c.
13439
13440 * lisp.h: Declare syms_of_menu.
13441
13442 * emacs.c (main): Call syms_of_menu.
13443
13444 * keyboard.h: Relocate platform-independent menu definitions from
13445 xmenu.c.
13446
13447 * menu.c: New file. Relocate platform-independent menu
13448 definitions from xmenu.c. Suggested by Adrian Robert.
13449
13450 * xmenu.c: Remove platform-independent menu definitions.
13451 (menu_items, menu_items_inuse, menu_items_allocated)
13452 (menu_items_used, menu_items_n_panes)
13453 (menu_items_submenu_depth): Move to keyboard.h.
13454 (init_menu_items, finish_menu_items, unuse_menu_items)
13455 (discard_menu_items, restore_menu_items, save_menu_items)
13456 (grow_menu_items, push_submenu_start, push_submenu_end)
13457 (push_left_right_boundary, push_menu_pane, push_menu_item)
13458 (keymap_panes, single_keymap_panes, single_menu_item)
13459 (list_of_panes, list_of_items, find_and_call_menu_selection)
13460 (xmalloc_widget_value, free_menubar_widget_value_tree)
13461 (parse_single_submenu, digest_single_submenu)
13462 (update_submenu_strings): Move to menu.c.
13463
13464 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13467
13468 2008-06-06 Miles Bader <miles@gnu.org>
13469
13470 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13471 face, not frame default.
13472
13473 2008-06-05 Martin Rudalics <rudalics@gmx.at>
13474
13475 * window.c (pop_up_windows, pop_up_frames)
13476 (display_buffer_reuse_frames, Vpop_up_frame_function)
13477 (Vdisplay_buffer_function, Veven_window_heights)
13478 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13479 (Vspecial_display_function, Vsame_window_buffer_names)
13480 (Vsame_window_regexps, split_height_threshold)
13481 (Vsplit_window_preferred_function): Move those vars to window.el.
13482 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13483 (Fdisplay_buffer): Move those functions to window.el.
13484 (syms_of_window): Remove corresponding declarations.
13485 (display_buffer): New function.
13486 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13487 * dispnew.c (Flast_nonminibuf_frame): New function.
13488 * buffer.c (Fpop_to_buffer): Move to window.el.
13489
13490 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13491
13492 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13493
13494 2008-06-05 Kenichi Handa <handa@m17n.org>
13495
13496 * coding.c (detect_coding): Fix previous change.
13497 (detect_coding_system): Likewise.
13498
13499 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13500
13501 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13502
13503 * keymap.c (Vminibuffer_local_filename_must_match_map):
13504 Rename from Vminibuffer_local_must_match_filename_map.
13505 (syms_of_keymap):
13506 * minibuf.c (Fcompleting_read): Adjust accordingly.
13507 * commands.h: Rename declaration as well.
13508
13509 2008-06-05 Kenichi Handa <handa@m17n.org>
13510
13511 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13512 family name.
13513 (Ffont_put): Likewise.
13514
13515 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13516 current font-spec.
13517
13518 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13519 is unspecified.
13520
13521 * xfaces.c (realize_x_face): If the font-related face attributes
13522 are the same as those of default face, realize a new fontset from
13523 default->fontset.
13524 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13525
13526 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13527
13528 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13529 (move_it_in_display_line): New wrapper.
13530
13531 * window.c (window_scroll_pixel_based_preserve_x)
13532 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13533 (window_scroll_pixel_based, window_scroll_line_based):
13534 Use them to preserve column positions.
13535 (syms_of_window): Initialize them.
13536
13537 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13538 (HPOS . VPOS) pair.
13539
13540 * dispextern.h (move_it_in_display_line): Declare.
13541
13542 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
13543
13544 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13545 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13546 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13547
13548 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
13549
13550 * window.c (Fset_window_parameter): Doc fix.
13551 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13552
13553 2008-06-04 Joakim Verona <joakim@verona.se>
13554
13555 * window.h (struct window): Add new member window_parameters.
13556
13557 * window.c (Fwindow_parameters, Fwindow_parameter)
13558 (Fset_window_parameter): New defuns.
13559 (syms_of_window): Defsubr the new defuns.
13560 (make_window): Initialize window_parameters to nil.
13561
13562 2008-06-04 John Paul Wallington <jpw@pobox.com>
13563
13564 * eval.c (Fdefmacro): Doc fix.
13565
13566 2008-06-04 Kenichi Handa <handa@m17n.org>
13567
13568 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13569 Be sure to call setup_coding_system when we find a proper coding system.
13570 (detect_coding_system): Fix handling of coding->head_ascii.
13571
13572 2008-06-03 Andreas Schwab <schwab@suse.de>
13573
13574 * font.c (font_prop_validate_spacing): Fix last change.
13575
13576 2008-06-03 Kenichi Handa <handa@m17n.org>
13577
13578 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13579 (font_parse_fcname): Fix handling of unknown key.
13580
13581 * xfont.c (xfont_list): Try an alias.
13582
13583 * charset.c (char_charset): Return NULL if the arg charset_list is
13584 specified and C doesn't belong to any of them.
13585
13586 2008-06-02 Chip Coldwell <coldwell@redhat.com>
13587
13588 * font.c (font_pixel_size): Don't take cdr of an integer.
13589
13590 2008-06-02 Jim Meyering <meyering@redhat.com>
13591
13592 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13593 * alloc.c (xfree): Return right away for a NULL arg.
13594 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13595 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13596 * mac.c (create_apple_event_from_event_ref): Likewise.
13597 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13598 Likewise.
13599 * doprnt.c (doprnt1): Likewise.
13600 * frame.c (frame): Likewise.
13601 * keyboard.c (wipe_kboard): Likewise.
13602 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13603 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13604 * term.c (tty_default_color_capabilities, maybe_fatal)
13605 (delete_tty): Likewise.
13606 * w16select.c (string): Likewise.
13607 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13608 * w32bdf.c (w32_free_bdf_font): Likewise.
13609 * w32fns.c (w32_unload_font): Likewise.
13610 * w32font.c (w32font_close): Likewise.
13611 * window.c (size_window): Likewise.
13612 * xselect.c (receive_incremental_selection): Likewise.
13613 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13614 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13615 * w32.c (stat): Likewise.
13616
13617 Remove useless if-before-free tests.
13618 * editfns.c (Fset_time_zone_rule): Likewise.
13619 * lread.c (nosuffix): Likewise.
13620 * ralloc.c (get_bloc): Likewise.
13621 * regex.c (reg_free): Likewise.
13622 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13623 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13624 * xsmfns.c (smc_save_yourself_CB): Likewise.
13625
13626 2008-06-02 Kenichi Handa <handa@m17n.org>
13627
13628 * font.c (font_find_for_lface): Handle float font size.
13629 (font_open_for_lface): Likewise.
13630
13631 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13632 comparing the properties.
13633
13634 2008-06-01 Jason Rumney <jasonr@gnu.org>
13635
13636 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13637 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13638 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13639 Don't add empty script list.
13640 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13641
13642 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13643
13644 * Makefile.in (dot, dotdot): Remove, update users.
13645 ".." has been used elsewhere in the file for a long time.
13646 (LIBXT_STATIC): Remove conditional based on unused variable.
13647
13648 2008-06-01 Miles Bader <miles@gnu.org>
13649
13650 * xfaces.c (Vface_remapping_alist): New variable.
13651 (syms_of_xfaces): Initialize it.
13652 (enum named_merge_point_kind): New type.
13653 (struct named_merge_point): Add `named_merge_point_kind' field.
13654 (push_named_merge_point): Make cycle detection respect different
13655 named-merge-point kinds.
13656 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13657 Remove face-name alias resolution.
13658 (lface_from_face_name): New definition using
13659 `lface_from_face_name_no_resolve'.
13660 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13661 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13662 (get_lface_attributes): New definition that layers face-remapping on
13663 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13664 (lookup_basic_face): New function.
13665 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13666 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13667 `get_lface_attributes'.
13668 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13669 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13670 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13671
13672 * xdisp.c (init_iterator): Pass base_face_id through
13673 `lookup_basic_face' when we actually use it as a face-id.
13674 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13675 DEFAULT_FACE_ID.
13676
13677 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13678 lookup the initial face-id.
13679
13680 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13681
13682 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
13683
13684 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13685 (Fremove_text_properties): Fix typos in docstrings.
13686
13687 2008-05-31 Kenichi Handa <handa@m17n.org>
13688
13689 * font.c (font_list_entities): Fix the car part of data to be
13690 stored in the cache.
13691
13692 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13693
13694 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13695
13696 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13697 Add a `test' argument so another predicate than `equal' can be used.
13698 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13699 (map_char_table): Remove unused vars `c' and `i'.
13700 * lisp.h (Foptimize_char_table): Adjust declaration.
13701 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13702
13703 2008-05-30 Kenichi Handa <handa@m17n.org>
13704
13705 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13706 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13707 defined.
13708
13709 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13710
13711 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13712 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13713 frame-local settings for the same variable.
13714
13715 2008-05-30 Kenichi Handa <handa@m17n.org>
13716
13717 * fontset.c (Ffont_info): Move to font.c.
13718 (syms_of_fontset): Delete defsubr of Sfont_info.
13719
13720 * font.c (font_style_to_value, font_score): Delete casting of the
13721 args to xstcasecmp.
13722 (register_font_driver): Increment num_font_drivers only when
13723 registering the driver globally.
13724 (Ffont_info): Move from fontset.c. Handle a font object too.
13725 (syms_of_font): Defsubr Sfont_info.
13726
13727 2008-05-29 Kenichi Handa <handa@m17n.org>
13728
13729 * coding.h (enum define_coding_utf8_arg_index): New enum.
13730 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13731 coding_attr_utf_bom.
13732 (enum utf_bom_type): Rename from utf_16_bom_type.
13733 (struct utf_16_spec): Adjust for the above change.
13734 (struct coding_system): Add utf_8_bom in `spec' union.
13735
13736 * coding.c (CODING_UTF_8_BOM): New macro.
13737 (enum coding_category): Delete coding_category_utf_8, add
13738 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13739 coding_category_utf_8_sig.
13740 (CATEGORY_MASK_UTF_8): Delete it.
13741 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13742 (CATEGORY_MASK_UTF_8_SIG): New macros.
13743 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13744 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13745 CATEGORY_MASK_UTF_8_SIG.
13746 (CATEGORY_MASK_UTF_8): New macro.
13747 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13748 (detect_coding_utf_8): Check BOM.
13749 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13750 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13751 (encode_coding_utf_16): Likewise.
13752 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13753 (detect_coding, detect_coding_system): Handle utf-8-auto.
13754 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13755 (syms_of_coding): Fix setting up of Vcoding_category_table.
13756
13757 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13758
13759 * process.c (Faccept_process_output): If `millisec' is non-nil,
13760 `seconds' default to 0.
13761 (wait_reading_process_output): Also return non-nil if we read output
13762 from a non-running process.
13763
13764 2008-05-29 Jason Rumney <jasonr@gnu.org>
13765
13766 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13767 `raster' specified.
13768 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13769 in the uniscribe backend, but disallow any font that has no
13770 unicode subrange support.
13771
13772 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
13773
13774 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13775 Fix typos in docstrings.
13776
13777 2008-05-29 Kenichi Handa <handa@m17n.org>
13778
13779 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13780 (Fx_family_fonts): Set frame correctly.
13781
13782 2008-05-28 Jason Rumney <jasonr@gnu.org>
13783
13784 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13785
13786 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13787
13788 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13789 calling build_annotations.
13790
13791 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
13792
13793 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13794 (Fencode_coding_string):
13795 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13796 <latin-extra-code-table>: Fix typos in docstrings.
13797 (syms_of_coding) <coding-system-alist>: Doc fix.
13798 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13799
13800 2008-05-28 Kenichi Handa <handa@m17n.org>
13801
13802 * fontset.c (Ffont_info): Don't call font_close_object.
13803
13804 * font.c (font_parse_family_registry): Use Ffont_put to validate
13805 foundry and family.
13806 (font_delete_unmatched): Don't check spacing.
13807 (font_list_entities): Add spacing to the spec to list fonts.
13808
13809 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13810 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13811
13812 * coding.c (encode_coding_raw_text): Fix previous change.
13813 (encode_coding_object): When the dst_object is a buffer and is
13814 different from src_object, move gap to PT.
13815
13816 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13817
13818 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13819
13820 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13821
13822 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13823 all branches. Compute it differently.
13824
13825 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13826
13827 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
13828
13829 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13830 into "else if () ... else ...".
13831
13832 2008-05-27 Jason Rumney <jasonr@gnu.org>
13833
13834 * w32font.c (w32font_open_internal): Determine if glyph indices
13835 are likely to work here.
13836
13837 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
13838
13839 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13840 draw overlap glyphs with appropriate highlighting.
13841
13842 2008-05-27 Kenichi Handa <handa@m17n.org>
13843
13844 * xfont.c (xfont_open): Fix calculation of font->average_width.
13845
13846 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13847
13848 * casefiddle.c (casify_object): Try to guess better whether the
13849 argument is a byte or a char.
13850
13851 2008-05-26 Andreas Schwab <schwab@suse.de>
13852
13853 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13854 Always send multiples of format size.
13855
13856 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13857
13858 2008-05-26 Jason Rumney <jasonr@gnu.org>
13859
13860 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13861 (compute_metrics): Don't set failure if we just cleared the cache.
13862 (w32_weight_table): Remove unused variable.
13863 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13864 backwards compatibility.
13865
13866 2008-05-25 Kenichi Handa <handa@m17n.org>
13867
13868 * w32term.c (x_draw_glyph_string):
13869 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13870
13871 * xfaces.c: Delete unused function prototypes.
13872 (xstrlwr, font_frame): Delete them.
13873 (clear_face_cache): Delete unused variable.
13874
13875 * xftfont.c (xftfont_open): Delete unused variable.
13876 If underline_thickness is not 1, adjust underline_position.
13877
13878 * ftxfont.c (ftxfont_open): Delete unused variable.
13879
13880 * fontset.c (face_for_char): Optimize for the case of no charset
13881 property.
13882
13883 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13884 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13885 (otf_open, font_otf_capability, generate_otf_features)
13886 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13887 Comment out by surrounding "#if 0" and "#endif" for the moment.
13888 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13889 (syms_of_font): Codes for accessing above commented out.
13890
13891 2008-05-24 Eli Zaretskii <eliz@gnu.org>
13892
13893 * w32proc.c: Include dispextern.h.
13894
13895 * w32.c: Include dispextern.h.
13896
13897 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
13898
13899 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13900 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13901 Fix typos in docstrings.
13902
13903 2008-05-23 Jason Rumney <jasonr@gnu.org>
13904
13905 * xsmfns.c: Remove includes that are already included by config.h.
13906
13907 2008-05-23 Kenichi Handa <handa@m17n.org>
13908
13909 * charset.c (Qemacs, charset_emacs): New variables.
13910 (char_charset): Fix for non-Unicode characters.
13911 (syms_of_charset): Define charset_emacs.
13912
13913 * w32term.c (x_draw_glyph_string): Be sure to update
13914 s->underline_thickness and s->underline_position. Be sure to draw
13915 underline within the current line area.
13916
13917 * xterm.c (x_draw_glyph_string): Be sure to update
13918 s->underline_thickness and s->underline_position. Be sure to draw
13919 underline within the current line area.
13920
13921 * fontset.c: Delete unused variables and add casting for char *
13922 throughout the file.
13923 (fontset_font): Try the fallback fonts of the current fontset
13924 before consulting the default fontset.
13925
13926 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13927
13928 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13929
13930 2008-05-22 Jason Rumney <jasonr@gnu.org>
13931
13932 * font.c: Don't include strings.h.
13933
13934 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13935
13936 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13937 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13938 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13939 to call xstrcasecmp.
13940
13941 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13942
13943 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13944
13945 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13946
13947 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13948
13949 2008-05-22 Kenichi Handa <handa@m17n.org>
13950
13951 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13952
13953 * font.c (font_prop_validate_style): Adjust for the format
13954 change of font_style_table.
13955
13956 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13957 two args.
13958
13959 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13960 two args.
13961
13962 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13963
13964 * minibuf.c (keys_of_minibuf): Delete.
13965 * lisp.h (keys_of_minibuf): Delete.
13966 * emacs.c (main): Don't call keys_of_minibuf.
13967
13968 2008-05-22 Kenichi Handa <handa@m17n.org>
13969
13970 * ftfont.c (ftfont_resolve_generic_family): Rename from
13971 ftfont_list_generic_family. Return a single family for each
13972 generic family.
13973 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13974 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13975 Call font_add_log.
13976 (ftfont_match): Call font_add_log.
13977
13978 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13979 (FONT_DEBUG): Define it.
13980 (font_add_log): Extern it.
13981 (font_assert): Rename from xassert.
13982
13983 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13984 (xfont_list_family): Call font_add_log.
13985 (xfont_match): Likewise.
13986 (memq_no_quit): Delete.
13987
13988 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13989 call of Ffont_xlfd_name.
13990
13991 * xfaces.c (struct table_entry, slant_table, weight_table)
13992 (swidth_table): Move to font.c.
13993
13994 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13995 xassert are changed to font_assert. Delete many unused variables.
13996 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13997 New variables.
13998 (struct table_entry): Move from xfaces.c and modified.
13999 (weight_table, slant_table, width_table): Move from xfaces.c and
14000 contents adjusted for the change of struct table_entry.
14001 (font_style_to_value, font_style_symbolic): Adjust for the
14002 format change of font_style_table.
14003 (font_parse_family_registry): Don't overwrite existing foundry and
14004 family of font_spec.
14005 (font_score): Fix calculation of diff for sizes.
14006 (font_sort_entites): Call font_add_log.
14007 (font_delete_unmatched): Return a newly created list.
14008 (font_list_entities): Fix previous change. Call font_add_log.
14009 (font_matching_entity, font_open_entity, font_close_entity):
14010 Call font_add_log.
14011 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14012 (Finternal_set_font_style_table): Delete.
14013 (BUILD_STYLE_TABLE): New macro.
14014 (build_style_table): New function.
14015 (Vfont_log, font_log_env_checked): New variables.
14016 (font_add_log): New function.
14017 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14018 Declare Lisp variables "font-weight-table", "font-slant-table",
14019 "font-width-table", and "font-log". Initialize font_style_table.
14020
14021 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14022
14023 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14024
14025 2008-05-21 Seiji Zenitani <zenitani@mac.com>
14026 Ryo Yoshitake <ryo@shiftmode.net>
14027
14028 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14029 (Vframe_alpha_lower_limit): New variable.
14030 (x_set_alpha): New function.
14031
14032 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14033
14034 * xfns.c (x-create-frame, Qalpha):
14035 Initialize the frame parameter `alpha'.
14036 * xterm.c (OPAQUE, OPACITY): New.
14037 (x_set_frame_alpha): New function.
14038 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14039
14040 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14041 * w32fns.c (w32_frame_parm_handlers): Likewise.
14042
14043 2008-05-20 Jason Rumney <jasonr@gnu.org>
14044
14045 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14046 truetype fonts to opentype list.
14047
14048 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14049
14050 * fontset.c (Ffontset_info): Doc fix.
14051 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14052 <ignore-relative-composition>: Fix typos in docstrings.
14053
14054 * font.c (syms-of-font) <font-encoding-alist>:
14055 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14056 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14057 (Ffont_otf_alternates): Doc fixes.
14058
14059 2008-05-20 Kenichi Handa <handa@m17n.org>
14060
14061 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14062 font.h through out the file.
14063 (FONT_DRIVERS): Rename from FONTOBJ.
14064 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14065 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14066
14067 * emacs.c (main): Call syms_of_font unconditionally.
14068
14069 * font.h (find_font_encoding): Extern it.
14070
14071 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14072 fontset.c.
14073 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14074 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14075 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14076 only when HAVE_WINDOW_SYSTEM is defined.
14077 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14078 when HAVE_WINDOW_SYSTEM is defined.
14079
14080 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14081 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14082
14083 * xfaces.c: Include font.h unconditionally.
14084 (merge_face_ref, merge_face_vectors)
14085 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14086
14087 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14088
14089 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14090 indirect_variable.
14091 * eval.c (lisp_indirect_variable): New fun.
14092 (Fuser_variable_p): Use it.
14093
14094 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14095
14096 * lisp.h (indirect_variable):
14097 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14098 Use Lisp_Symbol pointers rather than Lisp_Object.
14099 Adjust callers.
14100 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14101 To this end, change calling-convention.
14102
14103 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14104 if some non-hidden buffers are selected by string&pred.
14105
14106 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14107
14108 * process.c (wait_reading_process_output): Always check status
14109 when in batch mode.
14110
14111 2008-05-19 Kenichi Handa <handa@m17n.org>
14112
14113 * font.c (font_list_entities): Fix handling of cache.
14114 (font_matching_entity): Likewise.
14115
14116 * ftfont.c (cs_iso8859_1): Delete.
14117 (ft_face_cache): New variable.
14118 (struct ftfont_info): New member fc_charset_idx.
14119 (ftfont_build_basic_charsets): Delete.
14120 (fc_charset_table): New variable.
14121 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14122 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14123 Callers changed.
14124 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14125 (ftfont_spec_pattern): New argument fc_charset_idx.
14126 Check registry more rigidly. Change callers.
14127 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14128 change of :font-entity property of the font.
14129
14130 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14131 property of the font.
14132
14133 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
14134
14135 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14136 (Funencodable_char_position, Fcheck_coding_systems_region)
14137 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14138 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14139 (Ffind_operation_coding_system, Fset_coding_system_priority)
14140 (Fcoding_system_eol_type): Doc fixes.
14141
14142 2008-05-17 Glenn Morris <rgm@gnu.org>
14143
14144 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14145
14146 2008-05-16 Eli Zaretskii <eliz@gnu.org>
14147
14148 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14149 and st_gid.
14150
14151 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14152 HAVE_WINDOW_SYSTEM is not defined.
14153
14154 * xfaces.c (merge_face_ref, merge_face_vectors)
14155 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14156 HAVE_WINDOW_SYSTEM is defined.
14157 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14158
14159 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14160
14161 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14162
14163 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14164
14165 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14166
14167 2008-05-15 Kenichi Handa <handa@m17n.org>
14168
14169 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14170 preference.
14171
14172 2008-05-15 Glenn Morris <rgm@gnu.org>
14173
14174 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14175
14176 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
14177
14178 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14179 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14180
14181 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14182
14183 2008-05-15 Kenichi Handa <handa@m17n.org>
14184
14185 * ftfont.c (ftfont_list): Downcase family name to check generic
14186 families.
14187
14188 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14189 font-spec for QCfont value.
14190
14191 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14192 buffer. Check the return value of it.
14193
14194 2008-05-14 Jason Rumney <jasonr@gnu.org>
14195
14196 * w32term.c (w32_get_glyph_overhangs): Remove.
14197 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14198
14199 2008-05-14 Kenichi Handa <handa@m17n.org>
14200
14201 * font.c (font_prop_validate): Make nil a valid value.
14202 (font_clear_cache): Check if the cached vector of entities is nil
14203 or not.
14204
14205 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14206
14207 * emacs.c (main_thread): Conditionalize on
14208 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14209 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14210
14211 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14212 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14213 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14214
14215 2008-05-14 Kenichi Handa <handa@m17n.org>
14216
14217 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14218 has no corresponding coding system.
14219
14220 2008-05-14 Jason Rumney <jasonr@gnu.org>
14221
14222 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14223
14224 * w32font.h (w32font_open_internal): Update declaration.
14225
14226 * w32font.c (w32font_open_internal): Change last argument from
14227 w32font_info struct to font object. Fill in font object from
14228 font_entity. Get Outline metrics if possible. Use them to
14229 calculate underline position and thickness. Use xlfd name as name
14230 property. Don't set codepage.
14231 (w32font_open): Pass font_object to w32font_open_internal. Don't
14232 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14233 (w32font_draw): Use s->font.
14234 (clear_cached_metrics): Don't clear non-existent blocks.
14235
14236 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14237 font was not found.
14238 (x_draw_glyph_string): Use underline position and thickness from font.
14239
14240 * w32uniscribe.c (uniscribe_open): Pass font_object to
14241 w32font_open_internal.
14242
14243 2008-05-14 Kenichi Handa <handa@m17n.org>
14244
14245 These changes are to delete all legacy font-handling codes, and
14246 make Emacs use only font-backends.
14247
14248 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14249 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14250
14251 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14252
14253 * charset.h (Vcharset_non_preferred_head)
14254 (Vcurrent_iso639_language): Extern them.
14255
14256 * charset.c (Vcharset_non_preferred_head): New variable.
14257 (Vcurrent_iso639_language): New variable.
14258 (syms_of_charset): Declare it as a Lisp variable.
14259 (char_charset): Don't check non preferred charsets. As a last
14260 resort, return charset_unicode.
14261 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14262
14263 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14264 conditionals. Don't check enable_font_backend. Delete all codes
14265 used only when USE_FONT_BACKEND is not defined.
14266
14267 * dispextern.h (struct glyph_string): Change type of `font' to
14268 `struct font *'.
14269 (struct glyph_string): New member underline_position and
14270 underline_thickness.
14271 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14272 (struct face): Change type of `font' to `struct font *'. Remove
14273 members `font_name', `font_info_id'.
14274 (per_char_metric, encode_char): Delete externs.
14275 (calc_pixel_width_or_height): Adjust the prototype.
14276
14277 * emacs.c (enable_font_backend): Delete extern.
14278 (main): Don't set enable_font_backend. Don't check the command
14279 line argument "-disable-font-backend".
14280
14281 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14282 (enum font_property_index): New members FONT_DPI_INDEX,
14283 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14284 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14285 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14286 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14287 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14288 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14289 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14290 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14291 (struct font_spec, struct font_entity): New structs.
14292 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14293 (struct font): Many members from old "struct font_info" moved to
14294 here. Members font and entity deleted.
14295 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14296 the new font-related objects.
14297 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14298 (CHECK_FONT_GET_OBJECT): Likewise.
14299 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14300 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14301 (struct font_driver): New members case_sensitive anc check. Type
14302 of the member list and open changed.
14303 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14304 (font_symbolic_width, font_find_object, font_get_spec)
14305 (font_set_lface_from_name): Delete extern.
14306 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14307
14308 * font.c: Include <strings.h>.
14309 (enable_font_backend): Delete it.
14310 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14311 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14312 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14313 (null_string): Delete it.
14314 (null_vector): Make it static.
14315 (font_family_alist): Delete it.
14316 (Qnormal): Extern it.
14317 (QCextra, QClanguage): Delete it.
14318 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14319 (font_make_spec, font_make_entity, font_make_object)
14320 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14321 the string. Callers changed.
14322 (font_pixel_size): Adjusted for the format change of font-related
14323 objects.
14324 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14325 (font_style_to_value, font_style_symbolic): New function.
14326 (build_font_family_alist): Delete it.
14327 (font_registry_charsets): Use Fassoc_string instead of
14328 assq_no_quit.
14329 (font_prop_validate_symbol): Don't return null_string.
14330 (font_prop_validate_style): Adjusted for the change of
14331 style-related values in a font vector.
14332 (font_property_table): Delete entries for QClanguage and
14333 QCantialias, add entries for QCavgwidth.
14334 (get_font_prop_index): Delete the 2nd argument FROM.
14335 (font_prop_validate): Arguments changed.
14336 (font_put_extra): Adjusted for the change of font-related objects.
14337 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14338 (font_parse_fcname, font_unparse_fcname)
14339 (font_prepare_composition): Likewise.
14340 (font_parse_family_registry): Renamed from font_merge_old_spec.
14341 (otf_open): Delete the 1st arg entity.
14342 (font_otf_capability): Adjusted for the above change.
14343 (font_score): New arg alternate_families. Adjusted for the change
14344 of font-related objects.
14345 (font_sort_entites): New arg best_only.
14346 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14347 Delete them.
14348 (font_match_p): Check alternate families.
14349 (font_find_object): Delete it.
14350 (font_check_object): New function.
14351 (font_clear_cache): Adjusted for the change of font-related objects.
14352 (font_delete_unmatched): New arg.
14353 (font_list_entities): Call font_driver->list with a spec that
14354 doesn't specify style-related properties.
14355 (font_matching_entity): Arguments changed. Caller changed.
14356 (font_open_entity): Adjusted for the change of font-related objects.
14357 (font_close_object, font_has_char, font_encode_char)
14358 (font_get_name, font_get_spec): Likewise.
14359 (font_spec_from_name, font_clear_prop, font_update_lface):
14360 New functions.
14361 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14362 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14363 (font_at): Adjusted for the change of font-related objects.
14364 (font_range): New function.
14365 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14366 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14367 (Fcopy_font_spec, Fmerge_font_spec): New function.
14368 (Ffont_family_list): Renamed from list-families.
14369 (Finternal_set_font_style_table): Arguments changed.
14370 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14371 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14372 change of font-related objects.
14373 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14374
14375 * fontset.h (struct font_info): Delete it. Most members go to
14376 struct font.
14377 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14378 (enum FONT_SPEC_INDEX): Delete it.
14379 (font_info, list_fonts_func, load_font_func, query_font_func)
14380 (set_frame_fontset_func, find_ccl_program_func)
14381 (get_font_repertory_func, new_fontset_from_font_name): Delete
14382 externs.
14383 (fontset_from_font_name): Extern it.
14384 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14385 (FONT_INFO_FROM_FACE): Deleted.
14386 (face_for_font): Adjust prototype.
14387
14388 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14389 conditionals. Don't check enable_font_backend. Delete all codes
14390 used only when USE_FONT_BACKEND is not defined.
14391 (get_font_info_func, list_font_func, load_font_func)
14392 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14393 (get_font_repertory_func): Delete them.
14394 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14395 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14396 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14397 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14398 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14399 (fontset_compare_rfontdef): New function.
14400 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14401 rfont-defs by qsort. Adjusted for the change of font-group vector.
14402 (load_font_get_repertory): Deleted.
14403 (fontset_find_font): Use new macros to ref/set elements of
14404 font-def and rfont-def.
14405 (fontset_font): Fix the timing of remembering that no font for C.
14406 (free_face_fontset): Do nothing if the face has no fontset.
14407 (face_suitable_for_char_p): Use new macros to ref/set elements of
14408 rfont-def.
14409 (face_for_char): Likewise. Call face_for_char with font_object.
14410 (fs_load_font): Delete. Delete #pragma surrounding it.
14411 (fs_query_fontset): Use strcasecmp instead of strcmp.
14412 (generate_ascii_font_name): Adjusted for the format change of
14413 font-spec.
14414 (Fset_fontset_font): Likewise. Use new macros to set elements of
14415 font-def.
14416 (Fnew_fontset): Use font_unparse_xlfd to generate
14417 FONTSET_ASCII (fontset).
14418 (new_fontset_from_font_name): Deleted.
14419 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14420 a fontset is already created for the font. FIx updating of
14421 Vfontset_alias_alist.
14422 (fontset_ascii_font): Deleted.
14423 (Ffont_info): Adjusted for the format change of font-spec.
14424 (Finternal_char_font): Likewise.
14425 (Ffontset_info): Likewise.
14426 (syms_of_fontset): Don't check load_font_func.
14427
14428 * fns.c (internal_equal): Handle PREV_FONT.
14429
14430 * frame.h: Delete USE_FONT_BACKEND conditional.
14431
14432 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14433 conditionals. Don't check enable_font_backend. Delete all codes
14434 used only when USE_FONT_BACKEND is not defined.
14435 (x_set_font): Call x_new_font, not x_new_fontset2.
14436 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14437 already set for the frame.
14438
14439 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14440 a font-entity by font_make_entity. Use font_intern_prop instead
14441 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14442 font property. If a font is scalable, set avgwidth property to 0.
14443 Set font-entity property by font_put_extra.
14444 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14445 (ffont_driver): Adjusted for the change of struct font_driver.
14446 (ftfont_spec_pattern): New function.
14447 (ftfont_list): Return a list, not vector.
14448 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14449 (ftfont_list_family): Don't downcase names.
14450 (ftfont_free_entity): Deleted.
14451 (ftfont_open): Return a font-object. Adjusted for the change of
14452 struct font. Get underline_thickness and underline_position from
14453 font property. Don't update dpyinfo->smallest_font_height and
14454 dpyinfo->smallest_char_width.
14455 (ftfont_close): Don't free `struct font'.
14456 (ftfont_has_char): Adjusted for the format change of font-entity.
14457 (ftfont_encode_char, ftfont_text_extents): Likewise.
14458
14459 * ftxfont.c (ftxfont_list): Return a list, not vector.
14460 (ftxfont_open): Return a font-object. Adjusted for the change of
14461 struct font. Get underline_thickness and underline_position from
14462 font property. Don't update dpyinfo->smallest_font_height and
14463 dpyinfo->smallest_char_width.
14464 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14465 (ftxfont_draw): Adjusted for the change of struct font.
14466
14467 * image.c (image_ascent): Don't include "charset.h". Include
14468 "character.h" and "font.h".
14469
14470 * lisp.h (enum pvec_type): New member PREV_FONT.
14471 (Fassoc_string): EXFUN it.
14472
14473 * print.c: Include font.h.
14474 (print_object): Handle font-related objects.
14475
14476 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14477 conditionals. Don't check enable_font_backend. Delete all codes
14478 used only when USE_FONT_BACKEND is not defined.
14479 (handle_auto_composed_prop): Do nothing if it->f is not on a
14480 window system. Check how many following characters can be
14481 displayed by the same font.
14482 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14483 'struct font *'.
14484 (get_char_face_and_encoding): Assign the whole encoding task to
14485 the `encode-char' method of a font driver.
14486 (fill_composite_glyph_string): Adjusted for the change of `struct
14487 face' and `struct glyph_string'.
14488 (fill_glyph_string): Likewise.
14489 (get_per_char_metric): Arguments changed.
14490 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14491 and `struct glyph_string'.
14492 (produce_stretch_glyph, calc_line_height_property)
14493 (x_produce_glyphs): Likewise.
14494
14495 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14496 conditionals. Don't check enable_font_backend. Delete all codes
14497 used only when USE_FONT_BACKEND is not defined. Use
14498 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14499 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14500 (Qp): Extern them.
14501 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14502 Deleted.
14503 (struct font_name): Deleted.
14504 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14505 (compare_fonts_by_sort_order): New function.
14506 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14507 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14508 Deleted.
14509 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14510 compare_fonts_by_sort_order.
14511 (Fx_font_family_list): Call Ffont_family_list.
14512 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14513 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14514 (face_symbolic_slant, face_symbolic_swidth)
14515 (split_font_name_into_vector, build_font_name_from_vector)
14516 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14517 (font_rescale_ratio, split_font_name, build_font_name)
14518 (free_font_names, sort_fonts, x_face_list_fonts)
14519 (face_font_available_p, sorted_font_list, cmp_font_names)
14520 (font_list_1, concat_font_list, font_list, remove_duplicates):
14521 Deleted.
14522 (Fx_list_fonts): Use Ffont_list.
14523 (LFACE_AVGWIDTH): Deleted.
14524 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14525 by FONTP.
14526 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14527 (set_lface_from_font_name): Delete it.
14528 (set_lface_from_font): Renamed from
14529 set_lface_from_font_and_fontset. Caller changed. Don't set
14530 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14531 for face.
14532 (merge_face_vectors): Copy font-spec if necessary.
14533 Clear properties of the font-spec if necessary.
14534 (merge_face_ref): Clear properties of the font-spec if necessary.
14535 (Finternal_set_lisp_face_attribute): Likewise.
14536 (set_font_frame_param): Use font_load_for_lface to load a
14537 font-object, and call Fmodify_frame_parameters with it.
14538 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14539 font name by Ffont_xlfd_name.
14540 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14541 QCslant, and QCwidth.
14542 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14543 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14544 Compare fonts by EQ.
14545 (lookup_non_ascii_face): Deleted.
14546 (face_for_font): The 2nd argument changed.
14547 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14548 Check atomic font properties by case insensitive.
14549 (realize_non_ascii_face): Set face->overstrike correctly.
14550 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14551 (dump_realized_face): Get font name from
14552 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14553
14554 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14555 conditionals. Don't check enable_font_backend. Delete all codes
14556 used only when USE_FONT_BACKEND is not defined.
14557 (xic_create_xfontset): Original code deleted and renamed from
14558 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14559 (x_make_gc): Don't set GCFont in GCs.
14560 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14561 opened by "fixed".
14562 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14563 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14564 get_font_repertory_func.
14565
14566 * xfont.c: Include <stdlib.h> and "ccl.h".
14567 (struct xfont_info): New structure.
14568 (xfont_query_font): Deleted.
14569 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14570 moved from xterm.c.
14571 (xfont_driver): Adjusted for the change of struct font_driver.
14572 (compare_font_names): New function.
14573 (xfont_list_pattern): Sort font names case insensitively. Make
14574 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14575 (xfont_list): Return a list, not vector.
14576 (xfont_match): If the font doesn't have QCname property, generate
14577 a name from the other font properties.
14578 (xfont_open): Return a font-object. Adjusted for the change of
14579 struct font. Get underline_thickness and underline_position from
14580 font property. Don't update dpyinfo->smallest_font_height and
14581 dpyinfo->smallest_char_width.
14582 (xfont_close): Don't free struct font.
14583 (xfont_prepare_face): Adjusted for the change of struct font.
14584 (xfont_done_face): Deleted.
14585 (xfont_has_char): Adjusted for the change of struct font.
14586 (xfont_encode_char, xfont_draw): Likewise.
14587 (xfont_check): New function.
14588
14589 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14590 callback function.
14591 (xftfont_match): Adjusted for the format change of font-entity.
14592 (xftfont_open): Adjusted for the format change of font-entity and
14593 font-object. Adjusted for the change of struct font. Return a
14594 font-object. Don't update dpyinfo->smallest_font_height and
14595 dpyinfo->smallest_char_width.
14596 (xftfont_close): Block input while calling XftFontClose.
14597 (xftfont_prepare_face): Don't block input while calling
14598 xftfont_get_colors. Adjusted for the change of struct font.
14599 (xftfont_shape): Return value of error case fixed.
14600
14601 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14602
14603 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14604 conditionals.
14605 (FONT_WIDTH): Return (f)->max_width.
14606 (struct x_display_info): Delete member `font'.
14607 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14608 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14609 (struct x_output): Change type of `font' to `struct font *'.
14610
14611 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14612 conditionals. Don't check enable_font_backend. Delete all codes
14613 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14614 (x_per_char_metric, x_encode_char): Deleted.
14615 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14616 (x_compute_glyph_string_overhangs): Adjusted for the change of
14617 `struct face'.
14618 (x_draw_glyph_string_foreground)
14619 (x_draw_composite_glyph_string_foreground): Likewise.
14620 (x_draw_glyph_string): Likewise. Use font->underline_position and
14621 font->underline_thickness.
14622 (x_new_font): Renamed from x_new_fontset2.
14623 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14624 (x_check_font): Call `check' method of a font driver.
14625 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14626 (x_query_font, x_get_font_repertory): Deleted.
14627 (x_find_ccl_program): Renamed and moved to xfont.c.
14628 (x_redisplay_interface): Adjusted for the change of `struct
14629 redisplay_interface'.
14630
14631 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14632 conditionals. Don't check enable_font_backend. Delete all codes
14633 used only when USE_FONT_BACKEND is not defined. Surround non-used
14634 code by "#ifdef OLD_FONT" and "endif".
14635 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14636
14637 * w32font.h (struct w32font_info): New member.
14638 (FONT_COMPAT): New macro.
14639 (w32font_open_internal): Prototype adjusted.
14640
14641 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14642 OLD_FONT" and "endif".
14643
14644 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14645 conditionals. Don't check enable_font_backend. Delete all codes
14646 used only when USE_FONT_BACKEND is not defined.
14647 (w32font_open): Return a font-object. Make a font-object by
14648 font_make_object. Adjusted for the change of struct w32font_info.
14649 (w32font_close): Don't free struct font. Adjusted for the change
14650 of struct w32font_info.
14651 (w32font_encode_char, w32font_text_extents, w32font_draw):
14652 Adjusted for the change of struct w32font_info.
14653 (w32font_draw): Likewise.
14654 (w32font_list_internal): Return a list, not vector.
14655 (w32font_open_internal): Change the 4th arg to font-object.
14656 Adjusted for the change of struct w32font_info and font-object format.
14657 (add_font_name_to_list): Don't downcase names.
14658 (w32_enumfont_pattern_entity): Make a font-entity by
14659 font_make_entity. Adjusted for the format change of font-entity.
14660 Use FONT_SET_STYLE to set a style-related font property. If a
14661 font is scalable, set avgwidth property to 0. Set font-entity
14662 property by font_put_extra.
14663 (font_matches_spec): Adjusted for the format change of font-entity.
14664 (w32_weight_table, w32_decode_weight): New variables.
14665 (w32_encode_weight): New function.
14666 (fill_in_logfont): Adjusted for the format change of font-spec.
14667 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14668 weight value.
14669 (w32font_driver): Adjusted for the change of struct font_driver.
14670
14671 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14672 conditionals. Don't check enable_font_backend. Surround non-used
14673 code by "#ifdef OLD_FONT" and "endif".
14674 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14675 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14676
14677 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14678 conditionals. Don't check enable_font_backend. Delete all codes
14679 used only when USE_FONT_BACKEND is not defined. Surround non-used
14680 code by "#ifdef OLD_FONT" and "endif".
14681
14682 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14683 (uniscribe_open): Return value changed to font-object.
14684 Adjusted for the format change of font-object.
14685 (uniscribe_otf_capability): Adjusted for the change of struct font.
14686 (add_opentype_font_name_to_list): Don't downcase names.
14687 (uniscribe_font_driver): Adjusted for the change of struct
14688 font_driver.
14689
14690 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
14691
14692 * dispnew.c (update_frame_1): Check if tty output is still valid
14693 before flushing it.
14694
14695 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14696
14697 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14698 to Gtk+ menus.
14699
14700 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14701
14702 * dired.c (file_name_completion): Tweak the code so as to always do it
14703 in a single pass. Tighten the scope of some variables.
14704
14705 * dired.c (Qdefault_directory): New var.
14706 (file_name_completion): Use it instead of Fexpand_file_name.
14707 (syms_of_dired): Initialize it.
14708
14709 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14710
14711 * fileio.c (double_dollars): Remove dead code.
14712
14713 2008-05-10 Eli Zaretskii <eliz@gnu.org>
14714
14715 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14716 Mention w32-get-true-file-attributes in doc string.
14717
14718 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14719
14720 2008-05-09 Glenn Morris <rgm@gnu.org>
14721
14722 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14723 2008-04-23.
14724
14725 2008-05-09 Eli Zaretskii <eliz@gnu.org>
14726
14727 Support for reporting owner and group of each file on MS-Windows:
14728 * dired.c (stat_uname, stat_gname): New functions, with special
14729 implementation for w32.
14730 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14731
14732 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14733 (dflt_group_name): New static variable.
14734 (dflt_group): Rename from the_group.
14735 (init_user_info): Init dflt_group fields. Get user's group name
14736 from LookupAccountSid.
14737 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14738 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14739 New initialization states.
14740 (globals_of_w32): Initialize them to zero. Initialize the default
14741 group name to "None".
14742 (GetFileSecurity_Name): New global var, the name of the function
14743 to call for GetFileSecurity.
14744 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14745 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14746 (get_file_security, get_security_descriptor_owner)
14747 (get_security_descriptor_group, is_valid_sid)
14748 (get_file_security_desc, get_rid, get_name_and_id)
14749 (get_file_owner_and_group): New functions.
14750 (stat): Use get_file_security_desc and get_file_owner_and_group to
14751 report the owner and primary group of each file. Don't ignore the
14752 high 32 bits of file's size, now that st_size is 64-bit wide.
14753 Fix test when to get true file attributes.
14754 (init_user_info): Use get_rid instead of equivalent inline code.
14755 (fstat): Don't ignore the high 32 bits of file's size.
14756
14757 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
14758
14759 * image.c (png_load): Use correct bit-depth for setting background
14760 color.
14761
14762 2008-05-08 Eli Zaretskii <eliz@gnu.org>
14763
14764 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14765 epa-hook.elc.
14766
14767 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
14768
14769 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14770
14771 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14772
14773 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14774 because the original parameters are in pure storage now.
14775 (mac_window): Remove unused params. Update callers.
14776
14777 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14778
14779 * lread.c (substitute_object_recurse): Use lower-level primitives.
14780 Don't signal errors when traversing sub-char-tables.
14781 Don't loop over all the possible characters when traversing char-tables.
14782
14783 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14784 just like we do in print.c.
14785
14786 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14787
14788 * minibuf.c (Ftry_completion): Remove code left over from when we used
14789 scmp instead of Fcompare_strings.
14790
14791 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
14792
14793 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14794
14795 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14796
14797 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14798 Create bitmap context in native byte order.
14799
14800 * macterm.c (XDrawLine)
14801 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14802 context in native byte order.
14803
14804 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14805
14806 * config.in: Regenerate.
14807
14808 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14809 New definitions for Image I/O support.
14810 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14811 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14812 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14813 (mac_data_provider_release_data, image_load_image_io)
14814 [USE_MAC_IMAGE_IO]: New functions.
14815 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14816 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14817 (init_image_func_pointer) [MAC_OSX]: Remove function.
14818 (image_load_quartz2d) [MAC_OSX]: Check availability of
14819 CGImageCreateWithPNGDataProvider at compile time.
14820 Use lowercase `false' for boolean constant.
14821 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14822 Use image_load_image_io.
14823 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14824 Don't check MyCGImageCreateWithPNGDataProvider.
14825 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14826 Don't call init_image_func_pointer.
14827
14828 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14829
14830 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14831 Make variable non-static.
14832 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14833 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14834
14835 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14836 (RED_FROM_ULONG): Mask off higher bits.
14837 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14838
14839 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14840 Include AvailabilityMacros.h.
14841 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14842 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14843
14844 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14845
14846 * chartab.c (Fset_char_table_range): If range is t, really set all
14847 chars to that value.
14848
14849 2008-05-03 Eli Zaretskii <eliz@gnu.org>
14850
14851 * dired.c (Ffile_attributes): Don't allow the device number become
14852 negative.
14853
14854 2008-05-02 Daiki Ueno <ueno@unixuser.org>
14855
14856 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14857
14858 2008-05-02 Juri Linkov <juri@jurta.org>
14859
14860 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14861 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14862 DEFAULT argument as a list of default values in docstrings.
14863
14864 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
14865
14866 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14867
14868 2008-05-01 Martin Rudalics <rudalics@gmx.at>
14869
14870 * dispnew.c (change_frame_size_1): Preserve small windows when
14871 shrinking frames by calling set_window_height|width with third
14872 arg 2.
14873
14874 * window.h (struct window): Replace field too_small_ok by field
14875 resize_proportionally.
14876
14877 * window.c (make_window): Initialize resize_proportionally.
14878 (enlarge_window): Temporarily set resize_proportionally to make
14879 sure that shrink_windows does scale the window proportionally.
14880 (shrink_windows): When window has resize_proportionally set try
14881 to shrink it proportionally by stealing from other windows.
14882 (struct saved_window, Fset_window_configuration)
14883 (compare_window_configurations): Handle resize_proportionally.
14884 (WINDOW_TOTAL_SIZE): New macro.
14885 (window_min_size, shrink_windows, size_window): Use it.
14886 (check_min_window_sizes): Remove. Invalid values of
14887 window-min-height|width are handled by window_min_size_2 now.
14888 (size_window, Fsplit_window, enlarge_window)
14889 (adjust_window_trailing_edge, grow_mini_window): Don't call
14890 check_min_window_sizes.
14891 (window_min_size_2, window_min_size_1, window_min_size):
14892 New argument safe_p for retrieving "safe" minimum sizes.
14893 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14894 (adjust_window_trailing_edge, grow_mini_window):
14895 Adjust arguments of window_min_size... functions.
14896 (shrink_windows): Argument min_size removed. New argument
14897 safe_p allows shrinking windows to their safe minimum sizes.
14898 Calculate minimum size and decide whether a window shall be
14899 deleted for each window individually.
14900 (size_window): When nodelete_p equals 2, tell shrink_windows to
14901 delete windows only if their new minimum size is no more safe.
14902 (shrink_window_lowest_first): Call window_min_size_1 to make
14903 sure to preserve modeline of bottom-most window when resizing
14904 the minibuffer.
14905 (Fset_window_configuration, Fcurrent_window_configuration)
14906 (compare_window_configurations): Do not handle
14907 window-min-height|width any more.
14908 (syms_of_window): Clarify window-min-height|width doc-strings.
14909
14910 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14911
14912 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14913 some more. Copy some of the code from Ftry_completions.
14914 Remove special case code that dates back to initial revision when the
14915 slash was only added when necessary and that can't trigger nowadays.
14916
14917 2008-04-27 Kenichi Handa <handa@m17n.org>
14918
14919 * font.c (font_prop_validate): Signal `error' instead of `font'.
14920
14921 2008-04-29 Jason Rumney <jasonr@gnu.org>
14922
14923 * w32fns.c (Fw32_battery_status): New defun.
14924 (syms_of_w32fns): Defsubr it.
14925
14926 2008-04-28 Andreas Schwab <schwab@suse.de>
14927
14928 * dired.c (file_name_completion): Fix another mixing of encoded
14929 and decoded names.
14930
14931 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
14932
14933 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14934
14935 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
14936
14937 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14938
14939 2008-04-27 Andreas Schwab <schwab@suse.de>
14940
14941 * dired.c (file_name_completion): Fix inappropriate mixing of
14942 encoded and decoded names.
14943
14944 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14945
14946 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14947
14948 2008-04-26 Eli Zaretskii <eliz@gnu.org>
14949
14950 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14951 2008-03-31, it's not needed anymore with `struct stat' definition
14952 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14953 for the same reasons.
14954
14955 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14956
14957 * m/sparc.h: Additional redefinitions for GNU/Linux.
14958
14959 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14960
14961 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14962 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14963 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14964 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14965 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14966 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14967 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14968 Likewise.
14969
14970 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14971 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14972 (mac_ax_number_of_characters): Add externs.
14973 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14974 [USE_MAC_TSM]: Likewise.
14975 (mac_handle_text_input_event) [MAC_OSX]:
14976 Handle kEventTextInputOffsetToPos for no active input area case.
14977 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14978 (mac_handle_document_access_event)
14979 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14980 (install_application_handler) [MAC_OSX]: Register handlers for
14981 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14982 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14983 Register mac_handle_document_access_event.
14984
14985 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14986 Make functions non-static.
14987
14988 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14989
14990 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14991 (read_file_name_completion_ignore_case, insert_default_directory)
14992 (Qdefault_directory): Move to minibuffer.el.
14993 (Fread_file_name): Call the new `read-file-name' instead.
14994
14995 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14996
14997 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14998 Make function non-static.
14999 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15000 Remove function.
15001 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15002 Move to mactoolbox.c.
15003 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15004
15005 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15006 (mac_rect_make): New macro.
15007
15008 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15009 instead of float.
15010 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15011 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15012 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15013 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15014 CGRectMake.
15015 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15016 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15017 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15018 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15019 instead of WindowRef in argument type.
15020 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15021 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15022 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15023 instead of DISPLAY. All uses changed.
15024 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15025 (x_calc_absolute_position): Simplify so as not to use
15026 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15027
15028 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15029 instead of WindowRef in argument type.
15030 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15031 [TARGET_API_MAC_CARBON]: Remove externs.
15032 (create_apple_event, mac_event_parameters_to_lisp)
15033 [TARGET_API_MAC_CARBON]: Add externs.
15034
15035 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15036 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15037 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15038 is clicked.
15039 (x_activate_menubar): Remove extern for saved_menu_event_location.
15040 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15041 Move from mac.c.
15042
15043 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15044
15045 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15046 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15047
15048 2008-04-23 Jason Rumney <jasonr@gnu.org>
15049
15050 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15051 attributes only for local files.
15052
15053 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15054 default to Qlocal.
15055
15056 2008-04-22 Juri Linkov <juri@jurta.org>
15057
15058 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15059 read-buffer-to-switch instead of using the letter "B".
15060
15061 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15062
15063 * fileio.c (Qdefault_directory): New variable.
15064 (Fread_file_name): Use it to pass `dir' to the completion functions.
15065
15066 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15067
15068 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15069
15070 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15071
15072 * keyboard.c (Vpre_help_message): Remove.
15073 (show_help_echo): Remove default C code.
15074
15075 * dired.c (directory_files_internal, file_name_completion):
15076 Only call ENCODE_FILE if the string is indeed decoded.
15077
15078 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15079
15080 * Makefile.in (TOOLKIT_DEFINES): Remove.
15081 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15082
15083 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15084
15085 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15086 (mactoolbox.o): New target.
15087
15088 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15089 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15090
15091 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15092 Use mac_set_frame_window_background instead of XSetWindowBackground.
15093 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15094 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15095 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15096 instead of SetWindowTitleWithCFString.
15097 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15098 Move function to mactoolbox.c.
15099 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15100 Use mac_set_window_modified instead of SetWindowModified.
15101 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15102 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15103 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15104 FrontNonFloatingWindow. Use mac_activate_window instead of
15105 ActivateWindow. Use mac_active_non_floating_window instead of
15106 ActiveNonFloatingWindow.
15107 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15108 Use mac_show_hourglass and mac_hide_hourglass.
15109 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15110 instead of GetGlobalMouse.
15111 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15112 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15113 Use mac_bring_window_to_front instead of BringToFront.
15114 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15115 mactoolbox.c.
15116 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15117 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15118 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15119 mactoolbox.c.
15120
15121 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15122 (XtPointer): Move typedef from macmenu.c.
15123 (enum button_type): Move enum from macmenu.c.
15124 (widget_value): Move typedef from macmenu.c.
15125 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15126 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15127 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15128 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15129 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15130 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15131 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15132 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15133 (Selection): Move typedef from macselect.c.
15134 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15135 macterm.c.
15136 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15137 (mac_is_window_collapsed, mac_bring_window_to_front)
15138 (mac_send_window_behind, mac_hide_window, mac_show_window)
15139 (mac_collapse_window, mac_front_non_floating_window)
15140 (mac_active_non_floating_window, mac_activate_window)
15141 (mac_move_window_structure, mac_move_window, mac_size_window)
15142 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15143
15144 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15145 (enum mac_menu_kind): Move enum to mactoolbox.c.
15146 (min_menu_id): Move variable to mactoolbox.c.
15147 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15148 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15149 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15150 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15151 [TARGET_API_MAC_CARBON]: Likewise.
15152 (XtPointer): Move typedef to macgui.h.
15153 (enum button_type): Move enum to macgui.h.
15154 (widget_value): Move typedef to macgui.h.
15155 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15156 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15157 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15158 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15159 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15160 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15161 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15162 (popup_activated_flag): Make variable non-static.
15163 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15164 (add_menu_item, fill_menu, dispose_menus):
15165 Move functions to mactoolbox.c.
15166 (restore_show_help_function, menu_target_item_handler)
15167 (install_menu_target_item_handler, mac_handle_dialog_event)
15168 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15169 [TARGET_API_MAC_CARBON]: Likewise.
15170 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15171 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15172 (find_and_call_menu_selection, name_is_separator): Make function
15173 non-static.
15174 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15175 to mactoolbox.c.
15176 (set_frame_menubar): Don't call install_menu_quit_handler.
15177 (menu_item_selection): New variable.
15178 (mac_menu_show): Use create_and_show_popup_menu.
15179 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15180 selection but set variable menu_item_selection. All uses changed.
15181 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15182 Call install_menu_quit_handler. Move to mactoolbox.c.
15183
15184 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15185 (Selection): Move typedef to macgui.h.
15186 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15187 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15188 Make variables non-static.
15189 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15190 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15191 Make functions non-static.
15192 (Vmac_service_selection) [MAC_OSX]: Likewise.
15193 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15194 (mac_valid_selection_target_p, mac_clear_selection)
15195 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15196 (mac_put_selection_value, mac_selection_has_target_p)
15197 (mac_get_selection_value, mac_get_selection_target_list)
15198 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15199 Move functions to mactoolbox.c.
15200 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15201 Likewise.
15202 (copy_scrap_flavor_data, mac_handle_service_event)
15203 (install_service_handler) [MAC_OSX]: Likewise.
15204 (syms_of_macselect) <Vmac_dnd_known_types>:
15205 Use mac_dnd_default_known_types.
15206
15207 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15208 Move to mactoolbox.c.
15209 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15210 (Fx_selection_owner_p): Add EXFUN.
15211 (install_window_handler, remove_window_handler, XSetWindowBackground):
15212 Remove externs.
15213 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15214 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15215 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15216 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15217 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15218 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15219 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15220 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15221 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15222 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15223 (mac_valid_selection_target_p, mac_clear_selection)
15224 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15225 (mac_put_selection_value, mac_selection_has_target_p)
15226 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15227 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15228 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15229 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15230 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15231 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15232 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15233 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15234 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15235
15236 * mactoolbox.c: New file.
15237
15238 2008-04-18 Jason Rumney <jasonr@gnu.org>
15239
15240 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15241
15242 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15243
15244 * character.c (Fmultibyte_char_to_unibyte):
15245 Return latin1 chars unchanged.
15246
15247 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15248 relocated if it points to `name'.
15249
15250 2008-04-17 Kenichi Handa <handa@m17n.org>
15251
15252 * data.c (Faset): Allow setting a multibyte character in an
15253 ASCII-only unibyte string.
15254
15255 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15256
15257 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15258
15259 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15260 done in config.h.
15261
15262 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
15263
15264 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15265 (Fchar_direction): Add usage in the docstring.
15266
15267 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
15268
15269 * keyboard.c (read_key_sequence): Remove always-true checks.
15270
15271 2008-04-14 Jason Rumney <jasonr@gnu.org>
15272
15273 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15274 compatibility struct, for better underline positioning.
15275
15276 2008-04-13 David Hansen <david.hansen@gmx.net>
15277
15278 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15279 string.
15280
15281 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15282
15283 * m/hp800.h (XUINT, XSET): Remove.
15284
15285 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
15286
15287 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15288 previous change.
15289
15290 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15291
15292 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15293 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15294
15295 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15296
15297 * keymap.h (map_keymap_canonical): Declare.
15298 * xmenu.c (single_keymap_panes): Use it.
15299
15300 2008-04-11 Glenn Morris <rgm@gnu.org>
15301
15302 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15303 set the target's value to that of the alias.
15304
15305 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15306
15307 * term.c (set_tty_color_mode): Left over typo.
15308
15309 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
15310
15311 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15312 only after check for file name handler functions. Signal, when
15313 native functionality is not supported.
15314 (syms_of_fileio): Declare it unconditionally.
15315
15316 2008-04-10 Jason Rumney <jasonr@gnu.org>
15317
15318 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15319 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15320
15321 * w32.c (logon_network_drive): Also logon to remote drives that
15322 are mapped to drive letters.
15323
15324 2008-04-10 Glenn Morris <rgm@gnu.org>
15325
15326 * xdisp.c (truncate-partial-width-windows): Doc fix.
15327
15328 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15329
15330 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15331 Move functions to minibuffer.el.
15332 (syms_of_fileio): Don't declare them.
15333
15334 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15335
15336 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15337 (syms_of_minibuf): Remove its initialization.
15338
15339 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15340
15341 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
15342
15343 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15344
15345 2008-04-09 Jason Rumney <jasonr@gnu.org>
15346
15347 * makefile.w32-in (distclean): Delete makefile too.
15348 (maintainer-clean): New target.
15349
15350 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15351
15352 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15353 for new font backend and composite cases.
15354
15355 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15356
15357 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15358 Most of the code moved to run_timers.
15359 (do_pending_atimers): Call run_timers.
15360 (run_timers): New function.
15361
15362 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15363 run atimers.
15364
15365 * process.c (wait_reading_process_output): The same as above.
15366
15367 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15368
15369 * minibuf.c (last_exact_completion): Remove variable.
15370 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15371 (complete_and_exit_1, complete_and_exit_2)
15372 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15373 (Fdisplay_completion_list, display_completion_list_1)
15374 (Fminibuffer_completion_help, Fself_insert_and_exit)
15375 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15376 minibuffer.el.
15377 (syms_of_minibuf): Remove corresponding initializations.
15378
15379 * keyboard.c (Qdeactivate_mark): New var.
15380 (command_loop_1): Use it to call `deactivate-mark'.
15381 (syms_of_keyboard): Initialize it.
15382
15383 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15384 to another frame.
15385 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15386 Don't call set_tty_color_mode.
15387 (store_frame_param): Reset previous_frame rather than call
15388 set_tty_color_mode.
15389 * term.c (set_tty_color_mode): Rewrite.
15390 * dispextern.h (set_tty_color_mode): New type.
15391 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15392
15393 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15394
15395 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15396 for generic chars, which do not exist any more in emacs-unicode.
15397
15398 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
15399
15400 * coding.c (detect_coding_emacs_mule)
15401 (Ffind_operation_coding_system): Fix typo.
15402
15403 2008-04-08 Jason Rumney <jasonr@gnu.org>
15404
15405 * w32uniscribe.c (SNAME): Extract only symbol name.
15406
15407 * w32font.h (struct w32_metric_cache): New struct.
15408 (w32font_info): Use it.
15409 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15410 (CACHE_BLOCKSIZE): New constants.
15411
15412 * w32font.c (Qja, Qko, Qzh): New symbols.
15413 (syms_of_w32font): Initialise them.
15414 (font_matches_spec): Use them to filter by language.
15415 (recompute_cached_metrics): Remove function.
15416 (compute_metrics, clear_cached_metrics): New functions.
15417 (w32font_encode_char): Use them to manage metric cache.
15418 (w32font_text_extents): Cache metrics for all glyphs on demand.
15419 Delay converting glyph indices to WORD until needed.
15420 (w32font_open_internal): Initialize metric cache to empty.
15421 (registry_to_w32_charset): Charset should always be a symbol.
15422 (fill_in_logfont, list_all_matching_fonts): Family should
15423 always be a symbol.
15424
15425 2008-04-06 Jason Rumney <jasonr@gnu.org>
15426
15427 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15428 Give up if glyph indices not supported. Use uniscribe obtained
15429 ABC widths for individual metrics. Map glyph clusters back to
15430 characters using fClusterStart flag. Return number of glyphs
15431 produced, not chars processed.
15432 (uniscribe_shape): Map char at FROM to current glyph.
15433
15434 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15435
15436 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15437 Use SetMenuItemHierarchicalMenu.
15438
15439 2008-04-05 Jason Rumney <jasonr@gnu.org>
15440
15441 * image.c (pbm_load): Allow color values up to 65535.
15442 Throw an error if max_color_idx is outside the supported range.
15443 Report an error when image size is invalid.
15444 Read two bytes at a time when raw images have max_color_idx above 255.
15445
15446 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15447
15448 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15449 append "CCL: Quitted" when the CCL program is quitted.
15450 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15451
15452 * ccl.h (struct ccl_program): New member quit_silently.
15453
15454 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
15455
15456 * search.c (compile_pattern_1): Treat non-nil and non-string of
15457 search-spaces-regexp as nil.
15458
15459 * minibuf.c (Fassoc_string): Tweak docstring.
15460
15461 2008-04-05 Eli Zaretskii <eliz@gnu.org>
15462
15463 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15464 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15465 2008-03-14 to force inode be positive.
15466
15467 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15468 _S_* ones, since we now use our own sys/stat.h.
15469 (stat, fstat): Don't mangle the inode number.
15470 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15471
15472 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15473
15474 * frame.h (struct frame): Give one more bit to `visible' since we use
15475 values larger than 1 to indicate obscured frames on ttys.
15476
15477 * keymap.c (Qkeymap_canonicalize): New var.
15478 (Fmap_keymap_internal): New fun.
15479 (describe_map): Use keymap-canonicalize.
15480
15481 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15482 (Fundo_boundary): Set them.
15483 (syms_of_undo): Initialize them.
15484 (record_point): Use them instead of last_point_position*.
15485 (last_undo_buffer): Change type.
15486
15487 2008-04-04 Jason Rumney <jasonr@gnu.org>
15488
15489 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15490 (recompute_cached_metrics): Don't set ascent and descent per char.
15491
15492 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15493 (uniscribe_check_otf): Add GC protection before consing.
15494 Rearrange loop for counting features.
15495
15496 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15497
15498 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15499 buffer with byte-size of source buffer.
15500
15501 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
15502
15503 * callint.c (Fcall_interactively): Handle temporary region even
15504 when shift-select-mode is off.
15505
15506 2008-04-03 Jason Rumney <jasonr@gnu.org>
15507
15508 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15509
15510 2008-04-03 Kenichi Handa <handa@m17n.org>
15511
15512 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15513 (CATEGORY_MASK_UTF_16): Likewise.
15514 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15515 binary file.
15516 (detect_coding): Add null-byte detection for a binary file.
15517 (detect_coding_system): Likewise.
15518
15519 2008-04-03 Jason Rumney <jasonr@gnu.org>
15520
15521 * w32uniscribe.c: New file.
15522
15523 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15524
15525 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15526
15527 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15528 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15529 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15530 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15531 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15532 (Qphonetic): New symbols.
15533 (syms_of_w32font): Initialize them.
15534 (font_supported_scripts): Use them.
15535 (w32font_list_family): List all charsets.
15536 (w32font_text_extents, recompute_cached_metrics): Fix metric
15537 calculations.
15538 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15539 Give opentype fonts their own format.
15540 (font_matches_spec): New arguments backend and logfont.
15541 Handle :otf spec for uniscribe backend.
15542 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15543 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15544
15545 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15546 font backend.
15547 (globals_of_w32fns): Initialize uniscribe font backend.
15548
15549 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15550 dependencies.
15551 (w32uniscribe.$(O)): New file to build.
15552 (FONT_OBJ): Include w32uniscribe.$(O).
15553 (LIBS): Add uniscribe libraries.
15554
15555 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15556
15557 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
15558
15559 * callint.c (Vshift_select_mode): New var.
15560 (Finteractive): Document new ^ spec.
15561 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15562 is present.
15563
15564 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15565 (command_loop_1): Avoid running the direct display versions of
15566 forward-char and backward-char if shift-selection may occur.
15567 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15568 shift-translation takes place.
15569
15570 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15571 avoid clobbering by define-minor-mode.
15572
15573 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15574 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15575
15576 * syntax.c (Fforward_word): Add ^ interactive spec.
15577
15578 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15579 (Fscroll_right): Add ^ interactive spec.
15580
15581 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15582
15583 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15584
15585 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15586
15587 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15588
15589 2008-03-31 Juri Linkov <juri@jurta.org>
15590
15591 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15592
15593 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15594
15595 * gtkutil.c (xg_set_geometry): Fix indentation.
15596 (xg_resize_outer_widget): Remove.
15597 (x_wm_size_hint_off): Fix indentation.
15598 (xg_frame_set_char_size): Call flush_and_sync after
15599 gtk_window_resize.
15600 (x_wm_set_size_hint): Pass NULL as geometry window to
15601 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15602 Add menu bar and tool bar height to base height.
15603 (xg_update_frame_menubar, free_frame_menubar)
15604 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15605 (update_frame_tool_bar, free_frame_tool_bar):
15606 Change xg_resize_outer_widget to xg_frame_set_char_size.
15607
15608 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
15609
15610 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15611 (Fdbus_call_method): New parameter TIMEOUT.
15612 (dbus-send-signal): Optimize UNGCPRO call.
15613
15614 2008-03-29 Juri Linkov <juri@jurta.org>
15615
15616 * window.c (Fdisplay_buffer): Move call to
15617 Vsplit_window_preferred_function out of conditions that check
15618 if window is eligible for vertical splitting.
15619 When Vsplit_window_preferred_function is non-nil, call it and use
15620 its non-nil return value as window. Otherwise, continue doing
15621 vertical splitting using Fsplit_window with arg horflag=nil.
15622 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15623 default value from `split-window' to nil.
15624
15625 2008-03-29 Juri Linkov <juri@jurta.org>
15626
15627 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15628 for interactive code letters 'b' and 'B'.
15629
15630 2008-03-29 Eli Zaretskii <eliz@gnu.org>
15631
15632 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15633 multibyte string.
15634
15635 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15636
15637 * keyboard.c (pending_funcalls): New var.
15638 (timer_check): Run it.
15639 (syms_of_keyboard): Initialize it.
15640 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15641 (Vdelete_terminal_functions): New vars.
15642 (syms_of_terminal): Initialize them.
15643 (Fdelete_terminal): Run delete-terminal-functions.
15644 * xdisp.c (safe_eval): Rewrite.
15645 (safe_call2): New fun.
15646 * frame.c (Qdelete_frame_functions): New var.
15647 (syms_of_frame): Initialize it.
15648 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15649 * lisp.h (safe_call2, pending_funcalls): Declare.
15650
15651 2008-03-28 Andreas Schwab <schwab@suse.de>
15652
15653 * indent.c (Fmove_to_column): Move declaration before statements.
15654
15655 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15656
15657 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15658 (struct frame): Use bit fields for boolean vars.
15659
15660 * process.c (server_accept_connection): Simplify naming.
15661 (emacs_get_tty_pgrp): Use SDATA.
15662
15663 * coding.c (decode_coding_object): Fix last change.
15664
15665 2008-03-27 Jason Rumney <jasonr@gnu.org>
15666
15667 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15668
15669 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15670
15671 * charset.c (Fdefine_charset_internal): Change the way of
15672 registering charsets in Vcharset_order_list.
15673 (syms_of_charset): Make the charset `eight-bit' supplementary.
15674
15675 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15676
15677 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15678 operations, to avoid having the difference between pointers
15679 overflow.
15680
15681 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15682
15683 * indent.c (check_display_width): New fun.
15684 (scan_for_column): Use it.
15685
15686 * data.c (syms_of_data): Mark most-positive-fixnum and
15687 most-negative-fixnum as constants.
15688
15689 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15690
15691 * indent.c (scan_for_column): Extract from current_column_1.
15692 Merge with the same code from Fmove_to_column.
15693 (current_column_1, Fmove_to_column): Use it.
15694
15695 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * keymap.c (map_keymap_internal): New fun.
15698 (map_keymap): Use it.
15699 (Fmap_keymap_internal): New fun.
15700 (Fmap_keymap): Remove left-out test from before make_save_value.
15701
15702 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15703
15704 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15705 Use XCAR/XCDR.
15706
15707 * process.h (struct Lisp_Process): Remove filter_multibyte.
15708 * process.c (QCfilter_multibyte): Remove.
15709 (setup_process_coding_systems): Don't use filter_multibyte.
15710 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15711 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15712 (Fset_process_filter_multibyte): Change the coding-system to
15713 approximate the previous behavior.
15714 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15715 coding-system.
15716
15717 * coding.c (decode_coding_object): When not decoding into a buffer,
15718 obey the coding system's preference of (uni|multi)byte.
15719
15720 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15721
15722 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15723 every char is changed and has a different byte-length.
15724 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15725 Fix int -> EMACS_INT.
15726
15727 2008-03-23 David Hansen <david.hansen@gmx.net>
15728
15729 * dbusbind.c (xd_read_message): Remove extra copying of message
15730 strings. Check for NULL `interface' or `member'.
15731
15732 2008-03-22 Eli Zaretskii <eliz@gnu.org>
15733
15734 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15735 cFileName a file name that includes `?' characters, use the 8+3
15736 alias in cAlternateFileName instead.
15737
15738 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15739
15740 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15741
15742 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15743
15744 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15745 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15746 work on current_buffer only instead (that was already the case
15747 for some of the code anyway).
15748 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15749 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15750 (SET_PT, SET_PT_BOTH): Adjust.
15751 * intervals.h (set_point, temp_set_point, set_point_both)
15752 (temp_set_point_both): Remove redundant declarations.
15753
15754 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15755
15756 * fileio.c (Finsert_file_contents):
15757 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15758 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15759 when buffer != current_buffer anyway.
15760
15761 2008-03-20 Andreas Schwab <schwab@suse.de>
15762
15763 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15764 as default.
15765
15766 2008-03-19 Jason Rumney <jasonr@gnu.org>
15767
15768 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15769 (syms_of_w32fns): Initialize them.
15770 (HOURGLASS_ID): New constant.
15771 (x_window_to_frame): Don't check hourglass_window.
15772 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15773 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15774 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15775 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15776 Only change the cursor if hourglass is not active.
15777 (Fx_create_frame): Initialize frame's current_cursor.
15778 (hourglass_atimer): Remove.
15779 (hourglass_started): New function.
15780 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15781 (show_hourglass): Adapt to w32, changing argument to frame.
15782
15783 * w32term.h (struct w32_output): Remove hourglass_window.
15784 Add current_cursor.
15785
15786 * eval.c (call_debugger, Fsignal):
15787 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15788 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15789 (Fexecute_extended_command, cancel_hourglass_unwind):
15790 * minibuf.c (read_minibuf):
15791 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15792
15793 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15794
15795 * window.c (run_funs): New fun.
15796 (run_window_configuration_change_hook): Use it to run the buffer-local
15797 and the global part of the hook.
15798
15799 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15800 (unwind_format_mode_line): Restore selected window.
15801 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15802
15803 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15804
15805 * editfns.c (Fchar_equal): Check they are valid characters.
15806
15807 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15808
15809 2008-03-17 Andreas Schwab <schwab@suse.de>
15810
15811 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15812 against a charset.
15813
15814 * lisp.h (Fbuffer_list): Declare.
15815
15816 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
15817
15818 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15819 handlebox_widget is != 0.
15820
15821 2008-03-16 Juri Linkov <juri@jurta.org>
15822
15823 * callint.c (Fcall_interactively): For interactive code letters
15824 'b' and 'B' put the buffer list into the list of default "future"
15825 values of the minibuffer.
15826
15827 2008-03-16 Andreas Schwab <schwab@suse.de>
15828
15829 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15830 modifiers.
15831
15832 * regex.c (re_match_2_internal): Correct matching of a charset
15833 against latin-1 characters.
15834
15835 2008-03-16 Kenichi Handa <handa@m17n.org>
15836
15837 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15838 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15839 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15840 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15841 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15842 CHAR_STRING_ADVANCE.
15843 (produce_chars): Fix for the case that the source and the
15844 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15845 instead of CHAR_STRING_ADVANCE.
15846 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15847 STRING_CHAR_ADVANCE.
15848
15849 2008-03-15 Andreas Schwab <schwab@suse.de>
15850
15851 * regex.c (re_match_2_internal): Correct matching of eight bit
15852 characters in unibyte strings.
15853
15854 2008-03-15 Martin Rudalics <rudalics@gmx.at>
15855
15856 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15857 at end of range when it coincides with the end of the buffer.
15858
15859 2008-03-14 Eli Zaretskii <eliz@gnu.org>
15860
15861 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15862
15863 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15864
15865 2008-03-14 Jason Rumney <jasonr@gnu.org>
15866
15867 * editfns.c (initial_tz): New variable.
15868 (syms_of_editfns): Initialize it.
15869 (Fset_time_zone_rule): Set it when first called.
15870 Use it when TZSTRING is nil.
15871
15872 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15873 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15874 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15875 (globals_of_w32fns): Initialize them.
15876 (compute_tip_xy): Use them to position tooltips.
15877
15878 2008-03-14 Glenn Morris <rgm@gnu.org>
15879
15880 * emacs.c (main): Revert previous change.
15881 (standard_args): Revert -internal-script back to -scriptload,
15882 and remove the long-option form.
15883
15884 2008-03-13 Glenn Morris <rgm@gnu.org>
15885
15886 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15887 Remove option -enable-font-backend.
15888
15889 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15890
15891 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15892
15893 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15894
15895 * xterm.c (x_connection_closed): For GTK: If this is the last
15896 terminal just exit without closing the display.
15897
15898 2008-03-11 Jason Rumney <jasonr@gnu.org>
15899
15900 * w32font.c (w32font_full_name): Use floor to round.
15901
15902 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15903
15904 * sound.c (alsa_configure): Declare vol at beginning of block.
15905
15906 * fontset.c (Ffontset_info): Remove extra semicolon.
15907
15908 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15909
15910 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15911 size of resulting string.
15912
15913 2008-03-10 Jason Rumney <jasonr@gnu.org>
15914
15915 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15916
15917 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15918
15919 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15920 Don't pretend as if characters with display property haven't been
15921 consumed for string-replacing-string case.
15922
15923 2008-03-08 Kim F. Storm <storm@cua.dk>
15924
15925 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15926 (get_next_display_element, next_element_from_string)
15927 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15928
15929 2008-03-08 Andreas Schwab <schwab@suse.de>
15930
15931 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15932
15933 2008-03-06 Jason Rumney <jasonr@gnu.org>
15934
15935 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15936 when charset not specified. Only translate ANSI to unicode when
15937 font_type is truetype.
15938 (w32font_coverage_ok): New function.
15939 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15940
15941 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15942
15943 * lread.c (Fread_char): Resolve modifiers.
15944 (Fread_char_exclusive): Likewise.
15945
15946 * character.c (char_resolve_modifier_mask): New function.
15947 (char_string): Use char_resolve_modifier_mask.
15948 (Fchar_resolve_modifiers): New function.
15949 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15950 function.
15951
15952 2008-03-04 Jason Rumney <jasonr@gnu.org>
15953
15954 * makefile.w32-in: Always include w32font.c in the build.
15955 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15956
15957 2008-03-04 Andreas Schwab <schwab@suse.de>
15958
15959 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15960 (versionclean): Likewise.
15961
15962 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
15963
15964 * .cvsignore: Add oo.
15965
15966 2008-03-03 Andreas Schwab <schwab@suse.de>
15967
15968 * coding.c (decode_coding_object): Inhibit gap shrinking while
15969 decoding in place.
15970
15971 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15972
15973 * w32term.c: Remove unused include "gnu.h".
15974 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15975
15976 * gnu.h: Rename to ...
15977 * emacs-icon.h: ... this.
15978 * xterm.c: Use emacs-icon.h instead of gnu.h.
15979 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15980
15981 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
15982
15983 * w32font.c: Include math.h.
15984
15985 2008-03-03 Jason Rumney <jasonr@gnu.org>
15986
15987 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15988 Compute options separately.
15989 (w32font_open_internal): Set glyph_idx before caching metrics.
15990
15991 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15992 Define if system headers don't.
15993 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15994 (w32font_encode_char): Don't declare here.
15995
15996 * w32font.c (Quniscribe, QCformat): New symbols.
15997 (syms_of_w32font): Define them.
15998 (w32font_has_char): Indicate uncertainty.
15999 (w32font_encode_char): Encode as glyph point. Make static.
16000 (recompute_cached_metrics): New function.
16001 (w32font_open_internal): Use it. Set font to use glyph points
16002 initially. Set format based on type of font.
16003 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16004 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16005 on it. Set format based on information available here.
16006 (add_font_entity_to_list): Identify backend based on opentype_only.
16007
16008 2008-03-02 Andreas Schwab <schwab@suse.de>
16009
16010 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16011
16012 * coding.c (decode_coding_big5, produce_chars):
16013 Fix typos in last change.
16014
16015 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16016
16017 * gnu.h: New icon.
16018
16019 2008-03-02 Kenichi Handa <handa@m17n.org>
16020
16021 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16022 `dos', don't decode '\r' if that is the last in the source.
16023 (decode_coding_utf_16, decode_coding_emacs_mule)
16024 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16025 (decode_coding_raw_text, decode_coding_charset): Likewise.
16026 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16027
16028 2008-03-01 Jason Rumney <jasonr@gnu.org>
16029
16030 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16031
16032 2008-03-01 Kim F. Storm <storm@cua.dk>
16033
16034 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16035
16036 2008-03-01 Jason Rumney <jasonr@gnu.org>
16037
16038 * w32font.c (w32font_full_name): New function.
16039 (w32font_open_internal): Use it.
16040
16041 2008-03-01 Kim F. Storm <storm@cua.dk>
16042
16043 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16044
16045 2008-03-01 Jason Rumney <jasonr@gnu.org>
16046
16047 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16048
16049 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16050
16051 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16052 xg_frame_resized when the event is for the edit widget.
16053
16054 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16055
16056 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16057 set_char_size.
16058 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16059 operations on widgets here. Just set frame size if needed.
16060 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16061 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16062 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16063 the whole frame.
16064 (xg_create_tool_bar): Move attachment of the tool bar to
16065 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16066 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16067
16068 2008-03-01 Jason Rumney <jasonr@gnu.org>
16069
16070 * w32fns.c (w32_msg_pump): Disable debug code.
16071
16072 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16073
16074 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16075
16076 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16077
16078 * xdisp.c (next_overlay_string): Don't set
16079 overlay_strings_at_end_processed_p if we're currently reading from
16080 a display string.
16081
16082 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16083
16084 * xdisp.c (get_overlay_strings_1): Fix typo.
16085
16086 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16087
16088 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16089
16090 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16091
16092 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16093
16094 * xdisp.c (display_mode_element): Cancel the previous change.
16095 (decode_mode_spec): Likewise.
16096 (handle_auto_composed_prop): Don't make composition if it->string
16097 is a string.
16098
16099 2008-02-27 Kim F. Storm <storm@cua.dk>
16100
16101 * lisp.h (GLYPH): Change type from int to struct with separate char
16102 and face_id members.
16103 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16104 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16105 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16106 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16107 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16108 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16109 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16110 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16111 handle new Lisp glyph code encoding, either an integer or a cons.
16112
16113 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16114 (GLYPH_ALIAS): Delete.
16115 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16116 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16117 (GLYPH_FROM_CHAR): Replace macro by ...
16118 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16119
16120 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16121 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16122 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16123 (GLYPH_INVALID_P): New macro.
16124 (spec_glyph_lookup_face): Update prototype.
16125
16126 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16127 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16128 new glyph code encoding.
16129 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16130 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16131
16132 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16133 Adapt to new glyph type and new glyph code encoding.
16134
16135 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16136
16137 * indent.c (current_column, current_column_1, Fmove_to_column)
16138 (compute_motion): Adapt to new glyph code encoding.
16139
16140 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16141
16142 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
16143
16144 * process.c (wait_reading_process_output): Check for window
16145 changes caused by timers.
16146 Suggested by Johan Bockgård.
16147
16148 2008-02-27 Glenn Morris <rgm@gnu.org>
16149
16150 * emacs.c (USAGE1): Add `--disable-font-backend'.
16151
16152 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16153
16154 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16155 is made to the buffer.
16156
16157 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16158
16159 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16160 (face_at_string_position):
16161 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16162 (face_at_string_position):
16163 * xdisp.c (display_string, next_overlay_change):
16164 * buffer.h (overlays_at):
16165 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16166 Update callers.
16167
16168 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
16169
16170 * editfns.c (Fformat): Doc fix.
16171
16172 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
16173
16174 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16175 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16176 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16177
16178 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16179
16180 * buffer.c (Fbuffer_swap_text): New function.
16181 (syms_of_buffer): Defsubr it.
16182
16183 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
16184
16185 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16186
16187 2008-02-25 Jason Rumney <jasonr@gnu.org>
16188
16189 * w32font.c (w32font_draw): Draw one character at a time when padding.
16190
16191 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16192
16193 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16194 Handle a nil arg. Use run_window_configuration_change_hook.
16195 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16196 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16197 Use run_window_configuration_change_hook.
16198
16199 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16200
16201 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16202 1-pixel width.
16203
16204 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16205
16206 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16207 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16208 if the glyph in the font is zero pixel with.
16209
16210 * dispextern.h (struct glyph_string): New member padding_p.
16211
16212 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16213
16214 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16215
16216 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16217
16218 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16219
16220 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16221
16222 2008-02-25 Jason Rumney <jasonr@gnu.org>
16223
16224 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16225
16226 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16227
16228 Allow fine-grained image-cache flushing.
16229 * dispextern.h (struct image): Add `dependencies' field.
16230 (clear_image_caches): Change arg to Lisp_Object.
16231 * image.c (make_image): Initialize `dependencies' field.
16232 (clear_image_cache): Change arg to allow fine-grained flushing.
16233 Perform the flush even if image-cache-eviction-delay is nil.
16234 (clear_image_caches): Change arg to Lisp_Object.
16235 (Fclear_image_cache): Expand meaning of the argument.
16236 (mark_image): Mark `dependencies' field.
16237 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16238 (lface_hash): Use XHASH rather than XFASTINT.
16239 (face_at_buffer_position): Fix int -> EMACS_INT position.
16240 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16241 (select_frame_for_redisplay): Remove code duplication.
16242 (redisplay_internal): Adapt arg to call to clear_image_caches.
16243
16244 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16245
16246 * s/vms4-0.h:
16247 * s/vms4-2.h:
16248 * s/vms4-4.h:
16249 * s/vms5-5.h: Remove, unused.
16250
16251 * s/irix5-2.h:
16252 * s/irix6-0.h:
16253 * s/riscos5.h:
16254 * s/mach-bsd4-3.h:
16255 * m/mips4.h: Remove files for obsolete systems.
16256
16257 * Makefile.in:
16258 * filelock.c:
16259 * unexmips.c:
16260 * m/hp9000s300.h:
16261 * m/iris4d.h:
16262 * s/aix3-1.h:
16263 * s/hpux.h:
16264 * s/msdos.h:
16265 * s/usg5-0.h:
16266 * s/usg5-2-2.h:
16267 * s/usg5-2.h:
16268 * s/usg5-3.h: Remove references to obsolete variables.
16269
16270 * s/irix5-0.h: Remove, move all the contents ...
16271 * s/irix6-5.h: ... here. Simplify.
16272 * config.in: Regenerate.
16273
16274 2008-02-24 Jason Rumney <jasonr@gnu.org>
16275
16276 * w32term.c (x_draw_glyph_string_background): Clear the background
16277 manually when cleartype is in use.
16278 (x_draw_glyph_string_foreground): Draw text transparently when
16279 cleartype is in use.
16280
16281 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16282 a font into it unless we have to.
16283
16284 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16287 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16288
16289 2008-02-18 Jason Rumney <jasonr@gnu.org>
16290
16291 * w32fns.c (Fw32_shell_execute): Encode parameters.
16292
16293 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16294
16295 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16296
16297 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
16298
16299 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16300
16301 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16302
16303 * xterm.c (x_set_offset): Don't change the gravity if
16304 CHANGE_GRAVITY is -1.
16305
16306 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
16307
16308 * fileio.c (auto_save_error_occurred): New var.
16309 (auto_save_error): Set it.
16310 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16311 error occurred.
16312
16313 2008-02-23 Eli Zaretskii <eliz@gnu.org>
16314
16315 * w32.c (globals_of_w32): Add initializations for
16316 g_b_init_get_sid_sub_authority and
16317 g_b_init_get_sid_sub_authority_count.
16318
16319 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16320
16321 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16322 (font_parse_xlfd): Use them for sanity check.
16323 (Finternal_set_font_style_table): Make sure the table is bijective.
16324
16325 Consolidate the image_cache to the terminal struct.
16326 * termhooks.h (P_): Remove redundant def.
16327 (struct terminal): New field `image_cache'.
16328 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16329 of FRAME_X_IMAGE_CACHE.
16330 * xterm.h (struct x_display_info): Remove image_cache field.
16331 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16332 * w32term.h (struct w32_display_info): Remove image_cache field.
16333 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16334 * macterm.h (struct mac_display_info): Remove image_cache field.
16335 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16336 * xterm.c (x_term_init):
16337 * w32term.c (w32_term_init):
16338 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16339 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16340 Remove declarations.
16341 (clear_image_caches, mark_image_cache): New declarations.
16342 * xfaces.c (clear_face_cache):
16343 * xdisp.c (redisplay_internal): Use clear_image_caches.
16344 * image.c (clear_image_cache): Don't check that a frame is on
16345 a window-system before checking if it shares the same cache.
16346 (clear_image_caches): New function.
16347 (Fclear_image_cache): Use it.
16348 (mark_image): Move from allo.c.
16349 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16350 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16351 (mark_object): Don't call mark_image_cache for frames.
16352 (mark_terminals): Call mark_image_cache.
16353
16354 * lisp.h (Fdelete_terminal): Declare.
16355
16356 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16357 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16358 wrong_type_argument.
16359
16360 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16361
16362 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16363 malayalam.el, and tamil.el. Add sinhala.el.
16364
16365 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16366
16367 * xterm.c (x_connection_closed): Consolidate identical tests.
16368 (x_delete_terminal): Don't crash if called via x_connection_closed.
16369
16370 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16371
16372 * xdisp.c (decode_mode_spec): New arg string.
16373 (display_mode_element): Adjust for the above change.
16374
16375 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16376
16377 * callint.c (Fcall_interactively): Use AREF.
16378
16379 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16380
16381 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16382
16383 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16384
16385 * xfns.c (Fx_show_tip): Set string to " " if empty.
16386
16387 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16388
16389 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16390 with Qt.
16391
16392 2008-02-17 Kenichi Handa <handa@m17n.org>
16393
16394 * ftfont.c (ftfont_shape): Return Lispy number.
16395
16396 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16397 for GCs.
16398 (Finternal_set_font_selection_order): Call font_update_sort_order
16399 only when enable_font_backend is set.
16400 (realize_x_face): Set face->font_info to that of default face only
16401 when enable_font_backend is set.
16402
16403 * xdisp.c (handle_composition_prop): Set it->c to the fist
16404 character of the composed region.
16405 (fill_composite_glyph_string): Set base_face->font_info to
16406 s->font_info. Get a face for ascii from base_face->ascii_face.
16407 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16408 with a face already decided.
16409 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16410 non-negative.
16411 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16412 call font_prepare_composition unconditionally.
16413
16414 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16415
16416 * xterm.h (struct x_display_info): New member font.
16417
16418 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16419 (x_set_mouse_face_gc, x_new_font): Likewise.
16420 (x_term_init): Setup display_info->font.
16421 (x_delete_terminal): Free display_info->font.
16422
16423 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16424
16425 * ftxfont.c (ftxfont_default_fid): Delete it.
16426 (ftxfont_open): Set xfont->fid to 0.
16427 (ftxfont_end_for_frame): Clear data specific to the frame and the
16428 font-driver.
16429
16430 * xftfont.c (xftfont_default_fid): Delete it.
16431 (xftfont_open): Set xfont->fid to 0.
16432
16433 * fontset.c (FONTSET_OBJLIST): New macro.
16434 (fontset_find_font): Update font-object list of the fontset.
16435 (free_realized_fontset): New function.
16436 (free_face_fontset): Call free_realized_fontset.
16437 (Ffont_info): Call font_close_object only when enable_font_backend
16438 is set.
16439
16440 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16441 [HAVE_NTGUI]: Include w32term.h.
16442 [MAC_OS]: Include macterm.ch.
16443 (font_otf_ValueRecord): Use make_number.
16444 (font_finish_cache): Fix handling of reference count.
16445 (font_clear_cache): Update num_fonts.
16446 (font_open_entity): Update smallest_char_width and
16447 smallest_font_height of the frame.
16448 (font_close_object): Update num_fonts.
16449 (Fclear_font_cache): Fix finding the target cache data.
16450
16451 2008-02-16 Glenn Morris <rgm@gnu.org>
16452
16453 * fontset.c (Finternal_char_font): Fix compilation warning.
16454
16455 2008-02-16 Eli Zaretskii <eliz@gnu.org>
16456
16457 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16458 instead of char arrays. Enlarge the size of array passed to
16459 get_token_information.
16460
16461 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16462 warnings.
16463
16464 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16465
16466 * .gdbinit: Don't set `args', it breaks gdb --args.
16467
16468 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16469
16470 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16471 within a narrowed buffer.
16472
16473 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16474
16475 * coding.c (decode_coding_object, encode_coding_object):
16476 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16477
16478 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16479
16480 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16481 hardcoding 1.
16482 (detect_coding_system):
16483 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16484 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16485 * insdel.c (insert_from_gap):
16486 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16487 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16488 (string_to_multibyte):
16489 * character.c (chars_in_text, multibyte_chars_in_text):
16490 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16491
16492 * character.h (FETCH_STRING_CHAR_ADVANCE)
16493 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16494 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16495 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16496
16497 * casefiddle.c (casify_region): Only call after-change and composition
16498 functions on the part of the region that was changed.
16499
16500 * keyboard.c (read_avail_input):
16501 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16502
16503 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16504
16505 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16506 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16507
16508 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
16509
16510 * w32menu.c (push_submenu_start, push_submenu_end)
16511 (push_left_right_boundary, push_menu_pane, push_menu_item):
16512 * keyboard.c (read_key_sequence): Don't pass args with side effects
16513 to AREF, it fails when compiling with -DENABLE_CHECKING.
16514
16515 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16516
16517 * Makefile.in (${lispsource}international/charprop.el):
16518 Delete this target.
16519
16520 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16521 emacs-unicode-2.
16522
16523 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16524
16525 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16526
16527 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16528
16529 * frame.c (Qnoelisp): New symbol.
16530 (syms_of_frame): Initialize it.
16531 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16532 harmless Elisp code, from a strong `force' from x_connection_closed.
16533 * frame.h (Qnoelisp): Declare.
16534 * xterm.c (x_connection_closed): Pass `noelisp'.
16535
16536 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16537 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16538 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16539 rather than `int' for the type of `type'.
16540
16541 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16542
16543 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16544
16545 * Makefile.in (GNUC): Remove support for gcc-1.x.
16546
16547 2008-02-10 Richard Stallman <rms@gnu.org>
16548
16549 * lisp.h (ASET): Use AREF, not ASLOT.
16550
16551 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16552
16553 * lisp.h (ASET): Check bounds.
16554
16555 2008-02-10 Glenn Morris <rgm@gnu.org>
16556
16557 * buffer.c (mode-name): Doc fix.
16558
16559 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16560
16561 * Makefile.in:
16562 * emacs.c:
16563 * gmalloc.c:
16564 * keyboard.c:
16565 * lisp.h:
16566 * m/ibm370aix.h:
16567 * process.c:
16568 * regex.c:
16569 * s/hpux.h:
16570 * sysdep.c:
16571 * sysselect.h:
16572 * systty.h:
16573 * unexec.c:
16574 * w32term.c:
16575 * xsmfns.c:
16576 * xterm.c: Remove code that deals with obsolete variables.
16577
16578 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16579
16580 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16581 nothing else needs it anymore.
16582
16583 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16584
16585 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16586 instead of unibyte_char_to_multibyte.
16587
16588 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16589
16590 * s/gnu-linux.h: Remove commented out code.
16591
16592 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16593
16594 * Makefile.in: Update what RMS says about using autoconf.
16595 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16596 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16597 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16598 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16599
16600 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * keymap.c (Fkey_description): Move side effect outside of macro call.
16603
16604 * xfaces.c (Finternal_make_lisp_face):
16605 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16606
16607 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16608 (syms_of_fontset): Use ASET.
16609
16610 * fns.c (concat): Move side effect outside of macro call.
16611 (hash_clear): Use ASET.
16612
16613 2008-02-08 Richard Stallman <rms@gnu.org>
16614
16615 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16616 If FORCE, and frame has a surrogate minibuffer for another frame,
16617 delete the other frame first.
16618
16619 2008-02-07 Timo Savola <timo.savola@iki.fi>
16620
16621 * xterm.c (x_detect_focus_change): Handle embed client message.
16622 (handle_one_xevent): Ditto.
16623 (handle_one_xevent): If embedded and we get a button press/release,
16624 request focus.
16625 (xembed_set_info, xembed_send_message): New functions.
16626 (x_make_frame_visible): Call xembed_set_info if embedded.
16627 (x_make_frame_invisible): Call xembed_set_info if embedded.
16628 (x_term_init): Initialize Xatom_XEMBED.
16629 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16630 (x_iconify_frame): Ditto.
16631
16632 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16633 (enum xembed_info, enum xembed_message, enum xembed_focus)
16634 (enum xembed_modifier, enum xembed_accelerator): New.
16635 (xembed_set_info, xembed_send_message): Declare.
16636 (FRAME_X_EMBEDDED_P): New.
16637
16638 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16639 gtk_plug_new.
16640
16641 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16642 window ID of a frame.
16643 (x_window): Reparent frame if embedded.
16644 (Fx_create_frame): Don't set border width if embedded.
16645
16646 * emacs.c (USAGE3): Add --parent-id.
16647 (standard_args): Ditto.
16648
16649 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16650
16651 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16652
16653 2008-02-07 Jim Meyering <meyering@redhat.com>
16654
16655 Use "do...while (0)", not "if (1)...else" in macro definitions.
16656 The latter provokes a warning from gcc about the empty else, when
16657 followed by ";". Also, without that trailing semicolon, it would
16658 silently swallow up any following statement.
16659 * syntax.h (SETUP_SYNTAX_TABLE)
16660 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16661 * buffer.h (DECODE_POSITION): Likewise.
16662 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16663 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16664 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16665 (FETCH_CHAR_ADVANCE): Likewise.
16666 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16667
16668 2008-02-07 Jim Meyering <meyering@redhat.com>
16669
16670 * lread.c [lint]: Don't include <sys/inode.h>.
16671
16672 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16673
16674 * xselect.c (x_handle_dnd_message):
16675 * xmenu.c (digest_single_submenu, xmenu_show):
16676 * xdisp.c (with_echo_area_buffer_unwind_data)
16677 (format_mode_line_unwind_data, unwind_format_mode_line)
16678 (display_menu_bar):
16679 * eval.c (Ffetch_bytecode):
16680 * doc.c (store_function_docstring):
16681 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16682 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16683 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16684
16685 2008-02-07 Kenichi Handa <handa@m17n.org>
16686
16687 * ftxfont.c (ftxfont_open): Don't set
16688 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16689
16690 * ftfont.c (ftfont_open): Fix previous change.
16691
16692 2008-02-06 Jason Rumney <jasonr@gnu.org>
16693
16694 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16695 Use cached metrics for ASCII characters.
16696 (w32font_open_internal): Don't set font's owning_frame.
16697 Cache metrics for ASCII characters.
16698
16699 * w32font.h (struct w32font_info): Add ascii_metrics.
16700 Remove owning_frame.
16701
16702 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16703
16704 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16705 to negative value.
16706
16707 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16708
16709 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16710
16711 * charset.c (syms_of_charset): Set QCtest and Qeq.
16712
16713 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16714
16715 * process.c (Fstart_process):
16716 * callproc.c (Fcall_process): Handle the case where
16717 Funhandled_file_name_directory returns nil.
16718
16719 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16720 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16721 * font.c (check_gstring): Use them and AREF to access the vector before
16722 we know it's really a gstring.
16723 (Ffont_shape_text): Fix typo.
16724 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
16725
16726 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16727 Declare.
16728
16729 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16730
16731 2008-02-05 Jason Rumney <jasonr@gnu.org>
16732
16733 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16734 Set smallest_font_height and smallest_char_width in display info.
16735
16736 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16737
16738 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16739
16740 2008-02-05 Miles Bader <miles@gnu.org>
16741
16742 * xfaces.c (get_lface_attributes, merge_named_face)
16743 (lookup_named_face, lookup_derived_face, realize_named_face):
16744 Revert 2008-02-01 change by cyd@stupidchicken.com.
16745
16746 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16747
16748 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16749 fallback fonts.
16750 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16751
16752 2008-02-04 Jason Rumney <jasonr@gnu.org>
16753
16754 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16755 set full_name.
16756 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16757
16758 2008-02-03 Jason Rumney <jasonr@gnu.org>
16759
16760 * makefile.w32-in (OBJ1): Include font.o here.
16761 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16762
16763 2008-02-02 Jason Rumney <jasonr@gnu.org>
16764
16765 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16766
16767 2008-02-01 Jason Rumney <jasonr@gnu.org>
16768
16769 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16770
16771 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16772
16773 2008-02-01 Andreas Schwab <schwab@suse.de>
16774
16775 * Makefile.in (shortlisp, lisp): Update for rename of
16776 ../lisp/language/myanmar.el.
16777
16778 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
16779
16780 * xfaces.c (get_lface_attributes): Delete function.
16781 (merge_named_face, lookup_named_face, lookup_derived_face)
16782 (realize_named_face): Call lface_from_face_name directly, and use
16783 the fact that merge_face_vectors does not alter its FROM argument.
16784
16785 2008-02-01 Jason Rumney <jasonr@gnu.org>
16786
16787 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16788 input in the default locale. Handle non-Unicode multibyte input.
16789
16790 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16791
16792 * fontset.c (reorder_font_vector): Exclude nil elements from the
16793 font group. Don't try multiple fonts.
16794 (fontset_font): Adjust for the above change.
16795 (Finternal_char_font): Return nil if the found font doesn't
16796 contain the character ch.
16797
16798 * Makefile.in (lisp, shortlisp): Add cham.el.
16799
16800 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16801
16802 * font.h (FONTP): Make it return 1 also for a font-object.
16803
16804 * .gdbinit (xfontset): New function.
16805
16806 * font.c (font_find_for_lface): Check if the character C is
16807 supported or not only for the first font.
16808
16809 * fontset.c (reorder_font_vector): Fix typo.
16810 (fontset_find_font): Don't add a font-spec specifying a script.
16811 Use 0 (not Qt) for the indication of empty font-group. Change the
16812 format of RFONT-DEF. Return Qt if no font in the font-group
16813 support the character.
16814 (fontset_font): Adjust for the above change. If no font was
16815 found the character, remember that.
16816 (face_for_char): Adjust for the change of RFONT-DEF.
16817 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16818 no font for the target.
16819 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16820
16821 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16822
16823 * font.c (font_load_for_face): Handle the case that the font in
16824 face->lface is a string.
16825
16826 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16827
16828 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16829
16830 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16831
16832 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16833 Fix previous change. If the frame is not on a window system,
16834 signal an error.
16835
16836 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16837
16838 * coding.c (decode_coding_object, encode_coding_object): Adjust
16839 marker positions after conversion.
16840
16841 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16842
16843 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16844
16845 * font.c (font_find_for_lface): Fix the handling of the return
16846 value of font_has_char.
16847 (Ffont_shape_text): Fix previous change.
16848
16849 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16850 (fontset_ref_and_range): Delete it.
16851 (fontset_find_font): Call char_table_ref_and_range instead of
16852 FONTSET_REF_AND_RANGE.
16853 (make_fontset): Don't setup font groups of Latin here.
16854 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16855 (new_fontset_from_font): Make the specified font the default for
16856 all Latin characters.
16857
16858 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16859
16860 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16861 is on a window system before accessing the fontset of the frame.
16862
16863 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16864
16865 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16866
16867 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16868 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16869
16870 * font.c (Ffont_shape_text): If the font driver doesn't have a
16871 shaper function, make zero-width glyphs to have at least one-pixel
16872 width. Fix setting of `to' field of glyphs.
16873
16874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16875
16876 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16877 glyphs.
16878
16879 * font.h (struct font_driver): Improve docstring of member `shape'.
16880
16881 2008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * composite.c (syms_of_composite): Fix docstring of
16884 auto-composition-function.
16885
16886 * font.h (LGLYPH_SIZE): New macro.
16887
16888 * font.c (Ffont_fill_gstring): Stop filling when a character not
16889 supported by the font is found.
16890 (Ffont_shape_text): When a shape callback function returns nil,
16891 try at most two more times with larger gstring.
16892 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16893
16894 * xdisp.c (handle_auto_composed_prop): Change the argument to
16895 auto-composition-function.
16896
16897 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16898 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16899 Lispy glyph and store it in the lgstring.
16900
16901 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16902
16903 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16904
16905 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16906
16907 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16908
16909 * fontset.c (Vfont_encoding_charset_alist): New variable.
16910 (syms_of_fontset): DEFVAR it.
16911 (reorder_font_vector, fontset_find_font): Optimize for the case of
16912 no need of reordering.
16913 (face_for_char): Map the charset property by
16914 Vfont_encoding_charset_alist.
16915
16916 2008-02-01 Jason Rumney <jasonr@gnu.org>
16917
16918 * w32font.c (logfonts_match): Don't check adstyle here.
16919 (font_matches_spec): Check here against physical font instead.
16920 (add_font_entity_to_list): Avoid some substitutions.
16921
16922 * font.c (font_parse_fcname): Default weight and slant to normal.
16923 (font_score): Prefer normal fonts if weight or slant unspecified.
16924 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16925 match freetype scores.
16926
16927 2008-02-01 Jason Rumney <jasonr@gnu.org>
16928
16929 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16930 font, as it may have been deleted.
16931 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16932 most common hyphenless variation.
16933 (logfonts_match): Check generic family.
16934 (font_matches_spec): Don't check generic family here.
16935 (fill_in_logfont): Set generic family based on adstyle.
16936
16937 * w32font.h (w32font_get_cache): Update declaration.
16938
16939 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16940
16941 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16942
16943 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16944 If none of the new drivers are available, call font_update_drivers
16945 with the old drivers.
16946
16947 * w32font.c (w32font_get_cache): Adjust the argument type.
16948
16949 * xfont.c (xfont_get_cache): Adjust the argument type.
16950
16951 * font.h (struct font_driver): Change argument type of get_cache.
16952
16953 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16954
16955 * font.c (Ffont_get): Fix arguments to Fassoc.
16956 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16957 (font_clear_cache): New function.
16958 (font_list_entities, font_matching_entity): Use font_get_cache.
16959 (font_update_drivers): Call font_clear_cache when finishing a driver.
16960
16961 * fontset.c (fontset_find_font): Fix previous change.
16962
16963 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16964
16965 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16966 dpyinfo->font_table.
16967 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16968 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16969
16970 * font.c (font_at): Handle the case that the arg C is negative.
16971 Handle the unibyte case.
16972 (Ffont_at): Call font_at with the arg C -1.
16973
16974 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16975 the position here, and call font_at with the arg C -1.
16976 Don't check the range of the existing composition at the point.
16977
16978 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16979
16980 * fontset.c (fontset_add): New args charset_id and family.
16981 Change caller.
16982 (load_font_get_repertory, fontset_find_font): Assume that
16983 font_spec is always a font-spec object.
16984 (Fset_fontset_font): Always store a font-spec object in a fontset.
16985
16986 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16987 instead of get_property_and_range.
16988
16989 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16990
16991 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16992 (xftfont_open): Don't keep locking face.
16993 (xftfont_close): Don't unlock face.
16994 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16995
16996 * fontset.c (fontset_find_font): Don't prefer a font of
16997 supplementary charset.
16998
16999 2008-02-01 Kenichi Handa <handa@m17n.org>
17000
17001 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17002 script, langsys_tag to langsys, new member script.
17003 (OTF_TAG_STR): Terminate by '\0'.
17004 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17005 listing to the script specified in that property. Fix arg to
17006 OTF_check_features.
17007
17008 2008-02-01 Jason Rumney <jasonr@gnu.org>
17009
17010 * w32font.h: New file.
17011
17012 * w32font.c: Include it.
17013 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17014 (w32font_open): Set owning_frame.
17015 (w32font_text_extents): Use owning_frame.
17016 (struct font_callback_data): Add opentype_only field.
17017 (add_font_entity_to_list): Use it to filter fonts.
17018 Don't check against full name.
17019 (w32font_list_internal): New function.
17020 (w32font_list): Use it.
17021 (w32font_match_internal): New function.
17022 (w32font_match): Use it.
17023 (w32font_open_internal): New function.
17024 (w32font_open): Use it.
17025 (w32font_get_cache, w32font_close, w32font_has_char)
17026 (w32font_encode_char, w32font_text_extents, w32font_draw):
17027 Make non-static.
17028
17029 * makefile.w32-in (w32font.o): Depend on w32font.h.
17030
17031 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17032
17033 * charset.c (Fdefine_charset_internal): Record a supplementary
17034 charset at the tail of Vcharset_order_list.
17035
17036 * font.c (Ffont_shape_text): Fix the return value.
17037
17038 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17039
17040 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17041
17042 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17043
17044 * ftfont.c (struct OpenTypeSpec): New struct.
17045 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17046 (ftfont_get_open_type_spec): New function.
17047 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17048
17049 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17050
17051 2008-02-01 Jason Rumney <jasonr@gnu.org>
17052
17053 * w32font.c (add_font_entity_to_list): Compare only the beginning
17054 of full name.
17055
17056 2008-02-01 Kenichi Handa <handa@m17n.org>
17057
17058 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17059 Never return HANDLED_RECOMPUTE_PROPS.
17060
17061 2008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * font.c (font_gstring_produce): Delete it.
17064
17065 * composite.h (COMPOSITION_METHOD):
17066 Handle COMPOSITION_WITH_GLYPH_STRING.
17067
17068 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17069
17070 * xfont.c (Qx): Delete.
17071 (syms_of_xfont): Don't initialize Qx.
17072
17073 * composite.h (enum composition_method):
17074 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17075
17076 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17077
17078 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17079 (choose_face_font): Accept new form of font-spec.
17080
17081 * frame.h (font_driver_list): Declare it unconditionally.
17082 (struct frame): Define members font_driver_list and font_data_list
17083 unconditionally.
17084
17085 * fontset.c: Include "font.h" unconditionally.
17086 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17087 (Fset_fontset_font): Accept a font-spec object.
17088
17089 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17090 PIXEL_SIZE part a wild card.
17091
17092 * dispextern.h (struct glyph_string): Define members clip and
17093 num_clips unconditionally.
17094 (struct face): Define members font_info and extra unconditionally.
17095
17096 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17097 ftfont_info only when HAVE_LIBOTF is defined.
17098
17099 2008-02-01 Andreas Schwab <schwab@suse.de>
17100
17101 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17102 and end.
17103
17104 2008-02-01 Jason Rumney <jasonr@gnu.org>
17105
17106 * w32font.c (w32font_driver): Add new fields.
17107
17108 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17109
17110 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17111 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17112 (LIBES): Add @M17N_FLT_CFLAGS@.
17113
17114 * composite.c (compose_text): Don't treat the new style
17115 composition specially.
17116
17117 * emacs.c (main): Call syms_of_font unconditionally.
17118
17119 * font.h (FONT_ENTITY_NOT_LOADABLE)
17120 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17121 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17122 (struct font_driver): New member shape.
17123 (font_registry_charsets): Extern it.
17124 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17125 (font_otf_capability, font_drive_otf): Delete their externs.
17126
17127 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17128 (font_charset_alist, font_registry_charsets): Move from xfont.c
17129 and rename.
17130 (font_prop_validate_otf): New function.
17131 (font_property_table): Register it for QCotf.
17132 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17133 (font_drive_otf): Delete.
17134 (font_prepare_composition): New arg F. Adjust for the change of
17135 lispy gstring.
17136 (font_find_for_lface): New arg C.
17137 (font_load_for_face): Adjust for the change of font_find_for_lface.
17138 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17139 lispy gstring.
17140 (Ffont_shape_text): New function.
17141 (Fopen_font): If the font size is not given, use 12-pixel.
17142 (Ffont_at): New arg STRING.
17143 (syms_of_font): Initalize font_charset_alist.
17144 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17145 conditionally.
17146
17147 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17148 fonts of the same font-spec. Change the format of RFONT-DEF.
17149 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17150 Adjust for the change of RFONT-DEF.
17151 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17152
17153 * ftfont.h: New file.
17154
17155 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17156 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17157 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17158 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17159 font_otf_capability and font_drive_otf, set ftfont_shape.
17160 (ftfont_list): Adjust for the change of :otf property value.
17161 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17162 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17163 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17164 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17165 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17166 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17167
17168 * w32term.c (x_draw_composite_glyph_string_foreground):
17169 Adjust for the change of lispy gstring.
17170
17171 * xdisp.c (handle_composition_prop): Adjust for the change of
17172 lispy gstring. Call a function for auto-composition with the
17173 third arg it->window.
17174 (fill_composite_glyph_string): Adjust for the change of lispy string.
17175 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17176
17177 * xfaces.c (set_font_frame_param): Adjust for the change of
17178 font_find_for_lface.
17179
17180 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17181 (xfont_registry_charsets): Likewise. Change caller.
17182 (syms_of_xfont): Don't handle x_font_charset_alist.
17183
17184 * xftfont.c: Include "ftfont.h".
17185 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17186 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17187 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17188 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17189 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17190 Set xftfont_driver.shape to xftfont_shape.
17191
17192 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17193 the change of lispy gstring.
17194
17195 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17196
17197 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17198
17199 2008-02-01 Jason Rumney <jasonr@gnu.org>
17200
17201 * w32font.c (w32font_draw): Fill background manually.
17202
17203 2008-02-01 Jason Rumney <jasonr@gnu.org>
17204
17205 * font.c (Qfontp): Remove unused symbol.
17206 (QCantialias): New symbol.
17207 (syms_of_font): Define it.
17208 (font_property_table): Set a validator for QCantialias.
17209
17210 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17211 Define if not already.
17212 (QCfamily): Share with xfaces.c.
17213 (Qstandard, Qsubpixel, Qnatural): New symbols.
17214 (syms_of_w32font): Define them. Don't define QCfamily here.
17215 (w32_antialias_type, lispy_antialias_type): New functions.
17216 (w32_enumfont_pattern_entity): New arg requested_font.
17217 Set antialias parameter if non-default was requested.
17218 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17219
17220 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17221
17222 * lread.c (read1): Undo the previous change.
17223
17224 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17225
17226 * frame.c (Fdelete_frame): Call font_update_drivers only when
17227 USE_FONT_BACKEND is defined.
17228
17229 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17230
17231 * font.h (struct font_bitmap): New member bits_per_pixel.
17232 (struct font_driver): New members start_for_frame and end_for_frame.
17233 (struct font_data_list): New struct.
17234 (font_put_frame_data, font_get_frame_data): Extern them.
17235
17236 * frame.h (struct frame): New member font_data_list.
17237
17238 * font.c (font_update_drivers): Call driver->start_for_frame and
17239 driver->end_for_frame at proper timings.
17240 (font_put_frame_data, font_get_frame_data): New functions.
17241 (Ffont_spec): Add usage in the docstring.
17242
17243 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17244 (Fdelete_frame): Call font_update_drivers.
17245
17246 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17247 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17248 (xftfont_get_xft_draw): New function.
17249 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17250 (xftfont_end_for_frame): New function.
17251 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17252
17253 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17254 Change argument. Cache GCs in the per-frame data.
17255 (struct ftxfont_frame_data): New struct.
17256 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17257 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17258 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17259 (ftxfont_end_for_frame): New function.
17260 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17261
17262 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17263
17264 2008-02-01 Kenichi Handa <handa@m17n.org>
17265
17266 * xselect.c (Vselection_coding_system)
17267 (Vnext_selection_coding_system): Delete them.
17268 (syms_of_xselect): Don't declare selection-coding-system and
17269 next-selection-coding-system. They are declared in select.el.
17270
17271 2008-02-01 Jason Rumney <jasonr@gnu.org>
17272
17273 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17274
17275 * w32fns.c: Include imm.h.
17276 (get_composition_string_fn, get_ime_context_fn): New optional
17277 system functions.
17278 (globals_of_w32fns): Load them from imm32.dll.
17279 (ignore_ime_char): New flag.
17280 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17281 WM_IME_ENDCOMPOSITION messages.
17282
17283 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17284 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17285
17286 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17287
17288 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17289 (READCHAR_REPORT_MULTIBYTE): New macro.
17290 (readchar): New 2nd arg MULTIBYTE.
17291 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17292 Make symbol's name multibyte according to the multibyteness of the
17293 source.
17294
17295 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17296
17297 * xfaces.c (face_for_overlay_string): Call lookup_face with
17298 correct arguments (fix of synching with the trunk).
17299
17300 2008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17303 (font_prop_validate_non_neg, font_prop_validate_spacing):
17304 Delete argument prop_index.
17305 (font_property_table): Change arguments to validater. Change Callers.
17306 (font_lispy_object): Delete.
17307 (font_at): Use font_find_object instead fo font_lispy_object.
17308
17309 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17310
17311 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17312 and file names.
17313
17314 2008-02-01 Jason Rumney <jasonr@gnu.org>
17315
17316 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17317 (font_matches_spec): Remove debug output.
17318 (add_font_entity_to_list): Avoid using substituted fonts.
17319
17320 2008-02-01 Jason Rumney <jasonr@gnu.org>
17321
17322 * doc.c (Fsnarf_documentation):
17323 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17324
17325 2008-02-01 Miles Bader <miles@gnu.org>
17326
17327 * dispextern.h (struct glyph_row): Only define "clip" field if
17328 HAVE_WINDOW_SYSTEM is defined.
17329
17330 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17331
17332 Fix up multi-tty merge.
17333
17334 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17335 and indentation.
17336
17337 * xfaces.c (free_realized_face, clear_face_gcs):
17338 Include font_done_for_face in the input_blocked section, just in case.
17339
17340 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17341 (get_char_face_and_encoding): Undo last change and remove the *other*
17342 duplicate definition (i.e. keep the one that's better scoped and that
17343 includes code for the font-backend).
17344
17345 * terminal.c (create_terminal): Default keyboard_coding to
17346 `no-conversion' and terminal_coding to `undecided'.
17347
17348 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17349
17350 * fontset.c (free_realized_fontsets): Check that the table entry does
17351 contain a fontset before trying to compare it to `base'.
17352
17353 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17354 syms_of_charset, and syms_of_coding earlier because init_window_once
17355 now needs Vcoding_system_hash_table to be setup.
17356
17357 * coding.h (default_buffer_file_coding): Remove.
17358
17359 * coding.c (default_buffer_file_coding): Remove.
17360 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17361 than ->symbol, and use the terminal-local coding system.
17362 (syms_of_coding): Don't setup the coding-systems that are not
17363 terminal-local.
17364 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17365
17366 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17367 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17368
17369 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17370 in chartab.c and were re-added here by mistake.
17371 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17372
17373 * doc.c (Fsnarf_documentation):
17374 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17375 src to etc.
17376
17377 * ChangeLog.10: Add mistakenly removed entry.
17378
17379 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17380
17381 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17382
17383 2008-02-01 Miles Bader <miles@gnu.org>
17384
17385 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17386 Add extra args to FACE_FOR_CHAR.
17387
17388 2008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17391 in sequence.
17392
17393 * chartab.c (map_sub_char_table, map_char_table): If the range
17394 contains just one character, call the function with that character
17395 even if the depth is not 3.
17396
17397 2008-02-01 Jason Rumney <jasonr@gnu.org>
17398
17399 * w32font.c (w32font_text_extents): Calculate metrics for the
17400 whole string.
17401
17402 2008-02-01 Jason Rumney <jasonr@gnu.org>
17403
17404 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17405
17406 2008-02-01 Jason Rumney <jasonr@gnu.org>
17407
17408 * w32term.c (x_set_glyph_string_clipping): Use
17409 get_glyph_string_clip_rects.
17410 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17411 Adjust for the change of struct glyph_string.
17412
17413 * w32font.c (w32font_draw): Do clipping here.
17414
17415 2008-02-01 Kenichi Handa <handa@m17n.org>
17416
17417 * xftfont.c (xftfont_draw): Adjust for the change of struct
17418 glyph_string.
17419
17420 * xterm.c (x_set_glyph_string_clipping): Use
17421 get_glyph_string_clip_rects.
17422 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17423 Adjust for the change of struct glyph_string.
17424
17425 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17426 the resulting clip(s}.
17427 (expose_overlaps): Add arg r. Change callers. Set it to
17428 row->clip temporarily.
17429 (expose_window): Redraw rows overlapping the exposed area.
17430
17431 * dispextern.h (struct glyph_row): New member clip.
17432 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17433 clip_height, new member clip, and num_clips.
17434
17435 2008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * data.c (Fchar_or_string_p): Fix docstring.
17438
17439 2008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17442 create a temporary XftDraw object.
17443
17444 2008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * font.c (Ffontp): Fix docstring.
17447
17448 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17449 strong evidence of ISO-2022.
17450
17451 2008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17454 SYNTAX_ENTRY_FOLLOW_PARENT.
17455
17456 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17457
17458 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17459 its type.
17460 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17461 Update to the new type of weak_hash_tables and next_weak.
17462
17463 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17464 a plain C pointer to Lisp_Hash_Table.
17465
17466 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17467 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17468 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17469 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17470 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17471 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17472 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17473 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17474 (GC_EQ): Remove since they've been identical to their non-GC_
17475 alter-egos ever since the markbit was eradicated.
17476
17477 * alloc.c:
17478 * buffer.c:
17479 * buffer.h:
17480 * data.c:
17481 * fileio.c:
17482 * filelock.c:
17483 * fns.c:
17484 * frame.h:
17485 * lisp.h:
17486 * macterm.c:
17487 * print.c:
17488 * process.c:
17489 * w32fns.c:
17490 * w32menu.c:
17491 * w32term.c:
17492 * xfns.c:
17493 * xmenu.c:
17494 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17495
17496 2008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * chartab.c (map_sub_char_table): Make it work for the top-level
17499 char-table. Fix handling of parent char-table.
17500 (map_char_table): Adjust for the above change.
17501
17502 2008-02-01 Jason Rumney <jasonr@gnu.org>
17503
17504 * w32font.c (Qgdi): Rename from Qw32.
17505
17506 2008-02-01 Jason Rumney <jasonr@gnu.org>
17507
17508 * w32bdf.c (get_quoted_string): Make function static.
17509
17510 2008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17513 bigger ascent and descent than those of the font, use them as
17514 font's ascent and descent.
17515
17516 2008-02-01 Kenichi Handa <handa@m17n.org>
17517
17518 * Makefile.in (${lispsource}international/charprop.el): Move this
17519 target within "#ifdef HAVE_UNIDATA" and "#endif".
17520
17521 2008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17524 (shortlisp): Add ../lisp/language/tai-viet.el.
17525
17526 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
17527
17528 * Makefile.in (${lispsource}international/charprop.el): Depend on
17529 temacs${EXEEXT}.
17530
17531 2008-02-01 Jason Rumney <jasonr@gnu.org>
17532
17533 * w32font.c (w32font_close): Delete the GDI font object.
17534
17535 * w32menu.c: Include character.h.
17536
17537 * w32proc.c: Likewise.
17538
17539 * w32select.c: Likewise.
17540
17541 * makefile.w32-in (w32proc.o): Depend on character.h.
17542
17543 2008-02-01 Jason Rumney <jasonr@gnu.org>
17544
17545 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17546
17547 * w32menu.c (syms_of_w32menu): Likewise.
17548
17549 * w32proc.c (syms_of_ntproc): Likewise.
17550
17551 * w32select.c (syms_of_w32select): Likewise.
17552
17553 * w32term.c (syms_of_w32term): Likewise.
17554
17555 2008-02-01 Jason Rumney <jasonr@gnu.org>
17556
17557 * w32font.c (w32font_draw): Delete brush after using it.
17558
17559 2008-02-01 Jason Rumney <jasonr@gnu.org>
17560
17561 * w32font.c (w32font_open): Don't set font_idx.
17562 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17563 to font settings.
17564 (w32font_draw): Fill background explicitly.
17565
17566 2008-02-01 Jason Rumney <jasonr@gnu.org>
17567
17568 * w32term.c (w32_initialize): Don't call w32font_initialize.
17569
17570 * w32font.c (w32font_info): Remove subranges.
17571 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17572 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17573 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17574 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17575 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17576 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17577 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17578 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17579 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17580 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17581 New symbols.
17582 (font_callback_data): New struct.
17583 (w32font_list, w32font_match): Use it.
17584 (w32font_open): Don't populate subranges.
17585 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17586 (w32font_encode_char): Always return unicode code-point as-is.
17587 (w32font_text_extents): Supply a transformation matrix to
17588 GetGlyphOutline. Never look up by glyph index. Avoid looping
17589 twice. Use unicode version of GetTexExtentPoint32 instead of
17590 glyph index version.
17591 (set_fonts_frame): Remove.
17592 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17593 set frame parameter. Use backward compatible fake foundries.
17594 Save generic family in extra slot under QCfamily. Make width slot
17595 constant. Save QCspacing value. Save list of scripts instead of
17596 binary subranges.
17597 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17598 (add_font_entity_to_list): Use font_callback_data struct. Filter
17599 unwanted fonts.
17600 (add_one_font_entity_to_list): Use font_callback_data struct.
17601 (w32_registry): Default to iso10646_1.
17602 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17603 string font registries. Don't fill in font name if it is a generic
17604 family name, fill family instead. Use spacing, family and script
17605 extra info to fill pitch, family and charset fields.
17606 (list_all_matching_fonts): Use font_callback_data struct.
17607 (unicode_range_for_char): Remove.
17608 (font_supported_scripts): New function.
17609 (w32font_initialize): Remove.
17610 (syms_of_w32font): Update which symbols are defined.
17611
17612 2008-02-01 Jason Rumney <jasonr@gnu.org>
17613
17614 * font.c (font_pixel_size): Reverse assq_no_quit args.
17615
17616 * w32term.h (FONT_WIDTH): Report max width, not average.
17617 (FONT_MAX_WIDTH): Remove.
17618 (FONT_AVG_WIDTH): New macro.
17619
17620 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17621 redefinition of FONT_WIDTH.
17622
17623 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17624 (w32_cache_char_metrics): Use FONT_WIDTH.
17625
17626 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17627
17628 2008-02-01 Jason Rumney <jasonr@gnu.org>
17629
17630 * w32font.c (w32font_open): Make lfHeight negative.
17631
17632 * w32fns.c (x_default_font_parameter): Use new style font name.
17633 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17634
17635 2008-02-01 Jason Rumney <jasonr@gnu.org>
17636
17637 * w32font.c (QCsubranges): New symbol.
17638 (w32font_open, w32font_has_char): Get subranges from subproperty
17639 of extra.
17640 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17641 (syms_of_w32font): Define :subranges symbol.
17642
17643 * font.c (font_put_extra): Expose externally.
17644
17645 * font.h (font_put_extra): Move declaration from font.c.
17646
17647 * font.c (Ffont_get): Use font driver to determine otf capability.
17648 (adjust_anchor): Check if driver defines anchor_point before using.
17649
17650 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17651 (w32font_draw): Use options.
17652 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17653 Fix detection of truetype fonts.
17654 (registry_to_w32_charset): Handle charsets other than iso8859-1
17655 expressed as lisp symbols.
17656 (w32_registry): Express charset as lisp symbol.
17657 (fill_in_logfont): Reverse pixel and point height logic.
17658 Don't set width here. Set quality to default.
17659
17660 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17661 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17662
17663 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17664 Remove redundant loop and allocation.
17665
17666 * makefile.w32-in (font.o, w32font.o): New objects.
17667 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17668 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17669
17670 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17671 STORE_XCHARB a valid l-value.
17672
17673 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17674 calculations for non-Truetype fonts.
17675 (x_draw_glyph_string): Sync with xterm.c.
17676 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17677 Remove redundant code.
17678 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17679
17680 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17681 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17682
17683 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17684 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17685
17686 * w32font.c: New file for w32 font backend.
17687
17688 2008-02-01 Kenichi Handa <handa@m17n.org>
17689
17690 * term.c: Don't include "buffer.h" twice.
17691
17692 2008-02-01 Kenichi Handa <handa@m17n.org>
17693
17694 * character.c (Funibyte_string): New function.
17695 (syms_of_character): Defsubr it.
17696
17697 2008-02-01 Jason Rumney <jasonr@gnu.org>
17698
17699 * w32term.c [USE_FONT_BACKEND]:
17700 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17701 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17702 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17703 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17704 (x_free_frame_resources): Sync with xterm.c.
17705
17706 2008-02-01 Andreas Schwab <schwab@suse.de>
17707
17708 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17709 char-table size.
17710
17711 2008-02-01 Kenichi Handa <handa@m17n.org>
17712
17713 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17714
17715 2008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17718 font_otf_gpos, add font_drive_otf.
17719
17720 * fontset.c (fontset_find_font): Pay attention to font size
17721 specified for a font.
17722 (reorder_font_vector): Check contents of font_def.
17723
17724 * font.c (struct otf_list): Delete it.
17725 (otf_list): Make it a lisp variable.
17726 (otf_open): Use lispy otf_list.
17727 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17728 (check_otf_features): New function.
17729 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17730 New functions.
17731 (font_drive_otf): New function merging font_otf_gsub and
17732 font_otf_gpos.
17733 (font_open_for_lface): New arg spec. Change argument order.
17734 (font_load_for_face): Adjust for the change of font_open_for_lface.
17735 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17736 Ffont_otf_gpos.
17737 (syms_of_font): Staticpro otf_list. Delete defsubr of
17738 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17739
17740 * xfaces.c (set_font_frame_param): Adjust for the change of
17741 font_open_for_lface.
17742
17743 * font.h (font_open_for_lface): Adjust prototype.
17744 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17745 member otf_drive.
17746 (font_otf_gsub, font_otf_gpos): Delete externs.
17747 (font_drive_otf): Extern it.
17748
17749 2008-02-01 Kenichi Handa <handa@m17n.org>
17750
17751 * font.c (font_at): If the window W is not on a window system,
17752 return Qnil.
17753
17754 * coding.c (produce_chars, encode_coding): Don't call
17755 insert_from_gap if no characters to produce.
17756
17757 2008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17760 Fclear_face_cache.
17761
17762 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17763
17764 2008-02-01 Miles Bader <miles@gnu.org>
17765
17766 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17767 Parse "--disable-font-backend" option.
17768 (standard_args): Add "--disable-font-backend" option.
17769
17770 2008-02-01 Kenichi Handa <handa@m17n.org>
17771
17772 * fontset.c (fontset_find_font): New function.
17773 (fontset_font): Use fontset_find_font.
17774 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17775 Register the specified font for all Latin characters.
17776 (new_fontset_from_font): Register the specified font for all Latin
17777 characters.
17778 (dump_fontset): For a realized fontset, include the base fontset
17779 name in the returned vector.
17780
17781 2008-02-01 Kenichi Handa <handa@m17n.org>
17782
17783 * character.h (CHAR_STRING): Cast C to unsigned on calling
17784 char_string.
17785
17786 * character.c (char_string): Type of arg C changed to unsigned.
17787 Signal an error if C is an invalid character code.
17788
17789 * editfns.c (general_insert_function, Fchar_to_string):
17790 Use CHARACTERP, not INTEGERP.
17791
17792 2008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17795 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17796
17797 * regex.c (analyse_first): Fix for multibyte characters in "case
17798 charset:" and "case categoryspec:".
17799
17800 2008-02-01 Andreas Schwab <schwab@suse.de>
17801
17802 * Makefile.in (LIBES): Move standard libraries to the end.
17803
17804 2008-02-01 Kenichi Handa <handa@m17n.org>
17805
17806 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17807 nonzero, don't shrink the buffer nextb.
17808
17809 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17810
17811 * coding.c (coding_alloc_by_making_gap): New arg offset.
17812 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17813 offset.
17814 (decode_coding_iso_2022): Update coding->safe_charsets.
17815 (decode_coding_gap): Temporarily set
17816 current_buffer->text->inhibit_shrinking to 1.
17817
17818 2008-02-01 Kenichi Handa <handa@m17n.org>
17819
17820 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17821 indexing into elements of s->cmp and s->char2b.
17822
17823 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
17824
17825 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17826
17827 2008-02-01 Kenichi Handa <handa@m17n.org>
17828
17829 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17830 target_multibyte instead of multibyte.
17831 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17832 (bcmp_translate): Change the argument name from multibyte to
17833 target_multibyte.
17834
17835 2008-02-01 Kenichi Handa <handa@m17n.org>
17836
17837 These changes are to compile a regexp into a pattern that can be
17838 used both for multibyte and unibyte targets.
17839
17840 * Makefile.in (search.o): Depend on charset.h.
17841
17842 * character.c (multibyte_char_to_unibyte_safe): New function.
17843
17844 * search.c: Include "charset.h".
17845 (compile_pattern_1): Delete argument multibyte. Don't set
17846 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17847 (compile_pattern): Don't compare cp->buf.target_multibyte.
17848 Compare cp->buf.charset_unibyte.
17849 (compile_pattern): Set cp->buf.target_multibyte.
17850
17851 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17852
17853 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17854
17855 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17856 multibyte. Change callers.
17857 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17858 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17859 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17860 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17861 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17862 (regex_compile): Make the compiled pattern usable both for
17863 multibyte and unibyte targets.
17864 (analyse_first): Make the fastmap usable both for multibyte and
17865 unibyte targets.
17866 (TRANSLATE_VIA_MULTIBYTE): Delete.
17867 (re_match_2_internal): Pay attention to the case that the
17868 multibyteness of bufp and target may be different.
17869
17870 2008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17873 empty box occupy at least one column width.
17874
17875 2008-02-01 Miles Bader <miles@gnu.org>
17876
17877 * Makefile.in: Remove redundant HAVE_XFT clause.
17878
17879 2008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17882
17883 2008-02-01 Kenichi Handa <handa@m17n.org>
17884
17885 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17886 being nil.
17887
17888 2008-02-01 Kenichi Handa <handa@m17n.org>
17889
17890 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17891
17892 2008-02-01 Kenichi Handa <handa@m17n.org>
17893
17894 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17895
17896 2008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * search.c (simple_search): Fix previous change.
17899
17900 2008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * xftfont.c (ftfont_font_format): Extern declaration.
17903
17904 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17905
17906 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17907 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17908
17909 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17910 (ftfont_font_format): Fix previous change.
17911
17912 * font.h (Ffont_xlfd_name): EXFUN it.
17913
17914 * font.c (font_parse_xlfd): Fix the array size of `f'.
17915 (register_font_driver): Use EQ to compare driver->type.
17916
17917 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17918 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17919 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17920
17921 2008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17924 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17925
17926 2008-02-01 Kenichi Handa <handa@m17n.org>
17927
17928 * xfont.c (xfont_open): Set font->format.
17929
17930 * xftfont.c (xftfont_open): Set font->format.
17931
17932 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17933 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17934 (ftfont_open): Set font->format.
17935 (ftfont_font_format): New function.
17936
17937 * font.h (struct font): New member format.
17938
17939 * font.c (Qopentype): New variable.
17940 (syms_of_font): Defsym it.
17941 (Fquery_font): Change the format of the last element of the return
17942 value.
17943
17944 2008-02-01 Kenichi Handa <handa@m17n.org>
17945
17946 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17947 last resort.
17948
17949 2008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * coding.c (detect_coding_charset): Fix detection of multi-byte
17952 charset.
17953
17954 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17955
17956 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17957
17958 2008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 * xdisp.c (get_next_display_element): Set it->face_id for the
17961 first component of a composition.
17962 (x_produce_glyphs): Check if the font is changed or not for composition.
17963
17964 2008-02-01 Kenichi Handa <handa@m17n.org>
17965
17966 * fontset.c (Qlatin): New variable.
17967 (syms_of_fontset): Define it as a lisp symbol.
17968 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17969
17970 2008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * font.c (font_unparse_fcname): Pay attention to the case that
17973 some of font property is a null string.
17974
17975 2008-02-01 Kenichi Handa <handa@m17n.org>
17976
17977 * term.c: Include "composite.h".
17978 (encode_terminal_code): Output all components of composition.
17979 Check the size of encode_terminal_src.
17980 (produce_glyphs): For composition, call produce_composite_glyph.
17981 (append_composite_glyph, produce_composite_glyph): New functions.
17982
17983 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17984 is not found, get font_info from the current ascii face.
17985
17986 2008-02-01 Kenichi Handa <handa@m17n.org>
17987
17988 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17989 buffer-file-name to Qnil before calling insert_from_buffer.
17990
17991 * font.c (font_unparse_fcname): Pay attention to the case that
17992 foundry is a null string.
17993
17994 2008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17997
17998 * font.c (Qunicode_sip): New variable.
17999 (syms_of_font): Declare it as a Lisp symbol.
18000
18001 * font.h (Qunicode_sip): Extern it.
18002
18003 2008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * composite.c (get_composition_id): Pay attention to TAB component.
18006
18007 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18008 TAB. Adjust for the change of s->char2b which always points to
18009 the first element of allocated memory.
18010
18011 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18012
18013 * xdisp.c (handle_composition_prop): Set it->c to the first
18014 non-TAB component.
18015 (fill_composite_glyph_string): Change argument.
18016 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18017 (x_produce_glyphs): Fix handling of left/right padding.
18018
18019 2008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * coding.c (detect_coding_system): Fix for handling off
18022 inhibit_iso_escape_detection. Fix for the case that no coding
18023 system is defined for a specific coding category.
18024
18025 2008-02-01 Kenichi Handa <handa@m17n.org>
18026
18027 * font.c (font_matching_entity): Delete unused local var.
18028
18029 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18030 opening a font.
18031
18032 * fileio.c (Finsert_file_contents): On recovering a file, assume
18033 Unix-like eol.
18034 (choose_write_coding_system): On auto-saving a file, force
18035 Unix-like eol.
18036
18037 * coding.c (setup_coding_system): Fix setting of
18038 coding->common_flags based on eol_type.
18039 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18040 inherit from it.
18041
18042 2008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * alloc.c (NSTATICS): Increas to 0x600.
18045
18046 2008-02-01 Kenichi Handa <handa@m17n.org>
18047
18048 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18049 (ftfont_list): Don't check :name property.
18050 (ftfont_match): New function.
18051 (ftfont_pattern_entity): If the pattern doesn't contain
18052 FC_SPACING, don't assume FC_MONO.
18053
18054 * font.h (struct font_driver): New member `match'.
18055 (font_update_drivers): Adjust prototype.
18056
18057 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18058 property of FONT.
18059 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18060 them unconditionally.
18061 (font_matching_entity): New function.
18062 (font_open_by_name): Try font_matching_entity if exact match is
18063 not found.
18064 (font_update_drivers): Delete the arg FONT. Return a list of
18065 actually used backends. Don't free faces, font caches here.
18066 Don't store data in frame parameters. Don't call x_set_font.
18067 (Ffont_spec): Store :name property as is.
18068 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18069 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18070 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18071 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18072 Call font->driver->otf_gsub instead of font_otf_gsub.
18073
18074 * frame.c (x_set_font_backend): Do more works that were done in
18075 font_update_drivers before.
18076
18077 * xfont.c (xfont_match): New function.
18078 (xfont_driver): Set xfont_driver.match to xfont_match.
18079 (xfont_draw): Set font in GC if necessary.
18080
18081 * ftxfont.c (ftxfont_match): New function.
18082 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18083
18084 * xftfont.c (xftfont_match): New function.
18085 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18086
18087 2008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * font.h (struct font): New member scalable.
18090 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18091 (font_otf_gsub): Adjust prototype.
18092
18093 * font.c (font_otf_capability): Fix handling of the default langsys.
18094 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18095 Check the contents of SPEC.
18096 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18097 (check_gstring): New function.
18098 (REPLACEMENT_CHARACTER): New macro.
18099 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18100 glyph codes of GSTRING.
18101 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18102 (font_prepare_composition): Set cmp->glyph_len.
18103 (font_open_entity): Set font->scalable.
18104 (Ffont_get): Handle :otf property.
18105 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18106 functions.
18107 (Fquery_font): Use font->font.full_name.
18108 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18109 Sfont_otf_alternates.
18110
18111 * ftfont.c (ftfont_open): Set font->font.full_name and
18112 font->font.name properly. Fix calculation of font->font.height
18113 and font->min_width.
18114
18115 * ftxfont.c (ftxfont_create_gcs): New function.
18116 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18117 (ftxfont_draw_backgrond): Fix filling region.
18118 (ftxfont_default_fid): New function.
18119 (ftxfont_open): Set xfont->fid to the return value of
18120 ftxfont_default_fid.
18121 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18122 (ftxfont_done_face): Free only GCs that are created by
18123 ftxfont_create_gcs.
18124 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18125
18126 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18127 Clip to src->width, etc (not src->clip_XXX).
18128
18129 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18130 FontBackend frame parameter.
18131
18132 2008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * font.h (struct font_driver_list): New member `on'.
18135 (Fclear_font_cache): EXFUN it.
18136 (font_update_drivers): Extern it.
18137
18138 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18139 (font_list_entities): Check driver_list->on.
18140 (register_font_driver): Initalize `on' member to 0.
18141 (font_update_drivers): New function.
18142 (Fclear_font_cache): Check driver_list->on.
18143
18144 * frame.h (Qfont_backend): Extern it.
18145 (x_set_font_backend): Extern it.
18146
18147 * frame.c (Qfont_backend): New variable.
18148 (frame_parms): New element for font-backend.
18149 (x_set_font_backend): New function.
18150
18151 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18152 FontBackend frame parameter.
18153 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18154 x_set_font_backend.
18155
18156 * xfont.c (xfont_list): Don't try listing by :name property if the
18157 name is not for XLFD.
18158
18159 2008-02-01 Kenichi Handa <handa@m17n.org>
18160
18161 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18162 (LGLYPH_SET_TO): New macros.
18163 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18164 element of G is vector or not.
18165 (font_at): Extern it.
18166
18167 * font.c: Include window.h.
18168 (font_lispy_object): New function.
18169 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18170 end of valid glyph.
18171 (font_close_object): Fix getting (struct font *).
18172 (font_at): New function.
18173 (Ffont_get): If FONT is a font-object, get entity from it.
18174 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18175 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18176 range check.
18177 (Ffont_at): New function.
18178 (syms_of_font): Defsubr Sfont_at.
18179
18180 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18181 before the entry for Qcomposition.
18182 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18183 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18184 the font in gstring.
18185 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18186 LGLYPH_FORM (g) to detect the end of valid glyph.
18187 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18188 we are composing with gstring.
18189
18190 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18191 Check if adjustment is vector or not.
18192
18193 * Makefile.in (font.o): Make it depends on window.h.
18194
18195 2008-02-01 Kenichi Handa <handa@m17n.org>
18196
18197 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18198 adjustment is vector or not.
18199
18200 2008-02-01 Miles Bader <miles@gnu.org>
18201
18202 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18203
18204 2008-02-01 Kenichi Handa <handa@m17n.org>
18205
18206 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18207 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18208 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18209
18210 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18211 (DEVICE_DELTA): Fix typo.
18212 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18213 LGLYPH format.
18214
18215 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18216 the change of LGLYPH format.
18217
18218 2008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * ftfont.c (ftfont_list): Fix typo.
18221 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18222
18223 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18224
18225 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18226
18227 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18228 xftface_info is non-NULL.
18229
18230 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18231
18232 * ftfont.c (ftfont_list): Move misplaced #endif.
18233
18234 2008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * ftfont.c (ftfont_list): Pay attention to the case that
18237 FC_CAPABILITY is not defined.
18238
18239 2008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * xftfont.c (xftfont_open): Set charset related members to -1.
18242
18243 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18244 QCname.
18245 (ftfont_open): Set charset related members to -1.
18246
18247 * fontset.c (Votf_script_alist): New variable.
18248 (syms_of_fontset): Initialize it.
18249 (fontset_font): Delete unused variable.
18250
18251 * fontset.h (Votf_script_alist): Extern it.
18252
18253 * font.c (font_find_for_lface): Optimize code.
18254
18255 * font.h (font_close_object, font_merge_old_spec): Extern them.
18256
18257 2008-02-01 Kenichi Handa <handa@m17n.org>
18258
18259 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18260 (syms_of_font): Initialize them.
18261 (font_pixel_size): Allow float value in dpi.
18262 (font_prop_validate_type): Delete.
18263 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18264 Change caller.
18265 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18266 (font_prop_validate_extra): Delete.
18267 (font_prop_validate_spacing): New function.
18268 (font_property_table): Add elements for all known properties.
18269 (get_font_prop_index): Rename from check_font_prop_name. New
18270 argument FROM. Change caller.
18271 (font_prop_validate): Validate all known properties.
18272 (font_put_extra): Delete argument force. Change caller.
18273 (font_expand_wildcards): Make it static. Fix the way of shrinking
18274 the possible range.
18275 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18276 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18277 Change caller.
18278 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18279 (font_parse_fcname): Delete argument merge. Fix parsing of point
18280 size. Don't validate properties values here. Change caller.
18281 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18282 (font_open_by_name): Delete unused variable.
18283 (Ffont_spec): Likewise. Validate property values.
18284 (Ffont_match_p): New function.
18285
18286 * font.h (QCscalable): Extern it.
18287 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18288
18289 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18290
18291 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18292 (xfont_list_pattern): New function.
18293 (xfont_list): Use xfont_list_pattern.
18294
18295 2008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * font.h (Flist_fonts): EXFUN it.
18298
18299 2008-02-01 Jason Rumney <jasonr@gnu.org>
18300
18301 * w32term.c (w32_initialize): Add back smoothing_type and
18302 smoothing_enabled definitions.
18303
18304 2008-02-01 Kenichi Handa <handa@m17n.org>
18305
18306 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18307 s->face->font on determining underline position.
18308
18309 2008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18312 (font_has_char): Accept font-object too.
18313 (font_find_for_lface): Try at first with a size specified in face.
18314
18315 2008-02-01 Kenichi Handa <handa@m17n.org>
18316
18317 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18318 font_open_by_name.
18319
18320 2008-02-01 Kenichi Handa <handa@m17n.org>
18321
18322 * font.h (QCspacing, QCdpi): Extern them.
18323 (enum font_spacing): New enum.
18324 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18325
18326 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18327 (QCspacing, QCdpi): New variables.
18328 (syms_of_font): Initialize them.
18329 (font_pixel_size): New function.
18330 (font_put_extra): New function.
18331 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18332 in FONT_EXTRA.
18333 (font_parse_fcname): Handle enumerated values (e.g. bold).
18334 Fix handling font size. Add QCname property that contains only
18335 unknown properties.
18336 (font_score): Change argument. Change caller. Pay attention to
18337 FONT_PIXEL_SIZE_QUANTUM.
18338 (font_sort_entites, font_list_entities, font_find_for_lface)
18339 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18340 (Ffont_spec): Add QCname property that contains only unknown properties.
18341
18342 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18343 include weight in listing pattern, instead check weight of each
18344 listed font. Don't include scalable in pattern. Pay attention to
18345 FONT_PIXEL_SIZE_QUANTUM.
18346
18347 2008-02-01 Kenichi Handa <handa@m17n.org>
18348
18349 * font.c (font_parse_fcname): Fix parsing of point-size.
18350 (font_unparse_fcname): Produce symbolic names for style properties.
18351 (font_list_entities): Handle float size correctly.
18352 (font_open_by_name): Prefer `normal' property values if the name
18353 doesn't specify them.
18354
18355 * fontset.c (Finternal_char_font): Use font_get_name, not
18356 Ffont_xlfd_name.
18357
18358 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18359 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18360 pattern. Don't force scalable.
18361
18362 * xftfont.c (xftfont_open): For generating a name, start from
18363 96-byte buffer.
18364
18365 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18366
18367 * frame.h (x_new_fontset2): Fix prototype.
18368
18369 2008-02-01 Kenichi Handa <handa@m17n.org>
18370
18371 * font.h (struct font_driver): Delete member parse_name.
18372 (font_match_p, font_get_spec, font_parse_fcname)
18373 (font_unparse_fcname): Extern them.
18374 (font_get_name): Adjust prototype.
18375
18376 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18377 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18378 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18379 unnecessary checks for weight, slant, and swidth.
18380 (font_parse_fcname): New function.
18381 (font_unparse_fcname): New function.
18382 (font_parse_name): New function.
18383 (font_match_p): New function.
18384 (font_get_name): Change return value to Lisp string.
18385 (font_get_spec): New function.
18386 (Qunspecified, Qignore_defface): Don't extern them.
18387 (font_find_for_lface): Assume that LFACE is fully specified.
18388 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18389 object, use it for FACE.
18390 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18391 driver->parse_name.
18392 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18393
18394 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18395 prototype.
18396
18397 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18398 argument F. Don't call Fnew_fontset. Instead, directly call
18399 make_fontset.
18400
18401 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18402
18403 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18404 of x_new_fontset2.
18405
18406 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18407 (Qsans__serif): New variables.
18408 (ftfont_generic_family_list): New variable.
18409 (syms_of_ftfont): Initialize the above variables.
18410 (ftfont_pattern_entity): Delete argument NAME.
18411 (ftfont_list_generic_family): New function.
18412 (ftfont_parse_name): Delete this function.
18413 (ftfont_list): Try generic family only when FcFontList found no font.
18414 (ftfont_list_family): Fix args to FcObjectSetBuild.
18415
18416 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18417 object in attrs[LFACE_FONT_INDEX].
18418 (set_lface_from_font_name): Cancel all changes for font-backend.
18419 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18420 function.
18421 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18422 font object in QCfont attribute.
18423 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18424 (realize_default_face) [USE_FONT_BACKEND]: Call
18425 set_lface_from_font_and_fontset.
18426
18427 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18428 "fixed", and signal error here if no suitable font was found.
18429
18430 * xfont.c (xfont_parse_name): Delete this function.
18431
18432 * xftfont.c (xftfont_open): Change coding style of error
18433 handling. Generate fontconfig's fontname pattern.
18434
18435 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18436 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18437
18438 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18439 Both args FONTSET and FONT_OBJECT must be existing ones.
18440
18441 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18442
18443 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18444
18445 2008-02-01 Kenichi Handa <handa@m17n.org>
18446
18447 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18448
18449 * font.h (struct font): Fix typo.
18450
18451 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18452 XLFD_XXX_INDEX.
18453 (enum xlfd_field_mask): New enum.
18454 (intern_font_field): Changed argument. Change caller. If digits
18455 are followed by non-digits, return a symbol.
18456 (font_expand_wildcards): New function.
18457 (font_parse_xlfd): Fix wildcard handling.
18458 (Ffont_spec): If :name is specified, reflect the info in the other
18459 properties.
18460
18461 * ftfont.c (ftfont_pattern_entity): Fix typo.
18462 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18463 locale.
18464
18465 2008-02-01 Kenichi Handa <handa@m17n.org>
18466
18467 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18468
18469 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18470 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18471 registry doesn't specify encoding part.
18472 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18473 (font_open_by_name): At first try parsing the name.
18474 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18475 as Lisp symbols.
18476
18477 * fontset.c (reorder_font_vector): Pay attention to the case that
18478 the 3rd element of font_def is nil.
18479 (fontset_font): For the default fontset, append one more fontset
18480 elements for a script-based font specification. Don't add script
18481 attribute on finding a font.
18482 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18483 font name.
18484 (fontset_ascii_font): If a font can't be opened, return nil.
18485
18486 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18487 (ftfont_pattern_entity): New function.
18488 (ftfont_get_cache): Assume that freetype_font_cache is already
18489 initialized.
18490 (ftfont_list): Handle the case that a file is specified in font
18491 name. Use ftfont_pattern_entity to generate entities.
18492 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18493 (syms_of_ftfont): Initialize freetype_font_cache.
18494
18495 * xftfont.c (xftfont_open): Make the font name fontconfig's
18496 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18497 (xftfont_close): Free font->font.name if not NULL.
18498
18499 * xfont.c (xfont_list): If script is specified for a font, return
18500 null_vector.
18501 (xfont_list_family): Declare argument type.
18502
18503 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18504 name, set LFACE_FONT (lface) to nil.
18505
18506 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18507 return Qnil.
18508
18509 2008-02-01 Kenichi Handa <handa@m17n.org>
18510
18511 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18512 (standard_args): Add "-enable-font-backend".
18513
18514 2008-02-01 Kenichi Handa <handa@m17n.org>
18515
18516 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18517 (struct xftdraw_list, xftdraw_list): Delete them.
18518 (register_xftdraw, check_xftdraw): Delete them.
18519 (xftfont_prepare_face): Don't call register_xftdraw.
18520 (xftfont_done_face): Don't call check_xftdraw.
18521 (xftfont_draw): Get background color only when with_background is
18522 nonzero.
18523
18524 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18525
18526 2008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 These changes are for the new font handling codes.
18529
18530 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18531 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18532 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18533 (FONTSRC, FONTOBJ): New variables.
18534 (obj): Add $(FONTOBJ).
18535 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18536 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18537 @LIBOTF_LIBS@.
18538 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18539 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18540
18541 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18542
18543 * character.h (Vscript_representative_chars): Extern it.
18544
18545 * character.c (Vscript_representative_chars): New variable.
18546 (syms_of_character): Declare it as a Lisp variable.
18547
18548 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18549 enable_font_backend is nonzero, accept the composition method
18550 COMPOSITION_WITH_GLYPH_STRING.
18551
18552 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18553 enumeration COMPOSITION_WITH_GLYPH_STRING.
18554
18555 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18556 members clip_x, clip_y, clip_width, and clip_height.
18557 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18558
18559 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18560 --enable-font-backend. Call syms_of_font.
18561
18562 * fns.c (assoc_no_quit): New function.
18563
18564 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18565 (face_for_font, new_fontset_from_font)
18566 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18567
18568 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18569 (fontset_font, fontset_ascii, face_for_char)
18570 (make_fontset_for_ascii_face, Ffont_info)
18571 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18572 is nonzero, use font-backend mechanism.
18573 (find_font_encoding): Make it non-static.
18574 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18575 New functions.
18576
18577 * frame.h (struct frame): New members resx and resy.
18578 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18579 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18580
18581 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18582 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18583
18584 * lisp.h (assoc_no_quit): Extern it.
18585
18586 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18587 Through out the file, use FONT_INFO_FROM_FACE instead of
18588 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18589 rif->per_char_metric.
18590 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18591 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18592 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18593 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18594 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18595 nonzero, use font-backend mechanism.
18596 (get_per_char_metric): New function.
18597
18598 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18599 (set_lface_from_font_name)
18600 (set_font_frame_param, free_realized_face)
18601 (prepare_face_for_display, clear_face_gcs)
18602 (Finternal_set_font_selection_order, realize_x_face)
18603 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18604 font-backend mechanism.
18605 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18606 (load_face_font) [USE_FONT_BACKEND]: Abort.
18607 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18608 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18609
18610 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18611 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18612 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18613 nonzero, register all available font drivers. Call
18614 x_default_font_parameter for deciding a font.
18615 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18616
18617 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18618 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18619 (x_set_glyph_string_clipping_exactly)
18620 (x_compute_glyph_string_overhangs)
18621 (x_draw_glyph_string_foreground)
18622 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18623 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18624 enable_font_backend is nonzero, use font-backend mechanism.
18625 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18626
18627 2008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18630 system_eol_type.
18631 (syms_of_coding): Initialize system_eol_type.
18632
18633 * process.c (Fset_process_coding_system): Inherit system's eol
18634 format if necessary.
18635
18636 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18637
18638 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18639
18640 2008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * coding.c (decode_eol): Pay attention to buffer relocation in
18643 del_range_2.
18644 (decode_coding): Call decode_eol before restoring undo_list.
18645
18646 2008-02-01 Kenichi Handa <handa@m17n.org>
18647
18648 * charset.c (Fdefine_charset_internal): Fix setting of
18649 emacs_mule_bytes.
18650
18651 2008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * keyboard.c (read_char): Check if C is a character or not before
18654 looking up Vkeyboard_translate_table.
18655
18656 2008-02-01 Kenichi Handa <handa@m17n.org>
18657
18658 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18659 condition to terminate the loop.
18660
18661 2008-02-01 Kenichi Handa <handa@m17n.org>
18662
18663 * coding.c (produce_composition): Compare charbuf[i] instead of
18664 args[i] against 0.
18665 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18666
18667 2008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18670 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18671 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18672 detect_coding.
18673 (emacs_mule_char): Handle old style (Emacs 20) component character
18674 of a composition.
18675 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18676 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18677 composition rule.
18678 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18679
18680 2008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * coding.c (encode_coding_ccl): Allocate destination dynamically
18683 when necessary.
18684
18685 2008-02-01 Kenichi Handa <handa@m17n.org>
18686
18687 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18688 the loop. When quitted, show a proper error message.
18689
18690 2008-02-01 Kenichi Handa <handa@m17n.org>
18691
18692 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18693 src->clip_head and src->clip_tail temporarily instead of src->hl.
18694
18695 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18696 character sequence.
18697 (Fccl_execute_on_string): Use ASET, not XSET.
18698
18699 2008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18702
18703 2008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * coding.c (decode_coding): Fix the condition of terminating the
18706 decoding loop.
18707
18708 2008-02-01 Kenichi Handa <handa@m17n.org>
18709
18710 * data.c (Faset): On setting a character bigger than 255 in a
18711 unibyte string, signal an error instead of make the string multibyte.
18712
18713 2008-02-01 Kenichi Handa <handa@m17n.org>
18714
18715 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18716 made by a mapping table.
18717
18718 2008-02-01 Kenichi Handa <handa@m17n.org>
18719
18720 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18721 not.
18722 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18723 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18724
18725 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18726 s->face is NULL or not.
18727
18728 2008-02-01 Kenichi Handa <handa@m17n.org>
18729
18730 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18731 (x_draw_glyph_string): Fix drawing of right_overhang and
18732 left_overhang around/on cursor.
18733
18734 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18735
18736 2008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18739
18740 2008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * coding.c (Fdefine_coding_system_internal)
18743 (Fdefine_coding_system_alias): Avoid a duplicated element in
18744 Vcoding_system_alist.
18745
18746 2008-02-01 Kenichi Handa <handa@m17n.org>
18747
18748 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18749
18750 * coding.c (Qcoding_system_define_form): New variable.
18751 (syms_of_coding): Intern and staticpro it.
18752 (Fcoding_system_p): Check Qcoding_system_define_form.
18753 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18754
18755 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18756 Fcoding_system_p.
18757 (CHECK_CODING_SYSTEM): If ID is not available, call
18758 Fcheck_coding_system.
18759 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18760 Try also Fcheck_coding_system.
18761
18762 2008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * coding.c (code_conversion_restore): GCPRO arg.
18765
18766 2008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * character.c (lisp_string_width): Check multibyteness of STRING.
18769
18770 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18771
18772 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18773 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18774 (decode_mac_font_name): Use decode_coding_c_string instead of
18775 decode_coding.
18776 (x_load_font): Initialize fontp->fontset to -1. Set
18777 fontp->encoding_type.
18778
18779 2008-02-01 Kenichi Handa <handa@m17n.org>
18780
18781 * search.c (search_buffer): Give up BM search on case-fold-search
18782 if one of a target character has a case-equivalence of different
18783 byte length even if that target charcter is an ASCII.
18784 (simple_search): Fix calculation of byte length of matched text.
18785 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18786
18787 2008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 * coding.c (decode_coding): Fix handling of invalid bytes.
18790
18791 2008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18794 Unicode characters.
18795
18796 2008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * coding.c (encode_coding_object): If a pre-write-conversion
18799 function makes a new buffer, kill it.
18800
18801 2008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * coding.c (QCascii_compatible_p): New variable.
18804 (syms_of_coding): Initialize it.
18805 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18806 calling string_char.
18807 (record_conversion_result): Add `default:' case.
18808 (coding_charset_list): Delete unused variable `coding_type'.
18809 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18810 property in the plist of the coding system.
18811 (Fcoding_system_put): Check QCascii_compatible_p.
18812
18813 2008-02-01 Miles Bader <miles@gnu.org>
18814
18815 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18816 removed calculation of frame `f', as it's now used.
18817
18818 2008-02-01 Kenichi Handa <handa@m17n.org>
18819
18820 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18821 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18822 (UNIDATA): New variable.
18823 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18824 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18825 $(RUN_TEMACS) unconditionally.
18826
18827 2008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18830 (admindir): New variable.
18831 ($(lispsource)international/charprop.el): New target.
18832
18833 2008-02-01 Miles Bader <miles@gnu.org>
18834
18835 * character.c (chars-in-region): Remove obsolete function.
18836 (syms_of_character): Remove its initialization.
18837
18838 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18839
18840 * w32select.c (validate_coding_system)
18841 (setup_windows_coding_system): New functions.
18842 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18843 setup_windows_coding_system.
18844 (setup_config, Fw32_get_clipboard_data): Use
18845 validate_coding_system.
18846 (Fx_selection_exists): Move call to setup_config to a place
18847 where signals are allowed.
18848
18849 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18850 (Fcheck_coding_system): Add declarations.
18851
18852 2008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18855
18856 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18857
18858 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18859 string as the second argument for x_new_fontset.
18860
18861 2008-02-01 Kenichi Handa <handa@m17n.org>
18862
18863 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18864 (encode_coding_object): Use safe_call instead of call2.
18865
18866 2008-02-01 Kenichi Handa <handa@m17n.org>
18867
18868 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18869
18870 * Makefile.in (lisp): Include charprop.el.
18871
18872 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18873
18874 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18875 Not sure if it's unnecessary.
18876
18877 2008-02-01 Steven Tamm <steventamm@mac.com>
18878
18879 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18880 some possibly unnecessary fontset checking code that crashed
18881 when creating a new frame.
18882
18883 2008-02-01 Kenichi Handa <handa@m17n.org>
18884
18885 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18886 lookup_face.
18887
18888 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18889
18890 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18891
18892 2008-02-01 Kenichi Handa <handa@m17n.org>
18893
18894 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18895 (coding_charset_list): New function.
18896
18897 * coding.h (coding_charset_list): Extern it.
18898
18899 2008-02-01 Kenichi Handa <handa@m17n.org>
18900
18901 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18902 concatenation of family and registry.
18903
18904 2008-02-01 Kenichi Handa <handa@m17n.org>
18905
18906 * character.h (BYTE8_STRING): Fix typo.
18907
18908 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18909 string to multibyte (sync to HEAD).
18910
18911 * casefiddle.c (casify_region): Handle changes in byte-length
18912 using replace_range_2 (sync to HEAD).
18913
18914 2008-02-01 Andreas Schwab <schwab@suse.de>
18915
18916 * chartab.c (map_char_table): GCPRO table and arg.
18917
18918 2008-02-01 Kenichi Handa <handa@m17n.org>
18919
18920 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18921 already at limit.
18922
18923 2008-02-01 Kenichi Handa <handa@m17n.org>
18924
18925 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18926 instead of fast_c_string_match_ignore_case.
18927 (find_font_encoding): Change argument to Lisp_Object. Use
18928 fast_string_match_ignore_case instead of
18929 fast_c_string_match_ignore_case. Change caller.
18930
18931 2008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * xdisp.c (get_next_display_element): In unibyte case, decide to
18934 display in octal form by checking a character by
18935 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18936
18937 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18938
18939 * character.c (unibyte_has_multibyte_table): New variable.
18940
18941 * character.h (unibyte_has_multibyte_table): Extern it.
18942 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18943
18944 2008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * coding.c (encode_coding_iso_2022): Fix handling of charset
18947 annotation.
18948
18949 2008-02-01 Kenichi Handa <handa@m17n.org>
18950
18951 * coding.c (setup_coding_system): If coding_system is nil, use
18952 Qundecided.
18953 (Fterminal_coding_system): Return nil if terminal coding system is
18954 `undecided'.
18955 (syms_of_coding): Define coding-system `undecided' here. Setup
18956 terminal_coding as `undecided'.
18957
18958 2008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * xdisp.c (message_dolog, set_message_1): Call
18961 unibyte_char_to_multibyte with arg type int.
18962
18963 * lread.c (read1): Fix reading of a char-table.
18964
18965 * print.c (print_object): Include sub char-table in circularities
18966 detection.
18967
18968 2008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18971 Append the found sequences in car of ARGS instead of prepending.
18972
18973 2008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * fileio.c (report_file_error): Make a unibyte string from
18976 strerror (errorno).
18977 (Fsubstitute_in_file_name): Fix the arg to
18978 unibyte_char_to_multibyte. It is evaluated twice.
18979
18980 2008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18983
18984 2008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18987 BOM is not found.
18988 (detect_coding, detect_coding_system): Optimization for ISO-2022
18989 when no 8-bit data is found.
18990
18991 2008-02-01 Jason Rumney <jasonr@gnu.org>
18992
18993 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18994
18995 2008-02-01 Kenichi Handa <handa@m17n.org>
18996
18997 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18998 CHARS.
18999
19000 2008-02-01 Steven Tamm <steventamm@mac.com>
19001
19002 * macterm.c (mac_encode_char): Add charset argument and update
19003 to use encoding_type.
19004 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19005 switch to pure fontset.
19006 (decode_mac_font_name): Temporarily remove decoding.
19007 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19008 (x_load_font): Temporarily remove encoding.
19009
19010 2008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * xfaces.c (Fface_font): If frame is not on a window system,
19013 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19014 refer to face->font.
19015 (split_font_name_into_vector, build_font_name_from_vector)
19016 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19017 when HAVE_WINDOW_SYSTEM is defined.
19018
19019 2008-02-01 Kenichi Handa <handa@m17n.org>
19020
19021 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19022 (x_produce_glyphs): Fix setting of members of cmp in case
19023 cmp->glyph_len is zero.
19024
19025 * fontset.c (Fset_fontset_font): Fix docstring.
19026 (Ffontset_info): Make it backward compatible. New arg ALL.
19027
19028 2008-02-01 Kim F. Storm <storm@cua.dk>
19029
19030 * process.c (read_process_output): Grow decoding_buf when needed;
19031 this could cause a crash in allocate_string and compact_small_strings.
19032
19033 2008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19036
19037 2008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * coding.c (setup_coding_system): Set coding->common_flags
19040 correctly for raw-text.
19041 (consume_chars): On encoding unibyte text by raw-text, don't check
19042 multibyte form.
19043 (encode_coding): On encoding by raw-text, never use translation tables.
19044
19045 * fileio.c (e_write): Short cut for the case of no encoding.
19046
19047 2008-02-01 Kenichi Handa <handa@m17n.org>
19048
19049 * coding.c (detect_coding, detect_coding_system): Delete unused
19050 variables.
19051
19052 2008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19055 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19056
19057 2008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * coding.c (Ffind_coding_systems_region_internal): Include
19060 raw-text and no-conversion in the result.
19061
19062 2008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19065 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19066 FONT_DEF.
19067 (font_def_arg, add_arg, from_arg, to_arg): New args.
19068 (set_fontset_font): Change argument.
19069 (Fset_fontset_font): Fix for the case that TARGET is a script
19070 name and charset name.
19071 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19072
19073 2008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * fontset.c (fontset_font): Rename from fontset_face. Change return
19076 value.
19077 (face_suitable_for_char_p, face_for_char): Adjust for the change
19078 of fontset_font.
19079 (make_fontset_for_ascii_face): Fix setting of the fontset element
19080 for ASCII.
19081 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19082 to get a font name.
19083 (Ffontset_info): Adjust for the change of fontset_font.
19084
19085 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19086
19087 * character.h (LEADING_CODE_LATIN_1_MIN)
19088 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19089
19090 2008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 * editfns.c (check_translation): New function.
19093 (Ftranslate_region_internal): Handle M:N mapping.
19094
19095 2008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19098
19099 2008-02-01 Kenichi Handa <handa@m17n.org>
19100
19101 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19102 goto invalid_code.
19103 (decode_coding_iso_2022): Fix handling of invalid designation.
19104
19105 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19106 after calling code_conversion_save.
19107
19108 2008-02-01 Kenichi Handa <handa@m17n.org>
19109
19110 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19111
19112 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19113
19114 * fontset.c: Include "intervals.h".
19115 (fontset_face): Fix comparing of Lisp_Objects.
19116 (free_face_fontset, new_fontset_from_font_name): Fix
19117 Lisp_Object/int mixup.
19118
19119 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19120
19121 * coding.c: Add many prototypes for static functions.
19122 (get_translation_table): Allow max_lookup to be NULL.
19123 (decode_coding, Ffind_coding_systems_region_internal)
19124 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19125 get_translation_table with max_lookup NULL.
19126
19127 2008-02-01 Kenichi Handa <handa@m17n.org>
19128
19129 * coding.c (get_translation_table): Declare it as Lisp_Object.
19130 (LOOKUP_TRANSLATION_TABLE): New macro.
19131 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19132 instead of CHAR_TABLE_REF.
19133
19134 2008-02-01 Kenichi Handa <handa@m17n.org>
19135
19136 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19137 annotation data format.
19138 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19139 Change arguments FROM and TO to single argument NCHARS. Change caller.
19140 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19141 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19142 (decode_coding_ccl, decode_coding_charset): Pay attention to
19143 coding->charbuf_used.
19144 (get_translation): New function.
19145 (produce_chars): New arguments translation_table and last_block.
19146 Translate characters here. Return number of carryover chars.
19147 Change caller.
19148 (produce_composition): New argument pos. Change caller.
19149 Adjust for the change of annotation data format.
19150 (produce_charset, produce_annotation): Likewise.
19151 (decode_coding, encode_coding): Don't call translate_chars.
19152 (consume_chars): New arg translation_table. Change caller.
19153 (translate_chars): Delete.
19154 (syms_of_coding): Make translation-table's number of extra slots 2.
19155
19156 2008-02-01 Kenichi Handa <handa@m17n.org>
19157
19158 * search.c (simple_search): Fix setting this_pos_byte in backward
19159 search.
19160
19161 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19162 byte sequence.
19163 (detect_coding_ccl): Fix setting of the variable valids.
19164
19165 2008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19168
19169 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19170
19171 * editfns.c (Ftranslate_region_internal): Rename from
19172 Ftranslate_region. Accept a char-table in TABLE.
19173 (syms_of_editfns): Defsubr Stranslate_region_internal.
19174
19175 * xfaces.c (set_lface_from_font_name): If a font is specified for
19176 a frame, generate a fontset from the font.
19177 (build_scalable_font_name): If the scalable font is requested for
19178 a specific size, don't change that size.
19179 (try_font_list): Try a scalable font also in the case that a
19180 pattern string is specified.
19181
19182 2008-02-01 Kenichi Handa <handa@m17n.org>
19183
19184 * xfaces.c (Fface_font): New optional arg CHARACTER.
19185
19186 2008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * charset.h (CHARSET_OFFSET): New macro.
19189
19190 2008-02-01 Kenichi Handa <handa@m17n.org>
19191
19192 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19193
19194 * fontset.c (fontset_face): Handle the case that repertory is a
19195 char-table.
19196 (find_font_encoding): Return nil for unknown encoding.
19197 (Fset_fontset_font): Ignore a font of unknown encoding.
19198
19199 2008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 * keymap.c (describe_vector): Handle default value of a char table.
19202
19203 * fontset.c (fontset_face): Handle fallback fonts correctly.
19204 (Ffontset_info): Return infomation about fallback fonts.
19205
19206 2008-02-01 Kenichi Handa <handa@m17n.org>
19207
19208 * fontset.c (FONTSET_DEFAULT): New macro.
19209 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19210 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19211 the case that it is nil.
19212 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19213 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19214
19215 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19216 subset or superset.
19217
19218 2008-02-01 Kenichi Handa <handa@m17n.org>
19219
19220 * emacs.c (main): Call init_charset after syms_of_XXX.
19221
19222 * charset.c (Vcharset_map_directory): Delete.
19223 (Vcharset_map_path): New variable.
19224 (load_charset_map_from_file): Use Vcharset_map_path instead.
19225 (init_charset): Initialize Vcharset_map_path.
19226 (syms_of_charset): Delete declaration of "charset-map-directory",
19227 add declaration of "charset-map-path".
19228
19229 2008-02-01 Kenichi Handa <handa@m17n.org>
19230
19231 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19232 ASCII only string.
19233
19234 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19235
19236 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19237 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19238
19239 2008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19242
19243 * coding.c (QCmnemonic, QCdefalut_char)
19244 (QCdecode_translation_table, QCencode_translation_table)
19245 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19246 (get_translation_table): Return a list of translation tables if
19247 necessary.
19248 (decode_coding): Call get_translation_table with ENCODEP 0.
19249 (char_encodable_p): If translation_table is non-nil, always call
19250 translate_char.
19251 (Fdefine_coding_system_internal): Accept list of translation
19252 tables as :encode-translation-table and :decode-translation-table.
19253 (Fcoding_system_put): New function.
19254 (syms_of_coding): Declare new symbols. Defsubr
19255 Scoding_system_put.
19256 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19257 typically JISX0212.
19258
19259 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19260 when the charset is superset type.
19261
19262 * character.c (translate_char): Accept list of translation tables.
19263
19264 2008-02-01 Kenichi Handa <handa@m17n.org>
19265
19266 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19267 (CODING_ATTR_TRANS_TBL): New macro.
19268
19269 * coding.c (get_translation_table): New function.
19270 (translate_chars): Fix the bug of skipping annotation data.
19271 (decode_coding, encode_coding): Utilize get_translation_table.
19272 (char_encodable_p, Funencodable_char_position): Translate char if
19273 necessary.
19274 (Ffind_coding_systems_region_internal)
19275 (Fcheck_coding_systems_region): Setup translation table for encode
19276 in a coding system attribute vector in advance.
19277 (Fdefine_coding_system_internal): Allow a symbol as translation
19278 table. For shift-jis type coding system, allow 4th charset.
19279
19280 2008-02-01 Kenichi Handa <handa@m17n.org>
19281
19282 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19283
19284 * xdisp.c (get_next_display_element): Pass -1 as POS to
19285 FACE_FOR_CHAR if displaying a C-string.
19286
19287 2008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 * composite.c (get_composition_id): Handle xoff and yoff in a
19290 composition rule.
19291
19292 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19293 (struct composition): New member lbearing and rbearing.
19294
19295 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19296 (x_get_glyph_overhangs): Handle a composition glyph.
19297 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19298
19299 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19300 composition glyph.
19301
19302 2008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * print.c: Include charset.h.
19305 (Vprint_charset_text_property): New variable.
19306 (Qdefault): Extern it.
19307 (PRINT_STRING_NON_CHARSET_FOUND)
19308 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19309 (print_check_string_result): New variable.
19310 (print_check_string_charset_prop): New function.
19311 (print_prune_charset_plist): New variable.
19312 (print_prune_string_charset): New function.
19313 (print_object): Call print_prune_string_charset if
19314 Vprint_charset_text_property is not t.
19315 (print_interval): Print nothing if interval->plist is nil.
19316 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19317 variable. Init and staticpro print_prune_charset_plist.
19318
19319 2008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * fontset.c (new_fontset_from_font_name): Use the specified font
19322 for all characters in the new fontset.
19323
19324 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19325 OBJECT args.
19326
19327 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19328 OBJECT args for composition too.
19329
19330 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19331 OBJECT args.
19332
19333 2008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19336
19337 * fontset.c (reorder_font_vector): Adjust for the change of
19338 FONT_DEF format.
19339 (fontset_face): New arg id. Change caller.
19340 (face_for_char): New args pos and object.
19341 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19342 (fs_query_fontset): Check NAME by Fassoc too.
19343 (Fset_fontset_font): Allow non-XLFD font name.
19344 (Ffontset_info): Adjust for the change of FONT_DEF format.
19345
19346 * fontset.h (face_for_char): Adjust prototype.
19347
19348 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19349 (append_space, extend_face_to_end_of_line)
19350 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19351 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19352
19353 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19354 POS and OBJECT args.
19355
19356 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19357 POS and OBJECT args.
19358
19359 2008-02-01 Jason Rumney <jasonr@gnu.org>
19360
19361 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19362 of GlobalAlloc'ed memory.
19363
19364 2008-02-01 Kenichi Handa <handa@m17n.org>
19365
19366 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19367
19368 * charset.h (charset_table_used): Delete extern.
19369
19370 * charset.c (charset_table_used): Make it static.
19371 (map_charset_chars): Fix args to c_function with.
19372
19373 * chartab.c (map_sub_char_table_for_charset): Fix args to
19374 c_function with.
19375
19376 * coding.h (enum coding_result_code): Delete
19377 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19378
19379 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19380 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19381 (Vlast_code_conversion_error): New variables.
19382 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19383 (ONE_MORE_BYTE): Record error if any instead of signaling an
19384 error. If non-ASCII multibyte char is found, return the negative
19385 value of the code. All callers changed to check it.
19386 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19387 (record_conversion_result): New function. Change all codes setting
19388 coding->result to call this function.
19389 (detect_coding_utf_8, decode_coding_utf_8)
19390 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19391 Don't use the local variable incomplete.
19392 (emacs_mule_char): Change the second arg to `const'.
19393 (decode_coding): Fix of flushing out unprocessed data.
19394 (make_conversion_work_buffer): Fix making of a work buffer.
19395 (decode_coding_object): Return coding->dst_object.
19396
19397 * fontset.c (set_fontset_font): Fix args.
19398
19399 * lisp.h (CHARACTERBITS): Define as 22.
19400
19401 * process.c (send_process): Be sure to set coding->src_multibyte.
19402
19403 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19404
19405 2008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * xdisp.c (handle_auto_composed_prop): Give limit to
19408 Fnext_single_char_property_change.
19409
19410 2008-02-01 Kenichi Handa <handa@m17n.org>
19411
19412 * composite.c (syms_of_composite): Don't make the composition hash
19413 table weak.
19414
19415 * fontset.c (Fset_fontset_font): Fix docstring.
19416
19417 * lisp.h (detect_coding_system): Adjust prototype.
19418
19419 * fileio.c (kill_workbuf_unwind): Delete this function.
19420 (Finsert_file_contents): Adjust the call of detect_coding_system.
19421 Get conversion_buffer by code_conversion_save. Use the macro
19422 CODING_MAY_REQUIRE_DECODING. After decoding, update
19423 coding_system.
19424
19425 * coding.h (make_conversion_work_buffer): Delete extern.
19426 (code_conversion_save): Extern it.
19427
19428 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19429 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19430 (decode_coding_utf_8): Don't do eol converion.
19431 (detect_coding_utf_16): Check coding->src_chars, not
19432 coding->src_bytes. Add heuristics for those that have no signature.
19433 (decode_coding_emacs_mule, decode_coding_iso_2022)
19434 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19435 Don't do eol converion.
19436 (adjust_coding_eol_type): Return a new coding system.
19437 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19438 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19439 each change.
19440 (decode_coding): Pay attention to undo_list. Do eol conversion for
19441 all types of coding-systems (if necessary).
19442 (Vcode_conversion_work_buf_list): Delete it.
19443 (Vcode_conversion_reused_workbuf): Rename from
19444 Vcode_conversion_reused_work_buf.
19445 (Vcode_conversion_workbuf_name): New variable.
19446 (reused_workbuf_in_use): New variable.
19447 (make_conversion_work_buffer): Delete the arg DEPTH.
19448 (code_conversion_restore): Change argument to cons.
19449 (code_conversion_save): Delete the argument BUFFER. Change callers.
19450 (detect_coding_system): New argument src_chars. Change callers.
19451 Fix for utf-16 detection.
19452 (init_coding_once): Don't use ISO_carriage_return.
19453 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19454 reused_workbuf_in_use.
19455
19456 2008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * keymap.c (store_in_keymap): Pay attention to the case that idx
19459 is a cons specifying a character range.
19460
19461 2008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19464 HANDLED_RECOMPUTE_PROPS.
19465
19466 * coding.c (Fdefine_coding_system_internal): Fix checking of
19467 ascii compatibility.
19468
19469 2008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * charset.c (find_charsets_in_text): Delete unused locale variable.
19472 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19473
19474 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19475 Resync charset_list to Vemacs_mule_charset_list.
19476
19477 * keymap.c (store_in_keymap): Pay attention to the case that idx
19478 is a cons specifying a character range.
19479
19480 2008-02-01 Kenichi Handa <handa@m17n.org>
19481
19482 * composite.c (update_compositions): Bind inhibit-read-only, etc
19483 to t before calling remove-list-of-text-properties.
19484
19485 * print.c (print_object): Always print ASCII chars as is.
19486
19487 2008-02-01 Kenichi Handa <handa@m17n.org>
19488
19489 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19490
19491 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19492 is a char table.
19493
19494 2008-02-01 Kenichi Handa <handa@m17n.org>
19495
19496 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19497
19498 2008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 * xfaces.c (set_lface_from_font_name): Fix for the case that
19501 FONTNAME is not fontset name.
19502
19503 2008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * fns.c (base64_encode_1): Fix previous change.
19506
19507 2008-02-01 Kenichi Handa <handa@m17n.org>
19508
19509 * fontset.c (set_fontset_font): New function.
19510 (Fset_fontset_font): If a font is specified for a charset, use
19511 map_charset_chars to store the font spec in a fontset.
19512
19513 2008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * fontset.c (fontset_face): Create a fallback fontset on demand.
19516 (make_fontset): Don't create a fallback fontset here.
19517 (free_face_fontset): Free a fallback fontset (if any) too.
19518 (n_auto_fontsets): Delete this variable.
19519 (auto_fontset_alist): New variable.
19520 (new_fontset_from_font_name): Check auto_fontset_alist.
19521 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19522 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19523 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19524 Defsubr Sfontset_list_all.
19525
19526 2008-02-01 Kenichi Handa <handa@m17n.org>
19527
19528 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19529
19530 2008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19533
19534 2008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * editfns.c (Fgoto_char): Fix docstring.
19537
19538 2008-02-01 Kenichi Handa <handa@m17n.org>
19539
19540 * insdel.c (insert_from_gap): Adjust intervals correctly.
19541
19542 2008-02-01 Jason Rumney <jasonr@gnu.org>
19543
19544 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19545 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19546 (w32_initialize): Try to load it.
19547 (x_get_font_repertory): Use it if available.
19548 (w32_encode_char): Add shortcut for unicode output.
19549
19550 * w32fns.c (w32_load_system_font): Default charset to -1.
19551 (x_to_w32_charset): Match all fonts for unicode.
19552 (w32_to_x_charset): New parameter matching. Don't return partial
19553 or wildcard charsets.
19554 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19555 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19556 (w32_to_x_font): Match charset to real charset.
19557 (enum_font_cb2): Always list unicode versions.
19558
19559 * makefile.w32-in (temacs): Increase EMHEAP.
19560
19561 2008-02-01 Jason Rumney <jasonr@gnu.org>
19562
19563 * w32term.c (w32_encode_char): New charset parameter.
19564 font_info.encoding becomes encoding_type.
19565 (x_get_font_repertory): New function. Warning: stub only!
19566 (x_new_font): Return quickly if font already set.
19567 (x_new_fontset): fontsetname parameter is Lisp_Object.
19568 Use new fs_query_fontset. Try new_fontset_from_font_name.
19569 Use fontset_name for return value.
19570
19571 * w32term.h: Declare x_get_font_repertory.
19572
19573 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19574 place of find_charset_in_text. Use encode_coding_object in place
19575 of encode_coding.
19576 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19577 decode_coding.
19578
19579 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19580 of x_new_fontset.
19581 (w32_load_system_font): Initialize charset as unicode.
19582 font_info.encoding becomes encoding_type.
19583 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19584 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19585 (syms_of_w32fns): Set get_font_repertory_func.
19586
19587 * w32console.c: Include character.h. Use terminal_encode_buffer
19588 from term.c.
19589 (write_glyphs): Use new version of encode_terminal_code. Use
19590 encode_coding_object in place of encode_coding.
19591
19592 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19593 encoding becomes encoding_type.
19594
19595 * term.c (terminal_encode_buffer): Make externally visible.
19596
19597 * makefile.w32-in: Add character.h dependancies.
19598 (character.o, chartab.o): New targets.
19599
19600 2008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19603 CODING_ID_EOL_TYPE.
19604
19605 2008-02-01 Andreas Schwab <schwab@suse.de>
19606
19607 * coding.c (produce_chars): Revert last change.
19608
19609 2008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * charset.h (charset_unicode): Extern it.
19612
19613 * charset.c (string_xstring_p): Check by (C >= 0x100).
19614 (find_charsets_in_text): Change format of the arc CHARSETS. New
19615 arg MULTIBYTE.
19616 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19617 change of find_charsets_in_text.
19618 (Fsplit_char): Fix doc. Never return unknown.
19619
19620 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19621
19622 * coding.c (Fdefine_coding_system_alias): Update
19623 Vcoding_system_list.
19624
19625 * fontset.c (load_font_get_repertory): Pay attention to the case
19626 that ENCODING of a font is specified by a char-table.
19627
19628 * xterm.c (x_get_font_repertory): Handle the case that the
19629 encoding of font is other than Unicode.
19630
19631 2008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19634 if a character is encodable by the terminal coding system. If
19635 not, produces proper number of `?'s. Update
19636 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19637 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19638
19639 2008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19642 variables.
19643 (encode_terminal_code): Change argument. Encode multiple
19644 characters at once. Store the result of encoding in
19645 terminal_encode_buffer.
19646 (write_glyphs, insert_glyphs): Adjust for the change of
19647 encode_terminal_code.
19648 (term_init): Initialize terminal_encode_buffer and
19649 terminal_encode_buf_size.
19650
19651 * coding.c (consume_chars): If coding->src_object is nil, don't
19652 check annotation.
19653
19654 2008-02-01 Kenichi Handa <handa@m17n.org>
19655
19656 * character.c (char_string): Use ASCII_CHAR_P instead of
19657 SINGLE_BYTE_CHAR_P.
19658
19659 2008-02-01 Kenichi Handa <handa@m17n.org>
19660
19661 * xdisp.c (handle_auto_composed_prop): Check if the last
19662 characters of auto-composed region is newly composed with the
19663 following characters.
19664 (handle_composition_prop): Fix checking of point being inside
19665 composition.
19666
19667 2008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * fns.c (concat): Don't change multibyteness of the result by
19670 concatenating an 8-bit character.
19671
19672 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19673 multibyteness of the result when newelt is an 8-bit character.
19674
19675 2008-02-01 Dave Love <fx@gnu.org>
19676
19677 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19678 EMACS_INT.
19679
19680 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19681
19682 * xfaces.c (face_numeric_value): Declare dim size_t.
19683 (Finternal_lisp_face_equal_p): Remove unused f.
19684
19685 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19686 (MATRIX_ROW): Remove unused vars.
19687 (draw_glyphs, x_insert_glyphs, fast_find_position)
19688 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19689 byte/char counts.
19690
19691 * regex.c (regex_compile): Remove unused var.
19692
19693 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19694
19695 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19696 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19697
19698 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19699
19700 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19701
19702 * fileio.c (Fwrite_region): Remove unused var.
19703
19704 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19705 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19706
19707 * composite.c (Fremove_list_of_text_properties): Declare.
19708
19709 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19710 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19711 (coding_inherit_eol_type): Remove unused attrs.
19712 (detect_coding): Cast arg of detect_eol.
19713
19714 * charset.c (syms_of_charset): Remove unused var p.
19715 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19716 byte/char counts.
19717
19718 * casetab.c (set_case_table): Remove unused var.
19719
19720 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19721 unused vars.
19722
19723 2008-02-01 Dave Love <fx@gnu.org>
19724
19725 * xterm.c (x_bitmap_mask): Declare.
19726
19727 2008-02-01 Dave Love <fx@gnu.org>
19728
19729 * xterm.c (x_term_init): Fix type error.
19730
19731 * lisp.h: Add Funibyte_char_to_multibyte.
19732
19733 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19734 (Fset_coding_system_priority): Doc fix.
19735
19736 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19737
19738 * indent.c (check_composition): Make start and end EMACS_INT.
19739
19740 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19741
19742 * xdisp.c (handle_composition_prop, check_point_in_composition):
19743 Make buffer positions EMACS_INT.
19744
19745 * composite.c (find_composition, run_composition_function)
19746 (update_compositions, Ffind_composition_internal): Make buffer
19747 positions EMACS_INT.
19748
19749 * composite.h (find_composition, update_compositions): Make
19750 position args EMACS_INT.
19751
19752 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19753
19754 * intervals.c (get_property_and_range):
19755 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19756
19757 * unexalpha.c: Don't include varargs.h.
19758
19759 2008-02-01 Dave Love <fx@gnu.org>
19760
19761 * coding.h (ENCODE_UTF_8): New.
19762
19763 * Makefile.in (gtkutil.o): Depend on coding.h.
19764
19765 * coding.c (Fset_coding_system_priority): Doc fix.
19766
19767 2008-02-01 Kenichi Handa <handa@m17n.org>
19768
19769 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19770 the case of auto saving.
19771
19772 2008-02-01 Andreas Schwab <schwab@suse.de>
19773
19774 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19775 `range' from GC.
19776
19777 2008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19780
19781 2008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * fileio.c (choose_write_coding_system): Return a decided coding system.
19784 (Fwrite_region): Set Vlast_coding_system_used to the return value
19785 of choose_write_coding_system.
19786
19787 2008-02-01 Kenichi Handa <handa@m17n.org>
19788
19789 * charset.c (Fset_charset_priority): Pay attention to duplicated
19790 arguments.
19791
19792 * coding.c (QCcategory): New variable.
19793 (syms_of_coding): Defsym it. Set all elements of
19794 Vcoding_category_table and their symbol values.
19795 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19796 coding-category-XXX, and coding-category-list.
19797 (Fdefine_coding_system_internal): Add category in the plist.
19798
19799 2008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * callproc.c (Fcall_process): Handle carryover correctly.
19802
19803 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19804 (raw_text_coding_system): Check NILP (coding_system).
19805 (coding_inherit_eol_type): Check NILP (coding_system) and
19806 NILP (parent).
19807 (consume_chars): Fix for the case of raw-text.
19808
19809 * process.c (read_process_output): Handle carryover correctly.
19810
19811 2008-02-01 Dave Love <fx@gnu.org>
19812
19813 * regex.c (re_search_2): Fix last change.
19814
19815 2008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19818 target_multibyte. Even in a unibyte case, return a converted
19819 multibyte char.
19820 (GET_CHAR_AFTER): New macro.
19821 (PATFETCH): Translate via multibyte char.
19822 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19823 (SETUP_MULTIBYTE_RANGE): New macro.
19824 (regex_compile): Setup compiled code so that its multibyteness
19825 matches that of a target. Fix the handling of "[X-YZ]" using
19826 SETUP_MULTIBYTE_RANGE.
19827 (analyse_first) <charset>: For filling fastmap for all multibyte
19828 characters, don't check by BASE_LEADING_CODE_P.
19829 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19830 the same as RE_MULTIBYTE_P (bufp) now.
19831 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19832 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19833 (TRANSLATE_VIA_MULTIBYTE): New macro.
19834 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19835 It is the same as RE_MULTIBYTE_P (bufp) now.
19836 <exactn>: Translate via multibyte.
19837 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19838 translate it.
19839 <charset, charset_not>: Fetch a character by
19840 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19841 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19842 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19843 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19844 by GET_CHAR_AFTER.
19845 (bcmp_translate): Likewise.
19846
19847 * search.c (compile_pattern): Check the member target_multibyte,
19848 not the member multibyte of buf.
19849
19850 * lread.c (read1): While reading a string, set force_singlebyte
19851 and force_multibyte correctly.
19852
19853 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19854 up of unibyte_to_multibyte_table.
19855
19856 2008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * coding.c (setup_coding_system): If coding has
19859 post-read-conversion or pre-write-conversion, set
19860 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19861 respectively.
19862 (decode_coding_gap): Run post-read-conversion if any.
19863
19864 * fileio.c (Finsert_file_contents): Even if we read into a
19865 unibyte buffer, check if we must decode the result or not.
19866
19867 2008-02-01 Kenichi Handa <handa@m17n.org>
19868
19869 * coding.c (make_conversion_work_buffer): Change the work buffer
19870 name to the same one as that of Emacs 21.
19871
19872 2008-02-01 Kenichi Handa <handa@m17n.org>
19873
19874 * coding.h (make_conversion_work_buffer): Adjust prototype.
19875 (code_conversion_restore): Don't extern it.
19876
19877 * coding.c (detected_mask): Delete unused variable.
19878 (decode_coding_iso_2022): Pay attention to the byte sequence of
19879 CTEXT extended segment, and retain those bytes as is.
19880 (decode_coding_ccl): Delete unused variable `valids'.
19881 (setup_coding_system): Delete unused variable `category'.
19882 (consume_chars): Delete unused variable `category'. Make it work
19883 for non-multibyte case.
19884 (make_conversion_work_buffer): Change argument.
19885 (saved_coding): Delete unused variable.
19886 (code_conversion_restore): Don't check saved_coding->destination.
19887 (code_conversion_save): New function.
19888 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19889 instead of record_unwind_protect.
19890 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19891 (detect_coding_system): Delete unused variable `mask'.
19892 (Fdefine_coding_system_internal): Delete unused variable id.
19893
19894 * fileio.c (kill_workbuf_unwind): New function.
19895 (Finsert_file_contents): On replacing, call
19896 make_conversion_work_buffer with correct args, and call
19897 record_unwind_protect with the first arg kill_workbuf_unwind.
19898
19899 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19900
19901 2008-02-01 Kenichi Handa <handa@m17n.org>
19902
19903 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19904 (fontset_add): Fix for the case that TO is less than TO1.
19905 (Ffontset_info): Don't use fallback fontset on checking the
19906 default fontset.
19907 (dump_fontset): New function for debugging.
19908
19909 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19910 coding_type is Qcharset.
19911
19912 2008-02-01 Kenichi Handa <handa@m17n.org>
19913
19914 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19915 (map_char_table): Don't inherit the value from the parent on
19916 initializing VAL. Adjust for the above change.
19917
19918 2008-02-01 Kenichi Handa <handa@m17n.org>
19919
19920 * coding.c (Qsignature, Qendian): Delete these variables.
19921 (syms_of_coding): Don't initialize them.
19922 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19923 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19924 detect_info->found.
19925 (decode_coding_utf_16): Don't detect BOM here.
19926 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19927 is NOT utf_16_without_bom.
19928 (setup_coding_system): For a coding system of type utf-16, check
19929 if the attribute :endian is Qbig or not (not nil or not), and set
19930 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19931 (detect_coding): If coding type is utf-16 and BOM detection is
19932 required, detect it.
19933 (Fdefine_coding_system_internal): For a coding system of type
19934 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19935
19936 2008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * coding.c (coding_set_source): Fix for the case that the current
19939 buffer is different from coding->src_object.
19940 (decode_coding_object): Don't use the conversion work buffer if
19941 DST_OBJECT is a buffer.
19942
19943 2008-02-01 Dave Love <fx@gnu.org>
19944
19945 * lread.c (read_emacs_mule_char) [len==2]: Index
19946 emacs_mule_charset correctly.
19947
19948 2008-02-01 Dave Love <fx@gnu.org>
19949
19950 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19951 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19952 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19953 treated specially.)
19954 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19955 (detected_mask): Remove Big5 bits.
19956
19957 2008-02-01 Kenichi Handa <handa@m17n.org>
19958
19959 The following changes are to make the font rescaling facility
19960 compatible with Emacs 21.
19961
19962 * xfaces.c (Vface_font_rescale_alist): Rename from
19963 Vface_resizing_fonts.
19964 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19965 (font_rescale_ratio): Rename from font_resizing_ratio.
19966 (split_font_name): Set font->rescale_ratio.
19967 (better_font_p): Pay attention to font->rescale_ratio.
19968 (build_scalable_font_name): Likewise. Change RESX, and RESY
19969 fields.
19970 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19971
19972 2008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19975 (Qutf_16_le): Remove these variables.
19976 (syms_of_coding): Don't DEFSYM them.
19977 (decode_coding_utf_16): Fix handling of BOM.
19978 (encode_coding_utf_16): Fix handling of BOM.
19979
19980 2008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * fileio.c (Finsert_file_contents): On replacing, before decoding
19983 the file into the work buffer, set point of the work buffer to the end.
19984
19985 2008-02-01 Dave Love <fx@gnu.org>
19986
19987 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19988
19989 2008-02-01 Dave Love <fx@gnu.org>
19990
19991 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19992 and fix C types.
19993
19994 2008-02-01 Kenichi Handa <handa@m17n.org>
19995
19996 * xdisp.c (SKIP_GLYPHS): New macro.
19997 (set_cursor_from_row): Pay attention to string display properties.
19998
19999 * category.c (copy_category_entry): Fix for the case that RANGE
20000 is an integer.
20001
20002 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20003
20004 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20005
20006 2008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * charset.c (Fcharset_id_internal): New function.
20009 (syms_of_charset): Defsubr it.
20010
20011 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20012 with the last arg charset_list acquired from coding.
20013 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20014 the attribute coding_attr_ccl_valids.
20015
20016 * coding.h (enum define_coding_ccl_arg_index): Set the first
20017 member coding_arg_ccl_decoder to coding_arg_max.
20018
20019 * ccl.h (ccl_driver): Adjust prototype.
20020
20021 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20022 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
20023 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20024 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20025 last arg Qnil.
20026
20027 2008-02-01 Kenichi Handa <handa@m17n.org>
20028
20029 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20030 call encode_char.
20031
20032 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20033
20034 2008-02-01 Dave Love <fx@gnu.org>
20035
20036 * composite.c (syms_of_composite): Make composition_hash_table weak.
20037
20038 2008-02-01 Kenichi Handa <handa@m17n.org>
20039
20040 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20041 (font_name_registry): Don't extern them.
20042 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20043
20044 * fontset.h (Qfontset): Don't extern it.
20045 (new_fontset_from_font_name): Extern it.
20046
20047 * fontset.c: Give 8 extra slots to fontset objects.
20048 (Qfontset_info): New variable.
20049 (syms_of_fontset): Defsym it.
20050 (FONTSET_FALLBACK): New macro.
20051 (fontset_face): Try also the default fontset.
20052 (make_fontset): Realize a fallback fontset from the default fontset.
20053 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20054 using split_font_name_into_vector and build_font_name_from_vector.
20055 (Fset_fontset_font): Access the elements of font_spec by enum
20056 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20057 name by using split_font_name_into_vector.
20058 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20059 generate a proper font name from the fontset name. Update
20060 Vfontset_alias_alist.
20061 (n_auto_fontsets): New variable.
20062 (new_fontset_from_font_name): New function.
20063 (Ffont_info): Store the information about fonts generated from the
20064 default fontset in the first extra slot of the returned char-table.
20065
20066 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20067 (font_name_registry): Delete function.
20068 (split_font_name_into_vector): New function.
20069 (build_font_name_from_vector): New function.
20070 (font_list): The argument REGISTRY is now a list of registry names.
20071 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20072 specifies an explicit font name, return the name as is. Make a
20073 list of registy names.
20074
20075 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20076 of x_new_fontset.
20077 (Fx_create_frame): Don't call x_new_fontset here. Just use
20078 x_list_fonts to check the existence of fonts.
20079
20080 * xterm.h (x_new_fontset): Adjust prototype.
20081
20082 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20083 string. Use new_fontset_from_font_name to create a fontset from a
20084 font name.
20085
20086 2008-02-01 Kenichi Handa <handa@m17n.org>
20087
20088 * syntax.c (Vfind_word_boundary_function_table): New name for
20089 Vnext_word_boundary_function_table.
20090 (find-word-boundary-function-table): New name for
20091 next-word-boundary-function-table.
20092
20093 2008-02-01 Dave Love <fx@gnu.org>
20094
20095 * Makefile.in: Fix some dependencies.
20096
20097 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20098 set it to nil before returning.
20099
20100 * composite.c (update_compositions): Fix type error.
20101
20102 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20103
20104 2008-02-01 Kenichi Handa <handa@m17n.org>
20105
20106 * xterm.c (x_new_font): Optimize for the case that the font is
20107 already set for the frame.
20108
20109 2008-02-01 Kenichi Handa <handa@m17n.org>
20110
20111 * chartab.c (char_table_ascii): Check if the char table contents
20112 is sub-char-table or not.
20113 (char_table_set, char_table_set_range): Fix argument to
20114 char_table_ascii.
20115
20116 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20117 (detect_coding_utf_8, detect_coding_utf_16)
20118 (detect_coding_emacs_mule, detect_coding_iso_2022)
20119 (detect_coding_sjis, detect_coding_big5)
20120 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20121 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20122 sequence is valid in this coding system. Change callers.
20123 (MAX_ANNOTATION_LENGTH): New macro.
20124 (ADD_ANNOTATION_DATA): New macro.
20125 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20126 ADD_ANNOTATION_DATA. Change the format of annotation data.
20127 (ADD_CHARSET_DATA): New macro.
20128 (emacs_mule_char): New argument ID. Change callers.
20129 (decode_coding_emacs_mule, decode_coding_iso_2022)
20130 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20131 Produce charset annotation data in coding->charbuf.
20132 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20133 to charset annotation data in coding->charbuf.
20134 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20135 coding->common_flags if the coding system is iso-2022 based and
20136 uses designation.
20137 (produce_composition): Adjust for the new annotation data format.
20138 (produce_charset): New function.
20139 (produce_annotation): Handle charset annotation.
20140 (handle_composition_annotation, handle_charset_annotation): New
20141 functions.
20142 (consume_chars): Handle charset annotation. Utilize the above two
20143 functions.
20144 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20145 buffer, get the deleted text as a string and set
20146 coding->src_object to that string.
20147 (detect_coding, detect_coding_system): Use the new struct
20148 coding_detection_info.
20149
20150 * coding.h (struct coding_detection_info): New structure.
20151 (struct coding_system): Adjust prototype of the member `detector'.
20152 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20153
20154 2008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20157
20158 2008-02-01 Dave Love <fx@gnu.org>
20159
20160 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20161 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20162 to new local and nullify apropos_accumulate before returning.
20163 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20164
20165 2008-02-01 Kenichi Handa <handa@m17n.org>
20166
20167 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20168 correctly.
20169
20170 2008-02-01 Dave Love <fx@gnu.org>
20171
20172 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20173
20174 2008-02-01 Kenichi Handa <handa@m17n.org>
20175
20176 The following changes are to make character composition happen
20177 automatically on displaying.
20178
20179 * Makefile.in (lisp, shortlisp): Add composite.elc.
20180
20181 * composite.h (Qauto_composed, Vauto_composition_function)
20182 (Qauto_composition_function): Extern them.
20183
20184 * composite.c (Vcomposition_function_table)
20185 (Qcomposition_function_table): Delete variables.
20186 (Qauto_composed, Vauto_composition_function)
20187 (Qauto_composition_function): New variables.
20188 (run_composition_function): Don't call
20189 compose-chars-after-function.
20190 (update_compositions): Clear `auto-composed' text property.
20191 (compose_chars_in_text): Delete this function.
20192 (syms_of_composite): Staticpro Qauto_composed and
20193 Qauto_composition_function. Declare Vauto_composition_function as
20194 a Lisp variable.
20195
20196 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20197
20198 * xdisp.c (it_props): Add an entry for Qauto_composed.
20199 (handle_auto_composed_prop): New function.
20200
20201 * xselect.c (selection_data_to_lisp_data): Don't call
20202 compose_chars_in_text.
20203
20204 2008-02-01 Dave Love <fx@gnu.org>
20205
20206 * keyboard.c (read_char): Modify checking around use of
20207 Vkeyboard_translate_table.
20208
20209 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20210 and fix C types.
20211
20212 2008-02-01 Kenichi Handa <handa@m17n.org>
20213
20214 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20215 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20216 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20217 the case that the last byte is '\r' correctly.
20218 (decode_coding): Flush out the unprocessed data correctly.
20219 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20220
20221 2008-02-01 Dave Love <fx@gnu.org>
20222
20223 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20224 Add XK_ISO... case.
20225 (xaw_scroll_callback): Revert last change.
20226
20227 2008-02-01 Kenichi Handa <handa@m17n.org>
20228
20229 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20230
20231 2008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * xfaces.c (Vface_resizing_fonts): New variable.
20234 (struct font_name): New member `resizing_ratio'.
20235 (font_resizing_ratio): New function.
20236 (split_font_name): Set font->resizing_ratio.
20237 (better_font_p): Pay attention to font->resizing_ratio.
20238 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20239 RESX, and RESY fields.
20240 (try_alternative_families): Try scalable fonts if
20241 Vscalable_fonts_allowed is not Qt.
20242 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20243
20244 2008-02-01 Dave Love <fx@gnu.org>
20245
20246 * xterm.c (xaw_scroll_callback): Cast correctly.
20247
20248 2008-02-01 Dave Love <fx@gnu.org>
20249
20250 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20251 (lispy_kana_keys): Comment out.
20252 (make_lispy_event) [XK_kana_A]: Comment out.
20253
20254 * xterm.c (xaw_scroll_callback): Cast call_data.
20255 (XTread_socket): Deal with ASCII keysyms.
20256 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20257
20258 2008-02-01 Dave Love <fx@gnu.org>
20259
20260 * xterm.c (Vx_keysym_table): New.
20261 (syms_of_xterm): Initialize it.
20262 (XTread_socket): Use it.
20263 From head: Eliminate incorrect optimization that tried to avoid
20264 decoding the output of X*LookupString.
20265 (x_get_font_repertory): Delete charset declaration.
20266
20267 2008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20270 return 0.
20271 (Fdefine_coding_system_internal): Setup
20272 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20273
20274 2008-02-01 Dave Love <fx@gnu.org>
20275
20276 * coding.c (Fcheck_coding_system): Doc fix.
20277
20278 * editfns.c (Finsert_byte): Return a proper value.
20279
20280 2008-02-01 Kenichi Handa <handa@m17n.org>
20281
20282 * coding.c (decode_coding): Fix args to translate_chars. Pay
20283 attention to Vstandard_translation_table_for_decode.
20284 (encode_coding): Fix args to translate_chars. Pay attention to
20285 Vstandard_translation_table_for_encode.
20286
20287 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20288 SINGLE_BYTE_CHAR_P.
20289
20290 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20291 not by SINGLE_BYTE_CHAR_P.
20292
20293 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20294 SINGLE_BYTE_CHAR_P.
20295
20296 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20297 SINGLE_BYTE_CHAR_P.
20298
20299 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20300 by SINGLE_BYTE_CHAR_P.
20301
20302 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20303 SINGLE_BYTE_CHAR_P.
20304
20305 2008-02-01 Dave Love <fx@gnu.org>
20306
20307 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20308
20309 2008-02-01 Dave Love <fx@gnu.org>
20310
20311 * fns.c (Flanginfo): Fix typo.
20312
20313 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20314
20315 2008-02-01 Kenichi Handa <handa@m17n.org>
20316
20317 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20318 (detect_coding_emacs_mule, detect_coding_iso_2022)
20319 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20320 incomplete byte sequence. Don't update *mask when correctly detected.
20321 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20322 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20323 (detect_coding, detect_coding_system): Adjust for the changes above.
20324
20325 2008-02-01 Kenichi Handa <handa@m17n.org>
20326
20327 * character.c (char_string): Rename from
20328 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20329 (string_char): Rename from string_char.
20330
20331 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20332 if C is greater than MAX_3_BYTE_CHAR.
20333 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20334 string_char instead of string_char_with_unification.
20335
20336 2008-02-01 Dave Love <fx@gnu.org>
20337
20338 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20339
20340 2008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 * keymap.c (push_key_description): Pay attention to force_multibyte.
20343
20344 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20345
20346 2008-02-01 Dave Love <fx@gnu.org>
20347
20348 * charset.c (define_charset_internal): Rename `supprementary'.
20349
20350 * Makefile.in (lisp, shortlisp): Remove latin-N.
20351
20352 2008-02-01 Dave Love <fx@gnu.org>
20353
20354 * xfns.c (x_window, x_window): Use use_xim.
20355
20356 * xterm.c (use_xim): Initialize.
20357 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20358 (x_term_init): Maybe set use_xim.
20359
20360 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20361
20362 2008-02-01 Kenichi Handa <handa@m17n.org>
20363
20364 * search.c (search_buffer): Fix case-fold-search of multibyte
20365 characters.
20366 (boyer_moore): Rename the last argument to char_high_bits.
20367
20368 2008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * xdisp.c (display_string): Fix for the case of zero width glyph.
20371
20372 * xfns.c (x_set_font): Change the error message of the case that
20373 x_new_fontset returns Qt.
20374
20375 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20376 (Finternal_set_lisp_face_attribute): Use signal_error for the
20377 error of invalid fontset.
20378
20379 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20380 fontset, return Qt.
20381
20382 2008-02-01 Dave Love <fx@gnu.org>
20383
20384 * unexelf.c (unexec): Make .got handling not SGI-specific.
20385
20386 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20387
20388 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20389
20390 * keyboard.c (read_key_sequence): Fix type error.
20391
20392 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20393 type error.
20394
20395 * fontset.c (fontset_add): Return Lisp_Object.
20396
20397 2008-02-01 Dave Love <fx@gnu.org>
20398
20399 * charset.h (charset_ordered_list_tick): Declare extern.
20400
20401 2008-02-01 Kenichi Handa <handa@m17n.org>
20402
20403 The following changes (and some of 2008-02-01 changes of mine) are
20404 for handling syntax, category, and case conversion for unibyte
20405 characters by converting them to multibyte on the fly. With these
20406 changes, we don't have to setup syntax and case tables for unibyte
20407 characters in each language environment.
20408
20409 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20410 multibyte if necessary.
20411
20412 * bytecode.c (Fbyte_code): Likewise.
20413
20414 * character.h (LEADING_CODE_LATIN_1_MIN)
20415 (LEADING_CODE_LATIN_1_MAX): New macros.
20416 (unibyte_to_multibyte_table): Extern it.
20417 (unibyte_char_to_multibyte): New macro.
20418 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20419 (CHAR_LEADING_CODE): New macro.
20420 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20421
20422 * character.c (unibyte_to_multibyte_table): New variable.
20423 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20424 (multibyte_char_to_unibyte): If C is an eight-bit character,
20425 convert it to the corresponding byte value.
20426
20427 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20428 not 1, signals an error. Update the elements of
20429 unibyte_to_multibyte_table.
20430 (init_charset_once): Initialize unibyte_to_multibyte_table.
20431 (syms_of_charset): Define the charset `iso-8859-1'.
20432
20433 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20434 as is without converting it to unibyte. In a unibyte buffer,
20435 convert C to multibyte before checking the syntax.
20436
20437 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20438
20439 * minibuf.c (Fminibuffer_complete_word): Use the macro
20440 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20441
20442 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20443
20444 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20445 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20446 that is zero, convert an eight-bit char to multibyte.
20447 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20448 non-emacs case.
20449 (PATFETCH): Convert an eight-bit char to multibyte.
20450 (HANDLE_UNIBYTE_RANGE): New macro.
20451 (regex_compile): Setup the compiled pattern for multibyte chars
20452 even if the given regex string is unibyte. Use PATFETCH_RAW
20453 instead of PATFETCH in many places. To handle `charset'
20454 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20455 only for ASCII chars.
20456 (analyse_first) <exactn>: Simplify because the compiled pattern
20457 is multibyte.
20458 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20459 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20460 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20461 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20462 multibyte always 1.
20463 (re_search_2): In emacs, set the locale variable multibyte to 1,
20464 otherwise to 0. New local variable target_multibyte. Check it
20465 to decide the multibyteness of STR1 and STR2. If
20466 target_multibyte is zero, convert unibyte chars to multibyte
20467 before translating and checking fastmap.
20468 (TARGET_CHAR_AND_LENGTH): New macro.
20469 (re_match_2_internal): In emacs, set the locale variable multibyte
20470 to 1, otherwise to 0. New local variable target_multibyte. Check
20471 it to decide the multibyteness of STR1 and STR2. Use
20472 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20473 <charset, charset_not>: If multibyte is nonzero, check fastmap
20474 only for ASCII chars. Call bcmp_translate with
20475 target_multibyte, not with multibyte.
20476 <begline>: Declare the local variable C as `unsigned'.
20477 (bcmp_translate): Change the last arg name to target_multibyte.
20478
20479 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20480 the regexp pattern and the matching target. Set cp->buf.multibyte
20481 to the multibyteness of the regexp pattern. Set
20482 cp->but.target_multibyte to the multibyteness of the matching target.
20483 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20484 FETCH_STRING_CHAR_ADVANCE.
20485 (Freplace_match): Convert unibyte chars to multibyte.
20486
20487 * syntax.c (char_quoted, back_comment, scan_words)
20488 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20489 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20490 unibyte chars to multibyte.
20491 (skip_chars): Delete the arg syntaxp, and move the code for
20492 handling syntaxes to skip_syntaxes. Change callers.
20493 Fix the case that the multibyteness of STRING and the current
20494 buffer doesn't match.
20495 (skip_syntaxes): New function.
20496 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20497 SINGLE_BYTE_CHAR_P.
20498
20499 2008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * xfaces.c (QCfontset): New variable.
20502 (LFACE_FONTSET): New macro.
20503 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20504 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20505 (Finternal_set_lisp_face_attribute)
20506 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20507 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20508 check also LFACE_FONTSET_INDEX.
20509 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20510 attrs[LFACE_FONT_INDEX].
20511 (syms_of_xfaces): Intern and staticpro QCfontset.
20512
20513 * dispextern.h (enum lface_attribute_index): New member
20514 LFACE_FONTSET_INDEX.
20515
20516 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20517
20518 2008-02-01 Kenichi Handa <handa@m17n.org>
20519
20520 * coding.c (coding_set_destination): Fix coding->destination for
20521 the case converting a region.
20522 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20523 (encode_coding_object): Fix coding->dst_pos and
20524 coding->dst_pos_byte for the case converting a region.
20525
20526 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20527
20528 * character.h (BYTE8_STRING): New macro.
20529
20530 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20531
20532 2008-02-01 Kenichi Handa <handa@m17n.org>
20533
20534 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20535 characters by octal form.
20536
20537 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20538
20539 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20540 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20541 _fetch_multibyte_char_len.
20542 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20543
20544 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20545
20546 * casefiddle.c (casify_object): Simplify. Handle the case that
20547 the case conversion change the byte length.
20548 (casify_region): Likewise.
20549
20550 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20551
20552 * character.c (_fetch_multibyte_char_len): Delete this variable.
20553 (syms_of_character): Setup Vprintable_chars.
20554
20555 * editfns.c (Fchar_equal): Fix for the unibyte case.
20556 (Finsert_byte): New function.
20557 (syms_of_editfns): Defsubr it.
20558
20559 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20560 of direct code 0x3ffff.
20561
20562 * search.c (Freplace_match): Fix for the unibyte case.
20563
20564 2008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * lread.c (safe_to_load_p): Fix the logic.
20567
20568 * syntax.c (scan_words): Don't treat characters belonging to
20569 different scripts as constituting a word.
20570
20571 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20572
20573 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20574
20575 * emacs.c (main): In the case of --unibyte, instead of aborting on
20576 finding non-empty buffer, make it unibyte.
20577
20578 2008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20581 to create a fontset.
20582
20583 2008-02-01 Dave Love <fx@gnu.org>
20584
20585 * character.c (Funibyte_char_to_multibyte): Doc fix.
20586
20587 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20588
20589 2008-02-01 Kenichi Handa <handa@m17n.org>
20590
20591 * fontset.c (fontset_add): Make the type `int'.
20592 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20593
20594 * character.c (unibyte_char_to_multibyte)
20595 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20596 charset_unibyte, not charset_primary.
20597
20598 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20599
20600 * charset.c (charset_unibyte): Rename from charset_primary.
20601 (Funibyte_charset): Rename from Fprimary_charset.
20602 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20603 (syms_of_charset): Adjust for the above changes.
20604
20605 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20606 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20607 it->multibyte_p is zero.
20608
20609 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20610 Delete extern.
20611
20612 2008-02-01 Kenichi Handa <handa@m17n.org>
20613
20614 * coding.c (Fdefine_coding_system_internal): Fix category setting
20615 for a coding system of type iso-2022.
20616
20617 2008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20620
20621 2008-02-01 Kenichi Handa <handa@m17n.org>
20622
20623 * syntax.c (Vnext_word_boundary_function_table): New variable.
20624 (next-word-boundary-function-table): Declare it as a Lisp variable
20625 in syms_of_syntax.
20626 (scan_words): Call functions in Vnext_word_boundary_function_table
20627 if any.
20628
20629 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20630
20631 * fontset.c (fs_load_font): If fontp->charset is not negative,
20632 return fontp without setting its members.
20633
20634 2008-02-01 Dave Love <fx@gnu.org>
20635
20636 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20637
20638 * m/sparc.h (HAVE_ALLOCA): Delete.
20639
20640 * s/irix6-5.h: Don't include strings.h.
20641 (bcopy, bzero, bcmp): Don't undef.
20642
20643 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20644
20645 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20646 (TIOCSIGSEND): Don't test IRIX6.
20647 (bcopy, bzero, bcmp): Define conditionally.
20648
20649 2008-02-01 Kenichi Handa <handa@m17n.org>
20650
20651 * buffer.c (Qas, Qmake, Qto): New variables.
20652 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20653 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20654
20655 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20656 we are inserting a process output into a multibyte buffer.
20657
20658 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20659 multibyte_char_to_unibyte.
20660
20661 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20662 by the primary charset, make it eight-bit char.
20663 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20664
20665 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20666 (charset_8_bit__control, charset_8_bit_graphic)
20667 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20668 (define_charset_internal): New function.
20669 (syms_of_charset): Call define_charset_internal for pre-defined
20670 charsets.
20671
20672 * charset.h (charset_8_bit): Extern it.
20673
20674 * coding.c (make_conversion_work_buffer): Adjust for the change
20675 of Fset_buffer_multibyte.
20676 (encode_coding_raw_text): Increment p0 in the loop.
20677
20678 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20679
20680 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20681 for the change of Fset_buffer_multibyte.
20682
20683 * fns.c (Fstring_to_multibyte): New function.
20684 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20685
20686 2008-02-01 Dave Love <fx@gnu.org>
20687
20688 * xfns.c (x_put_x_image): Declare args.
20689
20690 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20691 (try_font_list): Declare an arg.
20692
20693 * xdisp.c (message2_nolog, set_message): Declare an arg.
20694
20695 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20696
20697 * syntax.c (scan_sexps_forward): Declare an arg.
20698
20699 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20700 Declare an arg.
20701
20702 * lisp.h (Fnew_fontset): Declare.
20703
20704 * keymap.c (push_key_description): Call CHARACTERP correctly.
20705
20706 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20707 (face_for_char): Delete unused vars.
20708 (Fset_fontset_font): Doc fix. Delete unused vars.
20709
20710 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20711
20712 * composite.c (update_compositions): Declare arg.
20713
20714 * cm.c (calccost, cmgoto): Declare args.
20715
20716 * charset.c: Remove `emacs' conditional. Doc fixes.
20717 (map_char_table_for_charset): Declare.
20718
20719 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20720
20721 * ccl.c: Remove `emacs' conditional.
20722
20723 2008-02-01 Kenichi Handa <handa@m17n.org>
20724
20725 The following changes are to allow specifying multiple font
20726 patterns for a character range (specified by script or charset).
20727
20728 * Makefile.in (abbrev.o): Depend on syntax.h.
20729 (xfaces.o): Depend on charset.h.
20730
20731 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20732 SINGLE_BYTE_CHAR_P.
20733
20734 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20735
20736 * character.h (Vchar_script_table): Extern it.
20737
20738 * character.c (Vscript_alist): Delete.
20739 (Vchar_script_table, Qchar_script_table): New variable.
20740 (syms_of_character): Declare Vchar_script_table as a lisp variable
20741 and initialize it.
20742
20743 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20744 have property char-table-extra-slots, make no extra slot.
20745
20746 * dispextern.h (struct face): Delete member `charset'.
20747 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20748 SINGLE_BYTE_CHAR_P.
20749 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20750 Add prototypes.
20751 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20752 (generate_ascii_font_name): Rename from generate_ascii_font.
20753
20754 * fontset.h (get_font_repertory_func): New prototype.
20755 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20756 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20757
20758 * fontset.c (Qprepend, Qappend): New variables.
20759 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20760 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20761 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20762 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20763 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20764 (load_font_get_repertory): New functions.
20765 (fontset_set): Delete.
20766 (fontset_face): New arg FACE. Return face ID, not face.
20767 Complete re-write to handle new fontset structure. Change caller.
20768 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20769 (face_for_char): Don't call lookup_face.
20770 (make_fontset_for_ascii_face): New arg FACE.
20771 (fs_load_font): New arg CHARSET_ID. Don't check
20772 Vfont_encoding_alist here.
20773 (find_font_encoding): New function.
20774 (list_fontsets): Use STRINGP, not ! NILP.
20775 (accumulate_script_ranges): New function.
20776 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20777 re-written to handle new fontset structure.
20778 (Ffontset_font): Return a copy of element.
20779 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20780 docstring of font-encoding-alist.
20781
20782 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20783 (Fset_fotset_font): Fix arguments to 5.
20784
20785 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20786
20787 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20788 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20789 (highlight_trailing_whitespace): Adjust for the change of
20790 lookup_named_face.
20791
20792 * xfaces.c: Include charset.h.
20793 (load_face_font): Delete argument C. Change caller.
20794 (generate_ascii_font_name): Rename from generate_ascii_font.
20795 (font_name_registry): New function.
20796 (cache_face): Store ascii faces before non-ascii faces in buckets.
20797 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20798 Lookup only ascii faces.
20799 (lookup_non_ascii_face): New function.
20800 (lookup_named_face): Delete argument C. Change caller.
20801 (lookup_derived_face): Delete argument C. Change caller.
20802 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20803 a string, just call font_list with it.
20804 (choose_face_font): Delete arguments FACE and C. New arg
20805 FONT_SPEC. Change caller.
20806 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20807 Change caller.
20808 (realize_non_ascii_face): New function.
20809 (realize_x_face): Call load_face_font here.
20810 (realize_tty_face): Delete argument C. Change caller.
20811 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20812 get a face ID.
20813 (dump_realized_face): Don't print charset of FACE.
20814
20815 * xfns.c (x_set_font): Always call x_new_fontset and
20816 store_frame_parameter.
20817 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20818 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20819
20820 * xterm.h (x_get_font_repertory): Extern it.
20821
20822 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20823 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20824 it->multibyte_p is zero.
20825 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20826 (x_new_fontset): If FONTSETNAME doesn't match any existing
20827 fontsets, create a new one.
20828 (x_get_font_repertory): New function.
20829
20830 2008-02-01 Kenichi Handa <handa@m17n.org>
20831
20832 * coding.c (Ffind_coding_systems_region_internal): Detect an
20833 ASCII only string correctly.
20834
20835 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20836 version is 0.
20837
20838 2008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * lread.c: Include "coding.h".
20841 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20842 (load_each_byte, unread_char): New variables.
20843 (readchar_backlog): Delete.
20844 (readchar): Return a character unless load_each_byte is nonzero.
20845 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20846 cons. If unread_char is not -1, simply return it.
20847 (unreadchar): Handle the case that readcharfun is
20848 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20849 (read_multibyte): Delete.
20850 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20851 (read_emacs_mule_char): New functions.
20852 (Fload): Even if the file doesn't have the extension ".elc", if
20853 safe_to_load_p returns a positive version number, assume that the
20854 file contains bytecompiled code. If the version is less than 22,
20855 load the file while decoding multibyte sequences by emacs-mule.
20856 (readevalloop): Don't use readchar_backlog.
20857 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20858 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20859 (read_escape): Delete the arg BYTEREP.
20860 (read1): Set load_each_byte to 1 temporarily while handling
20861 #@NUMBER. Don't call read_multibyte.
20862 (read_vector): Call Fread with a cons. If readcharfun is
20863 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20864 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20865 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20866 and Qload_force_doc_strings.
20867
20868 2008-02-01 Kenichi Handa <handa@m17n.org>
20869
20870 * xdisp.c (face_before_or_after_it_pos): Call
20871 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20872
20873 2008-02-01 Kenichi Handa <handa@m17n.org>
20874
20875 * character.h (TRAILING_CODE_P): New macro.
20876 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20877 (string_char_with_unification): Fix prototype.
20878 (Vscript_alist): Extern it.
20879
20880 * character.c (Vscript_alist): New variable.
20881 (string_char_with_unification, str_as_unibyte)
20882 (string_escape_byte8): Add `const' to local variables.
20883 (syms_of_character): Declare script-alist as a Lisp variable.
20884
20885 * charset.h (Vcharset_ordered_list): Extern it.
20886 (charset_ordered_list_tick): Extern it.
20887 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20888 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20889 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20890 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20891 (Funify_charset): Adjust for the change of Funify_charset.
20892
20893 * charset.c (charset_ordered_list_tick): New variable.
20894 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20895 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20896 deunify intead of unify a charset.
20897 (string_xstring_p): Add `const' to local variables.
20898 (find_charsets_in_text): Add `const' to arguments and local variables.
20899 (encode_char): Adjust for the change of Funify_charset. Fix
20900 detecting of invalid code.
20901 (Fset_charset_priority): Increment charset_ordered_list_tick.
20902 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20903 and TO_CODE.
20904
20905 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20906 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20907 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20908 (decode_coding_ccl, consume_chars)
20909 (Ffind_coding_systems_region_internal)
20910 (Fcheck_coding_systems_region): Add `const' to local variables.
20911
20912 * print.c (print_object): Use octal form for printing the
20913 contents of a bool vector.
20914
20915 2008-02-01 Dave Love <fx@gnu.org>
20916
20917 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20918 <version == 20>: Refuse to load.
20919
20920 2008-02-01 Dave Love <fx@gnu.org>
20921
20922 * fns.c: Move coding.h.
20923 (Qcodeset, Qdays, Qmonths): New.
20924 (concat): Use CHARACTERP instead of INTEGERP.
20925 (Flocale_codeset): Delete.
20926 (Flanginfo): New function.
20927 (syms_of_fns): Change accordingly.
20928
20929 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20930
20931 2008-02-01 Dave Love <fx@gnu.org>
20932
20933 * casetab.c (init_casetab_once, init_casetab_once): Fix
20934 CHAR_TABLE_SET call.
20935
20936 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20937
20938 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20939
20940 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20941 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20942 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20943
20944 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20945
20946 * coding.c (ENCODE_DESIGNATION, decode_eol)
20947 (make_conversion_work_buffer, code_conversion_restore)
20948 (Fdefine_coding_system_internal): Convert Lisp types.
20949 (code_conversion_restore): Use EQ, not ==.
20950 (Fencode_coding_string): Fix code_convert_string call.
20951
20952 * coding.h (code_convert_region): Fix prototype.
20953
20954 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20955
20956 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20957 (Ffontset_info): Convert Lisp types.
20958
20959 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20960
20961 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20962
20963 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20964
20965 * chartab.c: Include "...h", not <...h> in some cases.
20966
20967 * callproc.c (Fcall_process): Remove unused variables.
20968
20969 2008-02-01 Dave Love <fx@gnu.org>
20970
20971 * coding.c (Fset_coding_system_priority): Allow null arg list.
20972
20973 2008-02-01 Dave Love <fx@gnu.org>
20974
20975 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20976 (Fself_insert_and_exit): Use CHARACTERP.
20977
20978 * callproc.c (Fcall_process): Remove unused vars.
20979
20980 * xterm.c (XTread_socket): Add extra dead keysyms.
20981
20982 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20983
20984 * dispextern.h: Remove prototypes for redraw_frame,
20985 redraw_garbaged_frames.
20986
20987 * cmds.c (Fself_insert_command): Use CHARACTERP.
20988
20989 * chartab.c (make_sub_char_table): Remove unused var.
20990 (Fset_char_table_default, Fmap_char_table): Doc fix.
20991
20992 * keymap.c (access_keymap): Remove generic char code.
20993 (push_key_description): Use CHARACTERP.
20994
20995 2008-02-01 Dave Love <fx@gnu.org>
20996
20997 * charset.c: Doc fixes.
20998 (Funify_charset): Extra checking.
20999
21000 2008-02-01 Dave Love <fx@gnu.org>
21001
21002 * lread.c: Remove some unused variables.
21003 (safe_to_load_p): If safe, return the magic number version byte.
21004 (Fload): Maybe use load-with-code-conversion.
21005
21006 2008-02-01 Kenichi Handa <handa@m17n.org>
21007
21008 * category.c (Fmodify_category_entry): Don't modify the contents
21009 of category_set for characters out of the range. Avoid
21010 unnecessary modification.
21011
21012 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21013 Vchar_unify_table. The default value of the table is now nil.
21014
21015 * character.c (syms_of_character): Setup Vchar_width_table for
21016 eight-bit-control and raw-byte chars.
21017
21018 * charset.h (enum define_charset_arg_index): Delete
21019 charset_arg_parents and add charset_arg_subset and
21020 charset_arg_superset.
21021 (enum charset_attr_index): Delete charset_parents and add
21022 charset_subset and charset_superset.
21023 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21024 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21025 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21026 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21027 (CHARSET_SUPERSET): New macros.
21028 (charset_work): Extern it.
21029 (ENCODE_CHAR): Use charset_work.
21030 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21031 (map_charset_chars): Extern it.
21032
21033 * charset.c (load_charset_map): Set the default value of encoder
21034 and deunifier char-tables to nil.
21035 (map_charset_chars): Change argument. Change callers. Use
21036 map_char_table_for_charset instead of map_char_table.
21037 (Fmap_charset_chars): New optional args from_code and to_code.
21038 (Fdefine_charset_internal): Adjust for the change of
21039 `define-charset' (:parents -> :subset or :superset).
21040 (charset_work): New variable.
21041 (encode_char, syms_of_charset): Adjust for the change of
21042 Fdefine_charset_internal.
21043 (Ffind_charset_string): Setup the vector `charsets' correctly.
21044
21045 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21046 the previous change.
21047 (char_table_ref_and_range): Adjust for the above change.
21048 (map_sub_char_table_for_charset): New function.
21049 (map_char_table_for_charset): New function.
21050
21051 * keymap.c (describe_vector): Handle a char-table directly here.
21052 (describe_char_table): Delete.
21053
21054 * lisp.h (map_charset_chars): Delete.
21055
21056 2008-02-01 Dave Love <fx@gnu.org>
21057
21058 * fns.c (count_combining): Comment out (unused).
21059 (Flocale_codeset): New.
21060 (syms_of_fns): Defsubr it.
21061
21062 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21063 (size_t): Remove.
21064
21065 2008-02-01 Dave Love <fx@gnu.org>
21066
21067 * Makefile.in (chartab.o): Depend on charset.h.
21068
21069 2008-02-01 Kenichi Handa <handa@m17n.org>
21070
21071 * character.c (syms_of_character): Set the default value of
21072 Vprintable_chars to Qnil.
21073
21074 2008-02-01 Dave Love <fx@gnu.org>
21075
21076 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21077
21078 2008-02-01 Kenichi Handa <handa@m17n.org>
21079
21080 * charset.c (load_charset_map): Handle the case that from < to
21081 correctly.
21082
21083 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21084 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21085 Pay attention to raw-8-bit chars.
21086
21087 2008-02-01 Kenichi Handa <handa@m17n.org>
21088
21089 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21090 It is not bytecompiled now.
21091
21092 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21093 (charset_jisx0208): New variables.
21094 (Fdefine_charset_internal): Setup them if appropriate.
21095 (init_charset_once): Initialize them to -1.
21096
21097 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21098 (charset_jisx0208): Extern them.
21099
21100 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21101 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21102 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21103 (setup_iso_safe_charsets): Fix arguments to Fassq.
21104 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21105 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21106 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21107 (encode_coding_iso_2022): Change the 1st arg to
21108 ENCODE_ISO_CHARACTER to a variable.
21109
21110 2008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * charset.h (enum define_charset_arg_index): New enums
21113 charset_arg_min_code and charset_arg_max_code.
21114 (struct charset): New member char_index_offset.
21115
21116 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21117 Take charset->char_index_offset into account.
21118 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21119 args[charset_arg_max_code]. Setup charset.char_index_offset.
21120 (syms_of_charset): Fix args to Fdefine_charset_internal.
21121
21122 2008-02-01 Dave Love <fx@gnu.org>
21123
21124 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21125
21126 2008-02-01 Dave Love <fx@gnu.org>
21127
21128 * coding.c: Doc fixes.
21129 (Fcoding_system_aliases): Fix return value.
21130 (Qmac): Remove (duplicated) definition.
21131
21132 2008-02-01 Dave Love <fx@gnu.org>
21133
21134 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21135 New functions.
21136
21137 * character.c (Fstring): Doc fix.
21138
21139 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21140
21141 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
21142 (font-encoding-alist): Doc fix.
21143
21144 2008-02-01 Dave Love <fx@gnu.org>
21145
21146 * term.c (costs_set): Declare static, non-initialized for pcc.
21147 (encode_terminal_code): Remove unused var.
21148
21149 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21150 for K&R.
21151
21152 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21153
21154 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21155 (suffixes): Move out of make_subsidiaries for K&R.
21156
21157 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21158
21159 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21160
21161 2008-02-01 Dave Love <fx@gnu.org>
21162
21163 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21164
21165 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21166
21167 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21168
21169 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21170
21171 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21172
21173 2008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21176 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21177
21178 2008-02-01 Kenichi Handa <handa@m17n.org>
21179
21180 * coding.c (decode_coding_charset): Adjust for the change of
21181 Fdefine_coding_system_internal.
21182 (Fdefine_coding_system_internal): For a coding system of
21183 `charset' type, store a list of charset IDs in
21184 `charset_attr_charset_valids' element of coding attributes.
21185
21186 2008-02-01 Kenichi Handa <handa@m17n.org>
21187
21188 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21189 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21190 caller. Handle 2-byte and 3-byte charsets correctly.
21191 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21192 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21193 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21194 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21195 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21196 sequence.
21197 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21198 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21199 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21200 and alt&rule composition.
21201 (decode_coding_iso_2022): Handle composition correctly.
21202 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21203
21204 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21205 re-defining a charset. If the charset has :emacs-mule-id, setup
21206 emacs_mule_bytes.
21207 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21208
21209 2008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21212 (encode_coding_big5, encode_coding_charset): If coding requires safe
21213 encoding, produce a character specified by
21214 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21215
21216 2008-02-01 Dave Love <fx@gnu.org>
21217
21218 * xterm.c (XSetIMValues): Declare.
21219
21220 * process.c: Conditionally include sys/wait.h, pty.h.
21221
21222 * print.c (print_object): Fix print format for 64-bit systems.
21223
21224 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21225
21226 * buffer.c (emacs_strerror): Declare.
21227
21228 * fontset.c (Fclear_face_cache): Declare.
21229 (accumulate_font_info): Comment-out (unused).
21230 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21231 variables.
21232
21233 * character.h (string_escape_byte8): Declare.
21234
21235 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21236 unused vars.
21237 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21238 (Fmap_charset_chars): Doc fix.
21239
21240 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21241 (Fset_coding_system_priority, Fset_coding_system_priority)
21242 (Fdefine_coding_system_internal): Doc fix.
21243
21244 2008-02-01 Dave Love <fx@gnu.org>
21245
21246 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21247
21248 2008-02-01 Kenichi Handa <handa@m17n.org>
21249
21250 * character.c (string_escape_byte8): Make multibyte string with
21251 correct size.
21252
21253 * charset.c (Fmake_char): Delete unnecessary code.
21254
21255 2008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * xfns.c (x_encode_text): Allocate coding.destination here, and
21258 call encode_coding_object with dst_object Qnil.
21259
21260 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21261 multibyte form correctly.
21262
21263 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21264 against Vfont_encoding_alist.
21265
21266 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21267 handling of charset list.
21268 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21269 (decode_coding_object): Move point to coding->dst_pos before
21270 calling post-read-conversion function.
21271 (encode_coding_object): Give correct arguments to
21272 pre-write-conversion. Ignore the return value of
21273 pre-write-conversion function. Pay attention to the case that
21274 pre-write-conversion changes the current buffer. If dst_object is
21275 Qt, even if coding->src_bytes is zero, allocate at least one byte
21276 to coding->destination.
21277
21278 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21279
21280 * charset.c (Fmake_char): Make it more backward compatible.
21281 (Fmap_charset_chars): Fix docstring.
21282
21283 2008-02-01 Dave Love <fx@gnu.org>
21284
21285 * coding.c: Doc fixes.
21286 (Fdefine_coding_system_alias): Use names, not symbols, in
21287 coding-system-alist.
21288
21289 2008-02-01 Kenichi Handa <handa@m17n.org>
21290
21291 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21292 of calling free_realized_face.
21293
21294 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21295
21296 * charset.c (read_hex): Don't treat SPC as a comment starter.
21297 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21298 (Fdecode_char): Fix typo.
21299
21300 2008-02-01 Kenichi Handa <handa@m17n.org>
21301
21302 * charset.h (struct charset): New member `code_space_mask'.
21303
21304 * coding.c (coding_set_source): Delete the local variable beg_byte.
21305 (encode_coding_charset, Fdefine_coding_system_internal):
21306 Delete the local variable charset.
21307 (Fdefine_coding_system_internal): Setup
21308 attrs[coding_attr_charset_valids] correctly.
21309
21310 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21311 member to check if CODE is valid or not.
21312 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21313 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21314 is within the range of charset->min_code and carset->max_code.
21315
21316 2008-02-01 Dave Love <fx@gnu.org>
21317
21318 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21319
21320 * dispextern.h (generate_ascii_font): Fix return type.
21321
21322 * xfaces.c (generate_ascii_font): Fix arg declaration.
21323
21324 * coding.c (coding_inherit_eol_type)
21325 (Fset_terminal_coding_system_internal)
21326 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21327
21328 2008-02-01 Kenichi Handa <handa@m17n.org>
21329
21330 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21331 multiple charsets correctly.
21332
21333 2008-02-01 Kenichi Handa <handa@m17n.org>
21334
21335 * search.c (boyer_moore): Fix handling of multibyte character
21336 translation.
21337
21338 * xdisp.c (display_mode_element): When the variable `elt' is
21339 changed, update `this' and `lisp_string'.
21340
21341 2008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21344
21345 * callproc.c (Fcall_process): Be sure to give the current buffer
21346 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21347
21348 * charset.c (struct charset_map_entries): New struct.
21349 (load_charset_map): Rename from parse_charset_map. New args
21350 entries and n_entries. Change caller.
21351 (load_charset_map_from_file): Rename from load_charset_map.
21352 Change caller. New arg control_flag. Call load_charset_map at
21353 the tail.
21354 (load_charset_map_from_vector): New function.
21355 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21356 (encode_char): If the charset is compact, change a character index
21357 to a code point.
21358
21359 * coding.c (coding_alloc_by_making_gap): Check the case that the
21360 source and destination are the same correctly.
21361 (decode_coding_raw_text): Set coding->consumed_char and
21362 coding->consumed to 0.
21363 (produce_chars): If coding->chars_at_source is nonzero, update
21364 coding->consumed_char and coding->consumed before calling
21365 alloc_destination.
21366 (Fdefine_coding_system_alias): Register ALIAS in
21367 Vcoding_system_alist.
21368 (syms_of_coding): Define `no-conversion' coding system at the tail.
21369
21370 * fileio.c (Finsert_file_contents): Set coding_system instead of
21371 val. If the current buffer is multibyte, always call
21372 decode_coding_gap.
21373
21374 * xfaces.c (try_font_list): Give higher priority to fontset's
21375 family than face's family.
21376
21377 2008-02-01 Kenichi Handa <handa@m17n.org>
21378
21379 * callproc.c (Fcall_process): Be sure to give the current buffer
21380 to decode_coding_c_string.
21381
21382 * xfaces.c (try_font_list): Give a family specified in a fontset
21383 higher priority than a family specified in a face.
21384
21385 2008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21388 Fix arguments to insert_from_buffer.
21389
21390 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21391
21392 2008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21395 (decode_coding_gap): Set coding->dst_multibyte correctly.
21396
21397 2008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21400 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21401 (encode_coding_utf_16): Substitute coding->default_char for
21402 non-Unicode characters.
21403 (decode_coding): Don't call record_insert here.
21404 (setup_coding_system): Initialize `surrogate' of
21405 coding->spec.utf_16 to 0.
21406 (EMIT_ONE_BYTE): Fix for multibyte case.
21407
21408 * insdel.c (insert_from_gap): Call record_insert.
21409
21410 2008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * casefiddle.c (casify_region): Fix multibyte case.
21413
21414 * character.c (c_string_width): Add return type `int'.
21415 (char_string_with_unification): Delete arg ADVANCED.
21416
21417 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21418 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21419 (CHAR_STRING_ADVANCE): Make it do-while statement.
21420
21421 * chartab.c (sub_char_table_set_range): Optimize for the case
21422 DEPTH == 3. Add workaround code for a GCC optimization bug.
21423
21424 * charset.c (parse_charset_map): Remove an unused variable.
21425
21426 * coding.c: Delete unused variables.
21427
21428 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21429 earlier. If inserted is zero and the coding system doesn't
21430 require flushing, don't call decode_coding_gap.
21431
21432 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21433
21434 2008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 The following changes are for using Unicode as an internal
21437 character model, and use UTF-8 format for buffer/string
21438 representation.
21439
21440 * .gdbinit (xchartable): Adjust for the change of char table structure.
21441 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21442
21443 * Makefile.in (obj): Add character.o and chartab.o.
21444 (lisp, shortlisp): Remove utf-8.elc.
21445 (*.o): For many files, change dependency on charset.h to
21446 character.h, and add dependency on character.h.
21447 (character.o, chartab.o): New targets.
21448
21449 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21450 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21451 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21452 of "charset.h".
21453
21454 * dired.c, filelock.c: Include "character.h".
21455
21456 * alloc.c: Include "character.h" instead of "charset.h".
21457 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21458 (syms_of_alloc): Remove defsubr for Smake_char_table.
21459
21460 * buffer.c: Include "character.h" instead of "charset.h", don't
21461 include "coding.h".
21462 (Fset_buffer_multibyte): Adjust for UTF-8.
21463
21464 * buffer.h: EXFUN Fbuffer_live_p.
21465
21466 * callproc.c: Include "character.h" instead of "charset.h".
21467 (Fcall_process): Big change for the new code-conversion APIs.
21468
21469 * casetab.c: Include "character.h" instead of "charset.h".
21470 (set_canon, set_identity, shuffle): Adjust for the new
21471 map_char_table spec.
21472 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21473 accessing the char table structure.
21474
21475 * chartab.c: New file that implements char table.
21476
21477 * category.c: Include "character.h".
21478 (copy_category_entry): New function.
21479 (copy_category_table): Call map_char_table and copy_category_entry.
21480 (Fmake_category_table): Initialize all top-level slots.
21481 (char_category_set): New function.
21482 (modify_lower_category_set): Delete.
21483 (Fmodify_category_entry): Call char_table_ref_and_range.
21484
21485 * category.h (CATEGORY_SET): Just call char_category_set.
21486
21487 * ccl.c: Include "character.h".
21488 (Qccl, Qcclp): New variables.
21489 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21490 it's less than 256.
21491 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21492 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21493 and DST type.
21494 (ccl_driver): Change types of argument, adjust code accordingly.
21495 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21496 ccl_driver.
21497 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21498
21499 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21500 New members src_multibyte, dst_multibyte, consumed, and produced.
21501 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21502 (CODING_SPEC_CCL_PROGRAM): New macro.
21503 (ccl_driver): Update prototype.
21504 (Qccl, Qcclp, Fccl_program_p): Extern them.
21505 (CHECK_CCL_PROGRAM): New macro.
21506
21507 * character.c, character.h, chartab.c: New files.
21508
21509 * charset.c: Mostly re-written. Move character and multibyte sequence
21510 handling codes to character.c.
21511
21512 * charset.h: Mostly re-written. Move character and multibyte sequence
21513 handling codes to character.h.
21514
21515 * coding.c, coding.h: Mostly re-written.
21516
21517 * composite.c: Include "character.h" instead of "charset.h".
21518 (CHAR_WIDTH): Move to character.h.
21519 (HASH_KEY, HASH_VALUE): Delete.
21520
21521 * composite.h (enum composition_method): Change order of enumeration
21522 symbols.
21523
21524 * data.c: Include "character.h" instead of "charset.h".
21525 (Faref): Call CHAR_TABLE_REF for a char table.
21526 (Faset): Call CHAR_TABLE_SET for a char table.
21527
21528 * dispextern.h (free_realized_face, check_face_attribytes)
21529 (generate_ascii_font): Extern them.
21530 (free_realized_multibyte_face): Delete extern.
21531
21532 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21533 table structure.
21534
21535 * editfns.c: Include "character.h" instead of "charset.h".
21536 (Fchar_to_string): Always call CHAR_STRING.
21537
21538 * emacs.c (main): Call init_charset_once, init_charset,
21539 syms_of_chartab, and syms_of_character.
21540
21541 * fileio.c: Include "character.h" instead of "charset.h".
21542 (Finsert_file_contents): Big change for the new code-conversion API.
21543 (choose_write_coding_system, Fwrite_region): Likewise.
21544 (build_annotations_2): Delete.
21545 (e_write): Big change for the new code-conversion API.
21546
21547 * fns.c: Include "character.h" instead of "charset.h".
21548 (copy_sub_char_table): Move to chartab.c.
21549 (Fcopy_sequence): Call copy_char_table for a char table.
21550 (concat): Delete codes calling count_multibyte.
21551 (string_char_to_byte, string_byte_to_char): Adjust for the new
21552 multibyte form.
21553 (internal_equal): Adjust for the change of char table structure.
21554 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21555 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21556 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21557 (char_table_translate, optimize_sub_char_table)
21558 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21559 chartab.c.
21560 (char_table_ref_and_index): Delete.
21561 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21562 (Fmd5): Call preferred_coding_system instead of accessing
21563 Vcoding_category_list. Adjust for the new code-conversion API.
21564 (syms_of_fns): Move defsubr for char table related functions to
21565 chartab.c.
21566
21567 * fontset.c: Mostly re-written.
21568
21569 * fontset.h (struct font_info): Change type of the member encoding_type.
21570 (enum FONT_SPEC_INDEX): New enum.
21571 (fontset_font_pattern, fs_load_font): Update prototype.
21572 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21573
21574 * indent.c: Include "character.h" instead of "charset.h".
21575 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21576
21577 * insdel.c: Include "character.h" instead of "charset.h".
21578 (copy_text): Don't refer to Vnonascii_translation_table.
21579 (insert_from_gap): New function.
21580
21581 * keyboard.c: Include "character.h" instead of "charset.h".
21582 (command_loop_1): Never call direct_output_forward_char before
21583 a non-ASCII character.
21584 (read_char): If Vkeyboard_translate_table is a char table, always
21585 translate a character.
21586
21587 * keymap.c: Include "character.h".
21588 (store_in_keymap): Handle the case that IDX is a cons.
21589 (Fdefine_key): Handle the case that KEY is a cons and the car part
21590 is also a cons (range).
21591 (push_key_description): Adjust for the new character code.
21592 (describe_vector): Call describe_char_table for a char table.
21593 (describe_char_table): New function.
21594
21595 * keymap.h (describe_char_table): Extern it.
21596
21597 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21598 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21599 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21600 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21601 Delete.
21602 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21603 structure.
21604 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21605 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21606 (CHARTAB_SIZE_BITS_3): New macros.
21607 (chartab_size): Extern it.
21608 (struct Lisp_Char_Table): Re-design.
21609 (struct Lisp_Sub_Char_Table): New structure.
21610 (HASH_KEY, HASH_VALUE): Move from fns.c.
21611 (CHARACTERBITS): Define as 22.
21612 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21613 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21614 (GC_SUB_CHAR_TABLE_P): New macro.
21615 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21616 (code_convert_string_norecord): Deleted extern.
21617 (init_character_once, syms_of_character, init_charset)
21618 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21619
21620 * lread.c: Include "character.h".
21621 (read_multibyte): New arg NBYTES.
21622 (read_escape): Change the meaning of returned *BYTEREP.
21623 (to_multibyte): Delete.
21624 (read1): Adjust the handling of char table and string.
21625
21626 * print.c: Include "character.h" instead of "charset.h".
21627 (print_string): Convert 8-bit raw bytes to octal form by
21628 string_escape_byte8.
21629 (print_object): Adjust for the new multibyte form. Print 8-bit
21630 raw bytes always in octal form. Handle sub char table correctly.
21631
21632 * process.c: Include "character.h" instead of "charset.h".
21633 (read_process_output, send_process): Adjust for the new
21634 code-conversion API.
21635
21636 * puresize.h (BASE_PURESIZE): Increase.
21637
21638 * regex.c: Include "character.h" instead of "charset.h".
21639 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21640 (regex_compile): Accept a range whose starting and ending
21641 character have different leading bytes.
21642 (analyse_first): Adjust for the above change.
21643
21644 * search.c: Include "character.h" instead of "charset.h".
21645 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21646 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21647
21648 * syntax.c: Include "character.h" instead of "charset.h".
21649 (syntax_parent_lookup): Delete.
21650 (Fmodify_syntax_entry): Accept a cons as CHAR.
21651 (skip_chars): Adjust for the new multibyte form.
21652 (init_syntax_once): Call char_table_set_range instead of directly
21653 accessing the structure of a char table.
21654
21655 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21656 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21657 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21658 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21659
21660 * term.c: Include "buffer.h" and "character.h".
21661 (encode_terminal_code, write_glyphs): Adjust for the new
21662 code-conversion API.
21663 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21664
21665 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21666
21667 * xdisp.c: Include "character.h".
21668 (get_next_display_element): Adjust for the new multibyte form.
21669 (disp_char_vector): Adjust for the new char table structure.
21670 (decode_mode_spec_coding): Adjust for the new structure of
21671 coding system.
21672 (decode_mode_spec): Adjust for the new code-conversion API.
21673
21674 * xfaces.c: Include "character.h" instead of "charset.h".
21675 (load_face_font): Adjust for the change of choose_face_font and
21676 FS_LOAD_FONT.
21677 (generate_ascii_font): New function.
21678 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21679 (set_font_frame_param): Adjust for the change of choose_face_font.
21680 (free_realized_face): Make it public.
21681 (free_realized_faces_for_fontset): Rename from
21682 free_realized_multibyte_face. Free also faces realized for ASCII.
21683 (choose_face_font): Change arguments. Adjust for the change of
21684 fontset_font_pattern and FS_LOAD_FONT.
21685
21686 * xfns.c: Include "character.h".
21687 (x_encode_text): Adjust for the new code-conversion API.
21688
21689 * xselect.c: Don't include "charset.h".
21690 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21691
21692 * xterm.c: Include "character.h".
21693 (x_encode_char): New argument CHARSET. Change caller.
21694 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21695 Call ENCODE_CHAR instead of SPLIT_CHAR.
21696 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21697 CHAR_WIDTH instead of CHARSET_WIDTH.
21698 (XTread_socket): Adjust for the new code-conversion API.
21699 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21700 (x_load_font): Adjust for the change of struct font.
21701
21702 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21703
21704 * xfaces.c (face_at_buffer_position): Remove unused vars.
21705
21706 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21707
21708 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21709 Fix overflow checking.
21710
21711 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21712
21713 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21714 Cancel previous change.
21715
21716 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21717
21718 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21719 ccl->eight_bit_control. Fix check for buffer overflow.
21720 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21721 (ccl_driver): Initialize extra_bytes to 0.
21722
21723 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21724
21725 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21726 return it ORed with ctrl_modifier.
21727
21728 2008-01-29 Miles Bader <miles@gnu.org>
21729
21730 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21731
21732 2008-01-28 Jason Rumney <jasonr@gnu.org>
21733
21734 * w32.c (stat): Don't double check for networked drive.
21735
21736 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21737
21738 * window.c (run_window_configuration_change_hook): New function.
21739 Code extracted from set_window_buffer. Set the selected frame.
21740 (set_window_buffer): Use it.
21741 * window.h (run_window_configuration_change_hook): Declare.
21742 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21743
21744 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21745
21746 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21747
21748 * Makefile.in: Remove references to unused macros.
21749
21750 2008-01-26 Eli Zaretskii <eliz@gnu.org>
21751
21752 * w32.c (g_b_init_get_sid_sub_authority)
21753 (g_b_init_get_sid_sub_authority_count): New static variables.
21754 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21755 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21756 (init_user_info): Use them to retrieve uid and gid.
21757 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21758 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21759 st_uid and st_gid of the file.
21760
21761 2008-01-26 Jason Rumney <jasonr@gnu.org>
21762
21763 * w32.c (logon_network_drive): New function.
21764 (stat): Use it.
21765
21766 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
21767
21768 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21769 invisible text covered with an ellipsis.
21770
21771 2008-01-25 Richard Stallman <rms@gnu.org>
21772
21773 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21774 jump back to beginning. Move some other initializations after that.
21775 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21776 New variables.
21777 (syms_of_xdisp): Init them.
21778
21779 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21780
21781 * buffer.c (reset_buffer_local_variables):
21782 Implement `permanent-local-hook'.
21783 (Qpermanent_local_hook): New variable.
21784 (syms_of_buffer): Init and staticpro it.
21785
21786 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
21787
21788 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21789
21790 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21791
21792 * fns.c (Fclrhash): Return TABLE.
21793
21794 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21795
21796 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21797 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21798 is set even without positional changes.
21799 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21800
21801 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21802
21803 2008-01-23 Jason Rumney <jasonr@gnu.org>
21804
21805 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21806
21807 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21808 the unicode range available in MULE by locale-coding-system.
21809 Improve dbcs lead byte detection. Set event timestamp and modifiers
21810 earlier.
21811
21812 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21813
21814 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21815 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21816 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21817 when used on child processes.
21818
21819 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
21820
21821 * dbusbind.c (Fdbus_method_return_internal): Rename from
21822 Fdbus_method_return.
21823 (Fdbus_unregister_object): Move to dbus.el.
21824 (Fdbus_call_method, Fdbus_method_return_internal)
21825 (Fdbus_send_signal): Improve debug messages.
21826
21827 2008-01-20 Martin Rudalics <rudalics@gmx.at>
21828
21829 * undo.c (undo_inhibit_record_point): New variable.
21830 (syms_of_undo): Initialize it.
21831 (record_point): Don't record point when undo_inhibit_record_point
21832 is set.
21833
21834 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21835
21836 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21837
21838 * xdisp.c (Qauto_hscroll_mode): New var.
21839 (syms_of_xdisp): Initialize it.
21840 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21841 window's buffer.
21842 (hscroll_windows): Don't check automatic_hscrolling_p here.
21843
21844 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21845 vscroll if we're setting window-buffer to the value it already has.
21846
21847 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21848
21849 * m/intel386.h: Remove references to XENIX.
21850
21851 2008-01-17 Andreas Schwab <schwab@suse.de>
21852
21853 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21854 instead of HAVE_X86_64_LIB64_DIR.
21855 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21856
21857 2008-01-17 Glenn Morris <rgm@gnu.org>
21858
21859 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21860 to HAVE_X86_64_LIB64_DIR.
21861
21862 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21863
21864 * s/irix3-3.h:
21865 * s/irix4-0.h:
21866 * s/386-ix.h:
21867 * s/domain.h:
21868 * s/hpux9-x11r4.h:
21869 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21870
21871 * sysdep.c: Remove code containing references to symbols defined
21872 by unsupported systems.
21873
21874 2008-01-16 Glenn Morris <rgm@gnu.org>
21875
21876 * coding.c (select-safe-coding-system-function): Doc fix.
21877
21878 2008-01-15 Glenn Morris <rgm@gnu.org>
21879
21880 * config.in: Revert 2008-01-13 change: this is a generated file.
21881
21882 2008-01-13 Tom Tromey <tromey@redhat.com>
21883
21884 * lisp.h: Fix typo.
21885
21886 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21887
21888 * m/sequent-ptx.h:
21889 * m/sequent.h:
21890 * s/ptx.h:
21891 * s/ptx4-2.h:
21892 * s/ptx4.h: Remove files for systems no longer supported.
21893
21894 * callproc.c (Fcall_process): Fix previous change.
21895
21896 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21897
21898 * unexsunos4.c: Remove file, system not supported anymore.
21899
21900 * m/mips.h:
21901 * m/intel386.h:
21902 * callproc.c:
21903 * config.in:
21904 * ecrt0.c:
21905 * emacs.c:
21906 * fileio.c:
21907 * frame.c:
21908 * getpagesize.h:
21909 * keyboard.c:
21910 * lread.c:
21911 * process.c:
21912 * puresize.h:
21913 * sysdep.c:
21914 * systty.h:
21915 * syswait.h:
21916 * unexec.c:
21917 * xdisp.c:
21918 * alloc.c: Remove code containing references to symbols defined by
21919 unsupported systems.
21920
21921 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21922
21923 * coding.c (detect_coding_mask): Fix previous change.
21924
21925 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21926
21927 * coding.c (detect_coding_iso2022): New arg
21928 latin_extra_code_state. Allow Latin extra codes only
21929 when *latin_extra_code_state is nonzero.
21930 (detect_coding_mask): If there is a NULL byte, detect the encoding
21931 as UTF-16 or binary. If Latin extra codes exist, detect the
21932 encoding as ISO-2022 only when there's no other proper encoding is
21933 found.
21934
21935 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21936
21937 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21938 #ifdef MAC_OS.
21939
21940 2008-01-08 Richard Stallman <rms@gnu.org>
21941
21942 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21943
21944 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
21945
21946 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21947 menu bar in parentheses.
21948
21949 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21950
21951 * m/7300.h:
21952 * m/acorn.h:
21953 * m/alliant-2800.h:
21954 * m/alliant.h:
21955 * m/alliant1.h:
21956 * m/alliant4.h:
21957 * m/altos.h:
21958 * m/amdahl.h:
21959 * m/apollo.h:
21960 * m/att3b.h:
21961 * m/aviion-intel.h:
21962 * m/aviion.h:
21963 * m/celerity.h:
21964 * m/clipper.h:
21965 * m/cnvrgnt.h:
21966 * m/convex.h:
21967 * m/cydra5.h:
21968 * m/delta88k.h:
21969 * m/dpx2.h:
21970 * m/dual.h:
21971 * m/elxsi.h:
21972 * m/f301.h:
21973 * m/gould-np1.h:
21974 * m/gould.h:
21975 * m/i860.h:
21976 * m/ibmps2-aix.h:
21977 * m/ibmrt-aix.h:
21978 * m/ibmrt.h:
21979 * m/irist.h:
21980 * m/is386.h:
21981 * m/isi-ov.h:
21982 * m/mega68.h:
21983 * m/mg1.h:
21984 * m/news-r6.h:
21985 * m/news-risc.h:
21986 * m/news.h:
21987 * m/nh3000.h:
21988 * m/nh4000.h:
21989 * m/ns16000.h:
21990 * m/ns32000.h:
21991 * m/nu.h:
21992 * m/orion.h:
21993 * m/orion105.h:
21994 * m/paragon.h:
21995 * m/pfa50.h:
21996 * m/plexus.h:
21997 * m/pyramid.h:
21998 * m/pyrmips.h:
21999 * m/sh3el.h:
22000 * m/sps7.h:
22001 * m/sr2k.h:
22002 * m/stride.h:
22003 * m/sun1.h:
22004 * m/sun2.h:
22005 * m/sun3-68881.h:
22006 * m/sun3-fpa.h:
22007 * m/sun3-soft.h:
22008 * m/sun3.h:
22009 * m/sun386.h:
22010 * m/symmetry.h:
22011 * m/tad68k.h:
22012 * m/tahoe.h:
22013 * m/targon31.h:
22014 * m/tek4300.h:
22015 * m/tekxd88.h:
22016 * m/tower32.h:
22017 * m/tower32v3.h:
22018 * m/ustation.h:
22019 * m/wicat.h:
22020 * m/xps100.h:
22021 * s/cxux.h:
22022 * s/cxux7.h:
22023 * s/dgux.h:
22024 * s/dgux4.h:
22025 * s/dgux5-4-3.h:
22026 * s/dgux5-4r2.h:
22027 * s/esix.h:
22028 * s/esix5r4.h:
22029 * s/hiuxmpp.h:
22030 * s/hiuxwe2.h:
22031 * s/iris3-5.h:
22032 * s/iris3-6.h:
22033 * s/isc2-2.h:
22034 * s/isc3-0.h:
22035 * s/isc4-0.h:
22036 * s/isc4-1.h:
22037 * s/newsos5.h:
22038 * s/newsos6.h:
22039 * s/osf1.h:
22040 * s/osf5-0.h:
22041 * s/riscix1-1.h:
22042 * s/riscix12.h:
22043 * s/sco4.h:
22044 * s/sco5.h:
22045 * s/sunos4-0.h:
22046 * s/sunos4-1.h:
22047 * s/sunos413.h:
22048 * s/sunos4shr.h:
22049 * s/umax.h:
22050 * s/unipl5-2.h:
22051 * s/xenix.h:
22052 * cxux-crt0.s:
22053 * unexapollo.c:
22054 * unexconvex.c:
22055 * unexenix.c:
22056 * unexsni.c: Remove files for systems no longer supported.
22057
22058 * m/intel386.h: Remove references to unsupported systems.
22059
22060 * w32.c (get_emacs_configuration): Remove reference to i860.
22061
22062 * sysdep.c: Remove dead code.
22063
22064 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22065
22066 * s/rtu.h:
22067 * m/masscomp.h: Remove files. Platform is obsolete.
22068
22069 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22070
22071 * dbusbind.c (Fdbus_method_return): New function.
22072 (xd_read_message): Add the serial number to the event.
22073 (Fdbus_register_method): Activate the function.
22074
22075 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22076
22077 * keyboard.c (read_key_sequence): Fix typo.
22078
22079 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22080
22081 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22082 (xd_signature, xd_append_arg): Handle element type detection for
22083 empty arrays.
22084 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22085 SDATA () calls; this must be solved more general.
22086 (Fdbus_register_signal): Use SBYTES instead of strlen.
22087
22088 2008-01-03 Magnus Henoch <magnus@zemdatav>
22089
22090 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22091 unsigned int for byte values (necessary for big-endian platform).
22092 (Fdbus_call_method): Handle the case of no returned arguments.
22093
22094 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22095
22096 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22097
22098 2007-12-31 Magnus Henoch <mange@freemail.hu>
22099
22100 * dbusbind.c (xd_signature): Signature of variant is just "v".
22101
22102 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22103
22104 * dbusbind.c: Fix several errors and compiler warnings.
22105 Reported by Tom Tromey <tromey@redhat.com>.
22106 (XD_ERROR, XD_DEBUG_MESSAGE)
22107 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22108 (xd_append_arg): Part for basic D-Bus types rewritten.
22109 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22110 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22111 appropriate.
22112 (xd_read_message): Return Qnil. Don't signal an error; it is not
22113 useful during event reading.
22114 (Fdbus_register_signal): Signal an error if the check for
22115 FUNCTIONP fails.
22116 (Fdbus_register_method): New function. The implementation is not
22117 complete, the call of the function signals an error therefore.
22118 (Fdbus_unregister_object): New function, renamed from
22119 Fdbus_unregister_signal. The initial check signals an error, if
22120 the object is not well formed.
22121
22122 2007-12-30 Richard Stallman <rms@gnu.org>
22123
22124 * textprop.c (get_char_property_and_overlay):
22125 Signal error if POSITION is out of range in a buffer.
22126
22127 2007-12-29 Martin Rudalics <rudalics@gmx.at>
22128
22129 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22130 because the original parameters are in pure storage now.
22131
22132 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22133
22134 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22135
22136 2007-12-22 Eli Zaretskii <eliz@gnu.org>
22137
22138 * callint.c (syms_of_callint) <command-history>: Add reference to
22139 history-length in the doc string.
22140
22141 2007-12-17 Jason Rumney <jasonr@gnu.org>
22142
22143 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22144 before passing as wParam.
22145
22146 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
22147
22148 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22149 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22150 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22151 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22152 as number.
22153 (Fdbus_call_method): Fix docstring.
22154
22155 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
22156
22157 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22158 New macros.
22159 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22160 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22161 Simplify.
22162 (xd_signature): New function.
22163 (xd_append_arg): Compute also signatures. Major rewrite.
22164 (xd_retrieve_arg): Make debug messages friendly.
22165 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22166 Check for signatures of arguments.
22167
22168 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
22169
22170 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22171 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22172 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22173 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22174 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22175 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22176 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22177 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22178 (xd_retrieve_value): Remove. Functionality included in ...
22179 (xd_append_arg): New function.
22180 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22181
22182 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
22183
22184 * dbusbind.c (top): Include <stdio.h>.
22185 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22186 dbus_message_new_method_call and dbus_message_new_signal.
22187 (Fdbus_register_signal): Rename unique_name to uname.
22188 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22189 non-existing unique name. Fix typos in matching rule. Return an
22190 object which is useful in Fdbus_unregister_signal.
22191 (Fdbus_unregister_signal): Reimplementation, in order to remove
22192 only the corresponding entry.
22193 (Vdbus_registered_functions_table): Change the order of entries.
22194 Apply these changes in xd_read_message and Fdbus_register_signal.
22195
22196 2007-12-16 Andreas Schwab <schwab@suse.de>
22197
22198 * fileio.c (Finsert_file_contents): Fix overflow check to not
22199 depend on undefined integer overflow.
22200
22201 2007-12-14 Jason Rumney <jasonr@gnu.org>
22202
22203 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22204 for characters above 127.
22205
22206 2007-12-13 Jason Rumney <jasonr@gnu.org>
22207
22208 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22209 before dereferencing array.
22210 (lookup_vk_code): Remove zero comparison.
22211
22212 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
22213
22214 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22215 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22216 Use `unsigned int' instead of `uint'.
22217 (xd_read_message, Fdbus_register_signal): Split expressions into
22218 multiple lines before operators "&&" and "||", according to the
22219 GNU Coding Standards.
22220
22221 2007-12-14 Eli Zaretskii <eliz@gnu.org>
22222
22223 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22224
22225 2007-12-12 Juri Linkov <juri@jurta.org>
22226
22227 * buffer.c (Frename_buffer): In interactive spec replace
22228 `read-buffer' with `read-string' that uses `buffer-name-history'
22229 as history, and the current buffer's name as default.
22230
22231 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22232
22233 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22234 manipulating the backtrace manually.
22235 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22236 (struct backtrace, backtrace_list): Remove.
22237 (command_loop_1): Remove dead var `no_direct'.
22238
22239 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22240 preserve non-built-in buffer-local variables.
22241 (Fkill_all_local_variables): Don't re-create&re-set permanent
22242 buffer-local variables.
22243
22244 2007-12-09 Juri Linkov <juri@jurta.org>
22245
22246 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22247 Lisp code that uses `read-buffer' with current buffer as default.
22248
22249 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
22250
22251 * dbusbind.c (xd_read_message): Generate an event for every
22252 registered handler. There might be several handlers registered
22253 for the same signal.
22254 (Fdbus_register_signal): Don't overwrite a registration for the
22255 same signal. Add a new registration if handlers are different.
22256 (Vdbus_registered_functions_table): Rework doc string.
22257
22258 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
22259
22260 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22261 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22262 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22263 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22264 Unify argument lists.
22265 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22266 arguments and hash table keys. Use unique name for service.
22267 (Fdbus_unregister_signal): Remove checks.
22268 (Vdbus_registered_functions_table): Fix doc string.
22269
22270 2007-12-05 Magnus Henoch <mange@freemail.hu>
22271
22272 * process.c (make_process): Initialize pty_flag to 0.
22273
22274 2007-12-05 Jason Rumney <jasonr@gnu.org>
22275
22276 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22277 specified XBMs.
22278
22279 2007-12-05 Richard Stallman <rms@gnu.org>
22280
22281 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22282
22283 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22284
22285 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22286 New variable.
22287 (mac_try_close_socket) [MAC_OSX]: New function.
22288 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22289 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22290
22291 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22292 Use mac_try_close_socket.
22293
22294 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22295
22296 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22297 reloc_base.
22298 (copy_dysymtab): Compute relocation base here.
22299 (rebase_reloc_address) [__ppc64__]: New function.
22300 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22301 changed.
22302
22303 2007-12-05 Jason Rumney <jasonr@gnu.org>
22304
22305 * w32proc.c (sys_spawnve): Quote args with wildcards.
22306
22307 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22308
22309 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22310 __objc_* sections.
22311 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22312
22313 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
22314
22315 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22316 Move check for Vdbus_registered_functions_table to
22317 xd_read_queued_messages.
22318 (xd_read_queued_messages): Protect xd_read_message calls by
22319 internal_condition_case_1.
22320
22321 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
22322
22323 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22324 Qdbus_system_bus and Qdbus_session_bus, respectively.
22325 (Vdbus_intern_symbols): Remove.
22326 (Vdbus_registered_functions_table): New hash table.
22327 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22328 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22329 Rewrite in order to manage registered functions by hash table
22330 Vdbus_registered_functions_table.
22331
22332 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22333
22334 * xterm.c: Update URL to Window Manager Specification in comment.
22335
22336 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
22337
22338 * config.in (HAVE_DBUS): Add.
22339
22340 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22341 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22342 (obj): Add $(DBUS_OBJ).
22343 (LIBES): Add $(DBUS_LIBS).
22344 (dbusbind.o): New target.
22345
22346 * dbusbind.c: New file.
22347
22348 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22349
22350 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22351 (Qdbus_event): New Lisp symbol.
22352 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22353 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
22354 (keys_of_keyboard): Define dbus-event.
22355
22356 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22357
22358 2007-12-01 Richard Stallman <rms@gnu.org>
22359
22360 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22361
22362 2007-11-30 Jason Rumney <jasonr@gnu.org>
22363
22364 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22365 (w32con_reset_terminal_modes): Clear screen buffer.
22366 (w32_face_attributes): Don't use color indexes that are out of range.
22367 Only reverse the default colors.
22368
22369 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22370 WINDOWSNT.
22371
22372 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22373
22374 2007-11-29 Jason Rumney <jasonr@gnu.org>
22375
22376 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22377 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22378 if the terminal colors are initialized.
22379 (unspecified_fg, unspecified_bg): Remove unused declarations.
22380
22381 2007-11-29 Andreas Schwab <schwab@suse.de>
22382
22383 * keyboard.c (apply_modifiers): Fix typo.
22384
22385 2007-11-29 Richard Stallman <rms@gnu.org>
22386
22387 * keymap.c (Fcurrent_local_map): Doc fix.
22388
22389 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22390
22391 * s/gnu-kfreebsd.h: New file.
22392
22393 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22394
22395 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22396 Don't cast redundantly.
22397
22398 * keyboard.c (KEY_TO_CHAR): New macro.
22399 (parse_modifiers, apply_modifiers): Accept integer arguments.
22400 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22401 for chars and symbol keys.
22402 After doing such remapping, apply function-key-map again.
22403
22404 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22405
22406 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22407 compiled anymore.
22408
22409 2007-11-26 Andreas Schwab <schwab@suse.de>
22410
22411 * process.c (list_processes_1): Fix indentation level of the
22412 command column.
22413
22414 2007-11-23 Andreas Schwab <schwab@suse.de>
22415
22416 * editfns.c (Fformat): Handle %c specially since it requires the
22417 argument to be of type int.
22418
22419 2007-11-23 Markus Triska <markus.triska@gmx.at>
22420
22421 * emacs.c (main): Call init_editfns before init_process, since
22422 init_process sets Vprocess_connection_type depending on OS release.
22423
22424 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22425
22426 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22427 (find_symbol_value): Use do_symval_forwarding.
22428
22429 * data.c (set_internal): Set the value in the `cons-cell' (for
22430 Buffer_Local_values) not only for frame-local variables.
22431
22432 2007-11-22 Andreas Schwab <schwab@suse.de>
22433
22434 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22435 values to sprintf.
22436 * keymap.c (Fsingle_key_description): Likewise.
22437 * print.c (print_object): Likewise.
22438
22439 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22440
22441 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22442 file for image is nil.
22443
22444 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22445
22446 * term.c: Include stdarg.h.
22447 (fatal): Implement using varargs.
22448 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22449
22450 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22451
22452 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22453 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22454 Update call to buffer_slot_type_mismatch.
22455 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22456 (buffer_slot_type_mismatch): Update.
22457 * buffer.c (buffer_local_types): Remove.
22458 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22459 (defvar_per_buffer): Set the type in the buffer_objfwd.
22460
22461 2007-11-21 Jason Rumney <jasonr@gnu.org>
22462
22463 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22464 CreateFileMapping returns NULL on failure.
22465
22466 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22467
22468 * search.c (Fset_match_data): Remove the `evaporate' feature.
22469 (unwind_set_match_data): Don't use the `evaporate' feature.
22470
22471 2007-11-21 Jason Rumney <jasonr@gnu.org>
22472
22473 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22474
22475 * w32console.c (w32con_write_glyphs): Remove unused variables.
22476
22477 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22478
22479 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22480
22481 * s/darwin.h (MULTI_KBOARD): Remove.
22482
22483 * macfns.c (x_create_tip_frame, Fx_create_frame)
22484 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22485
22486 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22487
22488 * buffer.c (Fbuffer_local_value): Remove redundant test.
22489 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22490 than in `current-buffer' to match the comment.
22491 Do the swap using swap_in_global_binding.
22492
22493 * data.c (store_symval_forwarding, set_internal):
22494 * eval.c (specbind): Remove dead code.
22495
22496 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22497 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22498 Since we do not want to see internal Lisp_*fwd objects here.
22499
22500 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22501
22502 * sysdep.c (init_system_name): Use getaddrinfo if available.
22503
22504 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22505 (x_scroll_bar_note_movement): start, end, with, height in struct
22506 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22507
22508 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22509
22510 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22511
22512 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22513
22514 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22515 This undoes Richard's change of 14-Oct-2002.
22516
22517 * alloc.c (allocate_other_vector):
22518 * lisp.h (allocate_other_vector): Remove.
22519
22520 * window.c (struct save_window_data): Move non-lisp data to the end
22521 and make it `int' rather than Lisp_Object.
22522 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22523 Done wrap/unwrap integer values.
22524 (Fset_window_configuration, compare_window_configurations):
22525 Update use of fields to their new types.
22526
22527 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22528 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22529 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22530 (SET_SCROLL_BAR_X_WINDOW): Remove.
22531 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22532 Access the new x_window field directly.
22533 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22534 Don't wrap/unwrap integers into Lisp_Objects.
22535 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22536 (x_scroll_bar_report_motion):
22537 Don't wrap/unwrap integers into Lisp_Objects.
22538 (x_term_init): Use SDATA.
22539 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22540 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22541 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22542 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22543 * xfns.c (x_set_background_color):
22544 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22545 Access the new x_window field directly.
22546
22547 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22548 (allocate_pseudovector): Make non-static.
22549
22550 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22551 (allocate_pseudovector): Declare.
22552 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22553
22554 2007-11-15 Andreas Schwab <schwab@suse.de>
22555
22556 * editfns.c (Fformat): Correctly format EMACS_INT values.
22557 Also take precision into account when formatting an integer.
22558
22559 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22560
22561 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22562
22563 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22564 (syms_of_keyboard): Defsubr it.
22565
22566 * data.c (swap_in_global_binding): Fix longstanding bug where
22567 store_symval_forwarding was not called with the right second argument,
22568 thus causing objfwd-ing from being dropped.
22569
22570 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22571
22572 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22573 (Fx_display_pixel_height, Fx_display_planes)
22574 (Fx_display_color_cells, Fx_server_max_request_size)
22575 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22576 (Fx_display_visual_class, Fx_display_save_under):
22577 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22578 (Fx_display_pixel_height, Fx_display_planes)
22579 (Fx_display_color_cells, Fx_server_max_request_size)
22580 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22581 (Fx_display_mm_height, Fx_display_mm_width)
22582 (Fx_display_backing_store, Fx_display_visual_class)
22583 (Fw32_select_font, Fx_display_save_under):
22584 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22585 (Fx_display_pixel_height, Fx_display_planes)
22586 (Fx_display_color_cells, Fx_server_max_request_size)
22587 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22588 (Fx_display_save_under): Fix typos in docstrings.
22589
22590 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
22591
22592 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22593 corresponding to deleted entries; they are an implementation detail.
22594 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22595 Remove variables.
22596 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22597 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22598 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22599 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22600 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22601 (Fw32_define_rgb_color, Fw32_load_color_file)
22602 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22603 Fix typos in docstrings.
22604 (Fx_server_version): Reflow docstring.
22605 (Fw32_shell_execute): Doc fixes.
22606
22607 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
22608
22609 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22610 if w32_parse_hot_key returned nil.
22611
22612 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22613
22614 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22615
22616 2007-11-09 Jason Rumney <jasonr@gnu.org>
22617
22618 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22619
22620 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22621
22622 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22623 Remove W32_SCROLL_BAR_CLICK_EVENT.
22624
22625 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22626 Add MULTIMEDIA_KEY_EVENT.
22627
22628 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22629 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22630 (make_lispy_event) [WINDOWSNT]: Use it to translate
22631 MULTIMEDIA_KEY_EVENT.
22632
22633 * w32term.h (WM_APPCOMMAND): Define if not already.
22634 (GET_APPCOMMAND_LPARAM): Likewise.
22635
22636 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22637 WM_APPCOMMAND.
22638
22639 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22640 (syms_of_w32fns): Export and initialize it.
22641 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22642
22643 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
22644
22645 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22646 twice.
22647
22648 * xdisp.c (handle_face_prop): Fix last change.
22649
22650 2007-11-09 Richard Stallman <rms@gnu.org>
22651
22652 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22653 not just for after-strings and before-strings.
22654 Call face_for_overlay_string and pass the overlay to it.
22655 (handle_display_prop): Determine whether property came from an overlay.
22656 Pass OVERLAY arg to handle_single_display_spec.
22657 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22658 (load_overlay_strings): Fill in it->string_overlays.
22659 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22660
22661 * xfaces.c (face_for_overlay_string): Function renamed from
22662 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22663
22664 * dispextern.h (struct it): New elt string_overlays.
22665 New elt from_overlay, also in stack.
22666 Rearrange a few elements.
22667 (face_for_overlay_string): Decl renamed from
22668 face_at_buffer_position_no_overlays, and add argument.
22669
22670 2007-11-09 Richard Stallman <rms@gnu.org>
22671
22672 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22673 to get the base face for an overlay string.
22674
22675 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22676
22677 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22678
22679 * xdisp.c (handle_stop): Move some code out of loop.
22680
22681 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22682
22683 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22684 Fix conversion from Lisp object to ATSUFontID.
22685
22686 2007-11-09 Jason Rumney <jasonr@gnu.org>
22687
22688 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22689
22690 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22691
22692 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22693 Don't assume regions are aligned to page boundary.
22694 (print_load_command_name): Add LC_UUID if defined.
22695
22696 2007-11-09 Richard Stallman <rms@gnu.org>
22697
22698 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22699
22700 2007-11-07 Jason Rumney <jasonr@gnu.org>
22701
22702 * s/windows95.h: Remove.
22703
22704 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22705
22706 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22707 abort with a message on unhandled store_type values.
22708
22709 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22710
22711 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22712 Remove HAVE_X11R5 and HAVE_X11R4.
22713
22714 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22715
22716 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22717
22718 2007-11-01 Johan Bockgård <bojohan@gnu.org>
22719
22720 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22721 Don't set s->stippled_p here, since it has already been set by
22722 x_set_glyph_string_gc from x_draw_glyph_string.
22723
22724 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22725
22726 * sunfns.c: Remove file.
22727
22728 * m/sun386.h:
22729 * m/sun2.h:
22730 * m/sparc.h: Remove Sun windows code.
22731
22732 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22733
22734 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22735 (init_keyboard): Set current_kboard's window-system to nil.
22736 (tty_read_avail_input): Typo.
22737 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22738
22739 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22740
22741 * s/usg5-4.h:
22742 * s/usg5-3.h:
22743 * s/ptx.h:
22744 * m/is386.h:
22745 * m/ibmps2-aix.h:
22746 * Makefile.in: Remove all mentions of X10.
22747
22748 * dispnew.c (syms_of_display): Don't mention version 10.
22749
22750 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
22751
22752 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22753 ($(BLD)/abbrev.$(O)): Remove.
22754
22755 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22756
22757 Rewrite abbrev.c in Elisp.
22758 * image.c (Qcount): Don't declare as extern.
22759 (syms_of_image): Initialize and staticpro `Qcount'.
22760 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22761 * emacs.c (main): Don't call syms_of_abbrev.
22762 * Makefile.in (obj): Remove abbrev.o.
22763 (abbrev.o): Remove.
22764 * abbrev.c: Remove.
22765
22766 2007-10-26 Martin Rudalics <rudalics@gmx.at>
22767
22768 * window.c (window_min_size_2): Don't count header-line.
22769
22770 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22771
22772 * frame.h (struct frame): Move all bit fields after the first bit
22773 field to take advantage of the available space. Group all the
22774 chars together to reduce wasted space due to padding.
22775
22776 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
22777
22778 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22779
22780 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22781 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22782 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22783 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22784 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22785 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22786 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22787 (last_marked, mark_object_loop_halt): Make static.
22788
22789 * frame.c (syms_of_frame) <delete-frame-functions>:
22790 Fix typo in docstring.
22791
22792 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
22793
22794 * w32.c (init_environment): Fix tiny memory leak.
22795 (w32_get_resource): Remove unused variable `ok'.
22796
22797 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22798
22799 Make `window-system' into a keyboard-local variable (rather than
22800 frame-local as done originally by multi-tty).
22801
22802 * keyboard.h (struct kboard): Add Vwindow_system.
22803 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22804 (mark_kboards): Mark Vwindow_system.
22805
22806 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22807 (init_display): Don't set the obsolete `window-system' frame-param.
22808
22809 * xterm.c (x_term_init):
22810 * w32term.c (w32_create_terminal):
22811 * term.c (init_tty): Set Vwindow_system.
22812 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22813 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22814
22815 * xfns.c (Fx_create_frame, x_create_tip_frame):
22816 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22817 * macfns.c (Fx_create_frame):
22818 Don't set the obsolete `window-system' frame-param.
22819
22820 * frame.h (Qwindow_system): Remove.
22821 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22822 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22823
22824 2007-10-24 Richard Stallman <rms@gnu.org>
22825
22826 * frame.c (x_figure_window_size): For fullscreen case,
22827 set USPosition | PPosition without clobbering rest of window_prompting.
22828
22829 * keyboard.c (Fcurrent_idle_time): Doc fix.
22830
22831 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22832
22833 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22834
22835 * process.c (unwind_request_sigio): Only define if __ultrix__.
22836
22837 * callproc.c (child_setup): Remove spurious *.
22838
22839 * lisp.h (Fget_text_property): Declare.
22840 (have_menus_p): Declare it here rather than in sys-dep header files.
22841 * macterm.h (have_menus_p):
22842 * msdos.h (have_menus_p):
22843 * xterm.h (have_menus_p): Remove.
22844
22845 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22846 (Fmake_variable_frame_local): Just check the variable's const-ness
22847 rather than checking nil or t.
22848
22849 2007-10-22 Jason Rumney <jasonr@gnu.org>
22850
22851 * w32fns.c: Include math.h.
22852 (w32_abort): Declaration moved to nt/config.nt.
22853
22854 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22855 (abort): Redefinition moved to nt/config.nt.
22856
22857 * m/windowsnt.h: Remove.
22858
22859 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
22860
22861 * emacs.c (Fdump_emacs): Fix typo in message.
22862 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22863 <installation-directory>: Reflow docstring.
22864
22865 2007-10-22 Juri Linkov <juri@jurta.org>
22866
22867 * minibuf.c: Allow minibuffer default to be a list of default values.
22868 With empty input use the first element of this list as returned default.
22869 (string_to_object)
22870 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22871 (read_minibuf): If defalt is cons, set histstring to its car.
22872 (Fread_string): If default_value is cons, set val to its car.
22873 (Fread_buffer): If def is cons, use its car.
22874 (Fcompleting_read): If defalt is cons, set val to its car.
22875
22876 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
22877
22878 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22879
22880 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
22881
22882 * doc.c (Fdocumentation): Check for advice in all cases.
22883
22884 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
22885
22886 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22887
22888 2007-10-19 Richard Stallman <rms@gnu.org>
22889
22890 * doc.c (Fdocumentation): Check for and handle an advised function.
22891
22892 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
22893
22894 * process.c (Fset_process_filter): Doc fix.
22895
22896 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22897
22898 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22899 which caused key-translation-map to applied repeatedly (thus breaking
22900 double-mode).
22901
22902 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22903
22904 * xselect.c (x_own_selection, x_handle_selection_clear)
22905 (x_clear_frame_selections):
22906 * w32menu.c (list_of_panes, list_of_items):
22907 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22908 * textprop.c (validate_plist, interval_has_all_properties)
22909 (interval_has_some_properties, interval_has_some_properties_list)
22910 (add_properties, text_property_list):
22911 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22912 * minibuf.c (Fassoc_string):
22913 * macselect.c (x_own_selection, x_clear_frame_selections)
22914 (Fx_disown_selection_internal):
22915 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22916 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22917
22918 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
22919
22920 * process.c: Link to libs for calling res_init() if available.
22921 (Fmake_network_process): Call res_init() before getaddrinfo or
22922 gethostbyname, if possible.
22923
22924 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22925
22926 * lread.c (read1): Set pvectype for char_tables.
22927
22928 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22929 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22930 Add type checks.
22931 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22932
22933 * alloc.c (free_misc): Use XMISCTYPE.
22934 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22935
22936 2007-10-17 Glenn Morris <rgm@gnu.org>
22937
22938 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22939 (syms_of_minibuf): Add Qcompletion_ignore_case.
22940 * dired.c (Qcompletion_ignore_case): Change to external.
22941 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22942 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22943 (Fread_file_name): Use it rather than intern'ing.
22944
22945 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22946 (Fread_coding_system): Ignore case of user input.
22947
22948 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22949
22950 * xdisp.c (handle_display_prop): Ignore display specs after
22951 replacing one when string text is being replaced.
22952 (handle_single_display_spec): Pretend as if characters with display
22953 property haven't been consumed only when buffer text is being replaced.
22954
22955 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22956
22957 * xfns.c (Fx_create_frame, Fx_display_list):
22958 * window.c (window_fixed_size_p, enlarge_window)
22959 (shrink_window_lowest_first):
22960 * macterm.c (init_font_name_table):
22961 * macfns.c (Fx_create_frame, Fx_display_list):
22962 * lread.c (close_load_descs):
22963 * keyboard.c (read_char_x_menu_prompt):
22964 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22965 * coding.c (code_convert_region_unwind): Test the type of an object
22966 rather than just !NILP before extracting data from it.
22967
22968 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22969
22970 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22971 (XMISCANY): New macro.
22972 (XMISCTYPE): Use it.
22973 (struct Lisp_Misc_Any): New type.
22974 (union Lisp_Misc): Use it.
22975 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22976 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22977 (find_symbol_value, set_internal, default_value, Fset_default)
22978 (Fmake_variable_buffer_local, Fmake_local_variable)
22979 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22980 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22981 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22982 * alloc.c (allocate_buffer): Set the size and tag.
22983 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22984 Use XMISCANY.
22985 (die): Follow the GNU convention for error messages.
22986 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22987 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22988 tag any more.
22989 (set_buffer_internal_1):
22990 * frame.c (store_frame_param):
22991 * eval.c (specbind):
22992 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22993
22994 * doc.c (Fsnarf_documentation): Simplify.
22995
22996 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22997
22998 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22999 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23000
23001 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23002
23003 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23004
23005 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23006
23007 * eval.c (do_autoload): Don't save autoloads.
23008
23009 * data.c (Ffset): Save autoload of the function being set.
23010
23011 2007-10-07 John Paul Wallington <jpw@pobox.com>
23012
23013 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23014 parameter before setting up faces.
23015
23016 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23017
23018 * ccl.c (Fregister_code_conversion_map):
23019 * keyboard.c (append_tool_bar_item): Reformat last change.
23020
23021 * lisp.h (eabs): Rename from `abs'. All callers changed.
23022
23023 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23024
23025 * buffer.c (add_overlay_mod_hooklist):
23026 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23027 * fontset.c (make_fontset):
23028 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23029 (append_tool_bar_item):
23030 * macmenu.c (grow_menu_items):
23031 * w32menu.c (grow_menu_items):
23032 * xmenu.c (grow_menu_items): Use larger_vector.
23033
23034 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23035
23036 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23037 selected frame'' on MSDOS).
23038
23039 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23040
23041 * frame.c (Qexplicit_name): New variable.
23042 (x_report_frame_params): Report it in parameter alist.
23043 (syms_of_frame): Intern and staticpro it.
23044
23045 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23046
23047 * macfns.c (x_create_tip_frame): Set terminal for frame.
23048
23049 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23050
23051 * frame.c (Qenvironment): Remove.
23052 (syms_of_frame) <Qenvironment>: Don't initialize.
23053 (Fdelete_frame): Don't treat the `environment' param specially.
23054 * frame.h (Qenvironment): Don't declare.
23055 * callproc.c (set_initial_environment): Don't set unused frame param.
23056
23057 * frame.c (Fframe_with_environment): Remove.
23058 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23059
23060 * lisp.h (Fframe_with_environment): Don't declare.
23061
23062 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23063
23064 * indent.c (indent_tabs_mode, last_known_column)
23065 (last_known_column_modified): Make static.
23066 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23067
23068 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23069
23070 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23071
23072 2007-10-09 Jason Rumney <jasonr@gnu.org>
23073
23074 * w32term.c (x_set_window_size): Disable code that attempts to tell
23075 Lisp code about a size change before it actually happens.
23076
23077 2007-10-09 Richard Stallman <rms@gnu.org>
23078
23079 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23080 return HANDLED_RETURN.
23081
23082 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23083
23084 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23085 when there's an unread command event.
23086
23087 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23088 window autoselection act appropriately when leaving selected frame.
23089 (syms_of_frame): Initialize focus_follows_mouse.
23090 * frame.h (focus_follows_mouse): Extern it.
23091 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23092 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23093 * msdos.c (dos_rawgetc): Likewise.
23094 * w32term.c (w32_read_socket): Likewise.
23095 * xterm.c (handle_one_xevent): Likewise.
23096 * xdisp.c (syms_of_xdisp): In doc-string of
23097 mouse-autoselect-window mention focus-follows-mouse.
23098
23099 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23100
23101 * macterm.c (mac_load_query_font): Fix missing return value.
23102 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23103 Add BLOCK_INPUT.
23104
23105 2007-10-08 Richard Stallman <rms@gnu.org>
23106
23107 * xdisp.c (get_window_cursor_type): Implement documented behavior
23108 for cursor-in-non-selected-windows = t.
23109
23110 2007-10-08 Jason Rumney <jasonr@gnu.org>
23111
23112 * w32.c (w32_get_resource): Always close registry keys.
23113
23114 2007-10-08 Jason Rumney <jasonr@gnu.org>
23115
23116 * makefile.w32-in (LIBS): Add COMCTL32.
23117
23118 * w32fns.c (globals_of_w32fns): Init common controls.
23119
23120 2007-10-08 Richard Stallman <rms@gnu.org>
23121
23122 * image.c (our_memory_buffer): Rename from omfib_buffer.
23123
23124 2007-10-08 Richard Stallman <rms@gnu.org>
23125
23126 * buffer.c (Foverlays_at): Doc fix.
23127
23128 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23129
23130 * fns.c (Fplist_put): Preserve uneven tail data.
23131
23132 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23133
23134 * termhooks.h (enum event_kind): Remove trailing comma.
23135
23136 * frame.h (enum): Remove trailing comma.
23137
23138 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23139
23140 * w32proc.c (delete_child): Don't terminate threads of zombies.
23141
23142 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23143
23144 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23145
23146 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23147 last-repeatable-command.
23148 (init_kboard): Initialize Vlast_repeatable_command.
23149 (command_loop_1): Set it to real_this_command unless that was
23150 bound to an input event.
23151 (mark_kboards): Mark it.
23152
23153 2007-10-08 Richard Stallman <rms@gnu.org>
23154
23155 * eval.c (condition-case): Doc fix.
23156
23157 2007-10-08 Masatake YAMATO <jet@gyve.org>
23158
23159 * xfaces.c (tty_supports_face_attributes_p): Fix code
23160 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23161 was copied and not edited.
23162
23163 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23164
23165 Add new `input-decode-map' keymap and use it for terminal
23166 escape sequences.
23167 * keyboard.h (struct kboard): Add Vinput_decode_map.
23168 Remove Vlocal_key_translation_map.
23169 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23170 (init_kboard): Init input-decode-map.
23171 Replace local-key-translation-map back with key-translation-map.
23172 (syms_of_keyboard): Declare input-decode-map.
23173 Remove local-key-translation-map. Update docstrings.
23174 (mark_kboards): Mark Vinput_decode_map.
23175 Don't mark Vlocal_key_translation_map.
23176 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23177 Replace local-key-translation-map back with key-translation-map.
23178 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23179 Bind in input-decode-map rather than function-key-map.
23180
23181 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23182 This was made redundant by the previous introduction of XSETPVECTYPE.
23183
23184 2007-10-09 Richard Stallman <rms@gnu.org>
23185
23186 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23187
23188 2007-09-29 Richard Stallman <rms@gnu.org>
23189
23190 * eval.c (internal_condition_case_2, internal_condition_case_1)
23191 (internal_condition_case): Reenable abort if x_catching_errors ()
23192 to see if that really happens and why.
23193
23194 2007-10-06 Andreas Schwab <schwab@suse.de>
23195
23196 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23197
23198 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
23199
23200 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23201
23202 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23203
23204 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23205
23206 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23207
23208 * window.h (struct window):
23209 * window.c (struct save_window_data, struct saved_window):
23210 * termhooks.h (struct terminal):
23211 * process.h (struct Lisp_Process):
23212 * frame.h (struct frame):
23213 * buffer.h (struct buffer):
23214 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23215 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23216 The size field of (pseudo)vectors is now unsigned.
23217 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23218
23219 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23220 Turn `count' into an integer.
23221
23222 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23223 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23224 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23225 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23226 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23227
23228 * alloc.c (allocate_pseudovector): New fun.
23229 (ALLOCATE_PSEUDOVECTOR): New macro.
23230 (allocate_window, allocate_terminal, allocate_frame)
23231 (allocate_process): Use it.
23232 (mark_vectorlike): New function.
23233 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23234 (mark_terminals): Use it.
23235 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23236 (Fmake_byte_code): Use XSETPVECTYPE.
23237
23238 * frame.c (Fframe_parameters): Minor simplification.
23239
23240 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23241
23242 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23243
23244 * buffer.c (Fget_buffer_create, init_buffer_once):
23245 * lread.c (defsubr):
23246 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23247
23248 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23249 defined differently in the m/*.h files.
23250 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23251 (XSETPVECTYPE): New macro.
23252 (XSETPSEUDOVECTOR): Use it.
23253
23254 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23255 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23256
23257 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23258 * lread.c (defvar_per_buffer):
23259 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23260
23261 * window.c (candidate_window_p): Only consider as visible frames that
23262 are on the same terminal.
23263
23264 * m/ibms390x.h (MARKBIT): Remove unused macro.
23265
23266 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
23267
23268 * lread.c (Fload): Fix typo in docstring.
23269
23270 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23271
23272 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23273 of a non-zero value can't yield zero.
23274
23275 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23276
23277 * term.c (term_clear_mouse_face, term_mouse_highlight)
23278 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23279
23280 * print.c (safe_debug_print): Use XHASH.
23281
23282 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23283 Lisp elements such as tags.
23284 (XHASH): New macro.
23285 (EQ): Use it.
23286 (SREF, SSET, STRING_COPYIN): Use SDATA.
23287 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23288
23289 * alloc.c (mark_terminal): Remove left-over declaration.
23290 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23291 (allocate_vectorlike): Remove type argument. Adjust callers.
23292 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23293 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23294
23295 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23296 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23297 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23298 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23299 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23300 Use them.
23301
23302 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23303 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23304 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23305
23306 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23307
23308 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23309 loaded by default.
23310
23311 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23312
23313 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23314 on this tty.
23315 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23316
23317 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23318 Update all users.
23319 (handle_one_term_event): Use Gpm_DrawPointer.
23320 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23321 Signal errors instead of returning nil. Always return nil.
23322 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23323 Make it a noop if gpm-mouse was not activated.
23324 (syms_of_term): Update names.
23325
23326 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23327
23328 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23329 (init_sys_modes): Check that gpm_tty is the current tty.
23330
23331 * alloc.c (allocate_terminal): Set the vector size to only count the
23332 lisp fields. Initialize those to nil.
23333 (mark_object): Don't treat terminals specially.
23334 (mark_terminal): Remove.
23335 (mark_terminals): Use mark_object instead.
23336
23337 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23338 the GC to the beginning.
23339
23340 * indent.h:
23341 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23342
23343 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23344
23345 2007-09-25 Jason Rumney <jasonr@gnu.org>
23346
23347 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23348
23349 * w32console.c (create_w32cons_output): Remove.
23350
23351 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23352
23353 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23354 (reset_sys_modes): Use reset_terminal_modes_hook.
23355
23356 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23357
23358 * eval.c (do_autoload): Don't output any message.
23359
23360 2007-09-24 Juri Linkov <juri@jurta.org>
23361
23362 * emacs.c (standard_args): Change priority of "--no-splash"
23363 from 40 to 3. Add "--no-desktop" with the same priority.
23364
23365 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23366
23367 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23368 and optimize the case where they are all 1.
23369
23370 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
23371
23372 * lisp.h (abs): Define if not defined.
23373 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23374 Don't define `abs', since it's defined in lisp.h.
23375
23376 2007-09-22 Eli Zaretskii <eliz@gnu.org>
23377
23378 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23379 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23380 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23381 (init_tty): Use DEV_TTY instead of "/dev/tty".
23382 [WINDOWSNT]: No need to protect from NAME arg being null.
23383
23384 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23385
23386 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23387 up the tty state.
23388
23389 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23390
23391 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23392 (gpm_tty): Change its type.
23393 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23394 (gpm_tty): Change its type and initialize it.
23395 (Fterm_open_connection): Check the frame is indeed a tty.
23396 Use the new gpm_tty.
23397 (Fterm_close_connection): Use the new gpm_tty.
23398 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23399 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23400
23401 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
23402
23403 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23404 underline_color, to draw strike-through.
23405
23406 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23407
23408 * lisp.h (allocate_terminal): Declare.
23409
23410 * window.c (candidate_window_p): Consider frames that are being placed
23411 by the user as somewhere between visible and iconified.
23412 (window_loop): Prefer windows on the current frame.
23413 (Fselect_window): Move the use of select-frame to the beginning so we
23414 can just delegate all the work (it'll call us back anyway).
23415
23416 * frame.c (Qdisplay_environment_variable):
23417 * frame.h (Qdisplay_environment_variable): Delete.
23418
23419 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23420 of the first arg, since that value may be a union.
23421
23422 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23423 parameter rather than Qdisplay_environment_variable. If all else
23424 fails, look for DISPLAY in initial-environment.
23425
23426 2007-09-21 Glenn Morris <rgm@gnu.org>
23427
23428 * Makefile.in (emacstool): Remove target.
23429 (lisp, shortlisp): Remove termdev.elc.
23430
23431 2007-09-21 Markus Triska <markus.triska@gmx.at>
23432
23433 * xterm.c (x_delete_display): Compile session management conditionally.
23434
23435 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23436
23437 * callproc.c (getenv_internal_1): New function.
23438 (getenv_internal): Use it.
23439 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23440
23441 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23442 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23443 (Fset_terminal_parameter): Work with dead terminals as well.
23444 (Fmodify_terminal_parameters): Remove.
23445
23446 * terminal.c (get_terminal): Handle terminals.
23447 Make sure the terminal returned is live.
23448 (create_terminal): Use allocate_terminal.
23449 (mark_terminals): Move to alloc.c.
23450 (delete_terminal): Use terminal->name as liveness status.
23451 NULL out fields after freeing their contents.
23452 Don't deallocate the object.
23453 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23454 rather than an int.
23455 (Fterminal_live_p): Accept non-integer arguments.
23456 (Fterminal_list): Return terminal objects rather than an ints.
23457
23458 * alloc.c (enum mem_type): New member for `terminal' objects.
23459 (allocate_terminal): New function.
23460 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23461 Handle terminals.
23462 (mark_terminal): New fun.
23463 (mark_terminals): Move from terminal.c.
23464
23465 * term.c (get_tty_terminal): Don't treat output_initial specially.
23466 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23467 (delete_tty): Use terminal->name as liveness status.
23468
23469 * termhooks.h (struct terminal): Make it into a pseudovector.
23470 Remove `deleted' replaced by checking `name's nullness.
23471
23472 * print.c (print_object): Handle terminals.
23473
23474 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23475 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23476
23477 * frame.c (make_terminal_frame):
23478 * keyboard.c (tty_read_avail_input):
23479 * w32term.c (x_delete_terminal):
23480 * xfns.c (Fx_create_frame, x_create_tip_frame):
23481 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23482
23483 2007-09-20 Glenn Morris <rgm@gnu.org>
23484
23485 * process.c (Fmake_network_process): Doc fix.
23486
23487 2007-09-19 Jason Rumney <jasonr@gnu.org>
23488
23489 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23490
23491 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23492
23493 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23494 Fix a C warning regarding variable constness.
23495
23496 * xterm.c (handle_one_xevent): Fix a C warning.
23497
23498 2007-09-18 Jason Rumney <jasonr@gnu.org>
23499
23500 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23501
23502 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23503
23504 * gtkutil.c (gdpy_def): New variable.
23505 (xg_initialize): Initialize gdpy_def.
23506 (xg_display_close): If no other display exists, set gdpy_def to a
23507 new connection.
23508
23509 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23510
23511 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23512 when we have no file name for the icon.
23513 (xg_tool_bar_expose_callback): Remove.
23514 (xg_create_tool_bar): Don't connect expose signal to
23515 xg_tool_bar_expose_callback.
23516 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23517
23518 2007-09-16 Andreas Schwab <schwab@suse.de>
23519
23520 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23521 values instead of zapping them.
23522
23523 2007-09-14 Glenn Morris <rgm@gnu.org>
23524
23525 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23526 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23527 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23528 scope and rename to omfib_buffer for clarity.
23529 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23530
23531 2007-09-14 Kenichi Handa <handa@m17n.org>
23532
23533 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23534
23535 2007-09-13 Jason Rumney <jasonr@gnu.org>
23536
23537 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23538
23539 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23540
23541 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23542 (mac_term_init): Call here instead, passing rif.
23543
23544 2007-09-13 Glenn Morris <rgm@gnu.org>
23545
23546 * s/hpux.h: No longer define `static' as nothing.
23547
23548 2007-09-13 Johan Bockgård <bojohan@gnu.org>
23549
23550 * callint.c (Fcall_interactively): Remove unused var `fun'.
23551
23552 2007-09-12 Romain Francoise <romain@orebokech.com>
23553
23554 * window.c (prefer_window_split_horizontally, display_buffer):
23555 Revert 2007-09-08 change.
23556
23557 2007-09-12 Glenn Morris <rgm@gnu.org>
23558
23559 * alloca.c: Remove file.
23560 * Makefile.in (alloca): Do not undef.
23561 (allocaobj, alloca.o): Remove.
23562 (otherobj): Remove allocaobj.
23563 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23564 * regex.c (C_ALLOCA): Remove all references and code that was only
23565 used when this was defined.
23566 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23567 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23568 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23569
23570 * Makefile.in (SOURCES, unlock, relock): Delete.
23571
23572 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23573 (menu_grab_callback): All uses changed.
23574
23575 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23576 (x_reply_selection_request): All uses changed.
23577
23578 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23579
23580 * lread.c (load_warn_old_style_backquotes): Change message to look
23581 better when it appears in the middle of byte-compiler messages.
23582
23583 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23584
23585 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23586
23587 * xterm.c (x_create_terminal): Add comment.
23588
23589 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23590
23591 2007-09-10 Richard Stallman <rms@gnu.org>
23592
23593 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23594
23595 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23596
23597 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23598 (DEFUN): Document `intspec', use it instead of `prompt'.
23599
23600 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23601
23602 * data.c (Finteractive_form): If the interactive specification starts
23603 with a `(', use it as a Lisp form.
23604
23605 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23606 name and file modes.
23607
23608 * callint.c (Fcall_interactively): Comment fixes.
23609
23610 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23611
23612 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23613 and compiled functions.
23614
23615 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23616
23617 * window.c (prefer_window_split_horizontally): New variable.
23618 (display_buffer): Consider splitting window horizontally depending
23619 on prefer_window_split_horizontally.
23620
23621 2007-09-08 Eli Zaretskii <eliz@gnu.org>
23622
23623 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23624
23625 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23626
23627 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23628
23629 * frame.c (x_set_frame_parameters): Check number is positive before
23630 using XFASTINT.
23631
23632 * window.c (freeze_window_start): Don't presume selected_window holds
23633 a window object.
23634 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23635
23636 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23637
23638 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23639
23640 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23641
23642 * window.c (Vsplit_window_preferred_function): New var.
23643 (Fdisplay_buffer): Use it.
23644 (syms_of_window): Export, and initialize it.
23645
23646 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23647
23648 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23649
23650 2007-09-06 Glenn Morris <rgm@gnu.org>
23651
23652 * gtkutil.c (menu_grab_callback) <cnt>:
23653 * xselect.c (x_reply_selection_request) <cnt>: Move static
23654 variable to file scope.
23655
23656 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23657
23658 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23659 consistent values of selected_frame and selected_window.
23660
23661 2007-09-04 Jason Rumney <jasonr@gnu.org>
23662
23663 * w32console.c (initialize_w32_display): Zero unused hooks.
23664
23665 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23666
23667 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23668 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23669
23670 2007-09-04 Jason Rumney <jasonr@gnu.org>
23671
23672 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23673 in w32console.c. Set up input. Remove XXX comments that have been
23674 confirmed as correct.
23675
23676 * s/ms-w32.h (MULTI_KBOARD): Define.
23677
23678 * w32console.c (one_and_only_w32cons): Remove.
23679 (initialize_w32_display): Take terminal argument.
23680
23681 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23682 initialize_w32_display.
23683 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23684
23685 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23686
23687 * keyboard.c (discard_mouse_events): Discard it.
23688 (make_lispy_event): Translate it to a lisp event.
23689 (lispy_wheel_names): Add wheel-left and right events.
23690 (syms_of_keyboard): Enlarge wheel_syms.
23691
23692 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23693 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23694
23695 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23696
23697 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23698 from WM_MOUSEHWHEEL.
23699 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23700
23701 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23702 terminal.
23703
23704 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23705 keyboard for the terminal.
23706
23707 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23708
23709 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23710 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23711 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23712 and resume-tty-function to resume-tty-hook.
23713 (Fsuspend_tty, Fresume_tty): Use new names.
23714
23715 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23716
23717 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23718 if it starts with "n:".
23719
23720 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23721
23722 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23723
23724 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23725
23726 * frame.h:
23727 * frame.c (Qterm_environment_variable): Remove.
23728 (syms_of_frame): Don't init and staticpro it.
23729
23730 * callproc.c (getenv_internal): Remove special case for $TERM.
23731
23732 * callproc.c (Vinitial_environment): New variable.
23733 (set_initial_environment): Initialize it.
23734 (syms_of_callproc): Declare it.
23735 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23736 TERM under which a process runs is never related to the TERM in which
23737 Emacs is running.
23738
23739 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23740
23741 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23742 * s/darwin.h: ... do it here.
23743
23744 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23745
23746 * lisp.h (set_initial_environment): Rename from set_global_environment.
23747
23748 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23749 removed by mistake on the multi-tty branch.
23750
23751 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23752 (Fmodify_frame_parameters): Return a value.
23753
23754 * image.c (png_load): Comment-out var only used in commented-out code.
23755
23756 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23757 before passing it to mark_object.
23758
23759 * xfaces.c (internal_resolve_face_name): Return a value.
23760 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23761
23762 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23763 (x_icon): Comment-out var only used in commented-out code.
23764
23765 2007-08-29 Romain Francoise <romain@orebokech.com>
23766
23767 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23768 QUIT hasn't been provided.
23769
23770 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23771
23772 * callproc.c (child_setup, getenv_internal): Use the
23773 display-environment-variable and term-environment-variable frame params.
23774 (set_initial_environment): Initialise Vprocess_environment.
23775
23776 * config.in: Disable multi-keyboard support on a mac.
23777
23778 * frame.c (Qterm_environment_variable)
23779 (Qdisplay_environment_variable): New variables.
23780 (syms_of_frame): Intern and staticpro them.
23781 (Fmake_terminal_frame): Disable output method test.
23782
23783 * frame.h: Declare them here.
23784
23785 * macfns.c (x_set_mouse_color): Get rif from the frame.
23786 (x_set_tool_bar_lines): Don't use updating_frame.
23787 (mac_window): Add 2 new parameters for consistency with other systems.
23788 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23789 frame parameters following what is done in X11 and w32. Don't use
23790 FRAME_MAC_DISPLAY_INFO.
23791 (Fx_open_connection, start_hourglass): Remove window-system check.
23792 (x_create_tip_frame): Get the keyboard from the terminal.
23793
23794 * macmenu.c: Reorder includes.
23795 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23796
23797 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23798 terminal parameter.
23799 (x_clear_frame): Add a frame parameter.
23800 (note_mouse_movement): Get rif from the frame.
23801 (mac_term_init): Initialize the terminal.
23802 (mac_initialize): Make static and move terminal initialization ...
23803 (mac_create_terminal): ... to this new function.
23804
23805 * macterm.h (struct mac_display_info): Add terminal.
23806 (mac_initialize): Delete declaration.
23807
23808 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23809
23810 * sysdep.c: Comment out text after #endif.
23811
23812 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23813 is defined. Better initialize ttys in windows. Use terminal
23814 specific mouse_position_hook.
23815
23816 * termhooks.h (union display_info): Add mac_display_info.
23817
23818 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23819 Set the default minibuffer frame, window_system and the rest of the
23820 frame parameters following what is done in X11.
23821
23822 * w32term.c (w32_initialize): Make static.
23823
23824 * xselect.c (x_handle_selection_clear): Only access
23825 terminal->kboard when MULTI_KBOARD is defined.
23826
23827 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23828 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23829
23830 2007-08-29 Jason Rumney <jasonr@gnu.org>
23831
23832 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23833 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23834
23835 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23836 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23837
23838 * keyboard.c (restore_kboard_configuration): Only define when
23839 MULTI_KBOARD defined.
23840
23841 * makefile.w32-in: Update dependancies from Makefile.in.
23842 (OBJ1): Add terminal.$(O)
23843
23844 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23845 Don't define function body.
23846 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23847
23848 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23849
23850 * w32.c (request_sigio, unrequest_sigio): Remove.
23851
23852 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23853 (w32con_clear_frame, w32con_clear_end_of_line)
23854 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23855 (w32con_delete_glyphs, w32con_set_terminal_window)
23856 (scroll_line, w32_sys_ring_bell): Add frame arg.
23857 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23858 Add terminal arg.
23859 (PICK_FRAME): Remove.
23860 (w32con_write_glyphs): Use frame specific terminal coding.
23861 (one_and_only_w32cons): New global variable.
23862 (initialize_w32_display): Use it for storing hooks.
23863 (create_w32cons_output): New function.
23864
23865 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23866 arg a frame.
23867
23868 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23869 Set window_system.
23870 (x_set_tool_bar_lines): Don't use updating_frame.
23871 (Fx_create_frame): Set terminal and ref count.
23872 (Fx_open_connection): Remove window-system check.
23873
23874 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23875
23876 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23877 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23878 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23879 Add frame arg.
23880 (x_delete_terminal, w32_create_terminal): New functions.
23881 (w32_term_init): Create a terminal.
23882 (w32_initialize): Move terminal specific initialization to
23883 w32_create_terminal.
23884
23885 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23886 (w32_clear_rect, w32_clear_area): Use background from frame.
23887 (w32_display_info): Add terminal.
23888 (w32_sys_ring_bell, x_delete_display): Declare here.
23889
23890 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23891
23892 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23893
23894 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23895
23896 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23897 Fix get_named_tty calls for the controlling tty.
23898
23899 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23900
23901 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
23902
23903 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23904
23905 * term.c (tty_insert_glyphs): Add missing first parameter.
23906
23907 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23908
23909 * buffer.c (Fbuffer_list, Fbury_buffer):
23910 Take frame->buried_buffer_list into account.
23911
23912 * cm.c (current_tty): New variable, for cmputc().
23913 (cmputc): Use it.
23914 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23915 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23916 (cmgoto): Add tty parameter. Pass it on to calccost().
23917 Use emacs_tputs() instead of tputs().
23918
23919 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23920 tputs().
23921 (current_tty): New variable, for cmputc().
23922 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23923
23924 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23925 (internal_condition_case, internal_condition_case_1)
23926 (internal_condition_case_2): Don't abort when x_catching_errors.
23927
23928 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23929 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23930 prevent crashes caused by bogus longjmps in read_char.
23931
23932 * keymap.h (Fset_keymap_parent): Add EXFUN.
23933
23934 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23935 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23936 Remove redundant definition.
23937
23938 * macfns.c (x_set_mouse_color, x_make_gc):
23939 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23940
23941 * w32term.c (x_free_frame_resources):
23942 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23943 (w32_initialize): Use the accessor macros for terminal characteristics.
23944
23945 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23946 Use the accessor macros for terminal characteristics.
23947 * msdos.c (internal_terminal_init): Use the accessor macros for
23948 terminal characteristics.
23949 (ScreenVisualBell, internal_terminal_init):
23950 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23951
23952 * termopts.h (no_redraw_on_reenter): Declare.
23953
23954 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23955 (mark_terminals, mark_ttys): Declare.
23956 (Fgarbage_collect): Call them.
23957 (mark_object): Mark buried_buffer_list.
23958
23959 * prefix-args.c: Include stdlib.h for exit.
23960
23961 * syssignal.h: Add comment.
23962
23963 * indent.c: Include stdio.h.
23964
23965 * window.h (Vinitial_window_system): Declare.
23966 (Vwindow_system): Delete declaration.
23967
23968 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23969
23970 * image.c (lookup_image): Don't initialize `c' until the xasserts
23971 have been run.
23972
23973 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23974 FRAME_FOREGROUND_PIXEL.
23975
23976 * print.c (print_preprocess): Don't lose print_depth levels while
23977 iterating.
23978
23979 * widget.c (update_from_various_frame_slots):
23980 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23981
23982 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23983 frames.
23984 (window_internal_height): Remove bogus make_number call.
23985 (init_window_once): Call make_terminal_frame with two zero parameters.
23986
23987 * fileio.c (Fread_file_name): Update comment.
23988
23989 * callint.c (Fcall_interactively):
23990 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23991 Make sure it is correctly unwound.
23992
23993 * xsmfns.c (x_session_close): New function.
23994
23995 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23996 Delete declarations.
23997
23998 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23999 (x_output): Remove background_pixel and foreground_pixel fields.
24000 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24001 (x_delete_device, x_session_close): Declare.
24002
24003 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24004 (read_filtered_event): Call `read_char' with a local
24005 `wrong_kboard_jmpbuf'.
24006
24007 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24008 Don't call single_kboard_state. Use FRAME_RIF.
24009
24010 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24011 systems.
24012
24013 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24014 (Fframe_with_environment, Fset_input_meta_mode)
24015 (Fset_quit_char): EXFUN.
24016 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24017 (init_sys_modes, reset_sys_modes): Update prototypes.
24018 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24019
24020 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24021 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24022 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24023 Delete declarations.
24024 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24025 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24026 New declarations.
24027
24028 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24029 already does that during init_display(). Call syms_of_keymap
24030 before syms_of_keyboard. Call `syms_of_terminal'.
24031 Call set_initial_environment, not set_process_environment.
24032 (shut_down_emacs): Call reset_all_sys_modes() instead of
24033 reset_sys_modes().
24034
24035 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24036 (internal_resolve_face_name, resolve_face_name_error): New functions.
24037 (resolve_face_name): Protect against loops and errors thrown by Fget.
24038 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24039 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24040
24041 * scroll.c: Replace CURTTY() with local variables throughout the
24042 file (where applicable).
24043 (calculate_scrolling, calculate_direct_scrolling)
24044 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24045 characteristics.
24046
24047 * keymap.c (Vfunction_key_map): Remove.
24048 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24049 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24050 (Vkey_translation_map): Remove.
24051 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24052 (Fdescribe_buffer_bindings)
24053 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24054 Update for terminal-local key-translation-map.
24055
24056 * Makefile.in (callproc.o): Update dependencies.
24057 (lisp, shortlisp): Add termdev.elc.
24058 (obj): Add terminal.o.
24059 (terminal.o): Add dependencies.
24060 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24061 (data.o, fns.o): Add termhooks.h dependency.
24062 (SOME_MACHINE_LISP): Add dnd.elc.
24063 (minibuf.o): Fix typo.
24064 Update dependencies.
24065
24066 * data.c (do_symval_forwarding, store_symval_forwarding)
24067 (find_symbol_value): Use the selected frame's keyboard, not
24068 current_kboard.
24069
24070 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24071 Vwindow_system.
24072
24073 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24074 Fmenu_bar_open.
24075 (syms_of_xmenu): Update defsubr.
24076 (mouse_position_for_popup, Fx_popup_menu)
24077 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24078 (set_frame_menubar, free_frame_menubar)
24079 (create_and_show_popup_menu, xmenu_show)
24080 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24081 an X frame.
24082
24083 * xselect.c (x_own_selection): Abort if not an X frame.
24084 (some_frame_on_display): Check if it is an X frame.
24085 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24086
24087 * coding.c: Include frame.h and termhooks.h.
24088 (terminal_coding, keyboard_coding): Delete.
24089 (Fset_terminal_coding_system_internal)
24090 (Fset_keyboard_coding_system_internal)
24091 (Fkeyboard_coding_system)
24092 (Fterminal_coding_system): Add a terminal parameter.
24093 Get terminal_coding from the terminal.
24094 (init_coding_once): Don't call setup_coding_system here.
24095
24096 * dispextern.h (set_scroll_region, turn_off_insert)
24097 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24098 (tty_clear_end_of_line, tty_setup_colors)
24099 (delete_tty, updating_frame)
24100 (produce_special_glyphs, produce_glyphs, write_glyphs)
24101 (insert_glyphs): Remove.
24102 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24103 (tty_turn_off_highlight, get_tty_size): Add declaration.
24104 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24105
24106 * frame.h (enum output_method): Add output_initial.
24107 (struct x_output): Delete.
24108 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24109 Access foreground_pixel and background_pixel directly from the frame.
24110 (tty_display): Delete.
24111 (struct frame): Add buried_buffer_list, foreground_pixel,
24112 background_pixel and terminal. Delete kboard.
24113 (union output_data): Add tty.
24114 (FRAME_KBOARD): Get the kboard from the terminal.
24115 (FRAME_INITIAL_P): New macro.
24116 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24117 (Qterm_environment_variable, Qdisplay_environment_variable)
24118 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24119 New declarations.
24120
24121 * termchar.h (tty_output, tty_display_info): New structures.
24122 (tty_list): Declare.
24123 (FRAME_TTY, CURTTY): New macros.
24124 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24125 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24126 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24127 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24128
24129 * callproc.c: Include frame.h and termhooks.h, for terminal
24130 parameters.
24131 (add_env): New function.
24132 (child_setup): Use it.
24133 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24134 (getenv_internal): Fix get_terminal_param call.
24135 (Fgetenv_internal, egetenv): Update doc.
24136 (syms_of_callproc): Initialize Vprocess_environment to nil.
24137 Register and initialize them. Remove obsolete defvars. Update doc
24138 strings.
24139 (child_setup): Handle Vlocal_environment_variables.
24140 (getenv_internal): Add terminal parameter.
24141 Handle Vlocal_environment_variables.
24142 (Fgetenv_internal): Add terminal parameter.
24143 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24144 environment in a frame (not terminal) parameter. Update doc strings.
24145 (set_initial_environment): Rename from set_global_environment.
24146 Store Emacs environment in initial frame parameter.
24147
24148 * xdisp.c (redisplay_internal): Update references to
24149 `previous_terminal_frame'.
24150 (display_mode_line, Fformat_mode_line): Replace calls to
24151 `push_frame_kboard' with `push_kboard'.
24152 (get_glyph_string_clip_rects): Add extra parentheses and
24153 braces to prevent compiler warnings.
24154 (calc_pixel_width_or_height): Add xassert to check that the
24155 frame is alive. Don't call `lookup_image' on a termcap frame.
24156 (message2_nolog, message3_nolog, redisplay_internal)
24157 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24158 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24159 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24160 (Fx_display_pixel_width, Fx_display_pixel_height)
24161 (Fx_display_planes, Fx_display_color_cells)
24162 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24163 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24164 (Fx_display_backing_store, Fx_display_visual_class)
24165 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24166 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24167
24168 * xfns.c (x_set_foreground_color x_set_background_color)
24169 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24170 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24171 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24172 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24173 terminal that is being deleted.
24174 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24175 frame parameter, and make sure it overrides any user-supplied setting.
24176 (Fx_close_connection, Fx_synchronize): Unify argument names with
24177 the rest of the DEFUNs.
24178
24179 * dispnew.c (Fsend_string_to_terminal): Update call to
24180 `get_tty_terminal'.
24181 (Fredraw_frame, Fsend_string_to_terminal)
24182 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24183 FRAME_TERMCAP_P and FRAME_TTY.
24184 (window_change_signal): Don't believe width/height values that are
24185 impossibly small.
24186 (Vinitial_window_system): Rename from Vwindow_system.
24187 (termscript, Wcm, rif): Delete.
24188
24189 * termhooks.h (struct terminal): New struct containing the
24190 previously global text display hooks and new members NAME,
24191 DELETED and PARAM_ALIST.
24192 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24193 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24194 (FRAME_RIF): New macros.
24195 (get_terminal_param, get_device): New declarations.
24196 (termscript): Delete declaration.
24197
24198 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24199 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24200 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24201 FRAME_FOREGROUND_PIXEL.
24202 (x_fully_uncatch_errors): Disable definition.
24203 (x_scroll_bar_expose): Fix reference to foreground pixel.
24204 (XTread_socket): Disable loop on all X displays.
24205 (x_delete_terminal): Don't set terminal->deleted and let
24206 delete_terminal delete the frames on the terminal.
24207 (x_delete_display): Doc update to reflect changes in
24208 delete_terminal.
24209 (x_display_info) <terminal>: Move member earlier in the struct.
24210 (deleting_tty): Remove old variable.
24211 (Fsuspend_tty): Call clear_tty_hooks.
24212 (Fresume_tty, init_tty): Call set_tty_hooks.
24213 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24214 errors on X frames.
24215 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24216 (handle_one_xevent): Initialize `f' to NULL.
24217 (x_delete_terminal, x_create_terminal): New functions.
24218 (XTset_terminal_modes, XTreset_terminal_modes)
24219 (XTread_socket, x_connection_closed, x_term_init)
24220 (x_term_init, x_delete_display): Add terminal parameter.
24221 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24222 X connections.
24223
24224 * frame.c: Include termchar.h.
24225 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24226 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24227 (Qdisplay_environment_variable): New vars.
24228 (Fframep): Deal with output_initial.
24229 (Fframe-live-p): Doc fix.
24230 (Fwindow-system): New function.
24231 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24232 (make_terminal_frame): Don't create frames on a terminal that is
24233 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24234 (store_frame_param): Check for found_for_frame before calling XFRAME.
24235 (Fmake_terminal_frame): Handle NULL tty names correctly.
24236 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24237 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24238 frames to refer to a deleted frame in their 'environment parameter.
24239 (Fframe_with_environment): New function.
24240 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24241 (get_future_frame_param): New function.
24242 (Fmake_terminal_frame): Use it.
24243 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24244
24245 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24246 * sysdep.c (reset_sys_modes): Update for renames.
24247
24248 * keyboard.c (tty_read_avail_input): New function.
24249 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24250 (syms_of_keyboard): Defsubr them.
24251 (Fset_input_meta_mode, Fset_quit_char): New functions.
24252 (Fset_input_mode): Split to above functions.
24253 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24254 parameter. Use it in call to `read_char'.
24255 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24256 Set wrong_kboard_jmpbuf correctly in recursive calls.
24257 Use current_kboard to access Vkeyboard_translate_table.
24258 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24259 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24260 Update longjmp invocations. Remember the original current_kboard,
24261 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24262 changes it. Comment out unnecessary calls to
24263 `record_single_kboard_state' and `any_kboard_state'.
24264 Update recursive calls.
24265 (wrong_kboard_jmpbuf): Remove global variable.
24266 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24267 Handle deleted interrupted_kboards correctly; that is a legal
24268 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24269 and read_char calls. Abort if interrupted_kboard died in read_char.
24270 (any_kboard_state, single_kboard_state)
24271 (push_frame_kboard): Remove function.
24272 (pop_kboard): Switch out of single_kboard mode if the kboard has
24273 been deleted. Remove unused variable. Help debugging by not
24274 changing current_kboard unnecessarily. Set current_kboard to the
24275 kboard of the selected frame when the stored kboard object has
24276 been deleted before pop_kboard.
24277 (temporarily_switch_to_single_kboard): Change first parameter to a
24278 frame pointer. Throw an error when caller wants to change kboards
24279 while in single_kboard mode. Don't push_kboard if we weren't in
24280 single kboard state. Don't pop_kboard if we popped into any
24281 kboard state.
24282 (restore_kboard_configuration): Abort if pop_kboard changed the
24283 kboard in single_kboard mode. Call pop_kboard only after setting
24284 up single_kboard mode.
24285 (Frecursive_edit): Switch to single_kboard mode only in nested
24286 command loops.
24287 (cmd_error, command_loop, command_loop_1, timer_check):
24288 Comment out unnecessary call to `any_kboard_state' and
24289 `record_single_kboard_state'.
24290 (delete_kboard): Exit single_kboard mode if we have just deleted
24291 that kboard. Use FRAME_KBOARD.
24292 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24293 `fatal_error_signal'.
24294 (record_single_kboard_state): Don't push_kboard if we weren't in
24295 single kboard state. Don't pop_kboard if we popped into any
24296 kboard state.
24297 (push_frame_kboard): Rename to push_kboard.
24298 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24299 (read_avail_input): Read input from all terminals.
24300 (mark_kboards): Also mark Vkeyboard_translate_table.
24301 (kbd_buffer_store_event_hold): Simplify condition.
24302 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24303 (Vkeyboard_translate_table): Move to struct kboard.
24304 (init_kboard): Initialize Vkeyboard_translate_table.
24305 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24306 Vkeyboard_translate_table. Update doc strings. Update docs of
24307 local-function-key-map and function-key-map.
24308
24309 * terminal.c: New file.
24310
24311 * term.c: Include errno.h.
24312 (Vring_bell_function, device_list, initial_device)
24313 (next_device_id, ring_bell, update_begin, update_end)
24314 (set_terminal_window, cursor_to, raw_cursor_to)
24315 (clear_to_end, clear_frame, clear_end_of_line)
24316 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24317 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24318 (syms_of_term): Move their initialization to terminal.c.
24319 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24320 (Ftty_display_color_cells)
24321 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24322 (clear_tty_hooks, set_tty_hooks)
24323 (init_tty, maybe_fatal): New functions.
24324 (Ftty_type): Return nil if terminal is not on a tty instead of
24325 throwing an error. Doc update.
24326 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24327 Doc update. Initialize new subrs and variables.
24328 (delete_tty): Use terminal->deleted.
24329 (tty_set_terminal_modes): Rename from set_terminal_modes.
24330 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24331 (set_scroll_region): Rename to `tty_set_scroll_region'.
24332 (turn_on_insert): Rename to `tty_turn_on_insert'.
24333 (turn_off_insert): Rename to `tty_turn_off_insert'.
24334 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24335 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24336 (toggle_highligh): Rename to `tty_toggle_highlight'.
24337 (background_highlight): Rename to `tty_background_highlight'.
24338 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24339 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24340 (tty_set_scroll_region, tty_background_highlight)
24341 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24342 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24343 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24344 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24345 Add static modifier.
24346 (tty_reset_terminal_modes, tty_set_terminal_window)
24347 (tty_set_scroll_region, tty_background_highlight)
24348 (tty_highlight_if_desired, tty_cursor_to)
24349 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24350 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24351 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24352 renames.
24353
24354 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24355
24356 * keyboard.c: Qrtl is new.
24357 (parse_tool_bar_item): Handle :rtl keyword.
24358 (syms_of_keyboard): Intern :rtl keyword.
24359
24360 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24361
24362 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24363 so no Lisp code is executed.
24364 (file_for_image, find_rtl_image): New functions.
24365 (xg_get_image_for_pixmap): Use file_for_image.
24366 (update_frame_tool_bar): If direction is RTL, use RTL image if
24367 defined. Use Gtk stock images if defined.
24368
24369 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24370
24371 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24372 for nonexistent or zero-width glyph in composition glyph.
24373
24374 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24375
24376 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24377
24378 * xdisp.c (Finvisible_p): New function.
24379 (syms_of_xdisp): defsubr it.
24380
24381 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
24382
24383 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24384 Doc fixes.
24385
24386 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24387
24388 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24389
24390 2007-08-24 Martin Rudalics <rudalics@gmx.at>
24391
24392 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24393 whether decoding has modified buffer contents.
24394
24395 2007-08-24 Jason Rumney <jasonr@gnu.org>
24396
24397 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24398 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24399 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24400 (init_svg_functions) [HAVE_NTGUI]: New function.
24401 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24402 (svg_load_image): Use them.
24403 (svg_load_image) [HAVE_NTGUI]: Implement background.
24404
24405 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24406
24407 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24408 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24409 (LIBX): Remove @RSVG_LIBS@.
24410 (LIBES): Add $(RSVG_LIBS).
24411
24412 * image.c (svg_load_image): Blend with specified background if exists.
24413 Use IMAGE_BACKGROUND. Add Mac OS Support.
24414
24415 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24416 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24417 Remove macros.
24418 [MAC_OSX] (socket_callback): Do nothing.
24419 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24420 ReceiveNextEvent.
24421 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24422 socket_callback.
24423 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24424
24425 2007-08-22 Glenn Morris <rgm@gnu.org>
24426
24427 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24428
24429 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24430
24431 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24432
24433 * image.c: Add support for SVG images. Some additional comments
24434 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24435 (svg_image_p): New function to test for SVG image.
24436 (svg_load): New function to load SVG image.
24437 (svg_load_image): New function, helper for svg_load.
24438 (Qsvg): New Lisp_object.
24439 (svg_keyword_index): New enum.
24440 (svg_format): New static `image_keyword' struct.
24441 (svg_type): New static `image_type' struct.
24442 (librsvg/rsvg.h): Include it.
24443
24444 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24445
24446 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24447
24448 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24449
24450 * lread.c (Qold_style_backquotes): New var.
24451 (syms_of_lread): Init and staticpro it.
24452 (load_warn_old_style_backquotes): New fun.
24453 (Fload): Use them to warn about old style backquotes.
24454 (end_of_file_error, Fload): Remove unused vars.
24455
24456 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24457
24458 * lread.c (Vold_style_backquotes): New var.
24459 (syms_of_lread): Init and export it to Elisp.
24460 (read1): Set it when we find an old-style (back)quote.
24461
24462 2007-08-22 Jason Rumney <jasonr@gnu.org>
24463
24464 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24465
24466 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24467
24468 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24469
24470 2007-08-19 Richard Stallman <rms@gnu.org>
24471
24472 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24473
24474 2007-08-19 Andreas Schwab <schwab@suse.de>
24475
24476 * alloc.c (pure): Round PURESIZE up.
24477
24478 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24479
24480 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24481 active frame.
24482
24483 2007-08-16 Richard Stallman <rms@gnu.org>
24484
24485 * eval.c (Fcommandp): Add parens to clarify.
24486
24487 * minibuf.c (Fall_completions): Use enum for type of table.
24488
24489 * emacs.c (USAGE2): Improve text.
24490
24491 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24492
24493 * term.c (tty_default_color_capabilities): Declare static
24494 variables in file scope, to avoid HPUX compiler problem.
24495
24496 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24497
24498 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24499 to gtk_toolbar_insert.
24500
24501 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24502
24503 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24504
24505 * insdel.c (reset_var_on_error): New fun.
24506 (signal_before_change, signal_after_change):
24507 Use it to reset (after|before)-change-functions to nil in case of error.
24508 Bind inhibit-modification-hooks to t.
24509 Don't bind (after|before)-change-functions to nil while they run.
24510
24511 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24512
24513 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24514 filling pixmap with stippled background.
24515
24516 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24517
24518 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24519 Don't use invisible frame as parent window for repositioning.
24520
24521 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24522
24523 * print.c (new_backquote_output): Rename from old_backquote_output.
24524 (print): Inverse its logic (according to its name) so as to match the
24525 behavior of new_backquote_flag in lread.c.
24526
24527 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24528
24529 * gmalloc.c (posix_memalign): New function.
24530
24531 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24532 ActivateControl/DeactivateControl here.
24533 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24534 frame-notice-user-settings is non-nil.
24535 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24536 for kEventParamFMFontStyle.
24537 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24538 mac_pass_command_to_system and mac_pass_control_to_system here.
24539 (XTread_socket): Call ActivateControl/DeactivateControl here.
24540 (XTread_socket) [TARGET_API_MAC_CARBON]:
24541 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24542 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24543 for window repositioning.
24544
24545 2007-08-08 Glenn Morris <rgm@gnu.org>
24546
24547 * Replace `iff' in doc-strings and comments.
24548
24549 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
24550
24551 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24552
24553 2007-08-07 Martin Rudalics <rudalics@gmx.at>
24554
24555 * fileio.c (Finsert_file_contents): Run format-decode and
24556 after_insert_file_functions on entire buffer when REPLACE is
24557 non-nil and inhibit modification_hooks and point_motion_hooks.
24558 For consistency, run after_insert_file_functions iff something
24559 got inserted. Move signal_after_change and update_compositions
24560 after code running after_insert_file_functions. Make sure that
24561 undo_list doesn't record intermediate steps of the decoding process.
24562
24563 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24564
24565 * emacs.c (main)
24566 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24567 Call malloc_enable_thread on interactive startup.
24568
24569 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24570 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24571 [USE_PTHREAD]: Conditionalize with it.
24572 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24573 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24574 New functions.
24575
24576 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
24577
24578 * xdisp.c (redisplay_window): When restoring original buffer
24579 position, make sure it is still valid.
24580
24581 * image.c (png_load): Ignore png-supplied background color.
24582
24583 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24584
24585 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24586 Use kCFAbsoluteTimeIntervalSince1970.
24587
24588 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24589 New variable.
24590 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24591 event loop should be quit.
24592 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24593 Quit dialog event loop if quit_dialog_event_loop is set.
24594
24595 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24596 (Selection): New typedef. Use instead of ScrapRef.
24597 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24598 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24599 (mac_clear_selection): Rename from clear_scrap.
24600 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24601 scrap_has_target_type. All uses changed.
24602 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24603 (mac_selection_has_target_p): New functions.
24604 (mac_put_selection_value): Rename from put_scrap_string.
24605 (mac_get_selection_value): Rename from get_scrap_string.
24606 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24607 (put_scrap_private_timestamp, scrap_has_target_type)
24608 (get_scrap_private_timestamp): Remove functions.
24609 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24610 (x_own_selection, x_get_local_selection):
24611 Use mac_valid_selection_value_p.
24612 (x_own_selection): Don't use put_scrap_private_timestamp.
24613 Record OWNERSHIP-INFO into Vselection_alist instead.
24614 (x_get_local_selection): Don't check type if request is local.
24615 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24616 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24617
24618 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24619
24620 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24621 add comment explaining why.
24622
24623 2007-08-03 Richard Stallman <rms@gnu.org>
24624
24625 * fileio.c (Fvisited_file_modtime): Use make_time.
24626
24627 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24628
24629 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24630 build.
24631
24632 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24633
24634 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24635
24636 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24637
24638 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24639
24640 2007-07-30 Richard Stallman <rms@gnu.org>
24641
24642 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24643
24644 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24645
24646 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24647
24648 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
24649
24650 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24651 remote default-directory.
24652
24653 * buffer.c (mode-line-format): Update doc string.
24654
24655 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24656
24657 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24658 scroll bar gap.
24659 (x_scroll_bar_create): Set bar->fringe_extended_p.
24660 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24661 on frame edge. Check fringe background extension. Don't clear
24662 extended fringe background area.
24663
24664 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24665 (w32_fill_area): Enclose multiple statements with do ... while (0).
24666
24667 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24668 Extend fringe background to scroll bar gap.
24669 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24670 Set bar->fringe_extended_p.
24671 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24672 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24673 background extension. Don't clear extended fringe background area.
24674
24675 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24676 New member fringe_extended_p.
24677
24678 2007-07-25 Glenn Morris <rgm@gnu.org>
24679
24680 * Relicense all FSF files to GPLv3 or later.
24681
24682 * COPYING: Switch to GPLv3.
24683
24684 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24685
24686 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24687
24688 * data.c (Finteractive_form): Check for the presence of an
24689 `interactive-form' symbol property more thoroughly.
24690
24691 * data.c (Finteractive_form): Use an `interactive-form' property if
24692 present, analogous to the function-documentation property.
24693
24694 2007-07-24 Jason Rumney <jasonr@gnu.org>
24695
24696 * w32fns.c (x_real_positions): Get real position from OS instead of
24697 calculating it.
24698
24699 2007-07-23 Jason Rumney <jasonr@gnu.org>
24700
24701 * filelock.c (current_lock_owner): Allow for @ sign in username.
24702
24703 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
24704
24705 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24706 remote default-directory.
24707
24708 * buffer.c (mode-line-format): Describe above case in doc string.
24709
24710 2007-07-20 Eli Zaretskii <eliz@gnu.org>
24711
24712 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24713 Define if not defined.
24714
24715 2007-07-18 Jason Rumney <jasonr@gnu.org>
24716
24717 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24718
24719 2007-07-18 Richard Stallman <rms@gnu.org>
24720
24721 * data.c (Fsetq_default): Doc fix.
24722
24723 * eval.c (Fsetq): Doc fix.
24724
24725 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
24726
24727 * coding.c (Ffind_operation_coding_system):
24728 * eval.c (For, Fand): Doc fixes.
24729 Reported by Johan Bockgård.
24730
24731 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24732
24733 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24734
24735 * xterm.h: Declare x_ewmh_activate_frame.
24736
24737 * xterm.c (x_ewmh_activate_frame): New function.
24738 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24739
24740 2007-07-17 Martin Rudalics <rudalics@gmx.at>
24741
24742 * window.c (Fdisplay_buffer): If largest or LRU window is the
24743 only window, split it even if it is not eligible for splitting.
24744 This restores the original behavior broken by the 2007-07-15
24745 change.
24746
24747 2007-07-17 Glenn Morris <rgm@gnu.org>
24748
24749 * abbrev.c (abbrev_check_chars): New function.
24750 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24751 Call abbrev_check_chars to check abbrev characters are word
24752 constituents. Doc fix.
24753
24754 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24755
24756 * process.c (Fstart_process, Fmake_network_process)
24757 (read_process_output): Fix up last changes.
24758
24759 2007-07-16 Eli Zaretskii <eliz@gnu.org>
24760
24761 * makefile.w32-in (clean): Don't delete *~.
24762
24763 2007-07-16 Andreas Schwab <schwab@suse.de>
24764
24765 * window.c (Fdisplay_buffer): Use NILP.
24766 (Fset_window_scroll_bars): Likewise.
24767
24768 2007-07-15 Martin Rudalics <rudalics@gmx.at>
24769
24770 * window.c (window_min_size_2): New function.
24771 (window_min_size_1, size_window, Fdisplay_buffer)
24772 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24773 windows without mode- or header-lines when window-min-height is
24774 too small.
24775 (size_window): Reset nodelete_p after testing it, following an
24776 earlier note by Kim F. Storm.
24777 (display_buffer): Do not set split_height_threshold to twice the
24778 value of window_min_height to avoid changing the value of a
24779 customizable variable. Rather explicitly check whether the
24780 height of the window that shall be splitted is at least as large
24781 as split_height_threshold.
24782 (Fwindow_full_width_p): New defun.
24783 (syms_of_window): Defsubr it.
24784
24785 * window.h: Add EXFUN for Fwindow_full_width_p.
24786
24787 2007-07-14 Jason Rumney <jasonr@gnu.org>
24788
24789 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24790
24791 2007-07-14 Richard Stallman <rms@gnu.org>
24792
24793 * eval.c (maybe_call_debugger): New function.
24794 (find_handler_clause): Use maybe_call_debugger.
24795 Call it when the handler says `debug'.
24796 Eliminate DEBUGGER_VALUE_PTR.
24797 (Fsignal): Eliminate debugger_value.
24798 (Qdebug): New variable.
24799 (syms_of_eval): Initialize it.
24800
24801 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
24802
24803 * eval.c (Fprogn):
24804 * keyboard.c (Ftrack_mouse):
24805 * print.c (Fwith_output_to_temp_buffer):
24806 * window.c (Fsave_window_excursion): Doc fix.
24807
24808 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24809
24810 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24811
24812 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24813
24814 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24815 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24816 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24817 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24818 Remove unused encoding_carryover.
24819 * process.c: Adjust all functions accordingly.
24820
24821 2007-07-12 Richard Stallman <rms@gnu.org>
24822
24823 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24824
24825 2007-07-11 Jason Rumney <jasonr@gnu.org>
24826
24827 * makefile.w32-in (LIBS): Include OLE32.
24828
24829 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24830 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24831
24832 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24835 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24836 from a Lisp_Object into a bare pointer.
24837 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24838 Adjust the code correspondingly.
24839
24840 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24841
24842 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24843 (term_show_mouse_face): Remove unused var `j'.
24844 (handle_one_term_event): Remove unused vars `i' and `j'.
24845 Don't cast return value of ttyname since it's not necessary.
24846
24847 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24848
24849 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24850 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24851
24852 * fns.c (map_char_table): Use an array of int for `indices' rather than
24853 an array of Lisp_Objects (which are only ever integers anyway).
24854 (Fmap_char_table): Update caller.
24855 * lisp.h: Update prototype.
24856 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24857 * fontset.c (Ffontset_info):
24858 * casetab.c (set_case_table): Update callers.
24859
24860 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24861
24862 * keymap.c (struct accessible_keymaps_data)
24863 (struct where_is_internal_data): New structures.
24864 (accessible_keymaps_1, where_is_internal_1): Use them to change
24865 interface to adhere to the one used by map_keymap.
24866 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24867 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24868
24869 * keymap.h (map_keymap_function_t): More informative prototype.
24870
24871 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24872
24873 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24874 (looking_at_1): Don't change search_regs and last_thing_searched
24875 if `inhibit-changing-match-data' is non-nil.
24876 (string_match_1, search_buffer, set_search_regs): Likewise.
24877 (syms_of_search): Add Lisp level definition for
24878 `inhibit-changing-match-data' and set it to nil.
24879 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24880 start and end of the match, instead of using values in search_regs.
24881
24882 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24883
24884 * minibuf.c (Fcompleting_read): New value `confirm-only'
24885 for `require-match'.
24886
24887 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24888
24889 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24890 part of the 2007-06-27 change to syms_of_fileio.
24891
24892 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24893
24894 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24895 Check WINDOWP before using XWINDOW. Consolidate return statements.
24896
24897 2007-06-27 Richard Stallman <rms@gnu.org>
24898
24899 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24900
24901 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
24902
24903 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24904
24905 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24906
24907 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24908 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24909 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24910 (_free_internal, memalign): Use them.
24911 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24912 Initialize to PTHREAD_MUTEX_INITIALIZER.
24913 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24914 (morecore_nolock): Rename from morecore. All uses changed.
24915 Use only nolock versions of internal allocation functions.
24916 (_malloc_internal_nolock, _realloc_internal_nolock)
24917 (_free_internal_nolock): New functions created from
24918 _malloc_internal, _realloc_internal, and _free_internal.
24919 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24920 Copy hook value to automatic variable before its use.
24921 (memalign): Copy hook value to automatic variable before its use.
24922
24923 2007-06-26 Kenichi Handa <handa@m17n.org>
24924
24925 * coding.c (Ffind_operation_coding_system): Docstring improved.
24926 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24927
24928 2007-06-25 David Kastrup <dak@gnu.org>
24929
24930 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24931 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24932 cater for additional parameter.
24933
24934 * keymap.h: Adjust number of parameters to `current-active-maps'.
24935
24936 * doc.c (Fsubstitute_command_keys): Adjust call of
24937 `current-active-maps'.
24938
24939 2007-06-25 David Kastrup <dak@gnu.org>
24940
24941 * callint.c (Fcall_interactively): Make the parsing of interactive
24942 specs somewhat more readable.
24943
24944 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24945
24946 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24947 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24948 if extended background has already been filled.
24949
24950 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24951
24952 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24953 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24954
24955 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24956 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24957 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24958 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24959 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24960 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24961 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24962 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24963 Run timers during dialog popup.
24964 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24965
24966 2007-06-21 Jason Rumney <jasonr@gnu.org>
24967
24968 * image.c (convert_mono_to_color_image): Swap fore and background.
24969
24970 2007-06-20 Jason Rumney <jasonr@gnu.org>
24971
24972 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24973 (w32_free_bdf_font): Unmap memory not handle.
24974
24975 2007-06-20 Sam Steingold <sds@gnu.org>
24976
24977 * gmalloc.c (__morecore): Fix the declaration to comply with the
24978 definition.
24979
24980 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
24981
24982 * w32term.c (w32_delete_display): Remove leftover declaration.
24983 (w32_define_cursor, w32_initialize): Make static.
24984
24985 * w32.c (_wsa_errlist): Fix typo in error message.
24986 (init_environment): Ignore any environment variable from the
24987 registry having a null value.
24988
24989 2007-06-20 Glenn Morris <rgm@gnu.org>
24990
24991 * Makefile.in (LIBGIF): Default to -lgif.
24992
24993 2007-06-17 Jason Rumney <jasonr@gnu.org>
24994
24995 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24996 unicode strings.
24997
24998 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
24999
25000 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25001 Fix typo in docstring.
25002
25003 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25004
25005 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25006 and their keybindings.
25007
25008 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25009
25010 * composite.c (update_compositions): Fix last fix.
25011
25012 2007-06-14 Jason Rumney <jasonr@gnu.org>
25013
25014 * w32.c (get_process_times_fn): New function pointer.
25015 (globals_of_w32): Intialize it if present in kernel32.dll.
25016 (w32_get_internal_run_time): New function.
25017
25018 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25019
25020 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25021
25022 * composite.c (update_compositions): Check the validness of
25023 compositions.
25024
25025 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25026
25027 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25028 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25029
25030 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25031 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25032
25033 * macgui.h (USE_MAC_TOOLBAR): New define.
25034
25035 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25036 Return immediately unless popup is activated.
25037
25038 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25039 background to scroll bar gap.
25040 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25041 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25042 scroll bars on frame edge. Check fringe background extension.
25043 Don't clear extended fringe background area.
25044 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25045 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25046 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25047 [USE_MAC_TOOLBAR]: New macros.
25048 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25049 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25050 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25051 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25052 [USE_MAC_TOOLBAR]: New functions.
25053 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25054 manually if previous repositioning has failed.
25055 (mac_handle_keyboard_event): Use precomputed event kind.
25056 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25057 as tool bar item click. Handle mouse movement over tool bar items.
25058
25059 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25060 toolbar_win_gravity.
25061 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25062 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25063 Add externs.
25064
25065 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25066 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25067
25068 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25069
25070 * image.c (search_image_cache): Remove unused variable.
25071
25072 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25073
25074 * xfns.c, xmenu.c: Link to xaw3d if available.
25075
25076 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25077
25078 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25079 frame_foreground and frame_background.
25080
25081 * image.c (lookup_image): Save frame foreground and background colors.
25082 (search_image_cache): Check if saved and current frame colors match.
25083
25084 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25085
25086 * regex.c (regex_compile): Remove the `regnum' counter.
25087 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25088
25089 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25090
25091 * term.c: Include intervals.h to declare Fget_text_property.
25092
25093 2007-06-10 Jason Rumney <jasonr@gnu.org>
25094
25095 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25096
25097 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25098
25099 * callint.c (Fcall_interactively):
25100 * editfns.c (Fdelete_and_extract_region):
25101 * fileio.c (Fread_file_name):
25102 * fns.c (Fmapconcat):
25103 * keyboard.c (cmd_error_internal):
25104 * keymap.c (Fkey_description):
25105 * lread.c (openp):
25106 * minibuf.c (read_minibuf):
25107 * search.c (wordify):
25108 * sunfns.c (sel_read):
25109 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25110 * xfns.c (x_default_scroll_bar_color_parameter):
25111 * xmenu.c (menu_help_callback):
25112 * xselect.c (Fx_get_atom_name):
25113 * xterm.c (x_term_init): Use empty_unibyte_string.
25114
25115 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25116
25117 * alloc.c (init_strings): Initialize canonical empty strings.
25118 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25119 canonical empty string when the requested size is 0.
25120
25121 * emacs.c (empty_unibyte_string): Rename from empty_string.
25122 (empty_multibyte_string): New canonical empty string.
25123 (syms_of_emacs): Don't initialize empty_string.
25124
25125 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25126 string, if appropriate.
25127 (empty_unibyte_string, empty_multibyte_string): New externs.
25128 (empty_string): Remove extern.
25129
25130 * lread.c (syms_of_lread): Use empty_unibyte_string.
25131
25132 2007-06-07 Jason Rumney <jasonr@gnu.org>
25133
25134 * s/ms-w32.h: Don't define HAVE_TZNAME.
25135
25136 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25137
25138 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25139
25140 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25141
25142 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25143 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25144
25145 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25146 Don't call next handler.
25147 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25148 Remove argument. Install handler to application.
25149 (set_frame_menubar): Don't change deep_p.
25150 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25151 FRAME_OUTER_TO_INNER_DIFF_Y.
25152 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25153 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25154 [HAVE_DIALOGS]: New macros.
25155 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25156 Use them.
25157 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25158
25159 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25160 init_service_handler. All callers changed. Return OSStatus value.
25161
25162 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25163 All callers changed so as not to call SetPortWindowPort.
25164 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25165 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25166 mac_draw_string_common.
25167 (mac_draw_image_string_qd): Likewise.
25168 (mac_draw_string_common): Use them. Add INLINE.
25169 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25170 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25171 GetGlobalMouse.
25172 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25173 and FRAME_OUTER_TO_INNER_DIFF_Y.
25174 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25175 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25176 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25177 repositioning window to mac_handle_window_event.
25178 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25179 saving window location to mac_handle_window_event
25180 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25181 (install_menu_target_item_handler): Remove argument in extern.
25182 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25183 Also accept command events.
25184 (do_keystroke): New function created from XTread_socket.
25185 (init_command_handler): Remove functions.
25186 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25187 and save window location by kEventWindowShowing and kEventWindowHiding
25188 handlers here. Don't call next handler for window state change and
25189 focus events.
25190 (mac_handle_application_event, mac_handle_keyboard_event)
25191 [TARGET_API_MAC_CARBON]: New functions.
25192 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25193 kEventWindowShowing and kEventWindowHiding events. Move installation
25194 of mouse, font, text input and menu target item handlers to
25195 install_application_handler.
25196 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25197 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25198 New function.
25199 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25200 Register it.
25201 (XTread_socket) [TARGET_API_MAC_CARBON]:
25202 Consolidate SendEventToEventTarget calls.
25203 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25204 Move application activation handler to mac_handle_application_event.
25205 Move keyboard handler to mac_handle_keyboard_event.
25206 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25207 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25208 init_command_handler. Call install_application_handler.
25209
25210 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25211 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25212
25213 2007-06-07 Glenn Morris <rgm@gnu.org>
25214
25215 * emacs.c (main): Use `emacs-copyright' in --version output.
25216
25217 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
25218
25219 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25220
25221 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25222
25223 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25224
25225 * macgui.h: Replace WindowPtr with WindowRef.
25226
25227 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25228 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25229 Replace ControlHandle with ControlRef.
25230 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25231
25232 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25233 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25234 Replace ControlHandle with ControlRef.
25235 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25236 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25237
25238 * macterm.h (struct scroll_bar): Rename member control_handle_low
25239 and control_handle_high to control_ref_low and control_ref_high.
25240 All uses changed.
25241 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25242 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25243 respectively. All uses changed.
25244 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25245 (install_window_handler, remove_window_handler): Replace WindowPtr
25246 with WindowRef in externs.
25247
25248 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
25249
25250 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25251
25252 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
25253
25254 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25255
25256 * frame.c (Fmouse_position, Fmouse_pixel_position):
25257 Condition on HAVE_GPM too.
25258
25259 * term.c (term_mouse_highlight): Remove unused variables.
25260 (Fterm_open_connection): Set gpm_zerobased to 1.
25261 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25262 Use zero based co-ordinates.
25263 (handle_one_term_event): Report a drag as mouse movement too.
25264
25265 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25266
25267 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
25268
25269 * image.c (search_image_cache): New function. Require background
25270 color match if background color is unspecified in the image spec.
25271 (uncache_image, lookup_image): Use it.
25272
25273 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
25274
25275 * window.c (Fshrink_window): Reflow docstring.
25276
25277 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
25278
25279 * Version 22.1 released.
25280
25281 2007-06-01 Richard Stallman <rms@gnu.org>
25282
25283 * xfns.c (x_encode_text): Add GCPRO.
25284
25285 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25286
25287 * xfns.c (x_set_name_internal): Save encoded name before
25288 x_encode_text in case string data is relocated.
25289
25290 2007-05-31 Richard Stallman <rms@gnu.org>
25291
25292 * buffer.c (syms_of_buffer): Doc fix.
25293
25294 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
25295
25296 * sysdep.c (init_sys_modes): Add rather than replace with
25297 O_NONBLOCK.
25298
25299 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25300 term_mouse_moveto.
25301
25302 * termhooks.h (term_mouse_moveto): New extern.
25303
25304 * term.c (mouse_face_window): Rename...
25305 (Qmouse_face_window): ...to this.
25306 (term_show_mouse_face, term_clear_mouse_face)
25307 (term_mouse_highlight): Use Qmouse_face_window.
25308 (term_mouse_moveto): New function.
25309 (term_mouse_position): Make it work.
25310 (syms_of_term): Uncomment assignment to mouse_position_hook.
25311 Staticpro Qmouse_face_window.
25312
25313 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25314
25315 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25316 around current_column call.
25317
25318 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25319
25320 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25321 * xdisp.c (next_element_from_buffer):
25322 * window.c (delete_window):
25323 * term.c (term_mouse_highlight):
25324 * msdos.c (getdefdir):
25325 * macterm.c (mac_create_bitmap_from_bitmap_data)
25326 (init_font_name_table):
25327 * fns.c (Fsxhash):
25328 * data.c (Fmake_local_variable):
25329 * ccl.c (ccl_driver): Likewise.
25330
25331 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25332
25333 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25334 Call mac_wakeup_from_rne on window size change.
25335
25336 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
25337
25338 * image.c (uncache_image): Fix typo.
25339
25340 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25341
25342 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25343
25344 2007-05-22 Richard Stallman <rms@gnu.org>
25345
25346 * xterm.c (x_connection_closed): Remove NO_RETURN.
25347
25348 2007-05-22 Martin Rudalics <rudalics@gmx.at>
25349
25350 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25351
25352 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
25353
25354 * image.c (uncache_image): New function.
25355 (Fimage_refresh): New function.
25356
25357 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25358
25359 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25360
25361 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25362
25363 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25364 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25365
25366 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25367
25368 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25369 conditional on [HAVE_GPM_H].
25370
25371 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25372
25373 * syntax.c (skip_chars): Update syntax-table only after we checked that
25374 the new location is valid.
25375
25376 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25377
25378 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25379 mac_get_window_bounds.
25380
25381 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25382
25383 * Makefile.in (LIBGPM): Allow it to be set from configure.
25384 If set then link Emacs with it.
25385
25386 * config.in: Regenerate.
25387
25388 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25389 New externs.
25390
25391 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25392 Include gpm.h.
25393 (handle_one_term_event, term_gpm): New externs.
25394
25395 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25396 and allow it to be interrupted by SIGIO.
25397
25398 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25399 (wait_reading_process_output): Wait on gpm_fd too.
25400 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25401 (add_gpm_wait_descriptor_called_flag): New variable.
25402 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25403
25404 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25405 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25406 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25407 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25408 (make_lispy_event): Add case GPM_CLICK_EVENT.
25409 (read_avail_input): Handle mouse input.
25410
25411 * term.c (write_glyphs_with_face): New function.
25412 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25413 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25414 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25415 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25416 (last_mouse_x, last_mouse_y): New variables.
25417 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25418 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25419 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25420 (Fterm_close_connection): New functions.
25421 (term_init): Initialise mouse_face_window.
25422
25423 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
25424
25425 * xdisp.c (redisplay_window): If first window line is a
25426 continuation line, recompute the new window start instead of
25427 recentering.
25428
25429 2007-05-18 Glenn Morris <rgm@gnu.org>
25430
25431 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25432 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25433
25434 2007-05-17 Glenn Morris <rgm@gnu.org>
25435
25436 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25437
25438 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25439
25440 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25441 dead key repeat and up events.
25442
25443 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
25444
25445 * image.c (pbm_load): Check image size for monochrome pbm.
25446
25447 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
25448
25449 * xterm.c (XTread_socket): Revert last change.
25450
25451 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
25452
25453 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25454
25455 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25456
25457 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25458
25459 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25460 mixup (YAILOM).
25461
25462 2007-05-07 Andreas Schwab <schwab@suse.de>
25463
25464 * keymap.c (Flookup_key): Fix typo in last change.
25465
25466 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25467
25468 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25469 mapping for unibyte strings.
25470
25471 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25472
25473 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25474 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25475
25476 2007-04-29 Richard Stallman <rms@gnu.org>
25477
25478 * insdel.c (replace_range): For undo, record insertion first.
25479
25480 2007-04-29 Andreas Schwab <schwab@suse.de>
25481
25482 * lisp.h (VECSIZE): Use OFFSETOF.
25483
25484 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25485
25486 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25487 disabled lines.
25488
25489 2007-04-28 Richard Stallman <rms@gnu.org>
25490
25491 * lread.c (read_escape): In a string, \s is always space.
25492
25493 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25494
25495 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25496
25497 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25498 submenu for menu bar items.
25499
25500 See ChangeLog.10 for earlier changes.
25501
25502 ;; Local Variables:
25503 ;; coding: utf-8
25504 ;; add-log-time-zone-rule: t
25505 ;; End:
25506
25507 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
25508
25509 This file is part of GNU Emacs.
25510
25511 GNU Emacs is free software: you can redistribute it and/or modify
25512 it under the terms of the GNU General Public License as published by
25513 the Free Software Foundation, either version 3 of the License, or
25514 (at your option) any later version.
25515
25516 GNU Emacs is distributed in the hope that it will be useful,
25517 but WITHOUT ANY WARRANTY; without even the implied warranty of
25518 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25519 GNU General Public License for more details.
25520
25521 You should have received a copy of the GNU General Public License
25522 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25523
25524 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40