Fix typos in ChangeLogs.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8d16a259
JB
12010-07-18 Juanma Barranquero <lekktu@gmail.com>
2
3 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4
3b8eff32
CY
52010-07-17 Chong Yidong <cyd@stupidchicken.com>
6
7 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
8
499322ce
J
92010-07-17 Jan Djärv <jan.h.d@swipnet.se>
10
11 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
12 is related to the menu bar (Bug#6499).
a628ad9d 13 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 14
f6003da5 152010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
16
17 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
18
19 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
20
21 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
22 i.e. don't put back ButtonRelease (Bug#6608).
23
24 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
25 instead of Window. Call xg_event_is_for_menubar when
26 USE_GTK (Bug#6499).
27
28 * gtkutil.h (xg_event_is_for_menubar): Declare.
29
30 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
31
f6003da5 322010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
33
34 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
35 when it's the same as the old foreground. (Bug#6609)
36
23243f29
J
372010-07-16 Jan Djärv <jan.h.d@swipnet.se>
38
39 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
40 widget is non-null (Bug#6645).
41
2b23d2a6
AS
422010-07-15 Andreas Schwab <schwab@linux-m68k.org>
43
01b564ff
AS
44 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
45 Convert old-style definition.
46
2b23d2a6
AS
47 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
48 timestamp argument.
49
c4affd2c
EZ
502010-07-15 Eli Zaretskii <eliz@gnu.org>
51
52 * fringe.c (update_window_fringes): Restore mistakenly reverted
53 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
54
cf28cebc
J
552010-07-14 Jan Djärv <jan.h.d@swipnet.se>
56
57 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
58 (SET_SAVED_KEY_EVENT): Remove (not used).
59 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
60 remove size parameter.
61 (handle_one_xevent): Check popup_activated () for menu for Xt also.
62 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
63 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
64 ButtonRelease.
6b2c4bd9
J
65 (x_set_window_size_1): scroll_bar_actual_width is always
66 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
67
68 * xdisp.c (pending_menu_activation): Remove extern declaration.
69 (prepare_menu_bars): Remove setting of pending_menu_activation.
70
71 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
72 (x_activate_menubar): Set popup_activated_flag for Xt also.
73 Remove setting of pending_menu_activation.
cf28cebc
J
74 (set_frame_menubar): Remove check of pending_menu_activation.
75 Declare menubar_size before code. Correct spelling in comment.
76
f6c1c771
KH
772010-07-14 Kenichi Handa <handa@m17n.org>
78
79 * font.c (font_open_entity): Cancel previous change.
80 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
81
20477505
EZ
822010-07-13 Eli Zaretskii <eliz@gnu.org>
83
77defa9a
EZ
84 Remove subprocesses #ifdefs.
85 * process.c <inhibit_sentinels>: Move to the common part.
86 (Fwaiting_for_user_input_p): Move to the common part; return nil
87 if async subprocesses aren't supported.
88 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
89 MS-DOS. Remove "#ifdef subprocesses".
90 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
91 (gettimeofday): Remove "#ifdef subprocesses".
92 (wait_without_blocking): Remove function.
93 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
94 Remove "#ifdef subprocesses".
95 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
96 compiled on MS-DOS.
97 * callproc.c (Fcall_process) [!MSDOS]: Don't call
98 wait_for_termination on MS-DOS.
99 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
100 initialization of inhibit_sentinels.
101 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
102 subprocesses" conditional.
103 * callproc.c (Fcall_process) [!subprocesses]: Don't call
104 wait_for_termination, since `buffer' cannot be an integer when
105 async subprocesses are not supported
106 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
107 for ifdefing away the call to Fprocess_status.
108
20477505
EZ
109 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
110 away the entire body of the function.
111
b3ffc17c
DN
1122010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
113
01faa934
DN
114 Remove subprocesses #ifdefs from term.c.
115 * process.c (add_keyboard_wait_descriptor)
116 (delete_keyboard_wait_descriptor): Move to common section, do
117 nothing when subprocesses is not defined.
a628ad9d
JB
118 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
119 Remove subprocesses #ifdefs.
01faa934 120
b3ffc17c
DN
121 Convert maybe_fatal to standard C.
122 * lisp.h (verror): Declare.
123 * eval.c (verror): New function containing the code from ...
124 (error): ... this. Call verror.
125 * term.c (vfatal): New function containing the code from ...
126 (fatal): ... this. Call vfatal.
127 (maybe_fatal): Convert to standard C, use variable number of
128 arguments. Declare as non-return.
129 (init_tty): Fix maybe_fatal call.
130
0521f580
DN
1312010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
132
133 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
134 (_scroll_bar_note_movement): Convert definitions to standard C.
135 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
136 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
137
ebd15611
DN
1382010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
139
140 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
141 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
142 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
143 (xaw_jump_callback, xaw_scroll_callback)
144 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
145 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
146 definitions to standard C.
147 * xmenu.c (menubar_id_to_frame, popup_get_selection)
148 (popup_activate_callback, popup_deactivate_callback)
149 (menu_highlight_callback, menubar_selection_callback)
150 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
151 (free_frame_menubar, popup_selection_callback, as)
152 (create_and_show_popup_menu, dialog_selection_callback)
153 (create_and_show_dialog):
154 * xfns.c (hack_wm_protocols, x_window):
155 * xfaces.c (x_update_menu_appearance):
156 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
157 (char_to_pixel_size, round_size_to_char, get_wm_shell)
158 (set_frame_size, update_wm_hints, setup_frame_gcs)
159 (update_various_frame_slots, update_from_various_frame_slots)
160 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
161 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
162 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
163
de06a2dd
AS
1642010-07-12 Andreas Schwab <schwab@linux-m68k.org>
165
a628ad9d 166 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 167
fc549af9
EZ
1682010-07-12 Eli Zaretskii <eliz@gnu.org>
169
170 * process.c (setup_process_coding_systems): Move to the part
171 shared by non-subprocesses systems, and make its body empty when
172 subprocesses is not defined.
173 (close_process_descs): Move to the part shared by non-subprocesses
174 systems.
1408902e
EZ
175 (wait_reading_process_output) [!subprocesses]: Convert arg list to
176 ANSI C.
fc549af9 177
d5a3eaaf
AS
1782010-07-12 Andreas Schwab <schwab@linux-m68k.org>
179
180 * editfns.c (transpose_markers): Convert old-style definition.
181 * emacs.c (abort, shut_down_emacs, fixup_locale)
182 (synchronize_system_time_locale)
183 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
184 * floatfns.c (extract_float, matherr, init_floatfns)
185 (syms_of_floatfns): Likewise.
186 * fns.c (make_hash_table): Likewise.
187 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
188 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
189 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
190 (ftfont_variation_glyphs): Likewise.
191 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
192 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
193 * lread.c (read_filtered_event): Likewise.
194 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
195 * process.c (wait_reading_process_output): Likewise.
196 * scroll.c (do_line_insertion_deletion_costs): Likewise.
197 * search.c (search_buffer, boyer_moore): Likewise.
198 * syntax.c (scan_sexps_forward): Likewise.
199 * xdisp.c (try_scrolling): Likewise.
200 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
201 (face_at_string_position): Likewise.
202 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
203 * xselect.c (x_get_window_property, receive_incremental_selection)
204 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
205 Likewise.
206 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
207
6f704c76
DN
2082010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
209
ded80a25
DN
210 * callproc.c (child_setup): Remove subprocesses conditional.
211 Remove code dealing with SET_EMACS_PRIORITY, unused.
212
49d937f4 213 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
214 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
215
216 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
217 (__do_global_dtors, __main): Use void in definition.
218 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
219 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
220 the only users from ...
221 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
222 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
223 (HAVE_VOLATILE): Remove, unused.
224
6f704c76
DN
225 Convert more function definitions to standard C.
226 * xdisp.c (window_box_edges, handle_single_display_spec)
227 (display_string): Convert definition to standard C.
228 * scroll.c (do_direct_scrolling, scrolling_1):
229 * dispnew.c (allocate_matrices_for_frame_redisplay)
230 (mirrored_line_dance):
231 * coding.c (code_convert_string):
232 * charset.c (map_charset_chars):
233 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
234 (Fregister_ccl_program, Fregister_code_conversion_map):
235 * keyboard.c (kbd_buffer_nr_stored): Likewise.
236 (head_table): Make static and const.
237
e6cfa7c3
AS
2382010-07-12 Andreas Schwab <schwab@linux-m68k.org>
239
240 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
241 (PROFILING_LDFLAGS): Set from substitution.
242 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
243 CFLAGS last.
244
892dd565
KH
2452010-07-12 Kenichi Handa <handa@m17n.org>
246
6f2cdcd1
KH
247 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
248 (shortlisp): Likewise.
249
892dd565
KH
250 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
251
252 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
253 of FONT_ENTITY_INDEX.
254 (Ffont_get): If KEY is :otf and the font-object doesn't have the
255 property, get the property value dynamically.
256 (Ffont_put): Accept font-entity and font-object too.
257 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
258 return value changed.
259 (syms_of_font): Adjusted for the above change.
260
ae96d47a
AS
2612010-07-11 Andreas Schwab <schwab@linux-m68k.org>
262
c8fc18ee
AS
263 * blockinput.h: Remove obsolete comment.
264
89887d67
AS
265 * lisp.h: Include <stddef.h>.
266 (OFFSETOF): Don't define.
267 (VECSIZE): Use offsetof instead of OFFSETOF.
268 (PSEUDOVECSIZE): Likewise.
269 * process.c (conv_sockaddr_to_lisp): Likewise.
270 * alloc.c: Don't include <stddef.h>.
271 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
272
ae96d47a
AS
273 * process.c: Remove obsolete comment.
274
635c0aa1
CY
2752010-07-11 Chong Yidong <cyd@stupidchicken.com>
276
277 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
278
a64df650
AS
2792010-07-11 Andreas Schwab <schwab@linux-m68k.org>
280
8966b757
AS
281 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
282 index, rindex.
283 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
284 * editfns.c (Fuser_full_name, Fformat): Likewise.
285 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
286 * fileio.c (Ffile_symlink_p): Likewise.
287 * filelock.c (current_lock_owner): Likewise.
288 * font.c (font_parse_name, font_parse_family_registry): Likewise.
289 * fontset.c (fontset_pattern_regexp): Likewise.
290 * lread.c (read1): Likewise.
291 * sysdep.c (init_system_name): Likewise.
292 * xfns.c (select_visual): Likewise.
293 * s/hpux10-20.h (index, rindex): Don't define.
294 * s/ms-w32.h (index): Likewise.
295 * s/usg5-4.h: Likewise.
296
cf237e27
AS
297 * callproc.c (relocate_fd): Use F_DUPFD if defined.
298
a8fe7202
AS
299 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
300 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
301 (egetenv): Likewise.
302 * doprnt.c (doprnt): Likewise.
303 * editfns.c (set_time_zone_rule, format2): Likewise.
304 * emacs.c (decode_env_path): Likewise.
305 * eval.c (signal_error, error): Likewise.
306 * insdel.c (replace_range_2): Likewise.
307 * keyboard.c (cmd_error_internal): Likewise.
308 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
309 * print.c (write_string, write_string_1, print_error_message):
310 Likewise.
311 * vm-limit.c (warn_function, memory_warnings): Likewise.
312 * xdisp.c (message1, message1_nolog, message_with_string)
313 (vmessage, message, message_nolog): Likewise.
314 * emacs.c: Remove duplicate declaration.
315 * keyboard.h: Likewise.
316 * lisp.h: Update prototypes.
317
bb8e180f
AS
318 * eval.c: Fix indentation problem.
319
83380e65
AS
320 * keyboard.c: Include "process.h"
321
a64df650
AS
322 * eval.c: Remove obsolete noinline declaration.
323 * fns.c: Likewise.
324
6a8033e1
KR
3252010-07-11 Ken Raeburn <raeburn@raeburn.org>
326
327 * doprnt.c (doprnt): Take a va_list argument instead of count and
328 pointer.
329 * eval.c (error): Change to a standard-C variadic function.
330 * xdisp.c (vmessage): Renamed from message, made static, and
331 changed to take a va_list argument.
332 (message): New variadic wrapper.
333 (message_nolog): Now a variadic function, calling vmessage.
334 * lisp.h: Include stdarg.h for va_list.
335 (doprnt, error, message, message_nolog): Decls updated.
336
462aa963
EZ
3372010-07-11 Eli Zaretskii <eliz@gnu.org>
338
339 * process.c (syms_of_process) <delete-exited-processes>: Define
340 even if !subprocesses.
341 (delete_exited_processes): Ditto.
342
343 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
344 (delete_exited_processes): Don't define.
345
48104462
CY
3462010-07-10 Chong Yidong <cyd@stupidchicken.com>
347
348 * frame.c (make_frame): Initialize menu_bar_lines and
349 tool_bar_lines members.
350 (make_initial_frame, make_terminal_frame): Initialize
351 menu_bar_lines using value of menu-bar-mode.
352
353 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
354
f388c88a
EZ
3552010-07-10 Eli Zaretskii <eliz@gnu.org>
356
357 * process.c: Reshuffle #include's. Condition some of the global
358 and static variables on `subprocesses'.
359 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
360 Leave only one implementation.
361 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
362 (kill_buffer_processes, Flist_system_processes)
363 (Fprocess_attributes, init_process, syms_of_process): Unify the
364 implementations for with subprocesses and without them.
365
723f5a07
J
3662010-07-09 Jan Djärv <jan.h.d@swipnet.se>
367
368 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
369 correct size for Motif.
370 (free_frame_menubar): Call x_set_window_size to update frame size.
371
372 * xfns.c (x_window): Set borderWidth to 0 for pane and
373 EmacsFrame. Frame size calculation is wrong otherwise.
374
2536a4b7
MA
3752010-07-09 Michael Albinus <michael.albinus@gmx.de>
376
377 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
378 allows to suppress errors when polling in Emacs' main loop.
379 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
380 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
381 (Fdbus_method_error_internal, Fdbus_send_signal)
382 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
383 (Fdbus_register_method): Use it. (Bug#6579)
384
5842a27b
DN
3852010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
386
387 * alloc.c: Convert DEFUNs to standard C.
388 * buffer.c:
389 * bytecode.c:
390 * callint.c:
391 * callproc.c:
392 * casefiddle.c:
393 * casetab.c:
394 * category.c:
395 * character.c:
396 * charset.c:
397 * chartab.c:
398 * cmds.c:
399 * coding.c:
400 * composite.c:
401 * data.c:
402 * dbusbind.c:
403 * dired.c:
404 * dispnew.c:
405 * doc.c:
406 * dosfns.c:
407 * editfns.c:
408 * emacs.c:
409 * eval.c:
410 * fileio.c:
411 * filelock.c:
412 * floatfns.c:
413 * fns.c:
414 * font.c:
415 * fontset.c:
416 * frame.c:
417 * fringe.c:
418 * image.c:
419 * indent.c:
420 * insdel.c:
421 * keyboard.c:
422 * keymap.c:
423 * lread.c:
424 * macros.c:
425 * marker.c:
426 * menu.c:
427 * minibuf.c:
428 * msdos.c:
429 * nsfns.m:
430 * nsmenu.m:
431 * nsselect.m:
432 * print.c:
433 * process.c:
434 * search.c:
435 * sound.c:
436 * syntax.c:
437 * term.c:
438 * terminal.c:
439 * textprop.c:
440 * undo.c:
441 * w16select.c:
442 * w32console.c:
443 * w32fns.c:
444 * w32font.c:
445 * w32menu.c:
446 * w32proc.c:
447 * w32select.c:
448 * window.c:
449 * xdisp.c:
450 * xfaces.c:
451 * xfns.c:
452 * xmenu.c:
453 * xselect.c:
454 * xsettings.c:
455 * xsmfns.c: Likewise.
456
d568829b
EZ
4572010-07-08 Eli Zaretskii <eliz@gnu.org>
458
459 * process.c (kbd_is_on_hold, hold_keyboard_input)
460 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
461
52214050
J
4622010-07-08 Jan Djärv <jan.h.d@swipnet.se>
463
464 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
465 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
466 unless USE_LUCID.
467
313d9eb2
DN
4682010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
469
a628ad9d
JB
470 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
471 declaration.
d8825aa3 472
295d0d8f
DN
473 Clean up include guards.
474 * tparam.c: Remove include guards for config.h, string.h and code
475 that assumes #ifndef emacs.
476 * termcap.c:
477 * unexalpha.c:
478 * sysdep.c:
479 * filemode.c:
480 * filelock.c:
481 * bidi.c: Likewise.
482
49d9e6b0
DN
483 Remove prefix-args.c
484 * prefix-args.c: Remove file.
485 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
486 * Makefile.in (temacs${EXEEXT}): Remove references to
487 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
488 (mostlyclean): Remove reference to prefix-args.
489 (prefix-args): Remove.
490
313d9eb2
DN
491 Simplify cstart_of_data, start_of_code and related code.
492 * mem-limits.h: Remove !emacs and _LIBC conditional code.
493 (start_of_data): Merge into start_of_data function.
494 * sysdep.c (start_of_text): Remove. Move simplified versions of
495 it in the only users: unexaix.c and unexec.c.
496 (read_input_waiting): Remove local declaration of quit_char.
497 (start, etext): Remove declarations.
498 (start_of_data): Merge with the version in mem-limits.h and move
499 to vm-limits.c.
500 * vm-limit.c (start_of_data): Merged and simplified version of the
501 code formerly in mem-limits.h and sysdep.c.
502 * unexec.c (start): New declaration, moved from sysdep.c.
503 (start_of_text): Simplified version of the code formerly in sysdep.c.
504 * unexaix.c (start_of_text): Simplified version of the code
505 formerly in sysdep.c.
506 * m/alpha.h (HAVE_TEXT_START): Remove.
507 (TEXT_START): Move ...
508 * unexalpha.c (TEXT_START): ... here.
509 * s/hpux10-20.h (TEXT_START): Remove.
510 * s/darwin.h (TEXT_START):
511 * m/mips.h (TEXT_START):
512 * m/macppc.h (HAVE_TEXT_START):
513 * m/m68k.h (TEXT_START):
514 * m/iris4d.h (TEXT_START):
515 * m/intel386.h (TEXT_START):
516 * m/ibmrs6000.h (TEXT_START):
517 * m/ia64.h (HAVE_TEXT_START):
518 * s/msdos.h (TEXT_START): Likewise.
519
72af86bd
AS
5202010-07-07 Andreas Schwab <schwab@linux-m68k.org>
521
522 * alloc.c (overrun_check_malloc, overrun_check_realloc)
523 (overrun_check_free, xstrdup, allocate_string)
524 (allocate_string_data, compact_small_strings, Fmake_string)
525 (make_unibyte_string, make_multibyte_string)
526 (make_string_from_bytes, make_specified_string, make_float)
527 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
528 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
529 memcpy, memmove, memset, memcmp.
530 * atimer.c (start_atimer, set_alarm): Likewise.
531 * buffer.c (clone_per_buffer_values, report_overlay_modification)
532 (mmap_realloc, init_buffer_once): Likewise.
533 * callint.c (Fcall_interactively): Likewise.
534 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
535 (getenv_internal_1): Likewise.
536 * casefiddle.c (casify_object): Likewise.
537 * ccl.c (ccl_driver): Likewise.
538 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
539 * charset.c (load_charset_map_from_file)
540 (load_charset_map_from_file, load_charset_map_from_vector)
541 (Fdefine_charset_internal): Likewise.
542 * cm.c (Wcm_clear): Likewise.
543 * coding.c (decode_eol, decode_coding_object)
544 (Fset_coding_system_priority, make_subsidiaries): Likewise.
545 * data.c (Faset): Likewise.
546 * dired.c (directory_files_internal, file_name_completion_stat):
547 Likewise.
548 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
549 (clear_glyph_row, copy_row_except_pointers)
550 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
551 (save_current_matrix, restore_current_matrix)
552 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
553 (mirror_line_dance, scrolling_window): Likewise.
554 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
555 Likewise.
556 * doprnt.c (doprnt): Likewise.
557 * editfns.c (Fuser_full_name, make_buffer_string_both)
558 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
559 * emacs.c (sort_args): Likewise.
560 * eval.c (Fapply, Ffuncall): Likewise.
561 * fileio.c (Ffile_name_directory, make_temp_name)
562 (Fexpand_file_name, search_embedded_absfilename)
563 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
564 (auto_save_error): Likewise.
565 * fns.c (Fstring_equal, Fcopy_sequence, concat)
566 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
567 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
568 (Fmake_hash_table): Likewise.
569 * fringe.c (Fdefine_fringe_bitmap): Likewise.
570 * ftfont.c (ftfont_text_extents): Likewise.
571 * getloadavg.c (getloadavg): Likewise.
572 * image.c (define_image_type, make_image, make_image_cache)
573 (x_create_x_image_and_pixmap, xbm_image_p)
574 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
575 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
576 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
577 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
578 (tiff_image_p, tiff_read_from_memory, gif_image_p)
579 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
580 Likewise.
581 * indent.c (scan_for_column, compute_motion): Likewise.
582 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
583 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
584 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
585 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
586 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
587 (store_user_signal_events, menu_bar_items, tool_bar_items)
588 (process_tool_bar_item, append_tool_bar_item)
589 (read_char_minibuf_menu_prompt, read_key_sequence)
590 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
591 Likewise.
592 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
593 Likewise.
594 * lisp.h (STRING_COPYIN): Likewise.
595 * lread.c (Fload, read1, oblookup): Likewise.
596 * msdos.c (Frecent_doskeys): Likewise.
597 * nsfns.m (Fx_create_frame): Likewise.
598 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
599 Likewise.
600 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
601 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
602 Likewise.
603 * nsmenu.m (ns_update_menubar): Likewise.
604 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
605 * print.c (print_unwind, printchar, strout, print_string)
606 (print_error_message): Likewise.
607 * process.c (conv_lisp_to_sockaddr, set_socket_option)
608 (Fmake_network_process, Fnetwork_interface_list)
609 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
610 (init_process): Likewise.
611 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
612 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
613 Likewise.
614 * scroll.c (do_scrolling, do_direct_scrolling)
615 (scrolling_max_lines_saved): Likewise.
616 * search.c (search_buffer, wordify, Freplace_match): Likewise.
617 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
618 * syntax.c (skip_chars, skip_syntaxes): Likewise.
619 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
620 (emacs_set_tty): Likewise.
621 * term.c (encode_terminal_code, calculate_costs)
622 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
623 Likewise.
624 * termcap.c (tgetst1, gobble_line): Likewise.
625 * termhooks.h (EVENT_INIT): Likewise.
626 * tparam.c (tparam1): Likewise.
627 * unexalpha.c (unexec): Likewise.
628 * unexec.c (write_segment): Likewise.
629 * unexmacosx.c (unexec_write_zero): Likewise.
630 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
631 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
632 * w32font.c (w32font_list_family, w32font_text_extents)
633 (w32font_list_internal, w32font_match_internal)
634 (w32font_open_internal, compute_metrics, Fx_select_font):
635 Likewise.
636 * w32menu.c (set_frame_menubar, add_menu_item)
637 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
638 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
639 * w32uniscribe.c (uniscribe_list_family): Likewise.
640 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
641 * window.c (make_window, replace_window, set_window_buffer)
642 (Fsplit_window): Likewise.
643 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
644 (add_to_log, message3, x_consider_frame_title)
645 (append_space_for_newline, extend_face_to_end_of_line)
646 (decode_mode_spec_coding, init_glyph_string): Likewise.
647 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
648 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
649 (face_attr_equal_p, make_realized_face, make_face_cache)
650 (free_realized_faces, lookup_named_face, smaller_face)
651 (face_with_height, lookup_derived_face)
652 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
653 (Finternal_set_font_selection_order, realize_default_face)
654 (compute_char_face, face_at_buffer_position)
655 (face_for_overlay_string, face_at_string_position, merge_faces):
656 Likewise.
657 * xfns.c (xic_create_fontsetname, Fx_create_frame)
658 (Fx_window_property, x_create_tip_frame)
659 (Fx_backspace_delete_keys_p): Likewise.
660 * xfont.c (xfont_list, xfont_match, xfont_list_family)
661 (xfont_text_extents): Likewise.
662 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
663 * xrdb.c (magic_file_p, x_get_resource): Likewise.
664 * xselect.c (x_queue_event, x_get_window_property)
665 (receive_incremental_selection): Likewise.
666 * xsmfns.c (x_session_check_input): Likewise.
667 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
668 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
669 Likewise.
670 * character.h (BCOPY_SHORT): Removed.
671 * config.in: Regenerate.
672 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
673 * emacs.c (main) [PROFILING]: Don't declare
674 dump_opcode_frequencies.
675 * lisp.h (safe_bcopy): Remove declaration.
676 (memset) [!HAVE_MEMSET]: Declare.
677 (memcpy) [!HAVE_MEMCPY]: Likewise.
678 (memmove) [!HAVE_MEMMOVE]: Likewise.
679 (memcmp) [!HAVE_MEMCMP]: Likewise.
680 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
681 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
682 Don't define.
683 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
684 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
685 (BCOPY_DOWNWARD_SAFE): Don't define.
686 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
687 (memcpy) [!HAVE_MEMCPY]: Define.
688 (memmove) [!HAVE_MEMMOVE]: Define.
689 (memcmp) [!HAVE_MEMCMP]: Define.
690
cb768704
J
6912010-07-07 Jan Djärv <jan.h.d@swipnet.se>
692
693 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
694 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
695 New functions.
cb768704
J
696 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
697 select on empty input mask.
698 (init_process): Initialize kbd_is_on_hold to 0.
699
700 * process.h (hold_keyboard_input, unhold_keyboard_input)
701 (kbd_on_hold_p): Declare.
702
703 * keyboard.c (input_available_signal): Declare.
704 (kbd_buffer_nr_stored): New function.
705 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
706 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
707 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
708 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
709 (tty_read_avail_input): If input is on hold, return.
710 Don't read more that free slots in kbd_buffer (Bug#6571).
711
3a8ce822
EZ
7122010-07-07 Eli Zaretskii <eliz@gnu.org>
713
714 * msdos.h:
715 * msdos.c:
716 * dosfns.c:
717 * w16select.c: Convert function definitions to ANSI C.
718
a628ad9d
JB
719 * msdos.h (ctrl_break_func, install_ctrl_break_check):
720 Remove unused prototypes.
3a8ce822 721
cf84bb53
JB
7222010-07-07 Juanma Barranquero <lekktu@gmail.com>
723
724 * coding.c, sysdep.c: Convert some more functions to standard C.
725
1a4990fb
JB
7262010-07-07 Juanma Barranquero <lekktu@gmail.com>
727
728 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
729 (encode_coding_object): Use SPECPDL_INDEX.
730 (syms_of_coding): Use DOS_NT.
731
c0f2f16b
DN
7322010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
733
48fb6855
DN
734 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
735
c0f2f16b
DN
736 Make the function member of Lisp_Subr use standard C prototypes.
737 * lisp.h (struct Lisp_Subr): Use a union for the function member.
738 (DECL_ALIGN): Add a cast for the function.
739 * eval.c (Feval, Ffuncall): Use the proper type for each type
740 function call.
741
67aecef9
CY
7422010-07-06 Chong Yidong <cyd@stupidchicken.com>
743
744 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
745 fringe face id, so face-remapping-alist works (Bug#6091).
746
b56ceb92
JB
7472010-07-06 Juanma Barranquero <lekktu@gmail.com>
748
749 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
750 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
751 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
752
7af07b96
AS
7532010-07-06 Andreas Schwab <schwab@linux-m68k.org>
754
755 * xterm.c (x_get_keysym_name): Change type of parameter to int.
756 * lisp.h: Declare x_get_keysym_name.
757 * keyboard.c (modify_event_symbol): Don't declare
758 x_get_keysym_name here.
759
69e24e34
DN
7602010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
761
762 * ecrt0.c: Revert conversion to standard C.
763
d3da34e0 7642010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
765
766 * vm-limit.c (memory_warnings):
767 * keyboard.c (modify_event_symbol):
768 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
769 (round2, emacs_rint):
770 * process.c (send_process, old_sigpipe): Convert function
771 definitions and declarations to standard C.
772
7732010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
774
775 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
776 * xdisp.c: Convert function definitions to standard C.
777
778 * cm.c (cmputc): Arg C is now int, not char.
779 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
780
00be444c
J
7812010-07-05 James Cloos <cloos@jhcloos.com>
782
783 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
784
785 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
786 _NET_WM_ICON_NAME atoms.
787
788 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
789 and _NET_WM_ICON_NAME properties, too, matching what is
790 done in the Gtk+ case.
791
e4c8d29a
J
7922010-07-05 Jan Djärv <jan.h.d@swipnet.se>
793
ff919460
J
794 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
795
e4c8d29a
J
796 * xsmfns.c (SSDATA): New macro.
797 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
798 passed to strlen/strcpy/strcat.
799 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
800 7:th arg to XChangeProperty to (unsigned char *)
801
802 * xsettings.c (something_changedCB, parse_settings)
803 (apply_xft_settings): Reformat prototype.
804 (something_changedCB, init_gconf): Remove unused variable i.
805 (read_settings): Remove unused variable long_len.
806
807 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
808 (xg_get_image_for_pixmap, create_dialog)
809 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
810 (menuitem_highlight_callback, make_menu_item)
811 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
812 (xg_create_scroll_bar, xg_update_scrollbar_pos)
813 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
814 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
815 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
816 (xg_tool_bar_item_expose_callback): Reformat prototype.
817 (xg_update_menubar): GList *group => GSList *group.
818 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
819 before use.
820 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
821 to GTK_IMAGE (wimage).
822
dd4c5104
DN
8232010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
824
898b4c5c
DN
825 * atimer.c: Use "" instead of <> for local includes for
826 consistency with the rest of the code.
827
dd4c5104
DN
828 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
829 * xrdb.c (get_system_name):
830 * window.c (shrink_windows):
831 * syntax.c (forw_comment):
832 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
833 (ins_del_costs):
834 * mem-limits.h (start_of_data):
835 * lread.c (readevalloop):
836 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
837 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
838 * frame.c (x_get_focus_frame):
839 * floatfns.c (fmod_float):
840 * fileio.c (choose_write_coding_system):
841 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
842 (malloc_initialize_hook, sort_args, synchronize_locale):
843 * doprnt.c (doprnt):
844 * dired.c (compile_pattern):
845 * data.c (fmod_float):
846 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
847 (map_char_table_for_charset):
848 * charset.c (define_charset_internal):
849 * alloc.c (Fgarbage_collect): Convert declarations or definitions
850 to standard C.
851
9a39b306 8522010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 853 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
854
855 * lread.c (read1): Fix up last change to not mess up `c'.
856
e6cb2cbb
JB
8572010-07-04 Juanma Barranquero <lekktu@gmail.com>
858
859 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
860
438105ed
JB
8612010-07-04 Juanma Barranquero <lekktu@gmail.com>
862
863 Fix prototypes.
864
e5447b22 865 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 866 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
867 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
868 arg, as required by internal_condition_case_1.
dcc7404b 869 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
870 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
871 (analyse_first): Fix "const const".
e5447b22 872 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 873 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 874 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 875
971de7fb
DN
8762010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
877
878 * alloc.c: Convert function definitions to standard C.
879 * atimer.c:
880 * bidi.c:
881 * bytecode.c:
882 * callint.c:
883 * callproc.c:
884 * casefiddle.c:
885 * casetab.c:
886 * category.c:
887 * ccl.c:
888 * character.c:
889 * charset.c:
890 * chartab.c:
891 * cmds.c:
892 * coding.c:
893 * composite.c:
894 * data.c:
895 * dbusbind.c:
896 * dired.c:
897 * dispnew.c:
898 * doc.c:
899 * doprnt.c:
900 * ecrt0.c:
901 * editfns.c:
902 * fileio.c:
903 * filelock.c:
904 * filemode.c:
905 * fns.c:
906 * font.c:
907 * fontset.c:
908 * frame.c:
909 * fringe.c:
910 * ftfont.c:
911 * ftxfont.c:
912 * gtkutil.c:
913 * indent.c:
914 * insdel.c:
915 * intervals.c:
916 * keymap.c:
917 * lread.c:
918 * macros.c:
919 * marker.c:
920 * md5.c:
921 * menu.c:
922 * minibuf.c:
923 * prefix-args.c:
924 * print.c:
925 * ralloc.c:
926 * regex.c:
927 * region-cache.c:
928 * scroll.c:
929 * search.c:
930 * sound.c:
931 * strftime.c:
932 * syntax.c:
933 * sysdep.c:
934 * termcap.c:
935 * terminal.c:
936 * terminfo.c:
937 * textprop.c:
938 * tparam.c:
939 * undo.c:
940 * unexelf.c:
941 * window.c:
942 * xfaces.c:
943 * xfns.c:
944 * xfont.c:
945 * xftfont.c:
946 * xgselect.c:
947 * xmenu.c:
948 * xrdb.c:
949 * xselect.c:
950 * xsettings.c:
951 * xsmfns.c:
952 * xterm.c: Likewise.
953
ae492bec
EZ
9542010-07-03 Eli Zaretskii <eliz@gnu.org>
955
76ea4cc9
EZ
956 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
957 frames other than the initial one. Fix reversal of colors when
958 `reverse' is specified in the frame parameters. Call
959 update_face_from_frame_parameter instead of
960 internal-set-lisp-face-attribute. Initialize screen colors from
961 initial_screen_colors[] when f->default_face_done_p is zero,
962 instead of depending on being called with default-frame-alist as
963 the alist argument.
964
965 * xfaces.c (update_face_from_frame_parameter): Move out of
966 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
967 with HAVE_WINDOW_SYSTEM.
968
1e6255ae
EZ
969 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
970 to menu-bar-mode, if not set in the frame parameters or in
971 default-frame-alist.
972
ae492bec
EZ
973 * w32console.c (sys_tputs): Adjust argument list to prototype in
974 term.c.
975
3a35a84c
JB
9762010-07-03 Juanma Barranquero <lekktu@gmail.com>
977
978 * lisp.h (memory_warnings): Fix prototype.
979
980 * cm.h (evalcost): Fix prototype.
981
982 * cm.c (evalcost): Fix arg type.
983
c532d349
DN
9842010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
985
986 * term.c (term_clear_mouse_face, Fidentity):
987 * syssignal.h (signal_handler_t):
988 * lisp.h (memory_warnings):
989 * coding.h (preferred_coding_system):
990 * cm.h (evalcost):
991 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
992
c0b36d46
EZ
9932010-07-02 Eli Zaretskii <eliz@gnu.org>
994
995 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
996 from prototypes.
997
998 * msdos.h (load_pixmap): Don't define away.
999
383e0970
J
10002010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1001
f57e2426
J
1002 * lisp.h:
1003 * atimer.h: Remove define for P_.
1004
1005 * alloc.c: Remove __P and P_ from .c and .m files.
1006 * atimer.c:
1007 * buffer.c:
1008 * callint.c:
1009 * category.c:
1010 * charset.c:
1011 * chartab.c:
1012 * cm.c:
1013 * coding.c:
1014 * composite.c:
1015 * data.c:
1016 * dired.c:
1017 * dispnew.c:
1018 * doc.c:
1019 * editfns.c:
1020 * emacs.c:
1021 * eval.c:
1022 * fileio.c:
1023 * filelock.c:
1024 * fns.c:
1025 * font.c:
1026 * fontset.c:
1027 * frame.c:
1028 * ftfont.c:
1029 * ftxfont.c:
1030 * gmalloc.c:
1031 * gtkutil.c:
1032 * image.c:
1033 * indent.c:
1034 * intervals.c:
1035 * keyboard.c:
1036 * keymap.c:
1037 * lread.c:
1038 * marker.c:
1039 * menu.c:
1040 * minibuf.c:
1041 * print.c:
1042 * process.c:
1043 * scroll.c:
1044 * search.c:
1045 * sound.c:
1046 * strftime.c:
1047 * syntax.c:
1048 * sysdep.c:
1049 * term.c:
1050 * terminal.c:
1051 * textprop.c:
1052 * unexalpha.c:
1053 * w32console.c:
1054 * w32fns.c:
1055 * w32font.c:
1056 * w32menu.c:
1057 * w32term.c:
1058 * w32uniscribe.c:
1059 * window.c:
1060 * xdisp.c:
1061 * xfaces.c:
1062 * xfns.c:
1063 * xfont.c:
1064 * xftfont.c:
1065 * xmenu.c:
1066 * xselect.c:
1067 * xterm.c: Likewise.
1068
383e0970 1069 Remove P_ and __P macros.
f57e2426
J
1070 * atimer.h: Remove P_ and __P macros.
1071 * buffer.h:
383e0970
J
1072 * category.h:
1073 * ccl.h:
1074 * character.h:
1075 * charset.h:
1076 * cm.h:
1077 * coding.h:
1078 * composite.h:
1079 * dispextern.h:
1080 * disptab.h:
9e892c8d 1081 * dosfns.h:
383e0970
J
1082 * font.h:
1083 * fontset.h:
1084 * frame.h:
1085 * gtkutil.h:
1086 * indent.h:
1087 * intervals.h:
1088 * keyboard.h:
1089 * keymap.h:
1090 * lisp.h:
1091 * macros.h:
1092 * md5.h:
1093 * menu.h:
1094 * msdos.h:
1095 * nsterm.h:
1096 * puresize.h:
1097 * region-cache.h:
1098 * syntax.h:
1099 * syssignal.h:
1100 * systime.h:
1101 * termhooks.h:
9e892c8d 1102 * w32font.h:
383e0970
J
1103 * w32term.h:
1104 * widget.h:
1105 * window.h:
1106 * xgselect.h:
1107 * xsettings.h:
1108 * xterm.h: Likewise.
1109
98601119
DN
11102010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1111
d9170db5
DN
1112 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1113
98601119
DN
1114 Cleanup old code.
1115 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1116 * syssignal.h: Remove code for Lynx, not supported anymore.
1117 * vm-limit.c: Remove unused code the depends on emacs not being
1118 defined and NO_LIM_DATA being defined.
1119 * mem-limits.h: Remove dead code.
1120
1f984e12
J
11212010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1122
c49d071a
J
1123 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1124
9d5405ec
J
1125 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1126 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1127
7a18115b
J
1128 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1129 parameters, they are already absolute.
1130
a628ad9d
JB
1131 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1132 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1133
a628ad9d 1134 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1135
a628ad9d
JB
1136 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1137 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1138
a628ad9d
JB
1139 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1140 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1141
c1ef4455
CY
11422010-06-30 Chong Yidong <cyd@stupidchicken.com>
1143
1144 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1145 check default-frame-alist.
1146
ce8f5a9a
AS
11472010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1148
1149 * process.c (create_process): Avoid using invalid file descriptors.
1150
1151 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1152
bf935339
J
11532010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1154
1155 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1156 Improve documentation. Return font regardless of use_system_font.
1157 (syms_of_xsettings): Improve documentation for font-use-system-font.
1158
7c33a057
CY
11592010-07-10 Chong Yidong <cyd@stupidchicken.com>
1160
2ec1b5ee
CY
1161 * xfaces.c (realize_face): Garbage the frame if a face is removed
1162 (Bug#6593).
1163
11642010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1165
1166 * keyboard.c: Remove duplicate <setjmp.h>.
1167 (read_key_sequence): Remove volatile qualifiers.
1168
11692010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1170
1171 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1172 (struct glyph_row): New members left_fringe_offset and
1173 right_fringe_offset.
1174
1175 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1176 specially.
1177 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1178 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1179
1180 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1181 Take account of bitmap offset.
2ec1b5ee
CY
1182 (draw_window_fringes): Take account of window vscroll.
1183 (update_window_fringes): Likewise. Extend top-aligned top indicator
1184 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1185 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1186 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1187
11882010-07-04 Juanma Barranquero <lekktu@gmail.com>
1189
1190 * w32fns.c (Qtooltip): Declare.
1191 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1192
11932010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1194
1195 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1196 grab on just Press (Bug#6499).
1197
11982010-07-02 Chong Yidong <cyd@stupidchicken.com>
1199
1200 * frame.c (Qtooltip): New var.
1201 (delete_frame): Use it. Fix faulty if statement. Don't update
1202 mode line for tooltip frames. Suggested by Martin Rudalics.
1203
1204 * xfns.c (x_create_tip_frame):
1205 * w32fns.c (x_create_tip_frame): Use it.
1206
12072010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1208
1209 * xftfont.c (xftfont_open): Check font width one by one also when
1210 spacing is dual.
1211
1212 * ftfont.c (ftfont_open): Ditto.
1213
6259c2ec
GM
12142010-06-30 Glenn Morris <rgm@gnu.org>
1215
a46007e9
GM
1216 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1217
6259c2ec
GM
1218 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1219
1220 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1221 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1222 * s/darwin.h (SYSTEM_MALLOC):
1223 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1224
5d1d3d04
J
12252010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1226
1227 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1228 (ns_get_screen): Don't assign integer to f.
1229 (Fx_display_color_cells): Declarations before statements.
1230
e547b051
J
12312010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1232
5fc8e5bc
J
1233 * xfns.c (x_default_font_parameter): Remove got_from_system
1234 (Bug#6526).
1235
e547b051
J
1236 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1237 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1238 defines based on what configure finds.
1239
1240 * xterm.c (XTflash): Use gtk_widget_get_window.
1241 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1242 gtk_adjustment_get_page_size.
1243 (handle_one_xevent): Use gtk_widget_get_mapped.
1244 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1245 messages.
1246
1247 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1248
1249 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1250 HAVE_GTK_FILE_SELECTION_NEW.
1251
1252 * gtkutil.c (xg_display_open, xg_display_close): Remove
1253 HAVE_GTK_MULTIDISPLAY, it is always defined.
1254 (xg_display_open): Return type is void.
1255 (gtk_widget_set_has_window)
1256 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1257 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1258 (gtk_adjustment_set_page_increment)
1259 (gtk_adjustment_get_step_increment): #define these if not found
1260 by configure.
1261 (remove_submenu): New define based on Gtk+ version.
1262 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1263 gtk_widget_get_window.
1264 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1265 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1266 (create_dialog): Use gtk_dialog_get_action_area and
1267 gtk_dialog_get_content_area.
1268 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1269 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1270 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1271 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1272 g_object_ref and g_object_unref.
1273 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1274 gtk_widget_get_sensitive.
1275 (xg_update_submenu): Use remove_submenu.
1276 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1277 properties instead to get old x and y position.
1278 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1279 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1280 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1281 (xg_get_tool_bar_widgets): New function.
1282 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1283 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1284 (toolbar_set_orientation): New #define based on if configure
1285 finds gtk_orientable_set_orientation.
1286 (xg_create_tool_bar): Call toolbar_set_orientation.
1287 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1288 instead of gtk_box_pack_start_defaults.
1289
b9229673
CY
12902010-06-28 Chong Yidong <cyd@stupidchicken.com>
1291
1292 * cmds.c (Fdelete_backward_char): Move into Lisp.
1293
bbc803b0
DN
12942010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1295
1296 * s/freebsd.h (BSD4_2): Remove redundant definition.
1297 bsd-common.h defines it already.
1298
6431f2e6
CY
12992010-06-27 Chong Yidong <cyd@stupidchicken.com>
1300
1301 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1302 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1303 tool-bar-mode, which are now set using these X resources at
1304 startup, to determine the defaults (Bug#2249).
1305
1306 * w32fns.c (Fx_create_frame):
1307 * nsfns.m (Fx_create_frame): Likewise.
1308
1309 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1310
8c079ebb
JB
13112010-06-24 Juanma Barranquero <lekktu@gmail.com>
1312
1313 * gtkutil.c (xg_update_scrollbar_pos):
1314 Avoid C99 mid-block variable declaration.
1315
e9b7ab96
JD
13162010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1317
bc869eca
JD
1318 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1319
2b7e356a 1320 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1321
1322 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1323 if height is less than scroll bar min size.
1324 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1325
e9b7ab96
JD
1326 * xfns.c (x_default_font_parameter): Try to open font from system
1327 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1328
a628ad9d 13292010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1330
1331 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1332
70c4cfbb
EZ
13332010-06-20 Eli Zaretskii <eliz@gnu.org>
1334
1335 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1336 most-positive-fixnum, be extra accurate when scrolling window
1337 start, to avoid missing the cursor line.
1338
ad5a12b5
EZ
13392010-06-19 Eli Zaretskii <eliz@gnu.org>
1340
1341 * xdisp.c (try_scrolling): Compute the limit for searching point
1342 in forward scroll from scroll_max, instead of an arbitrary limit
1343 of 10 screen lines. See
1344 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1345 and
1346 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1347 for details.
1348
2a64315a 13492010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1350
1351 * editfns.c (Fbyte_to_string): Pacify compiler.
1352
288cf4e9
SM
13532010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1354
1355 * lread.c (read1): Phase out old-style backquotes a bit more.
1356
6e6e5760
EZ
13572010-06-12 Eli Zaretskii <eliz@gnu.org>
1358
cbc4fd20
EZ
1359 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1360 bidimirror.h.
1361
1362 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1363
317fbf33
EZ
1364 * bidi.c (bidi_initialize): Remove explicit initialization of
1365 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1366 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1367 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1368
1369 * biditype.h: New file.
1370
cbc4fd20
EZ
1371 * bidimirror.h: New file.
1372
6e6e5760
EZ
1373 * window.c (syms_of_window): Doc fix (bug#6409).
1374
4176cba2
RF
13752010-06-12 Romain Francoise <romain@orebokech.com>
1376
1377 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1378 ediff-hook.
1379
cb4bfcb5
GM
13802010-06-10 Glenn Morris <rgm@gnu.org>
1381
64c60c2f
GM
1382 * editfns.c (Fbyte_to_string): Pacify compiler.
1383
cb4bfcb5
GM
1384 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1385
2ec1b5ee
CY
13862010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1387
1388 * alloc.c (Fmake_byte_code): Don't access undefined argument
1389 (Bug#6517).
1390
13912010-06-25 Chong Yidong <cyd@stupidchicken.com>
1392
1393 * xdisp.c (next_element_from_image): Ensure that after-strings are
1394 read the next time we hit handle_stop (Bug#1336).
1395
13962010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1397
1398 * lread.c (read1): Signal error if #s is not followed by paren.
1399
14002010-06-19 Chong Yidong <cyd@stupidchicken.com>
1401
1402 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1403
1404 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1405
14062010-06-15 Glenn Morris <rgm@gnu.org>
1407
1408 * editfns.c (Fbyte_to_string): Pacify compiler.
1409
e454a4a3
SM
14102010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1411
1412 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1413 Check `object's type before accessing its guts.
1414
c1b1acc2
DN
14152010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1416
1417 * s/usg5-4.h: Fix previous change.
1418 Suggested by Lawrence Mitchell <wence@gmx.li>
1419
657d4c0b
AS
14202010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1421
1422 * minibuf.c (Fall_completions): Add more checks.
1423
9b27fd9f
JB
14242010-06-08 Juanma Barranquero <lekktu@gmail.com>
1425
1426 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1427
a99ebb40
DN
14282010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1429
d7c5d87d
DN
1430 * lread.c (X_OK): Remove, unused.
1431
0263a941
DN
1432 * dispnew.c: Remove obsolete comment.
1433
a99ebb40
DN
1434 Remove INCLUDED_FCNTL.
1435 * xterm.c (INCLUDED_FCNTL):
1436 * callproc.c (INCLUDED_FCNTL):
1437 * alloc.c (INCLUDED_FCNTL):
1438 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1439 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1440
13b5221f
MR
14412010-06-07 Martin Rudalics <rudalics@gmx.at>
1442
1443 * window.c (Fselect_window): Move `record_buffer' up to the
1444 beginning of this function, so the buffer gets recorded
1445 even if the selected window does not change.
1446 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1447
5220357f
JB
14482010-06-07 Juanma Barranquero <lekktu@gmail.com>
1449
1450 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1451 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1452
3085237c
DN
14532010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1454
1455 Remove BSTRING related code, all platforms define it.
1456 * s/usg5-4.h (BSTRING): Remove definition.
1457 * s/template.h (BSTRING):
1458 * s/msdos.h (BSTRING):
1459 * s/ms-w32.h (BSTRING):
1460 * s/hpux10-20.h (BSTRING):
1461 * s/gnu-linux.h (BSTRING):
1462 * s/darwin.h (BSTRING):
1463 * s/cygwin.h (BSTRING):
1464 * s/bsd-common.h (BSTRING):
1465 * s/aix4-2.h (BSTRING): Likewise.
1466 * sysdep.c: Remove code depending on BSTRING not being defined.
1467
409f2919
JB
14682010-06-05 Juanma Barranquero <lekktu@gmail.com>
1469
1470 Remove obsolete macro BASE_LEADING_CODE_P.
1471 * character.h (BASE_LEADING_CODE_P): Remove.
1472 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1473 * buffer.c (Fset_buffer_multibyte):
1474 * indent.c (scan_for_column, compute_motion):
1475 * insdel.c (count_combining_before, count_combining_after):
1476 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1477
087fc47a
JB
14782010-06-04 Juanma Barranquero <lekktu@gmail.com>
1479
1480 Turn `directory-sep-char' into a noop.
1481
1482 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1483 (DIRECTORY_SEP): Define unconditionally.
1484
1485 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1486
1487 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1488 call dostounix_filename directly.
1489
1490 * fileio.c (CORRECT_DIR_SEPS): Remove.
1491 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1492 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1493 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1494 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1495
1496 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1497 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1498
0eb7675e
AS
14992010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1500
a628ad9d
JB
1501 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1502 (Bug#6346)
0eb7675e 1503
78edd3b7
JB
15042010-06-03 Juanma Barranquero <lekktu@gmail.com>
1505
1506 * ccl.c (Fccl_program_p): Fix typo in docstring.
1507
eb697db5
DN
15082010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1509
1510 Move UNEXEC definition to autoconf.
1511 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1512 * s/sol2-10.h (UNEXEC):
1513 * s/irix6-5.h (UNEXEC):
1514 * s/hpux10-20.h (UNEXEC):
1515 * s/gnu-linux.h (UNEXEC):
1516 * s/darwin.h (UNEXEC):
1517 * s/cygwin.h (UNEXEC):
1518 * s/bsd-common.h (UNEXEC):
1519 * s/aix4-2.h (UNEXEC):
1520 * m/alpha.h (UNEXEC): Likewise.
1521 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1522
aa3830c4
JB
15232010-06-03 Juanma Barranquero <lekktu@gmail.com>
1524
1525 Remove obsolete pre-unicode2 macros.
1526 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1527 * composite.c (composition_reseat_it):
1528 * data.c (Faset):
1529 * fns.c (Ffillarray):
1530 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1531 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1532
d234d13e
JL
15332010-06-03 Juri Linkov <juri@jurta.org>
1534
1535 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1536 (Fswitch_to_buffer): Remove unused variable `err'.
1537
0d4bcf4d
GM
15382010-06-03 Glenn Morris <rgm@gnu.org>
1539
e23dc1e2
GM
1540 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1541
05b09564
GM
1542 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1543 now that AH_BOTTOM does it.
1544
824e2978
GM
1545 * m/hp800.h (HAVE_ALLOCA):
1546 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1547
0d4bcf4d
GM
1548 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1549 Remove NOT_C_CODE tests, it is always true now.
1550
c55d2abf
DN
15512010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1552
08a494a3
DN
1553 Fix config.h includes.
1554 * xsettings.c:
1555 * xgselect.c:
1556 * nsterm.m:
1557 * nsselect.m:
1558 * nsimage.m:
1559 * nsfont.m:
1560 * nsfns.m:
1561 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1562 other files do.
1563
75934b1d
DN
1564 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1565
9f32a766
DN
1566 * s/sol2-6.h: Remove obsolete comments.
1567
c55d2abf
DN
1568 Remove unnecessary alloca.h includes.
1569 * keymap.c: Do not include alloca.h, config.h does that.
1570 * sysdep.c: Likewise. Do not define fwrite, not used.
1571
06ac62b4
SM
15722010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1573
1574 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1575 the HAVE_TERMIO where it belongs (bug#6149).
1576
1ab8293c
SM
15772010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1578
1579 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1580 of bug#6305).
1581
6dcfd253
EZ
15822010-05-30 Eli Zaretskii <eliz@gnu.org>
1583
1584 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1585 state is always cached (bug#6306).
1586
6d26bbb2
EZ
15872010-05-29 Eli Zaretskii <eliz@gnu.org>
1588
06fa4a23
EZ
1589 Fix cursor motion in bidi-reordered continued lines.
1590 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1591 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1592 over continuation lines in bidi-reordered buffers. Return
1593 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1594 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1595
f5783df3
MA
15962010-05-28 Michael Albinus <michael.albinus@gmx.de>
1597
1598 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1599
7d56b2dd
KH
16002010-05-28 Kenichi Handa <handa@m17n.org>
1601
1602 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1603 Don't sheck SPEC if it is nil.
1604 (font_list_entities): Call font_delete_unmatched if
b925d231 1605 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1606
e58d4ff7
GM
16072010-05-28 Glenn Morris <rgm@gnu.org>
1608
1609 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1610
f1a5d776
CY
16112010-05-27 Chong Yidong <cyd@stupidchicken.com>
1612
1613 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1614 whether to trash.
1615 (internal_delete_file, Frename_file): Callers changed.
1616 (delete_by_moving_to_trash): Doc fix.
1617 (Fdelete_directory_internal): Don't move to trash.
1618
1619 * callproc.c (delete_temp_file):
1620 * buffer.c (Fkill_buffer): Callers changed.
1621
1622 * lisp.h: Update prototype.
1623
f44a59e6
CY
16242010-05-27 Chong Yidong <cyd@stupidchicken.com>
1625
1626 * xdisp.c (redisplay_window): After redisplay, check if point is
1627 still valid before setting it (Bug#6177).
1628
81ac4f35
GM
16292010-05-27 Glenn Morris <rgm@gnu.org>
1630
1631 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1632 Convert comments to Makefile format.
1633
1634 * Makefile.in (bootstrap-clean): No more Makefile.c.
1635
ccd89fb3
GM
16362010-05-26 Glenn Morris <rgm@gnu.org>
1637
90278cb6
GM
1638 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1639 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1640
ccd89fb3
GM
1641 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1642 Remove.
1643 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1644
b7050583
KH
16452010-05-26 Kenichi Handa <handa@m17n.org>
1646
1647 * composite.c (composition_compute_stop_pos): Fix condition for
1648 backward scanning.
1649
e5458003
GM
16502010-05-25 Glenn Morris <rgm@gnu.org>
1651
c345fe90
GM
1652 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1653 Move before TEMACS_LDFLAGS.
1654 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1655 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1656
2e0689ab
GM
1657 * Makefile.in (NOT_C_CODE): No longer define.
1658 (config.h): No longer include.
1659
8009a5e8
GM
1660 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1661 variables it may reference.
1662
e5458003
GM
1663 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1664 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1665
10f72a37
KH
16662010-05-25 Kenichi Handa <handa@m17n.org>
1667
1668 * dispextern.h (struct composition_it): New members rule_idx and
1669 charpos.
1670
1671 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1672 that the character positions of IT point the last character of the
1673 current grapheme cluster.
1674 (next_element_from_composition): Don't change character positions
1675 of IT.
1676 (append_composite_glyph): Set glyph->charpos to
1677 it->cmp_it.charpos.
1678
1679 * composite.c (autocmp_chars): Change the first argument to RULE,
1680 and try composition with RULE only.
1681 (composition_compute_stop_pos): Record the index number of the
1682 composition rule in CMP_IT->rule_idx.
1683 (composition_reseat_it): Call autocmp_chars repeatedly until the
1684 correct rule of the composition is found.
1685 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1686 is at the last character of the current grapheme cluster when
1687 CMP_IT->reversed_p is nonzero.
1688
171eda53 16892010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1690
171eda53
SM
1691 * editfns.c (Fbyte_to_string): New function.
1692
66a9f7f4
SM
16932010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1694
1695 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1696 Suggested by Masatake YAMATO <yamato@redhat.com>.
1697
d8c315d1
EZ
16982010-05-23 Eli Zaretskii <eliz@gnu.org>
1699
171eda53 1700 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1701
f5b416d2 17022010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1703
1704 * s/netbsd.h: If terminfo is found, use it in preference to
1705 termcap. (Bug#6190) [Backport from trunk]
1706
0416466c
EZ
17072010-05-19 Eli Zaretskii <eliz@gnu.org>
1708
11117830 1709 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1710
1711 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1712 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1713 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1714 and maxpos members instead of start.pos and end.pos, respectively.
1715
1716 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1717 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1718 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1719 (try_window_reusing_current_matrix, try_window_id):
1720 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1721 (init_from_display_pos, init_iterator): Use EMACS_INT for
1722 character and byte positions.
66a9f7f4 1723 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1724 arguments for minimum and maximum buffer positions seen by
1725 display_line for this row. Don't use iterator to find the
1726 position following the maximum one; instead, increment the
11117830
EZ
1727 position found by display_line directly. Fix logic; eol_pos
1728 should be tested before the rest. Handle the case of characters
1729 delivered from display vector (bug#6036). Fix tests related to
1730 it->method. Handle the truncated_on_right_p rows.
1731 (RECORD_MAX_MIN_POS): New macro.
1732 (display_line): Use it to record the minimum and maximum buffer
1733 positions for glyphs in the row being assembled. Record the
1734 position of the newline that terminates the line. If word wrap is
1735 in effect, restore minimum and maximum positions seen up to the
1736 wrap point, when iterator returns to it.
1737 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1738 row and cursor not already at point. Restore original pre-bidi
1739 code for unidirectional buffers.
d36fe237
EZ
1740
1741 * dispnew.c (increment_row_positions, check_matrix_invariants):
1742 Increment and check row->start.pos and row->end.pos, in addition
1743 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1744
11117830
EZ
1745 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1746 Display truncated_on_left_p and truncated_on_right_p flags.
1747 Formatting fixes.
1748 (pmtxrows): Display the ordinal number of each row. Don't display
1749 rows beyond the last one.
1750
1751 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1752 it is not copied by bidi_copy_it.
1753
6e83d800
EZ
17542010-05-22 Eli Zaretskii <eliz@gnu.org>
1755
1756 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1757 (Bug#6237)
1758
110683ad
CY
17592010-05-22 Chong Yidong <cyd@stupidchicken.com>
1760
1761 * image.c (Fimage_flush): Rename from image-refresh.
1762
98fe5161
CY
17632010-05-21 Chong Yidong <cyd@stupidchicken.com>
1764
1765 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1766 just one window.
1767
1768 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1769 (clear_image_cache): If the number of cached images is unusually
1770 large, decrease the cache eviction delay (Bug#6230).
1771
e8752c66
GM
17722010-05-21 Glenn Morris <rgm@gnu.org>
1773
66dbf213
GM
1774 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1775 Move these rules to ns.mk.
1776 * ns.mk: New file.
1777
04384b2d
GM
1778 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1779
e8752c66
GM
1780 * Makefile.in (CANNOT_DUMP): New, set by configure.
1781 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1782
2e2bbddb
JL
17832010-05-20 Juri Linkov <juri@jurta.org>
1784
1785 * fileio.c (Fdelete_file): Change interative spec to use
1786 `read-file-name' like in `find-file-read-args' where the default
1787 value is `default-directory' instead of `buffer-file-name'.
1788 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1789
31c4aaf6
KR
17902010-05-20 Kevin Ryde <user42@zip.com.au>
1791
1792 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1793 (Voverriding_terminal_local_map, Vsystem_key_alist)
1794 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1795
9d5cf9b6
GM
17962010-05-20 Glenn Morris <rgm@gnu.org>
1797
1798 * Makefile.in (DEPDIR): New constant.
1799 (DEPFLAGS): Set with configure, not cpp.
1800 (MKDEPDIR): New, set by configure.
1801 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1802 (clean): Use $DEPDIR.
1803 (deps_frag): Include from configure.
1804 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1805 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1806
ead6f8f5
EZ
1807 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1808 reallocation of the cache. (Bug#6210)
1809
7f34aec3
GM
18102010-05-19 Glenn Morris <rgm@gnu.org>
1811
d494e8f2
GM
1812 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1813
c1d0dcfd
GM
1814 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1815 (GNULIB_VAR): Remove.
1816 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1817
1818 * m/ibms390x.h (LINKER):
1819 * m/macppc.h (LINKER) [GNU_LINUX]:
1820 * s/aix4-2.h (ORDINARY_LINK):
1821 * s/cygwin.h (LINKER):
1822 * s/darwin.h (ORDINARY_LINK):
1823 * s/gnu.h (ORDINARY_LINK):
1824 * s/netbsd.h (LINKER):
1825 * s/usg5-4.h (ORDINARY_LINK):
1826 Move to configure.
1827
7f34aec3
GM
1828 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1829
754790b6
CY
18302010-05-18 Chong Yidong <cyd@stupidchicken.com>
1831
1832 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1833 prevent stack overflow if number of arguments is too large
1834 (Bug#6214).
1835
161e44d1
JB
18362010-05-18 Juanma Barranquero <lekktu@gmail.com>
1837
1838 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1839
be4ff9da
GM
18402010-05-18 Glenn Morris <rgm@gnu.org>
1841
9539dc5d
GM
1842 * s/gnu-linux.h: Combine two conditionals.
1843
1844 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1845 $(POST_ALLOC_OBJ).
1846
40dc6bf4
GM
1847 * Makefile.in (RALLOC_OBJ): New, set by configure.
1848 (rallocobj): Replace with the previous variable.
1849 (otherobj): Use $RALLOC_OBJ.
1850
1851 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1852 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1853
be4ff9da
GM
1854 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1855 (gmallocobj, vmlimitobj): Replace with previous two variables.
1856 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1857
16455a85
GM
18582010-05-17 Glenn Morris <rgm@gnu.org>
1859
1860 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1861 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1862
5fdb7468
GM
18632010-05-16 Glenn Morris <rgm@gnu.org>
1864
7ca1f3f9
GM
1865 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1866
7541dad5
GM
1867 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1868
da53fab9
GM
1869 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1870 trailing "/".
1871
b02a6645
GM
1872 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1873 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1874
8877ca0f
GM
1875 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1876 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1877 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1878 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1879 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1880
5fdb7468
GM
1881 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1882 Remove ${STARTFLAGS}, nothing ever sets it.
1883
95adb4b1
DN
18842010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1885
1886 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1887
676b6304
GM
18882010-05-16 Glenn Morris <rgm@gnu.org>
1889
9beab9ce
GM
1890 * Makefile.in (LIBX_BASE): Always define.
1891
8a95f0e7
GM
1892 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1893
676b6304
GM
1894 * Makefile.in (LIBXT): Always define.
1895
6e546d18
GM
18962010-05-15 Glenn Morris <rgm@gnu.org>
1897
4235ca47 1898 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1899
6e546d18
GM
1900 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1901 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1902
8c5ff6dd
KR
19032010-05-15 Ken Raeburn <raeburn@raeburn.org>
1904
560bb7ae 1905 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1906 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1907
8b4eb796
KR
1908 * emacs.c (main): Initialize initial-environment and
1909 process-environment before generating from env, not after.
1910
8c5ff6dd
KR
1911 Handle --version reasonably in CANNOT_DUMP configuration.
1912 * emacs.c (emacs_version, emacs_copyright): New string variables.
1913 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1914 (syms_of_emacs): Defvar them, and initialize them from the C
1915 string variables.
1916 (main): If initialization hasn't been done, print initial version
1917 info from the C strings, instead of starting an interactive session.
1918
dbd3f723
EZ
19192010-05-15 Eli Zaretskii <eliz@gnu.org>
1920
d20e1419
EZ
1921 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1922 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1923 (bidi_paragraph_init): Remove redundant assertion that we are at
1924 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1925
1926 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1927 (syms_of_xdisp): Defsubr it.
1928
d36fe237
EZ
1929 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1930
dbd3f723
EZ
1931 * Makefile.in: Fix MSDOS-related comments.
1932
02be533b
GM
19332010-05-15 Glenn Morris <rgm@gnu.org>
1934
1a82cca9
GM
1935 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1936 (really-lwlib, really-oldXMenu): Always define.
1937 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1938
3df7b338
GM
1939 * Makefile.in: Simplify cpp conditional.
1940
2b5f541b
GM
1941 * Makefile.in (${ns_appdir}): Simplify using umask.
1942
02be533b
GM
1943 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1944
4e2db1fe
SM
19452010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1946
1947 * eval.c (specbind): Remove left-over duplicate test.
1948 Disallow let-binding frame-local vars. Add comment.
1949
4b292a22
EZ
19502010-05-14 Eli Zaretskii <eliz@gnu.org>
1951
2fe72643 1952 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1953 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1954 (bidi_init_it): Call it.
1955 (bidi_cache_iterator_state): Enlarge the cache if needed.
1956
4e2db1fe 1957 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1958 bidi_get_next_char_visually. All callers changed.
1959
82ebc97b
KH
19602010-05-14 Kenichi Handa <handa@m17n.org>
1961
1962 * dispextern.h (struct composition_it): New member reversed_p.
1963
1964 * composite.c (composition_compute_stop_pos): Search backward if
1965 ENDPOS < CHARPOS.
1966 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1967 Set CMP_IT->reversed_p.
b4b6e17e 1968 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1969
4e2db1fe
SM
1970 * xdisp.c (set_iterator_to_next):
1971 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1972 scanning backward. Call composition_compute_stop_pos if scan
1973 direction is changed.
1974 (next_element_from_buffer): Call composition_compute_stop_pos with
1975 negative ENDPOS if we are scanning backward.
1976 (next_element_from_composition): Pay attention to
1977 IT->cmp_it.reversed_p.
1978
0e5d7800
KH
19792010-05-14 Kenichi Handa <handa@m17n.org>
1980
560bb7ae 1981 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1982
cb027b32
GM
19832010-05-14 Glenn Morris <rgm@gnu.org>
1984
177b0288
GM
1985 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1986
fbc00890
GM
1987 * Makefile.in (mktime, X11, register): Move undefs to configure.
1988
f14d1dfd
GM
1989 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1990 (MSDOS_X_OBJ): New variable.
1991 (MSDOS_SUPPORT_REAL): New constant.
1992 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1993 (obj): Use MSDOS_X_OBJ.
1994 (lisp): Use MSDOS_SUPPORT as a variable.
1995
11842bd8
GM
1996 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1997 (GPM_MOUSE_SUPPORT): Now it's a constant.
1998 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1999 not cpp.
2000
489d31a4 2001 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2002 (ns_appresdir): Remove, unused.
e20f1f07 2003
489d31a4
GM
2004 * Makefile.in (SHELL): Move outside cpp section.
2005
cb027b32
GM
2006 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2007
5a903aa9
GM
20082010-05-13 Glenn Morris <rgm@gnu.org>
2009
3369c79f
GM
2010 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2011 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2012
d5e982a6
GM
2013 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2014 HAVE_WINDOW_SYSTEM must be too.
2015
6192e163
GM
2016 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2017 (lisp): Remove WINNT_SUPPORT.
2018
472c5d6b
GM
2019 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2020 Let configure set these variables (to empty) in this case as well.
2021
0116466b
GM
2022 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2023 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2024
5a903aa9
GM
2025 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2026 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2027 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2028 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2029 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2030 the values output by configure.
5a903aa9
GM
2031 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2032
1a0d7c06
GM
20332010-05-12 Glenn Morris <rgm@gnu.org>
2034
b5457f14
GM
2035 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2036 (LINKER_WAS_SPECIFIED): Remove.
2037
1a0d7c06
GM
2038 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2039 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2040 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2041 * s/cygwin.h (LIB_GCC):
2042 * s/freebsd.h (LIB_GCC):
2043 * s/gnu-linux.h (LIB_GCC):
2044 * s/msdos.h (LIB_GCC):
2045 * s/netbsd.h (LIB_GCC):
2046 Move to configure.
2047
3ffd4615 20482010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2049
2050 * ftfont.c: Fix incorrect parentheses of #if condition for
2051 definining M17N_FLT_USE_NEW_FEATURE.
2052
acddf8ae
GM
20532010-05-11 Glenn Morris <rgm@gnu.org>
2054
2055 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2056 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2057
ae5e04fa
EZ
20582010-05-10 Eli Zaretskii <eliz@gnu.org>
2059
2060 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2061 unibyte buffers. See
2062 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2063
7490175b
GM
20642010-05-10 Glenn Morris <rgm@gnu.org>
2065
97efb629
GM
2066 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2067 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2068 (LIBES): Use LIBS_SYSTEM as a variable.
2069 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2070 * s/aix4-2.h (LIBS_SYSTEM):
2071 * s/freebsd.h (LIBS_SYSTEM):
2072 * s/hpux10-20.h (LIBS_SYSTEM):
2073 * s/sol2-6.h (LIBS_SYSTEM):
2074 * s/unixware.h (LIBS_SYSTEM):
2075 Move to configure.
2076
7490175b
GM
2077 * s/aix4-2.h (MAIL_USE_LOCKF):
2078 * s/bsd-common.h (MAIL_USE_FLOCK):
2079 * s/darwin.h (MAIL_USE_FLOCK):
2080 * s/gnu-linux.h (MAIL_USE_FLOCK):
2081 * s/irix6-5.h (MAIL_USE_FLOCK):
2082 * s/template.h (MAIL_USE_FLOCK):
2083 Move to configure.
2084
0235128c 20852010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2086
2087 * Version 23.2 released.
2088
0235128c 20892010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2090
2091 * composite.c (autocmp_chars): Save point as marker before calling
2092 auto-composition-function (Bug#5984).
2093
2094 * lisp.h (restore_point_unwind): Add prototype.
2095
2096 * fileio.c (restore_point_unwind): Remove static attribute.
2097
0235128c 20982010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2099
2100 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2101 new feature of libotf and m17n-flt.
0235128c
SM
2102 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2103 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2104 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2105 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2106 that OUT is NULL. Use OTF_drive_gsub_with_log and
2107 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2108 OTF_drive_gpos.
2109 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2110 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2111 Setup mflt_enable_new_feature and mflt_try_otf.
2112
4721152c
J
21132010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2114
2115 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2116
2117 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2118 box and toolbar (Bug #6139).
2119 (xg_create_tool_bar): Remove comment (Bug #6139).
2120 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2121 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2122
ee0a16cf
JB
21232010-05-08 Juanma Barranquero <lekktu@gmail.com>
2124
2125 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2126 Update dependencies.
2127
96d79611
EZ
21282010-05-08 Eli Zaretskii <eliz@gnu.org>
2129
2130 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2131 R2L lines.
2132
40c17879
GM
21332010-05-08 Glenn Morris <rgm@gnu.org>
2134
7b42b29f
GM
2135 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2136
40c17879
GM
2137 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2138 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2139 (termcapobj): Replace with TERMCAP_OBJ.
2140 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2141 (LIBES): Use LIBS_TERMCAP as a variable.
2142
2143 * s/freebsd.h (osreldate.h): No longer include, since this file
2144 does not use __FreeBSD_version any more.
2145
2146 * s/aix4-2.h (TERMINFO):
2147 * s/cygwin.h (TERMINFO):
2148 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2149 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2150 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2151 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2152 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2153 * s/irix6-5.h (TERMINFO):
2154 * s/netbsd.h (LIBS_TERMCAP):
2155 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2156 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2157 * s/usg5-4.h (TERMINFO):
2158 Move to configure.
2159
94b612ad
SM
21602010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * eval.c (unbind_to): Don't unbind a local binding into the global
2163 binding when the local binding disappeared. Inversely, don't unbind
2164 a global binding into a newly created local binding.
2165 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2166 can specify the frame to use, when applicable. Adjust callers.
2167
15e12598 21682010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2169 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2170
2171 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2172
f724825e
EZ
21732010-05-07 Eli Zaretskii <eliz@gnu.org>
2174
5cba3209
EZ
2175 * w32fns.c: Include w32.h.
2176 (Fw32_shell_execute): Decode the error message before passing it
2177 to `error'. (Bug#6126)
2178
d16bdfc3
EZ
2179 * msdos.c (dos_set_window_size):
2180 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2181 instead of `XSYMBOL (foo)->value'.
2182
59d93e87
EZ
21832010-05-07 Eli Zaretskii <eliz@gnu.org>
2184
9fdec8bc
EZ
2185 Fix the MS-DOS build, broken by autoconfiscation.
2186
2187 * Makefile.in: Don't use Make-style comments past the "start of
2188 cpp stuff" line.
2189 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2190
2191 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2192 edited directly by msdos/sed1v2.inp).
f724825e 2193
2f86b22b
GM
21942010-05-07 Glenn Morris <rgm@gnu.org>
2195
2196 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2197 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2198 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2199 move out of cpp section.
2200 * s/freebsd.h (LD_SWITCH_SYSTEM):
2201 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2202 * s/netbsd.h (LD_SWITCH_SYSTEM):
2203 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2204
49ebbd65
DN
22052010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2206
2207 Define LIB_STANDARD and START_FILES using autoconf.
2208 * s/usg5-4.h (LIB_STANDARD):
2209 * s/netbsd.h (START_FILES):
2210 * s/irix6-5.h (LIB_STANDARD):
2211 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2212 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2213 * s/freebsd.h (START_FILES):
2214 * s/darwin.h (START_FILES):
2215 * s/cygwin.h (START_FILES):
2216 * s/aix4-2.h (LIB_STANDARD):
2217 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2218 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2219 autoconf, not cpp.
2220
d43c06d6
DN
22212010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2222
28823648
DN
2223 Remove NEED_BSDTTY and NEED_UNISTD_H.
2224 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2225 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2226 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2227 <sys/ptyio.h> and <unistd.h>.
2228
aca00430
DN
2229 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2230
d43c06d6
DN
2231 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2232 * s/gnu.h (START_FILES): Remove empty definition.
2233
3e56b11d
JD
22342010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2235
2236 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2237
e3cf0cde
GM
22382010-05-06 Glenn Morris <rgm@gnu.org>
2239
2240 * Makefile.in (CPP, LN_S): Remove unused variables.
2241
774b9a60
SM
22422010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2243
2244 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2245
4ab92842
LM
22462010-05-05 Lawrence Mitchell <wence@gmx.li>
2247
2248 * m/sparc.h: Fix typo in earlier change.
2249
178f2507
SM
22502010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2251
2252 Misc tweaks.
2253 * eval.c (Fdefvaralias): Remove unintended nested if.
2254 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2255
80f00217 22562010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2257
2258 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2259
ef03a4e6
DN
22602010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2261
58eb6cf0
DN
2262 Remove BSD_PGRPS.
2263 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2264 * s/gnu-linux.h (BSD_PGRPS): Remove.
2265 * term.c (dissociate_if_controlling_tty):
2266 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2267 (init_sys_modes, reset_sys_modes):
2268 * emacs.c (main):
2269 * callproc.c (Fcall_process, child_setup): Remove code depending
2270 on BSD_PGRPS.
2271
ef03a4e6
DN
2272 Remove POSIX_SIGNALS.
2273 * s/usg5-4.h (POSIX_SIGNALS):
2274 * s/netbsd.h (POSIX_SIGNALS):
2275 * s/msdos.h (POSIX_SIGNALS):
2276 * s/ms-w32.h (POSIX_SIGNALS):
2277 * s/hpux11.h (POSIX_SIGNALS):
2278 * s/gnu.h (POSIX_SIGNALS):
2279 * s/gnu-linux.h (POSIX_SIGNALS):
2280 * s/freebsd.h (POSIX_SIGNALS):
2281 * s/darwin.h (POSIX_SIGNALS):
2282 * s/cygwin.h (POSIX_SIGNALS):
2283 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2284 * s/unixware.h:
2285 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2286 * process.c (create_process):
2287 * syssignal.h:
2288 * sysdep.c (wait_for_termination, init_signals):
2289 * process.c (create_process):
2290 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2291 remove all code that assumes the contrary.
2292
49628785
GM
22932010-05-04 Glenn Morris <rgm@gnu.org>
2294
27a2cdfc
GM
2295 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2296 variable.
2297 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2298 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2299 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2300 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2301 LD_SWITCH_SYSTEM_tmp.
2302 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2303 New variables, set by configure.
2304
eb21eab5
GM
2305 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2306 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2307 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2308 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2309 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2310
49628785
GM
2311 * s/aix4-2.h (C_SWITCH_SYSTEM):
2312 * m/alpha.h (C_SWITCH_MACHINE):
2313 Move to configure.in.
2314 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2315 New variables, set by configure.
2316 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2317 $c_switch_machine and $c_switch_system.
2318
7dff330b
DN
23192010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2320
2321 * s/hpux10-20.h (LIB_STANDARD): New definition.
2322 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2323 on it, not used anymore.
2324
53967e09
CY
23252010-05-03 Chong Yidong <cyd@stupidchicken.com>
2326
2327 * eval.c (internal_condition_case_n): Rename from
2328 internal_condition_case_2.
2329 (internal_condition_case_2): New function.
2330
2331 * xdisp.c (safe_call): Use internal_condition_case_n.
2332
2333 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2334 (internal_delete_file, Frename_file): Callers changed.
2335
2336 * buffer.c (Fkill_buffer):
2337 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2338
2339 * lisp.h: Update prototypes.
2340
3dee6fdb
GM
23412010-05-03 Glenn Morris <rgm@gnu.org>
2342
2343 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2344 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2345 (LIBXT): Set with configure, not cpp.
2346 (LIBX): Remove.
2347 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2348
a101e0fb
DN
23492010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2350
2351 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2352 The FreeBSD is not needed, the default works, Solaris version is
2353 not needed, and the remaining case is not supported by configure.
2354
f63d0028
JD
23552010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2356
2357 * xsmfns.c (CHDIR_OPT): New define.
2358 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2359 restarting emacs.
2360
2361 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2362 shut_down_emacs.
2363
2364 * emacs.c (USAGE1): Mention --chdir.
2365 (main): Handle --chdir.
2366 (standard_args): Add --chdir.
2367 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2368 #5552).
2369
e4814a9f
DN
23702010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2371
cd03c74a
DN
2372 Remove LD_SWITCH_MACHINE.
2373 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2374 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2375
c3a398a1
DN
2376 Clean up IRIX code.
2377 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2378 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2379
87e7285c
DN
2380 Clean up AIX code.
2381 * m/ibmrs6000.inp: Remove file, unused.
2382 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2383 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2384 definition ...
2385 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2386
80f00217
JB
2387 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2388 unused.
e4814a9f 2389
59ca28de
EZ
23902010-05-01 Eli Zaretskii <eliz@gnu.org>
2391
197daef4
EZ
2392 Emulate POSIX_SIGNALS on MS-Windows.
2393
2394 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2395 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2396
2397 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2398 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2399 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2400
80f00217
JB
2401 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2402 New stubs.
197daef4 2403
af7c7572
EZ
2404 Miscellaneous fixes of bidi display.
2405
59ca28de
EZ
2406 * xdisp.c (find_row_end): New function, refactored from display_line.
2407 (display_line): Use it.
017ea819
EZ
2408 (extend_face_to_end_of_line): In almost-filled rows, extend only
2409 if the row is R2L and not continued.
166e930d 2410 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2411 Preserve overlay and string info in row->end.
166e930d
EZ
2412 (insert_left_trunc_glyphs): Support addition of left truncation
2413 glyphs to R2L rows.
b47e0dcf 2414 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2415 glyph between adjacent windows. Fix a crash when a display string
2416 is continued to the next line. Don't return zero if cursor was
2417 found by `cursor' property of a display string.
b47e0dcf
EZ
2418 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2419 test for that explicitly.
59ca28de 2420
7acac9f4
GM
24212010-05-01 Glenn Morris <rgm@gnu.org>
2422
2423 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2424 for clarity.
2425 (OTHER_OBJ): Remove.
2426 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2427 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2428
45841e65
KK
24292010-05-01 Karel Klíč <kklic@redhat.com>
2430
2431 * fileio.c (Ffile_selinux_context): Context functions may return null.
2432
afc61943
DN
24332010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2434
80f00217 2435 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2436
5a1bb006
GM
24372010-04-30 Glenn Morris <rgm@gnu.org>
2438
2439 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2440 (OTHER_OBJ): Define as a separate variable, for clarity.
2441
210af043
J
24422010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2443
2444 * xsettings.c: include limits.h and update file comment.
2445
0a7df391
GM
24462010-04-30 Glenn Morris <rgm@gnu.org>
2447
d5096f16
GM
2448 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2449 Set with configure, not cpp.
2450 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2451
7eb1ac33
GM
2452 * Makefile.in (mallocobj): Remove.
2453 (otherobj): Simplify using @OTHER_OBJ@.
2454
517d086b
GM
2455 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2456 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2457 Don't bother making nsgui.h dependency platform-specific.
2458
0a7df391
GM
2459 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2460
d6d23852
SM
24612010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2462
d2630aef
SM
2463 * process.c (read_process_output, exec_sentinel): Don't burp if the
2464 sentinel/filter kills the current buffer (bug#6060).
2465
f9dddf52 2466 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2467 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2468 Remove unused var `args'.
2469 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2470 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2471 * doc.c (store_function_docstring): Use XSETCAR.
2472
f1e3642a
GM
24732010-04-28 Glenn Morris <rgm@gnu.org>
2474
faf535f8
GM
2475 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2476 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2477
c40f9449
GM
2478 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2479
658f86ca
GM
2480 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2481 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2482
bc0b5f61
GM
2483 * Makefile.in (FONT_OBJ): New, set by configure.
2484 (FONT_DRIVERS): Use $FONT_OBJ.
2485
294c50a0
GM
2486 * Makefile.in (LIBXMU): Set with configure, not cpp.
2487 * s/aix4-2.h (LIBXMU):
2488 * s/hpux10-20.h (LIBXMU):
2489 Remove definition, now set in configure.
2490
e6ec4e99
GM
2491 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2492
f1e3642a
GM
2493 * m/amdx86-64.h [i386]: Move this test to configure.in.
2494
c6ea2936
GM
24952010-04-27 Glenn Morris <rgm@gnu.org>
2496
8fdac2c3
GM
2497 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2498 * s/unixware.h (NEED_LIBW): Remove definition.
2499
986fb647
GM
2500 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2501 (TOOLKIT_LIBW): New, set by configure.
2502 (@X_TOOLKIT_TYPE@): No longer define it.
2503
c6ea2936
GM
2504 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2505 (MOTIF_LIBW): Set with configure, not cpp.
2506 * s/aix4-2.h (LIB_MOTIF):
2507 * s/gnu-linux.h (LIB_MOTIF):
2508 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2509
aaa36002
DN
25102010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2511
2512 Reduce CPP usage.
2513 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2514 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2515 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2516 definitions and undefs. Inline definitions in the only user.
2517 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2518
b678dd8b
GM
25192010-04-27 Glenn Morris <rgm@gnu.org>
2520
76cda504
GM
2521 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2522 since the defaults (set by the system file) are fine in most cases.
2523 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2524 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2525 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2526 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2527 Remove definitions, since they are set correctly in s/gnu-linux.h.
2528 * s/freebsd.h (START_FILES, LIB_STANDARD):
2529 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2530 * s/hpux10-20.h (START_FILES):
2531 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2532 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2533
b678dd8b
GM
2534 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2535 (MOTIF_LIBW): Use $LIBXP.
2536 (otherobj): Use $WIDGET_OBJ.
2537
9452ded1
DN
25382010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2539
7e10844c
DN
2540 * Makefile.in (LIBS_MACHINE): Remove, unused.
2541
9452ded1
DN
2542 Use autoconf instead of cpp for LIB_MATH.
2543 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2544 * s/cygwin.h (LIB_MATH): Likewise.
2545 * Makefile.in (LIB_MATH): Do not define with cpp.
2546 (LIBES): Use autoconf for LIB_MATH.
2547
fcebfc6a
KH
25482010-04-26 Kenichi Handa <handa@m17n.org>
2549
2550 * composite.c (Ffind_composition_internal): Fix the return value
2551 for an automatic composition.
2552
39e2ad1b
DN
25532010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2554
2555 Remove all NO_ARG_ARRAY uses.
2556 * fns.c (concat2, concat3, nconc2):
2557 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2558 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2559 * m/xtensa.h (NO_ARG_ARRAY):
2560 * m/template.h (NO_ARG_ARRAY):
2561 * m/sparc.h (NO_ARG_ARRAY):
2562 * m/sh3.h (NO_ARG_ARRAY):
2563 * m/mips.h (NO_ARG_ARRAY):
2564 * m/macppc.h (NO_ARG_ARRAY):
2565 * m/iris4d.h (NO_ARG_ARRAY):
2566 * m/intel386.h (NO_ARG_ARRAY):
2567 * m/ibms390x.h (NO_ARG_ARRAY):
2568 * m/ibms390.h (NO_ARG_ARRAY):
2569 * m/ibmrs6000.h (NO_ARG_ARRAY):
2570 * m/ia64.h (NO_ARG_ARRAY):
2571 * m/hp800.h (NO_ARG_ARRAY):
2572 * m/arm.h (NO_ARG_ARRAY):
2573 * m/amdx86-64.h (NO_ARG_ARRAY):
2574 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2575
adf4f59c
EZ
25762010-04-25 Eli Zaretskii <eliz@gnu.org>
2577
6bdf5d65
EZ
2578 * xdisp.c (display_line): Don't assume 2nd call to
2579 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2580 (iterate_out_of_display_property): New function, body from pop_it.
2581 (pop_it): Use it.
adf4f59c 2582
dfbbda83
GM
25832010-04-24 Glenn Morris <rgm@gnu.org>
2584
2585 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2586 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2587 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2588 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2589
2d4018aa
EZ
25902010-04-24 Eli Zaretskii <eliz@gnu.org>
2591
a49884a6
EZ
2592 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2593 use `get_next_display_element' and `set_iterator_to_next' to
2594 advance to the next character, when looking for the character that
2595 begins the next row.
2596
76db6fcc 2597 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2598 definition of "struct Lisp_Symbol".
2599
70eab5c1
GM
26002010-04-24 Glenn Morris <rgm@gnu.org>
2601
2602 * Makefile.in (CRT_DIR): New variable, set by configure.
2603 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2604 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2605
1ad4cc3d
DN
26062010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2607
e769f484
DN
2608 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2609
4196ff33
DN
2610 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2611
879b0ee4
DN
2612 Remove redundant flags.
2613 * s/freebsd.h (C_SWITCH_SYSTEM):
2614 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2615 * s/netbsd.h (C_SWITCH_SYSTEM):
2616 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2617 of these.
2618
03cbbcb8
DN
2619 Simplify m/intel386.h.
2620 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2621 user: ecrt0.c.
2622 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2623 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2624 the only user: s/unixware.h.
2625 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2626 from m/intel386.h.
2627 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2628 moved here from m/intel386.h.
2629
1ad4cc3d
DN
2630 * m/mips.h: Remove #if 0 code.
2631
8785b888
EZ
26322010-04-23 Eli Zaretskii <eliz@gnu.org>
2633
728588cc
EZ
2634 Fix display of composed characters from L2R scripts in bidi buffers.
2635 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2636 After advancing IT past the composition, resync the bidi iterator
2637 with IT's position. (Bug#5977)
2638
a63f80b4
DN
26392010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2640
2641 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2642 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2643
ff5dec5c
SM
26442010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2645
2646 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2647
8785b888
EZ
26482010-04-23 Eli Zaretskii <eliz@gnu.org>
2649
58ccf243 2650 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2651 * xdisp.c (pop_it): When the stack is popped after displaying
2652 from a string, bidi-iterate to exit from the text portion covered
2653 by the `display' property or overlay. (Bug#5988, bug#5920)
2654
feeb1604
DN
26552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2656
8e324eb6
DN
2657 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2658 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2659
809fcaba
DN
2660 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2661 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2662
ed710380
DN
2663 Simplify STARTFILES definition.
2664 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2665 relying on Makefile.in to define it.
2666 * s/cygwin.h (START_FILES): Likewise.
2667 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2668
feeb1604
DN
2669 Clean up Solaris code.
2670 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2671 (LIB_MOTIF): Remove, configure takes care of this.
2672 (NOT_USING_MOTIF): Remove, unused.
2673 * xrdb.c: Remove #if 0-ed #include.
2674 (SYSV): Remove conditional for old SysV.
2675 * sysdep.c (closedir): Remove conditional code for Solaris,
2676 Solaris has closedir.
2677
a0d0b563
JD
26782010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2679
2680 * xsettings.c (read_and_apply_settings): Check if current_font is
2681 NULL before strcmp (Bug#6001).
2682
56bae7c7
DN
26832010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2684
2685 Clean up HP-UX files.
2686 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2687 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2688 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2689 * s/hpux10-20.h: ... to the only user, here.
2690
372b7a95
EZ
26912010-04-21 Eli Zaretskii <eliz@gnu.org>
2692
2693 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2694 use buffer-local values of paragraph-start and paragraph-separate.
2695 <paragraph_start_re, paragraph_separate_re>: Rename from
2696 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2697 (Bug#5992)
2698
f904c0f9
JD
26992010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2700
2701 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2702 current_tool_bar_style are new.
2703 (store_config_changed_event): Rename from store_font_changed_event.
2704 (XSETTINGS_TOOL_BAR_STYLE): New define.
2705 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2706 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2707 HAVE_XFT.
2708 (something_changedCB): store_font_changed_event is now
2709 store_config_changed_event
2710 (parse_settings): Rename from parse_xft_settings. Read
2711 non-xft xsettings outside #ifdef HAVE_XFT.
2712 (read_settings): Renamed from read_xft_settings.
2713 (apply_xft_settings): Take current settings as parameter. Do not
2714 call read_(xft)_settings.
2715 (read_and_apply_settings): New function.
2716 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2717 read_and_apply_settings if there are settings to be read.
2718 (init_xsettings): Renamed from init_xfd_settings.
2719 Call read_and_apply_settings unconditionally.
2720 (xsettings_initialize): Call init_xsettings.
2721 (Ftool_bar_get_system_style): New function.
2722 (syms_of_xsettings): Define Qmonospace_font_name and
2723 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2724 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2725 dynamic-setting.
31a01b90 2726 Move misplaced HAVE_GCONF
f904c0f9
JD
2727
2728 * xsettings.h (Ftool_bar_get_system_style): Declare.
2729
2730 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2731 Qtext, Qboth, Qboth_horiz are new.
2732 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2733 Vtool_bar_style, tool_bar_max_label_size.
2734
2735 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2736
2737 * keyboard.c: QClabel is new.
2738 (parse_tool_bar_item): Take out QClabel from tool bar items.
2739 Try to construct a label if ther is no QClabel.
2740 (syms_of_keyboard): Intern :label as QClabel.
2741
2742 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2743 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2744 New.
2745
2746 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2747 dynamic-setting.el.
2748
2749 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2750 (xg_make_tool_item, xg_show_toolbar_item): New function.
2751 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2752 Call xg_make_tool_item to make a tool bar item.
2753 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2754
2755 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2756 into account for toolbars.
2757
c632dfda
JD
27582010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2759
2760 * data.c (make_blv): Declarations before code (Bug#5993).
2761
10efe302
GM
27622010-04-21 Glenn Morris <rgm@gnu.org>
2763
2764 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2765 Define using autoconf, not cpp.
2766 (LIBXSM): New variable, set by autoconf.
2767 (LIBXT): Use $LIBXSM.
2768
4285ac5a
DN
27692010-04-21 Dan Nicolaescu <local_user@dannlt>
2770
3ec759e7
DN
2771 Remove NOMULTIPLEJOBS, unused.
2772 * s/template.h (NOMULTIPLEJOBS):
2773 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2774
4285ac5a
DN
2775 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2776 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2777 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2778 detects -znocombreloc and passes it to the linker
2779 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2780
2807228d
GM
27812010-04-21 Glenn Morris <rgm@gnu.org>
2782
2783 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2784
574c05e2
KK
27852010-04-21 Karel Klíč <kklic@redhat.com>
2786
2787 * Makefile.in (LIBSELINUX_LIBS): New.
2788 (LIBES): Add $LIBSELINUX_LIBS.
2789 * eval.c, lisp.h (call7): New function.
2790 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2791 (Ffile_selinux_context, Fset_file_selinux_context):
2792 New functions.
2793 (Fcopy_file): New parameter preserve-selinux-context.
2794 (Frename_file): Preserve selinux context when renaming by copy-file.
2795
91eac4bb 27962010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2797 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2798
50426a04
JB
2799 Don't depend on cm.c or termcap.c on Windows, use stubs.
2800 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2801 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2802 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2803 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2804 (sys_tputs, sys_tgetstr): New stubs.
2805 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2806 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2807
938efb77
JB
28082010-04-20 Juanma Barranquero <lekktu@gmail.com>
2809
2810 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2811
b4bf28b7
SM
28122010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2813
8b1e1112
SM
2814 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2815 Just signal a warning rather than an error when inside a let.
2816 (Fmake_variable_frame_local): Add the same test.
2817
933ac235
SM
2818 * font.c (syms_of_font): Make the style table vars read-only.
2819
b4bf28b7
SM
2820 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2821 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2822
2823 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2824
93d68d0c
EZ
28252010-04-20 Eli Zaretskii <eliz@gnu.org>
2826
2827 Fix R2L paragraph display on TTY.
2828
2829 * xdisp.c (unproduce_glyphs): New function.
2830 (display_line): Use it when produced glyphs are discarded from R2L
2831 glyph rows.
2832 (append_composite_glyph): In R2L rows, prepend the glyph rather
2833 than appending it.
2834
2835 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2836 rather than append it. Set up the resolved_level and bidi_type
2837 attributes of the appended glyph.
283ccc18
EZ
2838 (produce_special_glyphs): Mirror the backslash continuation
2839 character in R2L lines.
93d68d0c 2840
283ccc18 2841 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2842
283ccc18
EZ
2843 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2844 append_stretch_glyph.
2845 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2846 off-by-one error in computing x at end of text in the row.
2847 (append_stretch_glyph): In reversed row, prepend the glyph rather
2848 than append it. Set resolved_level and bidi_type of the glyph.
2849 (extend_face_to_end_of_line): If the row is reversed, prepend a
2850 stretch glyph whose width is such that the rightmost glyph will be
2851 drawn at the right margin of the window. Fix off-by-one error on
2852 TTY frames in testing whether a line needs face extension. Fix
2853 face extension at ZV. If this is the last glyph row, use
2854 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2855 region face.
2856 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2857 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2858 row->continuation_lines_width.
283ccc18
EZ
2859 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2860 are at ZV. Fixes a crash when reseated to ZV by
2861 try_window_reusing_current_matrix.
45903529
EZ
2862 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2863 which happens with R2L glyph rows. Fixes a crash when inserting a
2864 character at end of an R2L line.
283ccc18
EZ
2865 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2866 treat them as having zero-width characters. Improve comments.
2867 Don't reverse pos_before and pos_after for reversed glyph rows.
2868 Set cursor.x to negative value when the cursor might be on the
2869 left fringe.
2870 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2871 left fringe, not the right one.
f951a506
EZ
2872 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2873 (erase_phys_cursor): For reversed cursor_row, support cursor on
2874 the left fringe.
2875
283ccc18
EZ
2876 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2877 of continuation indicators on the fringes.
2878 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2879 left fringe.
2880
f951a506
EZ
2881 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2882 draw cursor on the left fringe.
2883
2884 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2885 cursor on the left fringe.
2886
f951a506
EZ
2887 * dispnew.c (update_text_area): Handle reversed desired rows when
2888 the cursor is on the left fringe.
2889 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2890 below, not by 0, for when the cursor is on the left fringe.
2891
3bb49aaf
JD
28922010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2893
2894 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2895 widget is a scrollbar.
2896
c0be27fd
KH
28972010-04-20 Kenichi Handa <handa@m17n.org>
2898
2899 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2900 only when the arg CHARSET_LIST is nil.
2901
ce5b453a
SM
29022010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2903
2904 Make variable forwarding explicit rather the using special values.
2905 Basically, this makes the structure of buffer-local values and object
2906 forwarding explicit in the type of Lisp_Symbols rather than use
2907 special Lisp_Objects for that. This tends to lead to slightly more
2908 verbose code, but is more C-like, simpler, and makes it easier to make
2909 sure we handled all cases, among other things by letting the compiler
2910 help us check it.
2911 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2912 Removing forwarding objects.
2913 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2914 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2915 explicit rather than hiding them inside Lisp_Object "values".
2916 (XFWDTYPE): New macro.
2917 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2918 (XBUFFER_LOCAL_VALUE): Remove.
2919 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2920 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2921 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2922 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2923 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2924 Remove the Lisp_Misc_* header.
2925 (struct Lisp_Buffer_Local_Value): Redefine.
2926 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2927 (struct Lisp_Misc_Any): Add filler to get the right size.
2928 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2929 Lisp_Intfwd.
2930 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2931 (DEFVAR_KBOARD): Allocate a forwarding object.
2932 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2933 (let_shadows_global_binding_p): New function.
2934 (union Lisp_Val_Fwd): New type.
2935 (make_blv): New function.
2936 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2937 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2938 (swap_in_symval_forwarding, find_symbol_value, Fset)
2939 (let_shadows_buffer_binding_p, set_internal, default_value)
2940 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2941 (Fkill_local_variable, Fmake_variable_frame_local)
2942 (Flocal_variable_p, Flocal_variable_if_set_p)
2943 (Fvariable_binding_locus):
2944 * xdisp.c (select_frame_for_redisplay):
2945 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2946 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2947 * frame.c (store_frame_param):
2948 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2949 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2950 value structure.
2951 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2952 (clone_per_buffer_values): Only adjust markers into the current buffer.
2953 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2954 (Fbuffer_local_value, set_buffer_internal_1)
2955 (swap_out_buffer_local_variables):
2956 Adapt to the new symbol value structure.
2957 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2958 (defvar_per_buffer): Take a new arg for the fwd object.
2959 (buffer_lisp_local_variables): Return a proper alist (different fix
2960 for bug#4138).
2961 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2962 (Fgarbage_collect): Don't handle buffer_defaults specially.
2963 (mark_object): Handle new symbol value structure rather than the old
2964 special Lisp_Misc_* objects.
2965 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2966 * term.c (set_tty_color_mode):
2967 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2968 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2969 a buffer_local_flags.
2970 * print.c (print_object): Get rid of impossible forwarding objects.
2971
fd3998ff
EZ
29722010-04-19 Eli Zaretskii <eliz@gnu.org>
2973
2974 * bidi.c (bidi_get_type, bidi_get_category)
2975 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2976 (bidi_type_of_next_char, bidi_level_of_next_char):
2977 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2978
e42cd1a7
JB
29792010-04-19 Juanma Barranquero <lekktu@gmail.com>
2980
2981 * dired.c (Ffile_attributes): Fix typo in docstring.
2982
6e104790 29832010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2984
2985 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2986 NSInteger (Bug#5811).
2987
6e104790 29882010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2989
2990 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2991 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2992
6e104790 29932010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2994
2995 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2996
6e104790
SM
29972010-04-19 Chong Yidong <cyd@stupidchicken.com>
2998
2999 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3000 terminal frames (Bug#5837).
3001
37dcfea0
EZ
30022010-04-19 Eli Zaretskii <eliz@gnu.org>
3003
d1da276f
EZ
3004 * .gdbinit (xsubchartable): New command.
3005
37dcfea0
EZ
30062010-04-19 Eli Zaretskii <eliz@gnu.org>
3007
3008 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3009 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3010 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3011 and
3012 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3013
e9515805
SM
30142010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3015
3016 * alloc.c (Fpurecopy): Hash-cons if requested.
3017 (syms_of_alloc): Update purify-flag docstring.
3018
22aa44a8
JD
30192010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3022 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3023
ebb5722e
EZ
30242010-04-17 Eli Zaretskii <eliz@gnu.org>
3025
3026 Fix a crash when an NSM character is inserted at BEGV.
3027
3028 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3029 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3030 NEUTRAL_B or UNKNOWN_BT.
3031
0f4442ef
EZ
30322010-04-16 Eli Zaretskii <eliz@gnu.org>
3033
3034 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3035 other rows with cursor unless they are different from this row and
3036 this row is part of a continued line. (Bug#5943)
3037
7d4e45f8
DN
30382010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3039
3040 * s/freebsd.h: Restore osreldate.h include.
3041 Suggested by Naohiro Aota.
3042
5ba5ec85
J
30432010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3044
3045 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3046
20af301d
CY
30472010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3048
3049 * s/cygwin.h: Avoid linking against static libgcc.
3050
a4b000fb
JL
30512010-04-15 Juri Linkov <juri@jurta.org>
3052
3053 * window.c: Add Qscroll_command.
3054 Remove Vscroll_preserve_screen_position_commands.
3055 (window_scroll_pixel_based, window_scroll_line_based): Check the
3056 `scroll-command' property on the last command instead of searching
3057 the last command in Vscroll_preserve_screen_position_commands.
3058 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3059 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3060 (scroll-preserve-screen-position): Doc fix.
3061 (Vscroll_preserve_screen_position_commands): Remove variable.
3062
bc319ba4
DN
30632010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3064
6bb24457
DN
3065 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3066
19d4c244
DN
30672010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3068
3069 Reduce cpp use in Makefile.in.
3070 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3071 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3072 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3073 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3074 (CRT0_COMPILE): Remove, inline it in the only user.
3075
32129746
JL
30762010-04-14 Juri Linkov <juri@jurta.org>
3077
3078 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3079 `scroll-up-command' and `M-v' from `scroll-down' to
3080 `scroll-down-command'.
3081
9013a7f8
JL
30822010-04-14 Juri Linkov <juri@jurta.org>
3083
3084 * window.c (Vscroll_preserve_screen_position_commands): New variable
3085 with the default value as the list of Qscroll_down and Qscroll_up.
3086 (window_scroll_pixel_based, window_scroll_line_based): Search the
3087 last command in the list Vscroll_preserve_screen_position_commands
3088 instead of comparing with Qscroll_up and Qscroll_down.
3089
4bef8d26
JD
30902010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3091
92848133
JD
3092 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3093 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3094 does that.
3095
4bef8d26
JD
3096 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3097 to zero.
3098
58b963f7
SM
30992010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3100
84164a0d
SM
3101 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3102
2b0a91e7
SM
3103 Try to solve the problem of spurious EOF chars in long lines of text
3104 sent to interactive subprocesses.
3105 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3106 (system_process_attributes): Remove unused var `ttotal'.
3107 * process.c (send_process): Don't bother breaking long line with EOF
3108 chars when talking to ttys any more.
3109 (wait_reading_process_output): Output a warning when called in such
3110 a way that it could block without being interruptible.
3111
58b963f7
SM
3112 Try to detect file modification within the same second.
3113 * buffer.h (struct buffer): New field modtime_size.
3114 * buffer.c (reset_buffer): Initialize it.
3115 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3116 (Fverify_visited_file_modtime): Check it.
3117 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3118 (Fset_visited_file_modtime): Set (or clear) it.
3119
01f5787b
SM
31202010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3121
3122 * process.c (status_notify): Remove unused var `ro'.
3123
83725342
JD
31242010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3125
3126 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3127 more than one visual (Bug#5938).
3128
b9465836
DN
31292010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3130
50426a04
JB
3131 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3132 Undefine.
b9465836 3133
8d9c8ece
DN
31342010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3135
b1f52161
DN
3136 Remove C_SWITCH_SYSTEM_TEMACS.
3137 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3138 (malloc, realloc, free): Use emacs, not temacs for conditional
3139 definition.
3140
3141 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3142 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3143
8d9c8ece
DN
3144 Use autoconf, not cpp for some variables.
3145 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3146 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3147 (ALL_CFLAGS): Use them as make variables.
3148 (really-lwlib, really-oldXMenu): Do not pass them.
3149
1ecb2d3f
JD
31502010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3151
3152 * xmenu.c (apply_systemfont_to_dialog): New.
3153 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3154
3a4fa2f2
SM
31552010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3156
97e53006
SM
3157 * process.c (exec_sentinel): Preserve current-buffer.
3158
3a4fa2f2
SM
3159 * process.c (read_process_output): Move the save-current-buffer to
3160 apply to both the filter and the non-filter branches.
3161
88df7221
DN
31622010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3163
3164 * s/msdos.h (UNEXEC): New definition.
3165
5634ff85
YM
31662010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3167
6eff5c3d
YM
3168 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3169 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3170
3171 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3172 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3173 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3174 TRY_WINDOW_CHECK_MARGINS.
3175
3176 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3177 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3178 width only when it is for padding.
5634ff85 3179
b13aef54
J
31802010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3181
3182 * xfns.c (Fx_show_tip): Call try_window in a loop until
3183 fonts_changed_p is zero (Bug#2423).
3184
21d28484
EZ
31852010-04-08 Eli Zaretskii <eliz@gnu.org>
3186
3187 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3188 the end of TEXT_AREA. (Bug#5856)
3189
0269ef77
JD
31902010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3191
3192 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3193 HAVE_GCONF.
3194
5930fe97
EZ
31952010-04-08 Eli Zaretskii <eliz@gnu.org>
3196
3197 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3198 prev.orig_type, for resolving type of NSM. (Bug#5858)
3199
99852628
JD
32002010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3201
3202 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3203 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3204 in current_font.
3205 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3206 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3207 New functions.
3208 (syms_of_xsettings): Initialize current_font.
3209 defsubr Sfont_get_system_normal_font.
99852628
JD
3210
3211 * xsettings.h (Ffont_get_system_normal_font,
3212 xsettings_get_system_normal_font): Declare.
3213
3214 * xfns.c (extern xlwmenu_default_font): Remove.
3215 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3216 to xlwmenu.c.
3217
3218 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3219 menu items in UTF-8.
3220
3221 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3222 (apply_systemfont_to_menu): New function.
3223 (set_frame_menubar, create_and_show_popup_menu): Call
3224 apply_systemfont_to_menu.
3225
7fc874c4
J
32262010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3227
3228 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3229 FRAME_LINE_TO_PIXEL_Y.
3230
3231 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3232 pixelwidth/height.
3233
863bf481
DN
32342010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3235
5e5a3b92
DN
3236 Simplify code for HP machines.
3237 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3238 for GNU_LINUX, not needed.
3239 (UNEXEC, NEED_BSDTTY): Move definitions...
3240 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3241
863bf481
DN
3242 * m/iris4d.h (UNEXEC): Move definition ...
3243 * s/irix6-5.h (UNEXEC): ... here.
3244
3e6bec3b
JD
32452010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3246
3247 * xfns.c (set_machine_and_pid_properties): New function.
3248 (Fx_create_frame): Call set_machine_and_pid_properties.
3249
2912322b
SM
32502010-04-03 Eli Zaretskii <eliz@gnu.org>
3251
1502b819
EZ
3252 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3253 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3254 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3255
2912322b
SM
3256 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3257 in this function. (Bug#5703)
3258
32592010-04-03 Chong Yidong <cyd@stupidchicken.com>
3260
3261 * nsterm.h: Fix last change.
3262
c435b432
DN
32632010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3264
a568f507
DN
3265 * m/intel386.h (NO_REMAP): Move definition ...
3266 * s/msdos.h (NO_REMAP): ... here.
3267
4cd9f6c2
DN
3268 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3269
c435b432
DN
3270 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3271 used on those platforms.
3272
42a2c622
DN
32732010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3274
3275 Remove extern errno declarations.
3276 * xterm.c:
3277 * xrdb.c:
3278 * w32term.c:
3279 * unexec.c:
3280 * unexaix.c:
3281 * sysdep.c:
3282 * process.c:
3283 * lread.c:
3284 * keyboard.c:
3285 * floatfns.c:
3286 * filelock.c:
3287 * fileio.c:
3288 * emacs.c (main):
3289 * ecrt0.c:
3290 * dispnew.c:
3291 * callproc.c:
3292 * buffer.c: Remove errno extern declarations.
3293 * s/netbsd.h (NEED_ERRNO): Remove.
3294
8224f93d
DN
32952010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3296
3297 Remove all uses of LIBX11_SYSTEM.
3298 * Makefile.in (LIBX11_SYSTEM): Remove.
3299 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3300 instead.
3301
814062c7
EZ
33022010-04-01 Eli Zaretskii <eliz@gnu.org>
3303
ed68db4d
EZ
3304 Remove support for DJGPP v1.x (bug#5813).
3305
3306 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3307 * s/msdos.h:
3308 * unexec.c (make_hdr, copy_text_and_data):
3309 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3310 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3311 (IT_set_terminal_modes, __write, _rename, gethostname)
3312 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3313 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3314 the value of __DJGPP__.
ed68db4d
EZ
3315 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3316 compatibility code.
8224f93d
DN
3317 * lread.c:
3318 * gmalloc.c (memalign):
3319 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3320 * emacs.c (main):
3321 * dosfns.c (init_dosfns):
ed68db4d
EZ
3322 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3323
52f4d8d5
EZ
33242010-04-01 Eli Zaretskii <eliz@gnu.org>
3325
814062c7
EZ
3326 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3327 string with `cursor' property comes from an `after-string'
3328 overlay. (Bug#5816)
3329
0dc2e11d
GM
33302010-04-01 Glenn Morris <rgm@gnu.org>
3331
3332 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3333 Define as Makefile variables.
3334 (LIBX): Use above variables rather than directly using autoconf.
3335
1d29df59
DN
33362010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3337
3338 Clean up BSD_SYSTEM use.
3339 * xterm.c:
3340 * process.c:
3341 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3342 for including <sys/ioctl.h>.
3343 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3344 code is only used for MSDOS.
3345
1546c559
JL
33462010-03-31 Juri Linkov <juri@jurta.org>
3347
3348 * image.c: Add `Qextension_data'.
3349 (syms_of_image): Initialize and staticpro `Qextension_data'.
3350 (Fimage_metadata): Rename from `Fimage_extension_data'.
3351 (gif_load): Put GIF extension data to the property
3352 `Qextension_data'.
3353
6521c534
CY
33542010-03-31 Chong Yidong <cyd@stupidchicken.com>
3355
3356 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3357 * nsterm.h: Fix prototype.
3358
52c30783
EZ
33592010-03-31 Eli Zaretskii <eliz@gnu.org>
3360
3361 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3362 trailing whitespace in right-to-left rows.
3363
855a0da7
SM
33642010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3365
3366 Get rid of the direct_output optimizations.
3367 * keyboard.c (nonundocount): Remove extern declaration.
3368 (command_loop_1): Remove brittle optimisation for cheap and
3369 common operations.
3370 * xdisp.c (redisplay_internal): Don't bother checking
3371 redisplay_performed_directly_p any more.
3372 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3373 any more.
3374 * dispnew.c (redisplay_performed_directly_p)
3375 (direct_output_for_insert, direct_output_forward_char):
3376 * dispextern.h (redisplay_performed_directly_p)
3377 (direct_output_for_insert, direct_output_forward_char): Remove.
3378 * cmds.c (nonundocount): Make it static.
3379
85738751 33802010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3381
3382 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3383
85738751 33842010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3385
3386 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3387 invisible (Bug#5766).
3388
85738751 33892010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3390
855a0da7
SM
3391 * xdisp.c (x_consider_frame_title, update_window_cursor):
3392 Remove HAVE_NS conditionals.
194d44e7 3393 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3394
3395 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3396 filename for the title.
3397 (ns_set_doc_edited): Do nothing if the selected window is a
3398 minibuffer window.
3399
3400 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3401 ns_set_doc_edited.
3402
3403 * nsterm.m: Remove unneeded prototype.
3404
85738751 34052010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3406
3407 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3408 in the DOC file. (Bug#5336)
3409
85738751 34102010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3411
3412 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3413
75d1428c
SM
34142010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * window.c (keys_of_window): Remove redundant/overridden bindings.
3417
82043cfb
EZ
34182010-03-30 Eli Zaretskii <eliz@gnu.org>
3419
3420 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3421 Restore original behavior when the iterator is not bidi_p.
3422
b5dd0ae7
DN
34232010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3424
3425 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3426
bd924a5d
EZ
34272010-03-30 Eli Zaretskii <eliz@gnu.org>
3428
3429 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3430 are outside the range of cached character positions.
3431
3580374b
JB
34322010-03-30 Juanma Barranquero <lekktu@gmail.com>
3433
3434 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3435
a7b02820
EZ
34362010-03-30 Eli Zaretskii <eliz@gnu.org>
3437
3438 Initial support for bidirectional editing.
3439
3440 * Makefile.in (obj): Include bidi.o.
3441 (bidi.o): New target.
3442
3443 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3444 ($(BLD)/bidi.$(O)): New target.
3445
3446 * bidi.c: New file.
3447
3448 * buffer.h (struct buffer): New members bidi_display_reordering
3449 and bidi_paragraph_direction.
3450
3451 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3452 and bidi_paragraph_direction.
3453 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3454 and bidi-paragraph-direction.
3455 (Fbuffer_swap_text): Swap the values of
3456 bidi_display_reordering and bidi_paragraph_direction.
3457
3458 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3459 (bidi_type_t, bidi_dir_t): New types.
3460 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3461 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3462 prev_stop, base_level_stop, and eol_pos.
3463 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3464 (IT_STACK_SIZE): Enlarge to 5.
3465 (struct glyph_row): New member reversed_p.
3466 <string_buffer_position>: Update prototype.
3467 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3468 glyph_row if bidi_it.paragraph_dir == R2L.
3469 (struct glyph): New members resolved_level and bidi_type.
3470
3471 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3472 processing or buffer's direction is right-to-left.
3473 (prepare_desired_row): Preserve the reversed_p flag.
3474 (row_equal_p): Compare the reversed_p attributes as well.
3475
3476 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3477 bidi_init_it and set it->paragraph_embedding from the current
3478 buffer's value of bidi_paragraph_direction.
3479 (reseat_1): Initialize bidi_it.first_elt.
3480 (set_iterator_to_next, next_element_from_buffer): Use the value of
3481 paragraph_embedding to determine the paragraph direction.
3482 (set_iterator_to_next): Under bidi reordering, call
3483 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3484 new_paragraph flag is set in the bidi iterator.
3485 (next_element_from_buffer): If bidi_it.first_elt is set,
3486 initialize paragraph direction and find the first character to
3487 display in the visual order. If reseated to a middle of a line,
3488 prime the bidi iterator starting at the line's beginning. Handle
3489 the situation where we overstepped stop_charpos due to
3490 non-linearity of the bidi iteration. Likewise for when we back up
3491 beyond the previous stop_charpos. When moving across stop_charpos,
3492 record it in prev_stop.
3493 (display_line): Set row->end and it->start for the next row to the
3494 next character in logical order. Always extend reversed_p rows to
3495 the end of line, even if they end at ZV. Copy the reversed_p flag
3496 to the next glyph row. Keep calling set_cursor_from_row for
3497 bidi-reordered rows even if we already have a possible candidate
3498 for cursor position. Set row_end after all the row's glyphs have
3499 been produced, by looping over the glyphs. Record the position
3500 after EOL in it->eol_pos, and use it to set end_pos of the last
3501 row produced for a continued line.
3502 <Qright_to_left, Qleft_to_right>: New variables.
3503 (syms_of_xdisp): Initialize and staticpro them.
3504 (string_buffer_position_lim): New function.
3505 (string_buffer_position): Most of code moved to
3506 string_buffer_position_lim. Last argument and return value are
3507 now EMACS_INT; all callers changed.
3508 (set_cursor_from_row): Rewritten to support bidirectional text and
3509 reversed glyph rows.
3510 (text_outside_line_unchanged_p, try_window_id): Disable
3511 optimizations if we are reordering bidirectional text and the
3512 paragraph direction can be affected by the change.
3513 (append_glyph, append_composite_glyph)
3514 (produce_image_glyph, append_stretch_glyph): Set the
3515 resolved_level and bidi_type members of each glyph.
3516 (append_glyph): If the glyph row is reversed, prepend the glyph
3517 rather than appending it.
3518 (handle_stop_backwards): New function.
3519 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3520 (reseat): call handle_stop_backwards to recompute prev_stop and
3521 base_level_stop for the new position.
3522 (handle_invisible_prop): Under bidi iteration, skip invisible text
3523 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3524 paragraph direction. Update IT->prev_stop after skipping
3525 invisible text.
3526 (move_it_in_display_line_to): New variables prev_method
3527 and prev_pos. Compare for strict equality in
3528 BUFFER_POS_REACHED_P.
3529 (try_cursor_movement): Examine all the candidate rows that occlude
3530 point, to return the best match. If rows are bidi-reordered
3531 and point moved backwards, back up to the row that is not a
3532 continuation line, and start looking for a suitable row from
3533 there.
3534
3535 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3536 rather than appending, if the glyph_row's reversed_p flag is set.
3537 Set the resolved_level and bidi_type members of each glyph.
3538
3539 * .gdbinit (pbiditype): New command.
3540 (pgx): Use it to display bidi level and type of the glyph.
3541 (pitx): Display some bidi information about the iterator.
3542 (prowlims, pmtxrows): New commands.
3543
32a8894e
DN
35442010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3545
3546 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3547 * s/usg5-4.h (LIBS_DEBUG):
3548 * s/irix6-5.h (C_DEBUG_SWITCH):
3549 * s/gnu-linux.h (LIBS_DEBUG):
3550 * s/darwin.h (LIBS_DEBUG):
3551 * s/bsd-common.h (LIBS_DEBUG):
3552 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3553 * m/iris4d.h (LIBS_DEBUG):
3554 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3555
3556 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3557 (LIBS_DEBUG): Remove definition.
3558
649dbf36
CY
35592010-03-27 Chong Yidong <cyd@stupidchicken.com>
3560
3561 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3562 Windows.
3563
cad4261f
YM
35642010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3565
3566 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3567 `connect' (Bug#5723).
3568
cd591dbc
HE
35692010-03-25 Helmut Eller <eller.helmut@gmail.com>
3570
3571 * process.c (Fmake_network_process): Call `select' for interrupted
3572 `connect' rather than creating new socket (Bug#5173).
3573
e867cb5d 35742010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3575
3576 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3577
3578 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3579
3580 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3581
e867cb5d 35822010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3583
3584 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3585 XLoadQueryFont.
3586
e867cb5d 35872010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3588
3589 * coding.c (decode_coding_ccl): Fix previous change for the
3590 multibyte case.
fb608df3
KH
3591 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3592 case that the output buffer is fullfilled.
3593 (encode_coding): Setup ccl program here.
fbdc1721 3594
5845f0ed
DN
35952010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3596
814fb708
DN
3597 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3598
5845f0ed
DN
3599 Simplify LIBS_MACHINE definitions.
3600 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3601 * m/iris4d.h (LIBS_MACHINE): Likewise.
3602 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3603 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3604 * s/netbsd.h: Remove commented out code.
5845f0ed 3605
b7064064
DN
36062010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3607
df7734b2
DN
3608 Remove dead code dealing with POSIX_SIGNALS.
3609 * atimer.c (set_alarm): Remove dead code, all USG systems define
3610 POSIX_SIGNALS.
3611 * data.c (arith_error): Likewise.
3612 * keyboard.c (input_available_signal, handle_user_signal)
3613 (interrupt_signal): Likewise.
3614 * process.c (sigchld_handler): Likewise.
3615 (create_process): Remove if 0 code. Remove HPUX conditional when
3616 !defined (POSIX_SIGNALS), it cannot be true.
3617 * syssignal.h: Remove USG5_4 and USG conditionals when
3618 !POSIX_SIGNALS, they cannot be true.
3619
b7064064
DN
3620 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3621 NO_SOCK_SIGIO, not used anymore.
3622
55da5ee3
DN
36232010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3624
0be96e3a
DN
3625 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3626 support vax on BSDs.
3627
55da5ee3
DN
3628 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3629 * s/aix4-2.h (ORDINARY_LINK): ... here.
3630
c0282183
AS
36312010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3632
82c3d67a
AS
3633 * Makefile.in (abs_builddir): Define.
3634 (bootstrap_exe): Use it.
3635 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3636
3613edce
SM
36372010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3638
3639 * Makefile.in (bootstrap_exe): Use an absolute name.
3640
7f110ddc
DN
36412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3642
22e87574
DN
3643 Remove support for old GNU/Linux using libc version 5.
3644 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3645 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3646
05a670e6
DN
3647 Consolidate redundant definitions in s/bsd-common.h.
3648 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3649 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3650 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3651 doing it in all files that include this one.
3652 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3653 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3654 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3655 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3656 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3657 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3658 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3659 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3660 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3661
2968f561
DN
3662 Consolidate redundant definitions.
3663 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3664 it's undefined in all files that include this one.
3665 (POSIX_SIGNALS): Define here instead of doing it in all files that
3666 include this one.
3667 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3668 (POSIX_SIGNALS): Do not define.
3669 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3670 (POSIX_SIGNALS): Do not define.
3671 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3672 (POSIX_SIGNALS): Do not define.
3673
15d25dc0
DN
3674 Remove support for old UNIX System V systems.
3675 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3676 * s/usg-5-4-2.h: Remove.
3677
07e339e4
DN
3678 Remove support for Solaris on PPC and for old versions.
3679 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3680 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3681 that cancel each other.
3682 * s/sol2-3.h:
3683 * s/sol2-4.h:
3684 * s/sol2-5.h: Remove.
3685 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3686 (NO_REMAP): Remove, unused.
3687 (UNEXEC): Move definition ...
3688 * s/aix4-2.h (UNEXEC): ... here.
3689
7f110ddc
DN
3690 * s/openbsd.h: Remove support for non-ELF and for systems that do
3691 not support shared libraries.
3692 * s/netbsd.h:
3693 * s/freebsd.h: Likewise.
3694
605f35cd
DN
36952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3696
3697 Remove non-working support for lynxos 3.0.
3698 * s/lynxos.h: Remove file.
3699
3700 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3701 COFF_BSD_SYMBOLS, nothing defines it anymore.
3702
aed71cf4
DN
37032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3704
3705 Remove obsolete uses of HAVE_SHM.
3706 * emacs.c (standard_args):
3707 (Fdump_emacs):
3708 (syms_of_emacs): Remove code depending on HAVE_SHM.
3709
3710 * alloc.c: Remove HAVE_SHM dependent definition.
3711
3712 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3713
aded53ff
GM
37142010-03-18 Glenn Morris <rgm@gnu.org>
3715
17284745
GM
3716 * emacs.c (USAGE4): Hard-code bug address.
3717 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3718 (bug_reporting_address): Remove.
3719 (main): Don't call bug_reporting_address.
3720
aded53ff
GM
3721 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3722 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3723
303500aa
CY
37242010-03-15 Chong Yidong <cyd@stupidchicken.com>
3725
3726 * xfns.c (Fx_create_frame):
3727 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3728 on left.
3729
cef3058f
CY
37302010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3731
3732 * editfns.c (Fformat): Account for string precision when computing
3733 field width (Bug#5710).
3734
a647d59d
CY
37352010-03-12 Chong Yidong <cyd@stupidchicken.com>
3736
4fa42018
CY
3737 * xfns.c (Fx_create_frame): Set default to Qright.
3738
a647d59d
CY
3739 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3740 all window systems.
3741
6da23aaa
EZ
37422010-03-12 Eli Zaretskii <eliz@gnu.org>
3743
a96f6398 3744 These changes remove termcap.c from the build on Posix platforms.
83d02def 3745 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3746 (MSDOS_OBJ): ...to here.
3747 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3748 now identical to when LIBS_TERMCAP is defined.
3749
3750 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3751
3752 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3753
a96f6398 3754 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3755
288f9fc0
CY
37562010-03-10 Chong Yidong <cyd@stupidchicken.com>
3757
3758 * Branch for 23.2.
3759
d48cd3f4
SM
37602010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3761
3762 Cleanup setup of gl_state in various parts of the code.
3763 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3764 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3765 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3766 (skip_chars):
3767 * regex.c (regex_compile): Use it.
3768 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3769 it's now set in regex_compile when/if we need it.
3770
618db430
SM
37712010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3772
c0335e02
SM
3773 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3774 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3775 (QUIT): Use it to consolidate code and remove redundancy.
3776 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3777
254c06a8
SM
3778 * regex.c (regex_compile): Setup gl_state as well.
3779
618db430
SM
3780 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3781 (in_classes): Use CONSP before XCAR/XCDR.
3782
233f0c9f
CY
37832010-03-03 Chong Yidong <cyd@stupidchicken.com>
3784
3785 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3786 definitions, so that keyboard macros are correctly handled
3787 (Bug#5481).
3788
75f80e63
EZ
37892010-03-02 Eli Zaretskii <eliz@gnu.org>
3790
3791 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3792 text that could be relocated inside the call to emacs_mule_char.
3793 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3794 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3795
dcfb9bc4
KH
37962010-03-02 Kenichi Handa <handa@m17n.org>
3797
fc9a17bc
KH
3798 * character.c (parse_str_as_multibyte): Fix handling of the
3799 multibyte form of raw-bytes.
3800 (str_as_multibyte): Likewise.
3801
dcfb9bc4
KH
3802 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3803 form of raw-bytes.
3804
412c01b6
CY
38052010-02-28 Chong Yidong <cyd@stupidchicken.com>
3806
3807 * charset.c (load_charset_map_from_file)
3808 (load_charset_map_from_vector): Zero out allocated
3809 charset_map_entries before using them.
3810
df7e1ea0
AS
38112010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3812
3813 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3814
fe69a722
CY
38152010-02-27 Chong Yidong <cyd@stupidchicken.com>
3816
4ed28cf4
CY
3817 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3818 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3819
7379cfce
KH
38202010-02-26 Kenichi Handa <handa@m17n.org>
3821
f88cc4d6
KH
3822 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3823
7379cfce
KH
3824 * xdisp.c (reseat_to_string): Fix previous change.
3825
cf2fdcfb
CY
38262010-02-26 David Reitter <david.reitter@gmail.com>
3827
3828 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3829 Lisp_Object (Bug#4736).
3830
cc6c7c75
KH
38312010-02-25 Kenichi Handa <handa@m17n.org>
3832
3833 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3834
32e737d7
JD
38352010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3836
3837 * xterm.c (XTflash): Move declarations before statements.
3838
3839 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3840 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3841 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3842 (xg_create_tool_bar): Remove unused variables.
3843 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3844 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3845
676cae9f
CY
38462010-02-21 Chong Yidong <cyd@stupidchicken.com>
3847
3848 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3849
886cc2b8
SM
38502010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3851
3852 * term.c (fatal): Add a final \n if needed (bug#5596).
3853
ddb2d8e2
CY
38542010-02-18 Chong Yidong <cyd@stupidchicken.com>
3855
3856 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3857
2a4f8d3d
GM
38582010-02-18 Glenn Morris <rgm@gnu.org>
3859
3860 * callint.c (Finteractive): Doc fix.
3861
ebaf11b6
KH
38622010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3863
886cc2b8
SM
3864 * coding.c (record_conversion_result):
3865 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3866 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3867 memory allocation error.
3868
d0396581
KH
38692010-02-17 Kenichi Handa <handa@m17n.org>
3870
886cc2b8
SM
3871 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3872 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3873 (decode_coding): Setup ccl program here. Keep looping when the
3874 decoder stopped because the output buffer is
3875 fullfilled (bug#5534).
3876
3877 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3878
98599f74
JD
38792010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3880
471e4f04 3881 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3882 bug #5571.
886cc2b8 3883 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3884 overdrawn.
98599f74 3885
182659ae
JD
38862010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3887
3888 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3889 doing_interact here.
3890 (ice_connection_closed): New function.
3891 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3892 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3893 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3894 returns I/O error.
3895 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3896 bug #5512.
3897
9be32c4e 38982010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3899
3900 * nsfont.m (nsfont_open): The system's value for the font descent
3901 is negative, so round it down to avoid clipping.
3902
a2f3eb19
CY
39032010-02-06 Chong Yidong <cyd@stupidchicken.com>
3904
3905 * charset.c (load_charset_map_from_file)
3906 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3907 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3908
3088147c
CY
39092010-02-05 Chong Yidong <cyd@stupidchicken.com>
3910
3911 * charset.c (load_charset_map_from_file): Allocate large
3912 charset_map_entries structure on the heap rather than the stack.
3913 (Bug#5526).
3914
b57d9029
KH
39152010-01-31 Kenichi Handa <handa@m17n.org>
3916
3917 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3918 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3919
c67d885b
CY
39202010-01-31 Chong Yidong <cyd@stupidchicken.com>
3921
3922 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3923 <deactivated@gmail.com> (Bug#3605).
3924
8fab2362
CY
39252010-01-31 David De La Harpe Golden <david@harpegolden.net>
3926
3927 * fileio.c (Frename_file): Correctly rename symlinks to
3928 directories (Bug#5496).
3929
cb2a62f2
CY
39302010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3931
3932 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3933
944c7a26
AS
39342010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3935
3936 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3937
c024ac08
CY
39382010-01-29 Chong Yidong <cyd@stupidchicken.com>
3939
3940 * frame.c (DEFAULT_ROWS): Change default to 35.
3941
3942 * xfns.c (x_default_font_parameter): Change default XFT font to
3943 monospace-10 (Bug#3643).
3944
af93af83
EZ
39452010-01-29 Eli Zaretskii <eliz@gnu.org>
3946
3947 * w32inevt.c (key_event): Remove unnecessary comparison of
3948 event->uChar.AsciiChar with 128.
3949
ca0eb708
CY
39502010-01-28 Chong Yidong <cyd@stupidchicken.com>
3951
b242dbfc
CY
3952 * fileio.c (Frename_file): Fix last change (Bug#5487).
3953
ca0eb708
CY
3954 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3955
3956 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3957
45d45af5
JD
39582010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3959
3960 * xfns.c (Fx_create_frame): Remove window size matching code from
3961 2010-01-15.
a73f9c9d 3962 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3963
7e233730
JR
39642010-01-27 Jason Rumney <jasonr@gnu.org>
3965
3966 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3967 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3968
86e893e3
KH
39692010-01-27 Kenichi Handa <handa@m17n.org>
3970
3971 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3972 pattern string (Bug#4209).
86e893e3 3973
8719abec
CY
39742010-01-27 David De La Harpe Golden <david@harpegolden.net>
3975
3976 * fileio.c (Frename_file): Call copy-directory and
3977 delete-directory for directories, in order to handle cross-device
3978 renaming (Bug#3353).
3979
844794c8
JD
39802010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3981
aa3e13b5 3982 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3983 sizes 24 and 10. Bug #3643.
844794c8 3984
bd4b5750
SM
39852010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3986
8dc1adf6 3987 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3988 * keymap.c (shadow_lookup): Add `remap' arg.
3989 (describe_map, describe_vector): Update calls to shadow_lookup.
3990 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3991 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3992 perform remapping during shadow_lookup check of remapped_sequences.
3993
285d07e2
CY
39942010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3995
3996 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3997 png_check_sig, which has been removed in libpng 1.4.
3998
c6d09b8d
CY
39992010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4000
4001 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4002 lacks this header file).
4003
3d782998
YM
40042010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4005
4006 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4007 as in Emacs 22.
4008
2aff7c53
YM
40092010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4010
4011 * lisp.h (make_pure_string): String pointer arg now points to const.
4012
4013 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4014 args now point to const.
4015
74327f7a
EZ
40162010-01-22 Eli Zaretskii <eliz@gnu.org>
4017
4018 * lread.c (Fload): Don't treat files without .elc extension as
4019 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4020 them. (bug#5303)
4021
4d1e6632
KH
40222010-01-20 Kenichi Handa <handa@m17n.org>
4023
4024 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4025 treat the source as actual byte sequence.
4026
1fdede8f
AM
40272010-01-19 Alan Mackenzie <acm@muc.de>
4028
4029 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4030 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4031 `signal_after_change_p' to `coherent_change_p', and make the
4032 invocation of `modify_region' conditional on it.
4033
67477f30
JD
40342010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4035
4036 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4037 for debug purpose.
4038 (syms_of_xsettings): Declare xft-settings.
4039
244b023e
CY
40402010-01-18 Chong Yidong <cyd@stupidchicken.com>
4041
4042 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4043
617364fe
CY
40442010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4045
4046 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4047
4fe22cdf
CY
40482010-01-16 Chong Yidong <cyd@stupidchicken.com>
4049
4050 * emacs.c (standard_args): Adjust arg priorities to reflect how
4051 they are processed in startup.el.
4052
e118d2be
AS
40532010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4054
4055 * Makefile.in (lisp, shortlisp): Update.
4056
523ae620
SM
40572010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4058
4059 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4060 code, link the new kboard into all_kboard before running Lisp code,
4061 and protect the new terminal with GCPRO (Bug#5365).
4062 (x_term_init): Remove unused var `atom'.
4063 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4064
f0d13888
JD
40652010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4066
4067 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4068 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4069 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4070 this. Bug #3643.
f0d13888 4071
cc320f07
KH
40722010-01-15 Kenichi Handa <handa@m17n.org>
4073
4074 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4075
7ffdf101
CY
40762010-01-15 Chong Yidong <cyd@stupidchicken.com>
4077
4078 * nsterm.m (Qnone): Define.
4079
4080 * nsfns.m (Qnone): Move definition to nsterm.m.
4081
d12bd917
KH
40822010-01-14 Kenichi Handa <handa@m17n.org>
4083
4084 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4085 systems.
4086
d9a7c140
KH
40872010-01-14 Kenichi Handa <handa@m17n.org>
4088
4089 Make auto-composition work on all buffers even if they are
4090 fundamental mode.
4091
4092 * composite.c (Vauto_composition_mode): New variable.
4093 (composition_compute_stop_pos): Check Vauto_composition_mode
4094 instead of Vauto_composition_function.
4095 (composition_adjust_point, Ffind_composition_internal): Likewise.
4096 (syms_of_composite): Declare Lisp variable
4097 "auto-composition-mode" here.
4098
63286bb2
CY
40992010-01-13 Chong Yidong <cyd@stupidchicken.com>
4100
4101 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4102 during call to vendor-specific-keysyms (Bug#5365).
4103
c2623ee7
YM
41042010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4105
4106 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4107 Call SIGNAL_THREAD_CHECK (Bug#5333).
4108
4109 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4110 Call SIGNAL_THREAD_CHECK.
4111
0b5397c2
SM
41122010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4113
4114 Try to fix bug#5314. This is probably not the final word, tho.
4115 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4116 recent-auto-save-p as a side-effect.
4117 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4118 * buffer.c (Fkill_buffer, reset_buffer):
4119 * editfns.c (Fsubst_char_in_region):
4120 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4121 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4122
dc954cb2
KH
41232010-01-13 Kenichi Handa <handa@m17n.org>
4124
4125 Display buffer name, etc. in mode line by composing correctly.
4126
4127 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4128 STRING is not nil.
0b5397c2 4129 (display_mode_element): Adjust for the change of
dc954cb2
KH
4130 decode_mode_spec and display_line.
4131 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4132 (display_string): Handle the case that STRING is non-null and
4133 LISP_STRING is not nil.
4134
0b5397c2
SM
4135 * xterm.c (x_draw_composite_glyph_string_foreground):
4136 Pay attention to s->face->overstrike.
dc954cb2
KH
4137
4138 * composite.c (composition_reseat_it): Don't check PT if STRING is
4139 non nil.
4140
4a00eaca
YM
41412010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4142
4143 * keyboard.c (read_char): Don't apply previous change when current
4144 buffer is unchanged by command execution.
4145
60abb287
JD
41462010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4147
4148 * keyboard.c (read_char): Return after executing from special map.
4149
893db5bc
GM
41502010-01-12 Glenn Morris <rgm@gnu.org>
4151
4152 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4153 bug-gnu-emacs rather than emacs-pretest-bug.
4154
4d03ece0
CY
41552010-01-11 Chong Yidong <cyd@stupidchicken.com>
4156
4157 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4158 initializing the Lisp variables that depend on them.
4159
1df47e38
YM
41602010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4161
4162 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4163 Clear areas that will not be updated after change of menu bar lines.
4164 Clear the menu bar window's current matrix when the window gets empty.
4165
2f1c6384
CY
41662010-01-09 Chong Yidong <cyd@stupidchicken.com>
4167
e398c61c
CY
4168 * intervals.h, textprop.c (extend_property_ranges): Return value
4169 and args changed. Discard properties that begin at or after the
4170 new end (Bug#5306).
4171
4172 * editfns.c (Fformat): Caller changed.
4173
e5a29a10
CY
4174 * nsterm.m (ns_set_default_prefs): Delete function.
4175 (syms_of_nsterm): Initialize ns_command_modifier,
4176 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4177 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4178
2f1c6384
CY
4179 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4180 position (Bug#4040).
4181
d427a9fa
EZ
41822010-01-09 Eli Zaretskii <eliz@gnu.org>
4183
4184 * editfns.c (Ffloat_time): Doc fix.
4185
21b9df2f
JD
41862010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4187
4188 * xfns.c (Fx_create_frame): Don't create frame larger than display
4189 by default bug#3643.
4190
4b00d3b1
YM
41912010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4192
4193 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4194 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4195 windows above internal border.
4196
4197 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4198 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4199 windows above internal border.
4200
4201 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4202 tool bar windows specially.
4203
4204 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4205
4206 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4207 specially.
4208 (XTflash): Take account of menu bar height.
4209
4210 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4211 specially.
4212
5075d853
JD
42132010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4214
ac146f82 4215 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4216 also be true before we can return early (bug #5339).
4217
474217c8
CY
42182010-01-06 David Reitter <david.reitter@gmail.com>
4219
4220 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4221 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4222 (Bug#3233).
4223
c0e6d47d
JD
42242010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4225
d0cf45b7
JD
4226 * font.c (font_open_entity): Enable chache and call cached_font_ok
4227 for the driver if defined.
4228 (QCuser_spec): New symbol.
4229 (font_spec_from_name): Save name as user-spec.
4230 (font_load_for_lface): Keep user-spec instead of name.
4231 (font_open_by_name): Save name as user-spec.
4232 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4233 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4234
4235 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4236 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4237 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4238
4239 * font.h (struct font_driver): Add cached_font_ok.
4240
c0e6d47d
JD
4241 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4242
7c583cd8
JD
42432010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4244
4245 * xterm.c (x_new_font): Move code for setting rows/cols before
4246 resizing ...
ac146f82 4247 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4248
4249 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4250 (xg_frame_resized, xg_frame_set_char_size):
4251 Call xg_clear_under_internal_border.
7c583cd8 4252 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4253
03f77f0a
CY
42542010-01-05 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * keyboard.c (read_key_sequence): Catch keyboard switch after
4257 making a new tty frame (Bug#5095).
4258
2a1ef5be
KH
42592010-01-05 Kenichi Handa <handa@m17n.org>
4260
4261 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4262
e3eb1dae
SM
42632010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4264
4265 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4266 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4267 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4268
777013f2
MA
42692010-01-03 Michael Albinus <michael.albinus@gmx.de>
4270
4271 * dbusbind.c (xd_add_watch): Improve debug message.
4272 (xd_remove_watch): Improve debug message. If DATA is the session
4273 bus, unset D-Bus session environment.
4274 (Fdbus_init_bus): Pass the bus as argument to
4275 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4276
8932b1c2
CY
42772010-01-01 Chong Yidong <cyd@stupidchicken.com>
4278
87231e2c
CY
4279 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4280
4801c5fa
CY
4281 * lread.c (syms_of_lread): Make it clearer that these are the
4282 names of loaded files (Bug#5068).
4283
8932b1c2
CY
4284 * eval.c (run_hook_with_args): Handle the case where the global
4285 value has the obsolete single-function form (Bug#5026).
4286
11e3c684
CY
42872009-12-27 Chong Yidong <cyd@stupidchicken.com>
4288
4289 * minibuf.c (Fall_completions): Minor optimization.
4290
5b28ce35
EZ
42912009-12-26 Eli Zaretskii <eliz@gnu.org>
4292
5ce6e4f4
JB
4293 * .gdbinit (pgx): Fix display of composite glyphs.
4294 Display cmp.from and cmp.to as well.
4295 (pitx): Fix last change.
5b28ce35 4296
bcffff46
KH
42972009-12-25 Kenichi Handa <handa@m17n.org>
4298
4299 * composite.h (composition_adjust_point): Update prototype.
4300
4301 * composite.c (composition_reseat_it): Don't make a composition
4302 spanning over point.
4303 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4304 composable characters.
4305 (composition_adjust_point): New arg NEW_PT. Callers changed.
4306
4307 * keyboard.c (command_loop_1): Force redisplay if the last point
4308 was within a composition.
4309 (adjust_point_for_property): Don't adjust point for automatic
4310 composition when called after buffer modification.
4311
3f670e9a
EZ
43122009-12-19 Eli Zaretskii <eliz@gnu.org>
4313
5ce6e4f4
JB
4314 * .gdbinit (pitx): Don't use enum names, use their values.
4315 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4316 (pgx): Don't use enum names, use their values.
4317 (pitmethod): New helper command.
4318 (pitx): Use it to display iteration method.
4319 (pgrowit): New command.
4320
ad903955
EZ
4321 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4322
3f670e9a
EZ
4323 Update dependencies in Makefile.in.
4324
4325 * Makefile.in (alloc.o): Depend on termhooks.h.
4326 (atimer.o): Depend on blockinput.h.
4327 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4328 and frame.h.
4329 (callint.o): Depend on systime.h, coding.h, and composite.h.
4330 (callproc.o): Depend on buffer.h.
4331 (casefiddle.o): Don't depend on charset.h.
4332 (casetab.o): Depend on character.h.
4333 (ccl.o): Depend on composite.h.
4334 (chartab.o): Depend on ccl.h.
4335 (cm.o): Depend on dispextern.h.
4336 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4337 (coding.o): Don't depend on $(INTERVALS_H).
4338 (composite.o): Don't depend on dispextern.h explicitly (it's in
4339 $(INTERVALS_H)). Depend on ccl.h.
4340 (data.o): Depend on systime.h, coding.h, composite.h,
4341 dispextern.h, font.h, and ccl.h.
4342 (dired.o): Depend on composite.h.
4343 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4344 composite.h (it's in $(INTERVALS_H)).
4345 (doc.o): Depend on systime.h, coding.h, and composite.h.
4346 (editfns.o): Don't depend explicitly on dispextern.h.
4347 (emacs.o): Depend on frame.h and coding.h.
4348 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4349 (fileio.o): Depend on frame.h and commands.h. Don't depend
4350 explicitly on dispextern.h.
4351 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4352 composite.h.
4353 (fns.o): Don't depend on termhooks.h.
4354 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4355 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4356 coding.h, $(INTERVALS_H), window.h, xterm.h.
4357 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4358 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4359 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4360 fontset.h, ccl.h, and ftfont.h.
4361 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4362 (gtkutil.o): Depend on dispextern.h and composite.h.
4363 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4364 termhooks.h, and ccl.h.
4365 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4366 (intervals.o): Depend on systime.h and coding.h.
4367 (keyboard.o): Depend on composite.h and coding.h.
4368 (keymap.o): Depend on coding.h and frame.h.
4369 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4370 (macros.o): Depend on systime.h, coding.h, and composite.h.
4371 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4372 and atimer.h.
4373 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4374 dispextern.h explicitly.
0b5397c2
SM
4375 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4376 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4377 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4378 (regex.o): Don't depend on charset.h.
4379 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4380 (search.o): Don't depend explicitly on composite.h.
4381 (sound.o): Depend on atimer.h and systime.h.
4382 (syntax.o): Don't depend explicitly on composite.h.
4383 (sysdep.o): Depend on coding.h and composite.h.
4384 (term.o): Depend on xterm.h and buffer.h.
4385 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4386 (textprop.o): Don't depend on dispextern.h explicitly.
4387 (undo.o): Depend on dispextern.h.
4388 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4389 dispextern.h and composite.h explicitly.
4390 (xdisp.o): Depend on ccl.h.
4391 (xfaces.o): Depend on coding.h and ccl.h.
4392 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4393 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4394 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4395 ftfont.h.
4396 (xgselect.o): New dependency.
4397 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4398 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4399 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4400 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4401 (xsmfns.o): Depend on frame.h and dispextern.h.
4402 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4403 sysselect.h.
4404
7a6f7fea
AS
44052009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4406
4407 * font.c (Fclear_font_cache): Pass correct cache argument to
4408 font_clear_cache.
4409
f4c21026
AS
44102009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4411
4412 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4413 twice.
4414
f7ab0997
CY
44152009-12-15 Chong Yidong <cyd@stupidchicken.com>
4416
4417 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4418 calling file-remote-p. Reported by Jim Meyering.
4419
fa8e045a
MA
44202009-12-15 Michael Albinus <michael.albinus@gmx.de>
4421
4422 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4423 avoid compiler warnings. (Bug #5217)
fa8e045a 4424
a63dba42
KH
44252009-12-14 Kenichi Handa <handa@m17n.org>
4426
4427 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4428 in 8-bit encoding.
4429
5ce6e4f4 44302009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4431
4432 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4433 tooltip windows.
4434
223e5fc6
JD
44352009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4436
36acb2a7
JD
4437 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4438 Xatom_net_window_type.
4439
4440 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4441 Xatom_net_window_type.
4442
b8f00677
JD
4443 * xterm.c (my_log_handler): New function.
4444 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4445 so we can filter out buggy messages. (Bug #5120).
b8f00677 4446
e5f0bc9a
JD
4447 * xterm.c (xg_scroll_callback): Parameter list changed,
4448 use parameter GtkScrollType to determine scroll/line/page.
4449 Only allow dragging if a button < 4 is grabbed (bug #5177).
4450 (xg_end_scroll_callback): New function.
4451 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4452 xg_create_scroll_bar.
4453
4454 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4455 (scroll_end_callback): Remove.
4456 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4457 button-release-event. Replace value-changed event with change-value,
4458 bug #5177,
4459 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4460 bug #5177.
4461
4462 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4463 (xg_create_scroll_bar): Add GCallback end_callback.
4464
223e5fc6
JD
4465 * xftfont.c (QClcdfilter): New variable.
4466 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4467 (syms_of_xftfont): Initialize QClcdfilter.
4468
3c055b77
JD
44692009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4470
4471 * xsettings.c (struct xsettings): Add member seen.
4472 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4473 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4474 (apply_xft_settings): Only update Xft settings with what member seen
4475 indicates as new.
4476
05fe33ff
EZ
44772009-12-12 Eli Zaretskii <eliz@gnu.org>
4478
4479 * dispextern.h (struct text_pos): Use EMACS_INT;
4480 (struct glyph): Use EMACS_INT for charpos.
4481 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4482 region_beg_charpos, region_end_charpos,
4483 redisplay_end_trigger_charpos, and also for
4484 iterator_stack_entry.end_charpos and
4485 iterator_stack_entry.stop_charpos.
4486
e8d7886a
JD
44872009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4488
5ce6e4f4 4489 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4490 (xg_create_scroll_bar): Call scroll_end_callback on button release
4491 event (bug #5177).
4492 (xg_event_is_for_scrollbar): != replaced with ==.
4493
d0db2ec8
KH
44942009-12-12 Kenichi Handa <handa@m17n.org>
4495
4496 * ftfont.c (struct ftfont_info): New member matrix.
4497 (ftfont_open): Setup xftfont_info->matrix.
4498 (MFLTFontFT): New member matrix.
4499 (FLOOR, CEIL, ROUND): New macros.
4500 (ftfont_get_metrics): Handle matrix transformation.
4501 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4502
4503 * xftfont.c (struct xftfont_info): New member matrix.
4504 (xftfont_open): Setup xftfont_info->matrix.
4505
45062009-12-10 Kenichi Handa <handa@m17n.org>
4507
4508 * xdisp.c (append_space_for_newline): Consider face-remapping.
4509
2cc7b62f
AS
45102009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4511
b87dd913
AS
4512 * xsettings.c: Include "keyboard.h".
4513
eba5eb94
AS
4514 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4515
2cc7b62f
AS
4516 Fix implicit function declarations.
4517 * cmds.c: Include "frame.h".
4518 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4519 * frame.h: Move declaration of delete_frame outside of
4520 HAVE_WINDOW_SYSTEM.
4521
a4ef73c8
CY
45222009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4523
4524 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4525
4526 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4527 GTK builds.
4528
944a300c
AS
45292009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4530
4531 * unexelf.c (unexec): Don't search for .data twice.
4532
022eef62
CY
45332009-12-05 Chong Yidong <cyd@stupidchicken.com>
4534
426ac949
CY
4535 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4536 if push failed.
4537 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4538 of push_display_prop (Bug#5000).
4539
022eef62
CY
4540 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4541 value of font_list_entities (Bug#5085).
4542
be95bee9
JB
45432009-12-04 Juanma Barranquero <lekktu@gmail.com>
4544
4545 Fix `string-to-number' to deal consistently with integers and floats.
4546 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4547 trailing characters, not just whitespace.
4548 (read1): Pass new arg 0 to keep old behavior.
4549 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4550 trailing chars, as it is already done for integers. Doc fixes.
4551 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4552
24c2d7ce
EZ
45532009-12-04 Eli Zaretskii <eliz@gnu.org>
4554
0b5397c2
SM
4555 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4556 Delete unused enumeration value.
24c2d7ce 4557
7e694795
EZ
45582009-12-03 Eli Zaretskii <eliz@gnu.org>
4559
4560 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4561
84b31826
SM
45622009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4563
4564 * process.c (Fmake_network_process): Fix up the tests for
4565 "connectionless socket", so they DTRT for seqpacket sockets as well.
4566
f00c449b
SM
45672009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4568
4569 * process.c (Qseqpacket): New symbol.
4570 (HAVE_SEQPACKET): New macro.
4571 (Fmake_network_process): Accept new :type `seqpacket'.
4572 (init_process): Add `seqpacket' feature when applicable.
4573 (syms_of_process): Initialize Qseqpacket.
4574
8096a0ff
YM
45752009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4576
4577 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4578 if entity is Qnil.
4579
3e0de07f
SM
45802009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4581
4582 * print.c (print_preprocess): Preprocess the key_and_value table of
4583 hashtables, even tho they're "hidden" (bug#5082).
4584
abeafb2a
JD
45852009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4586
4587 * frame.c (frame_make_pointer_invisible)
4588 (frame_make_pointer_visible): Declare f before statements.
4589
4bf47195
EZ
45902009-11-28 Eli Zaretskii <eliz@gnu.org>
4591
4592 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4593 omitted dependencies on lisp.h.
4594
c525b3f2
JD
45952009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4596
ece2d4ed
JD
4597 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4598 is NULL.
4599
4600 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4601
4602 * frame.c (frame_make_pointer_invisible)
3e0de07f 4603 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4604 frame.
4605
c525b3f2
JD
4606 * search.c (simple_search): Remove warning by making *p const.
4607
2f00e299
DN
46082009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4609
4610 * xdisp.c (power_letter): Remove duplicate const.
4611
084b049b
JD
46122009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4613
a1fadc6f
JD
4614 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4615
5ce6e4f4 4616 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4617 defaults (bug #5025).
4618
28259cac
SM
46192009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4620
4621 * insdel.c (adjust_markers_for_delete): Move it in the
4622 right direction! (bug#4803)
4623
e8e14166
YM
46242009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4625
4626 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4627
4628 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4629
86677b58
GM
46302009-11-24 Glenn Morris <rgm@gnu.org>
4631
4632 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4633
581e51e8
JD
46342009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4635
cfc86c7a
JD
4636 * Makefile.in: Must create deps for ecrt0.o in its rule.
4637
581e51e8
JD
4638 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4639 because that is what Gtk+ font dialog understands.
4640
4641 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4642 of Fcopy_sequence.
4643 (font_open_by_name): Put name given into QCname for font-object returned.
4644
4645 * frame.c (x_set_font): Save original font name as frame parameter
4646 font-parameter.
4647
4648 * xsettings.c (set_default_xft_settings): New function.
4649 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4650 is found.
4651
8b264ecb
AS
46522009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4653
4654 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4655 searching backwards through multibyte buffer.
4656
872870b2
JD
46572009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4658
4659 * xterm.c: #include xgselect.h.
4660 (x_initialize): Call xgselect_initialize.
4661
4662 * xsettings.c (something_changedCB): C++ comments => C comments.
4663 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4664 does that now.
4665
4666 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4667 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4668 (scroll_bar_button_cb): Remove.
5ce6e4f4 4669 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4670 event.
4671 (xg_create_scroll_bar): Don't bind button-press-event and
4672 button-release-event.
4673
4674 * process.c: Include xgselect.h if defined (USE_GTK) ||
4675 defined (HAVE_GCONF).
4676 (wait_reading_process_output): Call xg_select for the same condition.
4677
4678 * xgselect.c (xg_select): New function to better integrate with
4679 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4680
4681 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4682
4683 * Makefile.in (XOBJ): Add xgselect.o.
4684
62a6e103
AS
46852009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4686
0b5397c2
SM
4687 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4688 Remove ignored second argument. All callers changed.
62a6e103
AS
4689 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4690 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4691 * xdisp.c (string_char_and_length): Likewise.
4692
b0ca0f33
DN
46932009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4694
4695 * xterm.c (x_new_font):
4696 * print.c (print_object):
4697 * cmds.c (Fself_insert_command): Move declarations before statements.
4698
dd5a6279
CY
46992009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4700
4701 * s/cygwin.h: Remove unneeded linker flags.
4702
4a8e097d
JD
47032009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4704
0d1d0d26
JD
4705 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4706
4707 * xsettings.h: Declare xsettings_get_system_font.
4708
4709 * xsettings.c (xsettings_get_system_font): New function.
4710 (init_gconf): No use initiating gconf unless we have Xft also.
4711 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4712 HAVE_GCONF.
4713
4a8e097d
JD
4714 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4715 add a blank entry so it doesn't collapse into nothing.
4716
8ab1650e
SM
47172009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4718
4719 * lread.c (Funintern): Comment out last change.
4720
82c602f0
RS
47212009-11-19 Richard Stallman <rms@gnu.org>
4722
4723 * lread.c (Funintern): Error if symbol is t or nil.
4724
87e32266
SM
47252009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4726
4727 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4728 representation of Lisp integers.
4729 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4730
1b9ac145
AS
47312009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4732
4733 * lisp.h: Remove declaration of Ffont_get_system_font.
4734 * xfns.c: Move include of "xsettings.h".
4735 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4736
dfb3c4c6
JD
47372009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4738
87e32266
SM
4739 * xsettings.c (something_changedCB, Ffont_get_system_font):
4740 Check use_system_font.
dfb3c4c6
JD
4741 (syms_of_xsettings): DEFVAR font-use-system-font.
4742
9370c1d8
AS
47432009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4744
25fe851a
AS
4745 * xfns.c (x_default_font_parameter): Remove dead assignment.
4746
9370c1d8
AS
4747 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4748
637fa988
JD
47492009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4750
87e32266 4751 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4752 not have FC_LCD_*. #define them if not there.
a6eb20d8 4753
87e32266 4754 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4755
637fa988
JD
4756 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4757
4758 * xterm.c (handle_one_xevent): Call xft_settings_event for
4759 ClientMessage, PropertyNotify and DestroyNotify.
4760 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4761 Call xsettings_initialize.
4762
4763 * xftfont.c (xftfont_fix_match): New function.
4764 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4765 Call xftfont_fix_match after XftFontMatch.
4766
4767 * xfont.c (xfont_driver): Initialize all members.
4768
87e32266
SM
4769 * xfns.c (x_default_font_parameter):
4770 Try font from Ffont_get_system_font.
637fa988
JD
4771 Do not get font from x_default_parameter if we got one from
4772 Ffont_get_system_font.
87e32266 4773 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4774
4775 * w32font.c (w32font_driver): Initialize all members.
4776
4777 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4778
4779 * lisp.h: Declare syms_of_xsettings.
4780
87e32266
SM
4781 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4782 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4783
4784 * ftfont.c (ftfont_filter_properties): New function.
4785
4786 * frame.c (x_set_font): Remove unused variable lval.
4787
87e32266 4788 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4789
4790 * font.c (font_put_extra): Don't return if val is nil, it means
4791 boolean option is off.
4792 (font_parse_fcname): Collect all extra properties in extra_props
4793 and call filter_properties for all drivers with extra_props and
4794 font as parameter.
87e32266
SM
4795 (font_open_entity): Do not use cache, it does not pick up new
4796 fontconfig settings like hinting.
637fa988
JD
4797 (font_load_for_lface): If spec had a name in it, store it in entity.
4798
a73f9c9d 4799 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4800
4801 * config.in: HAVE_GCONF is new.
4802
4803 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4804 xsettings.o is new.
4805
5a942932
KH
48062009-11-17 Kenichi Handa <handa@m17n.org>
4807
4808 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4809 back to the default font in case that no suitable font is found.
4810
b7c7a4d1
SM
48112009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4812
4813 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4814 Suggested by Chad Brown <yandros@mit.edu>.
4815 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4816
072f1e39
JD
48172009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4818
4819 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4820
5d1e70a2
AS
48212009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4822
87e32266 4823 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4824
a53cfbe5
JD
48252009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4826
473a99b7
JD
4827 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4828 has a parent.
4829
a53cfbe5 4830 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4831 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4832
4833 * config.in: Generated (AUTO_DEPEND).
4834
f04bb9b2
MA
48352009-11-13 Michael Albinus <michael.albinus@gmx.de>
4836
b7c7a4d1 4837 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4838 Vdbus_registered_functions_table, because it contains also
4839 properties. Fix docstring.
b7c7a4d1 4840 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4841
8f11f7ec
SM
48422009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4843
4844 * alloc.c (mark_object): Don't reprocess marked strings.
4845 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4846 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4847
8a605fe8
KH
48482009-11-13 Kenichi Handa <handa@m17n.org>
4849
8f11f7ec 4850 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4851 semantics of Vword_combining_categories.
4852 (Vword_combining_categories): Describe the slight change of the
4853 semantics.
4854
241c4680
EZ
48552009-11-13 Eli Zaretskii <eliz@gnu.org>
4856
4857 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4858
4859 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4860
5d58e44c
SM
48612009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4862
4863 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4864
5e13f9d3
JB
48652009-11-12 Juanma Barranquero <lekktu@gmail.com>
4866
4867 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4868
cf54c754
DR
48692009-11-11 David Reitter <david.reitter@gmail.com>
4870
4871 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4872 variables to fix 2009-11-09 change.
4873
a4ada374
DN
48742009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4875
91433552
DN
4876 * process.c (ifflag_def): Make flag_sym constant.
4877 (Fnetwork_interface_info): Use a constant pointer.
4878 (ifflag_table):
4879 * xfns.c (cursor_bits):
4880 * xdisp.c (power_letter):
4881 * termcap.c (speeds, esctab):
4882 * sysdep.c (baud_convert):
4883 * keyboard.c (lispy_accent_codes, modifier_names):
4884 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4885 (jpeg_format, tiff_format, gif_format, svg_format)
4886 (interlace_start, interlace_increment, gs_format):
4887 * gtkutil.c (separator_names):
4888 * fringe.c (swap_nibble):
4889 * fns.c (base64_value_to_char, base64_char_to_value):
4890 * fileio.c (make_temp_name_tbl):
4891 * coding.c (suffixes): Make constant.
4892
f4265f6c
DN
4893 * frame.c (make_initial_frame):
4894 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4895 build_string.
4896 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4897
04420943
DN
4898 * s/freebsd.h:
4899 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4900
0a5d24ae
DN
4901 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4902 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4903
a4ada374
DN
4904 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4905 * xterm.c (syms_of_xterm):
4906 * xfaces.c (syms_of_xfaces):
4907 * xdisp.c (syms_of_xdisp):
4908 * lread.c (syms_of_lread):
4909 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4910 build_string.
91433552 4911
a4ada374
DN
4912 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4913
af98fc7f
SM
49142009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4915
8ab1650e 4916 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4917
e90292a9
JD
49182009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4919
4920 * keyboard.h: Declare timer_check.
4921
4922 * keyboard.c (timer_check_2): New function that does what the old
4923 timer_check did.
4924 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4925 returned, i.e. don't return -1 with timers pending.
4926
4927 * process.c: Remove extern declaration of timer_check.
4928
4929 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4930 even if timer_check returned -1.
4931
af98fc7f
SM
4932 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4933 xg_dialog_data.
e90292a9
JD
4934 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4935 the event loop.
4936 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4937 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4938 Destroy the dialog after xg_dialog_run.
4939
045b83c0
SM
49402009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4941
4942 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4943
1fb99a3a
JD
49442009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4945
4946 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4947
04e452cb
JB
49482009-11-09 Juanma Barranquero <lekktu@gmail.com>
4949
4950 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4951
ef7417fd
SM
49522009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4953
4954 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4955 w32menu.c, and nsmenu.m.
4956 Simplify the obsolete case where position is nil.
4957 (cleanup_popup_menu): New function, moved from nsmenu.m.
4958 (struct skp): Remove slot `notreal'.
4959 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4960 adjust callers.
4961 (single_menu_item): Adjust call to parse_menu_item.
4962 (syms_of_menu): Defsubr x-popup-menu.
4963 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4964 (keymap_panes): Don't export any more.
4965 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4966 (xmenu_show): Declare.
4967 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4968 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4969 * keyboard.h (parse_menu_item): Update declaration.
4970 * xmenu.c (Fx_popup_menu): Remove.
4971 (syms_of_xmenu): Don't defsubr x-popup-menu.
4972 * w32menu.c (Fx_popup_menu): Remove.
4973 (syms_of_w32menu): Don't defsubr x-popup-menu.
4974 * nsmenu.m (cleanup_popup_menu): Remove.
4975 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4976 moved to menu.c's Fx_popup_menu.
4977 (Fx_popup_menu): Remove.
4978 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4979 menu_items (it's done in menu.c already).
4980
424d6179
SM
49812009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4982
4983 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4984 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4985
c0df13a6 49862009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4987
4988 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4989 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4990 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4991 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4992
2de9f71c
SM
49932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4994
4995 Let integers use up 2 tags to give them one extra bit and thus double
4996 their range.
4997 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4998 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4999 New macros.
5000 (enum Lisp_Type): Use them. Give explicit values.
5001 (Lisp_Type_Limit): Remove.
5002 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5003 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5004 Pay attention to USE_2_TAGS_FOR_INTS.
5005 (INTEGERP): Use LISP_INT_TAG_P.
5006 * fns.c (internal_equal): Simplify the default case.
5007 (sxhash): Use case_Lisp_Int.
5008 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5009 any more.
5010 (Ftype_of): Use case_Lisp_Int.
5011 (store_symval_forwarding): Take into account the fact that Ints can
5012 now have more than one tag.
5013 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5014 buffer_slot_type_mismatch):
5015 * xfaces.c (face_attr_equal_p):
5016 * print.c (print_object):
5017 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5018 Use case_Lisp_Int.
5019
323637a2
EZ
50202009-11-06 Eli Zaretskii <eliz@gnu.org>
5021
7ac65b38
EZ
5022 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5023
323637a2
EZ
5024 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5025 warning.
5026
e511451f
JD
50272009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5028
5029 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5030
5031 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5032
5033 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5034 ButtonPressRelease and MotionNotify (bug#4870).
5035
5e2327cf
DN
50362009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5037
5adc433e
DN
5038 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5039
d67b4f80
DN
5040 * xterm.c (syms_of_xterm):
5041 * xselect.c (syms_of_xselect):
5042 * xmenu.c (syms_of_xmenu):
5043 * xfns.c (syms_of_xfns):
5044 * xfaces.c (syms_of_xfaces):
5045 * xdisp.c (syms_of_xdisp):
5046 * window.c (syms_of_window):
5047 * w32fns.c (syms_of_w32fns):
5048 * undo.c (syms_of_undo):
5049 * textprop.c (syms_of_textprop):
5050 * terminal.c (syms_of_terminal):
5051 * syntax.c (syms_of_syntax):
5052 * sound.c (syms_of_sound):
5053 * search.c (syms_of_search):
5054 * print.c (syms_of_print):
5055 * minibuf.c (syms_of_minibuf):
5056 * macros.c (syms_of_macros):
5057 * keymap.c (syms_of_keymap, initial_define_key)
5058 (initial_define_lispy_key):
5059 * keyboard.c (syms_of_keyboard):
5060 * insdel.c (syms_of_insdel):
5061 * image.c (syms_of_image):
5062 * fringe.c (syms_of_fringe):
5063 * frame.c (syms_of_frame):
5064 * fontset.c (syms_of_fontset):
5065 * fns.c (syms_of_fns):
5066 * fns.c (syms_of_fns):
5067 * fileio.c (syms_of_fileio):
5068 * fileio.c (syms_of_fileio):
5069 * eval.c (syms_of_eval):
5070 * doc.c (syms_of_doc):
5071 * dispnew.c (syms_of_display):
5072 * dired.c (syms_of_dired):
5073 * dbusbind.c (syms_of_dbusbind):
5074 * data.c (syms_of_data):
5075 * composite.c (syms_of_composite):
5076 * coding.c (syms_of_coding):
5077 * cmds.c (syms_of_cmds):
5078 * charset.c (define_charset_internal, syms_of_character):
5079 * ccl.c (syms_of_ccl):
5080 * category.c (syms_of_category, init_category_once):
5081 * casetab.c (syms_of_casetab):
5082 * casefiddle.c (syms_of_casefiddle):
5083 * callint.c (syms_of_callint):
5084 * bytecode.c (syms_of_bytecode):
5085 * buffer.c (keys_of_buffer, syms_of_buffer):
5086 * alloc.c (syms_of_alloc):
5087 * process.c (syms_of_process, init_process):
5088 * lread.c (syms_of_lread, init_obarray):
5089 * font.c (build_style_table):
5090 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5091 intern_c_string, calls to make_pure_string with
5092 make_pure_c_string. Use pure_cons instead of Fcons.
5093
5e2327cf
DN
5094 * process.c (socket_options): Make it const.
5095 (set_socket_option, init_process): Use a const pointer.
5096
5097 * lread.c (intern_c_string): New function.
5098 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5099 (defvar_int): Uset it. Make the name const char*.
5100
5101 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5102 (defvar_int): Update prototypes.
5103 (DEFUN, EXFUN): Support for prototypes is now required.
5104 (intern_c_string): New prototype.
5105 (struct Lisp_Subr): Make symbol_name constant.
5106
5107 * font.c (struct table_entry): Remove unused member. Make NAMES
5108 constant.
5109 (weight_table, slant_table, width_table): Make constant.
5110
5111 * emacs.c (struct standard_args): Make name and longname constant.
5112
5113 * character.h (DEFSYM): Use intern_c_string.
5114
a56eaaef
DN
51152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5116
5117 * alloc.c (make_pure_c_string): New function.
5118
5119 * eval.c (Fautoload): Purecopy all arguments.
5120
f6a07420
KH
51212009-11-05 Kenichi Handa <handa@m17n.org>
5122
5123 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5124 the buffer in case of replace.
5125
5d28d4b1
DN
51262009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5127
5128 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5129
b349d111
SM
51302009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5131
d528b1ce
SM
5132 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5133 when applicable (bug#4851).
5134
b349d111
SM
5135 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5136 (P_): Support for prototypes is now required.
5137
c38eb027
CY
51382009-10-31 Chong Yidong <cyd@stupidchicken.com>
5139
5140 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5141 (Bug#4827).
5142
0405f8d9
EZ
51432009-10-30 Eli Zaretskii <eliz@gnu.org>
5144
d528b1ce 5145 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5146
ca0a881a
DN
51472009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5148
5149 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5150
d528b1ce
SM
5151 * lread.c (Fload): Purecopy the file name when building
5152 Vpreloaded_file_list.
ca0a881a 5153
47e0e0e4
JR
51542009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5155
5156 * w32fns.c (syms_of_w32fns): Change default value of
5157 w32-scroll-lock-modifier to nil. (Bug#2827)
5158
057bce6f
JB
51592009-10-26 Juanma Barranquero <lekktu@gmail.com>
5160
782a943e 5161 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5162
242bc74c
AS
51632009-10-26 Andreas Schwab <schwab@redhat.com>
5164
5165 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5166
522d013a
JB
51672009-10-26 Juanma Barranquero <lekktu@gmail.com>
5168
5169 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5170 For delta < 0, skip check that only makes sense when the mini-window
5171 is going to be enlarged. (Bug#4534)
5172
18060980
CY
51732009-10-25 Chong Yidong <cyd@stupidchicken.com>
5174
5175 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5176 string in menu maps (Bug#4471).
5177
fec8f0fe
CY
51782009-10-24 Chong Yidong <cyd@stupidchicken.com>
5179
5180 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5181 FRAME_NS_VIEW on terminal frames (Bug#4765).
5182
10d66ec0
AS
51832009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5184
1cae01f7
AS
5185 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5186 DBUS_TYPE_UINTnn separately to get proper sign extension.
5187
58a12889
AS
5188 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5189 can properly handle unsigned types.
d528b1ce 5190 (make_uid, make_gid): Remove.
58a12889 5191
987c9327
AS
5192 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5193 types again.
5194
522d013a 5195 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5196 (system_process_attributes): Likewise.
5197
905a9ed3
DN
51982009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5199
5200 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5201
5202 * eval.c (Fautoload): Purecopy the filename. Simplify.
5203
5204 * category.c (Fdefine_category): Purecopy docstring.
5205
a599b3e8
AS
52062009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5207
7b792fc9
AS
5208 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5209
a599b3e8
AS
5210 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5211
b35ac83e
CY
52122009-10-23 Chong Yidong <cyd@stupidchicken.com>
5213
5214 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5215 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5216 (Bug#4775).
5217
e8903e00
SM
52182009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5219
5220 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5221 (init_fileio_once):
5222 * lisp.h (init_fileio_once): Remove.
5223 * emacs.c (main): Don't call init_fileio_once.
5224
8f43cbf3
DN
52252009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5226
5227 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5228
26898943
AS
52292009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5230
5231 * doprnt.c (doprnt): Fix overflow check.
5232
5c646d5a
JD
52332009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5234
3132a7ea
JD
5235 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5236
5c646d5a
JD
5237 * xterm.h (x_wait_for_event): Declare it.
5238
5239 * xterm.c (pending_event_wait): New variable.
5240 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5241 see pending_event_wait.eventtype.
5242 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5243 (x_new_font): Call change_frame_size with new rows/columns before we
5244 try to resize the frame.
5c646d5a 5245 (x_wait_for_event): New function.
d528b1ce
SM
5246 (x_set_window_size_1): Don't change gravity unless change_gravity
5247 is set.
5c646d5a
JD
5248 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5249 don't change frame size, instead wait for the ConfigureNotify.
5250 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5251 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5252 (x_initialize): Initialize pending_event_wait.
5253
5254 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5255 size.
5256
5257 * widget.c (EmacsFrameSetValues): Add comment.
5258 (EmacsFrameSetCharSize): Just call x_set_window_size.
5259
5260 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5261 x_wait_for_event.
d528b1ce 5262 (flush_and_sync): Remove again.
5c646d5a
JD
5263 (xg_get_font_name): Suggest monospace if no previous font is known.
5264
e9c1637d
SM
52652009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5266
5267 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5268 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5269
5a72cccb
YM
52702009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5271
5272 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5273 processing pending events when event is filtered for input method.
ab04798f 5274 (Bug#3681)
5a72cccb 5275
2629aa37
JB
52762009-10-20 Juanma Barranquero <lekktu@gmail.com>
5277
5278 * fns.c: Add #endif accidentally removed in previous change.
5279
c3417a74
DN
52802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5281
5282 * fns.c: Remove code for unsupported system: MAC_OS.
5283 * image.c: Likewise. Include setjmp.h.
5284
9685cef2
JD
52852009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5286
5287 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5288 pixel -1 (bug #4742).
5289
d7306fe6
DN
52902009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5291
019d2c4c
DN
5292 * process.c (create_pty): Remove conditionals for no longer
5293 supported systems: UNIPLUS and RTU.
5294
ee6bacd4
DN
5295 * xterm.c:
5296 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5297
d7306fe6
DN
5298 * alloc.c: Do not define struct catchtag.
5299 * eval.c: Move struct catchtag definition ...
5300 * lisp.h: ... here.
5301
5302 * image.c: Move png.h #include earlier to avoid warnings.
5303
5304 * xterm.c:
5305 * xsmfns.c:
5306 * xselect.c:
5307 * xrdb.c:
5308 * xmenu.c:
5309 * xftfont.c:
5310 * xfont.c:
5311 * xfns.c:
5312 * xfaces.c:
5313 * xdisp.c:
5314 * window.c:
5315 * widget.c:
5316 * w32xfns.c:
5317 * w32uniscribe.c:
5318 * w32term.c:
5319 * w32select.c:
5320 * w32reg.c:
5321 * w32proc.c:
5322 * w32menu.c:
5323 * w32inevt.c:
5324 * w32heap.c:
5325 * w32font.c:
5326 * w32fns.c:
5327 * w32console.c:
5328 * w32.c:
5329 * w16select.c:
5330 * vm-limit.c:
5331 * unexsol.c:
5332 * unexec.c:
5333 * unexcw.c:
5334 * unexaix.c:
5335 * undo.c:
5336 * tparam.c:
5337 * textprop.c:
5338 * terminfo.c:
5339 * terminal.c:
5340 * termcap.c:
5341 * term.c:
5342 * syntax.c:
5343 * sound.c:
5344 * sheap.c:
5345 * search.c:
5346 * scroll.c:
5347 * region-cache.c:
5348 * regex.c:
5349 * ralloc.c:
5350 * process.c:
5351 * print.c:
b024548b
DN
5352 * nsterm.m:
5353 * nsselect.m:
5354 * nsmenu.m:
5355 * nsimage.m:
5356 * nsfont.m:
5357 * nsfns.m:
d7306fe6
DN
5358 * msdos.c:
5359 * minibuf.c:
5360 * menu.c:
5361 * marker.c:
5362 * macros.c:
5363 * keymap.c:
5364 * keyboard.c:
5365 * intervals.c:
5366 * insdel.c:
5367 * indent.c:
5368 * gtkutil.c:
5369 * ftxfont.c:
5370 * ftfont.c:
5371 * fringe.c:
5372 * frame.c:
5373 * fontset.c:
5374 * font.c:
5375 * fns.c:
5376 * floatfns.c:
5377 * filelock.c:
5378 * fileio.c:
5379 * emacs.c:
5380 * editfns.c:
5381 * dosfns.c:
5382 * doprnt.c:
5383 * doc.c:
5384 * dispnew.c:
5385 * dired.c:
5386 * dbusbind.c:
5387 * data.c:
5388 * composite.c:
5389 * coding.c:
5390 * cmds.c:
5391 * cm.c:
5392 * chartab.c:
5393 * charset.c:
5394 * character.c:
5395 * ccl.c:
5396 * category.c:
5397 * casetab.c:
5398 * casefiddle.c:
5399 * callproc.c:
5400 * callint.c:
5401 * bytecode.c:
5402 * buffer.c:
5403 * atimer.c: Include setjmp.h. (Bug#4643)
5404
fd5f21e6
SM
54052009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5406
4c0354d7
SM
5407 Remove leftover table unibyte_to_multibyte_table.
5408 * character.c (unibyte_to_multibyte_table): Remove.
5409 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5410 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5411 * character.h (UNIBYTE_TO_CHAR): New macro.
5412 (MAKE_CHAR_MULTIBYTE): Use it.
5413 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5414 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5415 (message_dolog, set_message_1):
5416 * search.c (Freplace_match):
5417 * editfns.c (Fcompare_buffer_substrings):
5418 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5419 (concat):
5420 * insdel.c (copy_text, count_size_as_multibyte):
5421 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5422 * term.c (produce_glyphs):
5423 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5424 * regex.c (RE_CHAR_TO_MULTIBYTE):
5425 * cmds.c (internal_self_insert):
5426 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5427
fd5f21e6
SM
5428 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5429
4418646e
DN
54302009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5431
5432 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5433
35f5c1d2
JB
54342009-10-16 Juanma Barranquero <lekktu@gmail.com>
5435
5436 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5437
a0cd8f6b
AR
54382009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5439
5440 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5441 still needed under Tiger.
5442
5443 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5444
5445 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5446 __Apple__.
5447
5448 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5449
01a8d3fa
KH
54502009-10-15 Kenichi Handa <handa@m17n.org>
5451
5452 * print.c (print_object): Escape a symbol like "2E10" too.
5453
bf6c75c9 54542009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5455
5456 Cleanups and changes for 64-bit compile under Snow Leopard.
5457 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5458
5459 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5460
c5959062 5461 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5462 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5463 cast argument.
5464 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5465 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5466
5467 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5468
5469 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5470 where appropriate.
5471
5472 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5473 where appropriate.
6e4780c5
JB
5474 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5475 Use stringWithUTF8String.
bf6c75c9
AR
5476 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5477
6e4780c5
JB
5478 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5479 Add formal protocol mention to inheritance.
bf6c75c9
AR
5480 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5481
6e4780c5
JB
5482 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5483 Fix printf format.
bf6c75c9
AR
5484 (ns_query_color): Use CGFloat where appropriate.
5485 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5486 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5487 argument.
5488
3d87f118
AR
5489 * config.in (NS_HAVE_NSINTEGER): Drop.
5490
a95c8102
AR
5491 * dbusbind.c (dbus-method-return-internal)
5492 (dbus-method-error-internal): Use long format in printf, and cast
5493 argument.
5494
5495 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5496 in printf, and cast argument.
5497
6873acca 5498 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5499 cast argument.
5500
9ec6f100
GM
55012009-10-11 Glenn Morris <rgm@gnu.org>
5502
5503 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5504
5be883cd
JD
55052009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5506
5507 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5508 menu bar with a small width so it doesn't enlarge the frame.
5509
d7a39b51
JB
55102009-10-08 Juanma Barranquero <lekktu@gmail.com>
5511
5512 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5513
0c2b6f8e
GM
55142009-10-06 Glenn Morris <rgm@gnu.org>
5515
5516 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5517 SOME_MACHINE_LISP (this enters indirectly via DOC).
5518
e02131a2
EZ
55192009-10-05 Eli Zaretskii <eliz@gnu.org>
5520
5521 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5522
b4744254
EZ
55232009-10-04 Eli Zaretskii <eliz@gnu.org>
5524
5525 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5526 Doc fix.
5527
dbf64827
JB
55282009-10-03 Martin Rudalics <rudalics@gmx.at>
5529
5530 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5531
e9a0aef8
MA
55322009-10-02 Michael Albinus <michael.albinus@gmx.de>
5533
d528b1ce 5534 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5535 used anymore outside fileio.c.
5536
5537 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5538
64eb2b56
JB
55392009-10-01 Juanma Barranquero <lekktu@gmail.com>
5540
5541 * lisp.h (Qdelete_directory_internal):
5542 Declare, instead of Qdelete_directory.
5543
5544 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5545
9d28c33e
SM
55462009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5547
5548 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5549
9d8f3bd9
MA
55502009-10-01 Michael Albinus <michael.albinus@gmx.de>
5551
9d28c33e 5552 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5553 Fdelete_directory. It is not a command anymore. It has no file
5554 name handler.
5555
9694740b
SM
55562009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5557
5558 * xdisp.c (get_next_display_element): Use an enum in last change.
5559
748e162f
KH
55602009-09-28 Kenichi Handa <handa@m17n.org>
5561
9694740b 5562 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5563 unibyte_display_via_language_environment in handling
5564 Vnobreak_char_display.
5565
17efd58d
AR
55662009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5567
5568 * nsterm.h (ns_app_name): New extern variable.
5569
5570 * nsterm.m (ns_app_name): New variable.
5571 (ns_term_init): Set and use it.
5572 (ns_term_shutdown): Use it.
5573
5574 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5575 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5576
5577 * nsfns.m (ns_set_name_iconic, ns_set_name)
5578 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5579 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5580
9694740b
SM
5581 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5582 Remove double-casting in client_data comparison.
31c2d412 5583
3208cb35
YM
55842009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5585
5586 * keyboard.c (make_lispy_event): Remember last wheel direction.
5587 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5588
b7d552d6
GM
55892009-09-26 Glenn Morris <rgm@gnu.org>
5590
5591 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5592 internal.elc. Add term/pc-win.elc.
5593 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5594 term/x-win.elc.
5595 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5596 term/w32-win.elc.
5597 (NS_SUPPORT): New.
5598 (lisp): Add NS_SUPPORT.
5599 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5600
4ff670a8
DR
56012009-09-25 David Reitter <david.reitter@gmail.com>
5602
5603 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5604 on Mac OS X 10.6+ (bug#4513).
5605
feabfb6c
JB
56062009-09-24 Juanma Barranquero <lekktu@gmail.com>
5607
5608 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5609 some parts of Emacs code (like font selection) don't grok them.
5610 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5611
de59072a
AS
56122009-09-24 Andreas Schwab <schwab@redhat.com>
5613
5614 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5615
a489517b
JB
56162009-09-24 Juanma Barranquero <lekktu@gmail.com>
5617
5618 * dired.c (Fdirectory_files): Fix typo in docstring.
5619
0592970c
AR
56202009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5621
5622 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5623 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5624 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5625 under GNUstep.
5626 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5627
5628 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5629 glyph advancement.
5630
48e8a88b
AR
56312009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5632
5633 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5634 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5635
5636 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5637 deleted (bug #4492).
5638
e14f0a78
AR
5639 * nsfont.m (Vns_reg_to_script): New lisp variable.
5640 (syms_of_nsfont): Declare it.
5641 (ns_registry_to_script): New function.
5642 (ns_get_req_script): Call it.
5643 (ns_findfonts): Don't give up on non-unicode registry.
5644
5645 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5646
5b650faa
SM
56472009-09-20 Tom Tromey <tromey@redhat.com>
5648
5649 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5650 batch mode (bug#4228).
5651
a489517b 56522009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5653
5654 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5655 carefully. (Bug #4339)
0bae4e09 5656
fcfe06f3
CY
56572009-09-18 Chong Yidong <cyd@stupidchicken.com>
5658
d798ba87 5659 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5660
31642728
AR
56612009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5662
5663 * emacs.c (inhibit_x_resources): Update doc string for NS.
5664 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5665 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5666
5667 * nsterm.h (ns_no_defaults): Remove.
5668
5669 * nsterm.m (ns_no_defaults): Remove.
5670 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5671 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5672 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5673 don't update the NSWindow itself.
5674 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5675 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5676
5677 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5678 ns_use_qd_smoothing.
5679
5680 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5681 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5682 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5683 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5684
8686ac71
JB
56852009-09-17 Juanma Barranquero <lekktu@gmail.com>
5686
5687 * emacs.c (inhibit_x_resources): New variable.
5688 (main) [HAVE_NS]: Don't process --quick command line option.
5689 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5690
5691 * lisp.h (inhibit_x_resources): Declare it extern.
5692
5693 * w32reg.c (x_get_string_resource):
5694 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5695
e227ba05
EZ
56962009-09-17 Eli Zaretskii <eliz@gnu.org>
5697
362654a6
JB
5698 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5699 Add lisp/term/internal.elc.
e227ba05 5700
742d40e8
SM
57012009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5702
5703 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5704 (bug#4461).
5705
005bd5a2
DN
57062009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5707
5708 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5709
5710 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5711 (OBJECTS_MACHINE): Remove, unused.
5712
f9af9719
SM
57132009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5714
5715 * frame.c (x_get_resource_string): Remove unused.
5716
0307c7d2
JD
57172009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5718
5719 * xterm.c (x_new_font): Call change_frame_size before calling
5720 x_set_window_size, in case frame size won't change.
5721
5722 * frame.c (x_set_font): Remove dead code.
5723
428b13d6
SM
57242009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5725
5726 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5727
5766c380
SM
57282009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5729
5730 * lread.c (Fload): Don't output a message after loading an obsolete
5731 package any more (done in Lisp now).
5732
2fd0161b
CY
57332009-09-12 Chong Yidong <cyd@stupidchicken.com>
5734
5735 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5736
bc5e75b6
SM
57372009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5738
5739 * keymap.c (Fwhere_is_internal): Use nconc2.
5740
c31c985e
AM
57412009-09-11 Alan Mackenzie <acm@muc.de>
5742
5743 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5744 batch mode.
5745
78012bd2
AS
57462009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5747
5748 * xdisp.c (display_mode_element): Detect cycles.
5749
9d889332
SM
57502009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5751
5752 * keymap.c (where_is_internal): Don't erroneously return nil right after
5753 filling the cache.
5754 (where_is_internal_1): Fix up typo.
5755
7ab5d780
GM
57562009-09-11 Glenn Morris <rgm@gnu.org>
5757
5758 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5759 share a common doc-string.
5760
5238a749
SM
57612009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5762
66d77eda
SM
5763 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5764 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5765
5238a749
SM
5766 * keymap.c (QCadvertised_binding): New constant.
5767 (syms_of_keymap): Initialize it.
5768 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5769 if applicable.
5770
19f48442
SM
57712009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5772
50d4ba39
SM
5773 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5774 (parse_menu_item): Streamline since bindings are recomputed all the
5775 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5776 more and don't support lmenu's menu-alias any more either.
5777
a88a5372
SM
5778 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5779 (where_is_internal): Strip it down to only traverse the keymaps.
5780 Move the cache handling from Fwhere_is_internal to here.
5781 (Fwhere_is_internal): Move the handling of remapping and the choice of
5782 the best binding from where_is_internal to here.
5783 Unify the cached/noncached paths, so remapping is also handled
5784 correctly when the cache is used, and so the cache can be used to
5785 speed up remap-handling when applicable.
5786 Give preference to non-remapped bindings.
5787 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5788 non-remapped bindings.
5789 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5790 command remapping.
5791
19f48442
SM
5792 * xdisp.c (display_mode_element): Move list length limit from 50 to
5793 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5794
599498c3 57952009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5796
5797 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5798
f9b7b5ac
SM
57992009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5800
a53af587
JB
5801 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5802 (Bug#4334)
5803
f9b7b5ac
SM
5804 * keymap.c (where_is_internal): Filter out shadowed remappings.
5805 Assume that where_is_internal returns unshadowed bindings to simplify
5806 the code and get rid of the gotos. Use ASIZE.
5807
04f4b72d
JD
58082009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5809
4da146f2
JD
5810 * xterm.c (x_focus_changed): If we get a focusout and pointer
5811 is invisible, make it visible.
5812
04f4b72d
JD
5813 * xterm.h: Remove condition for declaration of
5814 x_*_window_to_frame.
5815
7cef7ce3
SM
58162009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5817
5818 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5819 initial terminal as well.
5820
a54fa5b7
JD
58212009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5822
5823 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5824 x_menubar_window_to_frame.
a54fa5b7 5825
50426a04 5826 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5827 (XTmouse_position): Do not return valid positions
5828 for clicks in the menubar and the toolbar for Gtk+.
5829
5830 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5831 if the widget for the event has the same top level as a frame,
5832 return the frame.
5833 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5834 internal windows, bug #4122.
5835 (x_non_menubar_window_to_frame): Remove.
5836
5a021dd0
GM
58372009-09-02 Glenn Morris <rgm@gnu.org>
5838
5839 * buffer.c (default-major-mode): Move most of the doc from here...
5840 (major-mode): ... to here.
5841
548fe2f3
NR
58422009-08-30 Nick Roberts <nickrob@snap.net.nz>
5843
5844 * process.c (wait_reading_process_output): Keep the descriptor
5845 when pty is used by a non-child process, e.g., in I/O buffer of
5846 GDB this allows inferior to be restarted.
5847
e0840eef
EZ
58482009-08-29 Eli Zaretskii <eliz@gnu.org>
5849
5850 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5851 both branches into one.
5852
82e98df4
SM
58532009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5854
5855 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5856 (main): Use enable-multibyte-characters rather than
5857 default-enable-multibyte-characters. Output a warning message when
5858 running a unibyte session.
5859
890617cb
YM
58602009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5861
5862 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5863 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5864 (copy_data_segment): Also copy __program_vars section.
5865 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5866 (dump_it) [LC_DYLD_INFO]: Use it.
5867
5868 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5869
e7adeadc
EZ
58702009-08-28 Eli Zaretskii <eliz@gnu.org>
5871
5872 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5873 $(SRC)/buildobj.h.
5874 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5875 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5876 $(SRC)/buildobj.h.
5877 (clean): Add buildobj.h.
5878
3ed8bbdc
TZ
58792009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5880
5881 * print.c (print_object): Set escapeflag to 1 when printing
5882 hashtable keys and values.
5883
155a6764
SM
58842009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5885
5886 * lread.c (read_integer): Use doubles (and potentially return a float
5887 number) as we do in string-to-number.
5888 (read1): Use strtol to read integers, signal errors on strtol's
5889 overflow and use floats if strtol's output is too large for
5890 Elisp integers.
5891
877610de
EZ
58922009-08-27 Eli Zaretskii <eliz@gnu.org>
5893
5894 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5895 (make-buildobj-SH): Fix last change.
5896 (SRC): Move to before where it's first used.
5897
ef73e7be
KH
58982009-08-27 Kenichi Handa <handa@m17n.org>
5899
550c8289
KH
5900 * process.c (send_process): Use encode_coding_object instead of
5901 encode_coding_string to perform eol-conversion even if the string
5902 is unibyte.
5903
60afa08d
KH
5904 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5905 character.
5906
ef73e7be 5907 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5908 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5909
7b3a82d7
DN
59102009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5911
5654bf63
DN
5912 * callproc.c (Fcall_process): Remove always true #if.
5913
7b3a82d7
DN
5914 * lisp.h: Replace #if 0 code for checking with text pointing to
5915 the --enable-checking configure flag.
5916
5917 * emacs.c (main): Mention the --enable-profiling configure flag
5918 instead of using CFLAGS.
5919
878bde49
KR
59202009-08-26 Ken Raeburn <raeburn@raeburn.org>
5921
5922 * Makefile.in (buildobj.h): New target.
5923 (doc.o): Depend on it.
5924 (temacs${EXEEXT}): Don't generate buildobj.lst.
5925 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5926 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5927 ($(BLD)/doc.$(O)): Depend on it.
5928 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5929 provided by Eli Zaretskii.)
5930 ($(TEMACS)): Don't generate buildobj.lst.
5931 * doc.c: Include buildobj.h.
5932 (buildobj): New static variable.
5933 (Fsnarf_documentation): Use it, instead of opening and reading
5934 buildobj.lst.
5935
1574224c
MA
59362009-08-25 Michael Albinus <michael.albinus@gmx.de>
5937
5938 * dbusbind.c (Fdbus_call_method)
5939 (Fdbus_call_method_asynchronously): Use English numeric format for
5940 timeout values in doc string.
5941
d9da2f45
KH
59422009-08-25 Kenichi Handa <handa@m17n.org>
5943
ef73e7be
KH
5944 * alloc.c (mark_char_table): New function.
5945 (mark_object): Use mark_char_table for a char-table.
5946
d9da2f45
KH
5947 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5948 (CHAR_TABLE_REF): Use it.
5949
c8edcc01
KR
59502009-08-23 Ken Raeburn <raeburn@raeburn.org>
5951
5952 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5953 before invoking the newly build emacs to check for load-path
5954 shadowing.
5955
7763401b
GM
59562009-08-22 Glenn Morris <rgm@gnu.org>
5957
5958 * Makefile.in (bootstrap_exe): New variable.
5959 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5960 Use ${bootstrap_exe}.
5961
729eadda
EZ
59622009-08-22 Eli Zaretskii <eliz@gnu.org>
5963
5964 * coding.h (encode_coding_string): Don't encode unibyte strings.
5965 (Bug#4047)
5966
eb4c6ace
MA
59672009-08-22 Michael Albinus <michael.albinus@gmx.de>
5968
5969 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5970
5971 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5972 intended as hotfix only.
5973 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5974
36e34d1b
AR
59752009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5976
5977 * nsterm.m (ns_get_color): Update documentation properly for last
5978 change, and clean up loose ends in the code left by it. Fix
5979 longstanding bug with 16-bit hex parsing, and add support for
5980 yet another X11 format (rgb:r/g/b) for compatibility.
5981 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5982 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5983
f983eb8a
SM
59842009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5985
5986 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5987
3f56d3c6
MA
59882009-08-20 Michael Albinus <michael.albinus@gmx.de>
5989
5990 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5991 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5992 (xd_initialize, xd_pending_messages): Check, whether
5993 $DBUS_SESSION_BUS_ADDRESS is set.
5994
fb641d68
YM
59952009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5996
5997 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5998
5999 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6000
cf59a374
GM
60012009-08-20 Glenn Morris <rgm@gnu.org>
6002
6003 * emacs.c (system-type): Doc fix.
6004
1373f3be
SM
60052009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6006
6007 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6008 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6009
058ed861
MA
60102009-08-18 Michael Albinus <michael.albinus@gmx.de>
6011
1373f3be
SM
6012 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6013 New functions.
058ed861
MA
6014 (xd_initialize): Revert change from 2009-08-16.
6015
563a866e 60162009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6017
6018 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6019 font-group vector, return nil.
5fc05db0 6020
e42bdf01
CY
60212009-08-17 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * process.c (status_notify): Don't perform redisplay.
6024 (Fdelete_process, list_processes_1, process_send_signal):
6025 Expliticly perform redisplay.
6026 (wait_reading_process_output): Always check process status, but
6027 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6028
4230ab74
KR
60292009-08-17 Ken Raeburn <raeburn@raeburn.org>
6030
1373f3be 6031 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6032 (XFLOAT_INIT): New macro for storing a float value.
6033 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6034 * fns.c (sxhash): Copy out the value of a float in order to
6035 examine its bytes.
6036 * dbusbind.c (xd_append_arg): Likewise.
6037
4230ab74
KR
6038 * emacs.c (main): Don't call syms_of_data twice.
6039
a0645cdd
MA
60402009-08-16 Michael Albinus <michael.albinus@gmx.de>
6041
6042 * dbusbind.c (xd_initialize): Add connection file descriptor to
6043 input_wait_mask, in order to let select() detect, whether a new
6044 message has been arrived.
ca4f31ea 6045 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6046
485db0ba
MA
60472009-08-15 Michael Albinus <michael.albinus@gmx.de>
6048
1373f3be
SM
6049 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6050 New functions.
485db0ba
MA
6051
6052 * lisp.h (xd_pending_messages): Declare.
6053
6054 * keyboard.c (readable_events): Call xd_pending_messages.
6055
b5b98ff4
CY
60562009-08-15 Chong Yidong <cyd@stupidchicken.com>
6057
1373f3be 6058 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6059
f8354c6e
CY
6060 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6061
b5b98ff4
CY
6062 * buffer.c (set_buffer_internal_1)
6063 (swap_out_buffer_local_variables): Check for unbound local
6064 variables (Bug#4138).
6065
8b9fc636
EZ
60662009-08-14 Eli Zaretskii <eliz@gnu.org>
6067
6068 * process.c (create_pty): Fix last change.
6069
ce959360
CY
60702009-08-13 Chong Yidong <cyd@stupidchicken.com>
6071
6072 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6073 (xbm_load_image): Caller changed.
64b807c9 6074 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6075
c7baf7e9
NR
60762009-08-13 Nick Roberts <nickrob@snap.net.nz>
6077
6078 * process.c (create_pty): New function.
6079 (Fstart_process): Use it to allow Emacs to just associate a pty
6080 with the buffer. See associated change in gdb-mi.el.
6081 (list_processes_1): Deal with no program name.
6082 (start_process_unwind): Use pid == -2 to mean no process.
6083
1ac9108a
SM
60842009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6085
6086 * cmds.c (nonundocount): New global variable.
6087 (keys_of_cmds): Initialize it.
6088 (Fself_insert_command): Use it to combine upto 20 sequential chars
6089 into a single undo entry, just like the Qself_insert_command code in
6090 keyboard.c does.
6091 Call frame_make_pointer_invisible, also like the Qself_insert_command
6092 code in keyboard.c does.
6093 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6094 than its own local replacement for it.
6095
e267324c
KR
60962009-08-10 Ken Raeburn <raeburn@raeburn.org>
6097
1ac9108a 6098 * fns.c (concat): Don't re-set string length to its current value.
77437343 6099
1ac9108a
SM
6100 * coding.h (decode_coding_string, encode_coding_string):
6101 Use SBYTES macro.
f0bed503 6102
1ac9108a 6103 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6104 (doprnt): Merge with doprnt1, discarding lispstrings code.
6105 * lisp.h (doprnt_lisp): Don't declare.
6106
416e006d
JL
61072009-08-07 Juri Linkov <juri@jurta.org>
6108
6109 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6110
6f7d5780
DN
61112009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6112
6113 * print.c (syms_of_print): Undo previous change.
6114
f19a0f5b
TZ
61152009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6116
6117 * lread.c (read1, syms_of_lread): Read hashtables back from the
6118 readable format.
6119
6120 * print.c (print_preprocess, print_object): Print hashtables fully
6121 and readably.
6122 (syms_of_print): Provide 'hashtable-print-readable.
6123
b9173dc2
AR
61242009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6125
6126 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6127 no family set.
6128 (nsfont_open): Handle case when entity has no family.
6129
1586503c
AR
61302009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6131
6132 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6133 element, not a list, for match case.
6134
087048cd
KH
61352009-07-28 Kenichi Handa <handa@m17n.org>
6136
6137 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6138 rigidly.
6139
6140 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6141 font_parse_xlfd. Check font properties more rigidly.
6142
780c2506
DN
61432009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6144
31fd7c5c
JB
6145 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6146 bsd-common.h.
780c2506 6147
a8c0cc18
KH
61482009-07-27 Kenichi Handa <handa@m17n.org>
6149
6150 * xfaces.c (face_with_height): Call font_clear_prop.
6151
4fbe2306
CY
61522009-07-26 Chong Yidong <cyd@stupidchicken.com>
6153
111d9af3
CY
6154 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6155
6156 * xterm.c (x_term_init): Use Qx.
6157
4fbe2306
CY
6158 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6159
1ac9108a 6160 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6161 (ns_get_color): Revert 2009-07-16 change.
6162
beb0b7f9
EZ
61632009-07-25 Eli Zaretskii <eliz@gnu.org>
6164
6165 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6166 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6167
2baf5e76
KR
61682009-07-25 Ken Raeburn <raeburn@raeburn.org>
6169
1ac9108a
SM
6170 * coding.h (decode_coding_string, encode_coding_string):
6171 Use SCHARS macro.
8890e5f5 6172
2baf5e76 6173 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6174 (load_depth): Delete.
2baf5e76
KR
6175 (Qload_in_progress): New variable.
6176 (load_unwind): Don't reference load_depth or load_in_progress.
6177 (Fload): Likewise; specbind Qload_in_progress instead.
6178 (init_lread): Don't initialize load_depth.
6179 (syms_of_lread): Initialize and protect Qload_in_progress.
6180
1395c6f5
AR
61812009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6182
6183 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6184
4e2f36cf
AR
61852009-07-23 Yavor Doganov <yavor@gnu.org>
6186
6187 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6188
5dd9a6f7
AR
61892009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6190
6191 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6192 Bugs 3792, 3720, 2402.
6193 (ns_lookup_indexed_color): Check for bad index.
6194 (ns_index_color): Init unused slot to 0.
6195 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6196 Bug 3714, possibly 3082.
5dd9a6f7 6197
c902b920
JR
61982009-07-22 Jason Rumney <jasonr@gnu.org>
6199
1ac9108a
SM
6200 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6201 Position IME window at cursor (Bug#2570).
c902b920
JR
6202 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6203 (globals_of_w32fns): Dynamically load functions required above.
6204
6205 * w32term.c (w32_draw_window_cursor): Send message to reposition
6206 any IME window.
6207
090101cf
CY
62082009-07-21 Chong Yidong <cyd@stupidchicken.com>
6209
6210 * fileio.c: Revert 2009-07-16 changes.
6211 (Vauto_save_include_big_deletions): New variable.
6212 (Fdo_auto_save): Disable auto-save only if
6213 auto-save-include-big-deletions is nil.
6214
e6583e3d
CY
62152009-07-21 Chong Yidong <cyd@stupidchicken.com>
6216
6217 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6218 the overflowed pixels into account (Bug#3879).
6219
ece435a5
KR
62202009-07-21 Ken Raeburn <raeburn@raeburn.org>
6221
6222 * lread.c (load_depth): New variable.
6223 (Fload, load_unwind, init_lread): Set it to the load recursion
6224 depth; set load_in_progress as a simple boolean based on the
6225 current load_depth. (Bug#3892)
6226
40b2d973
AR
62272009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6228
6229 * nsfont.m (ns_has_attribute): Remove.
6230 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6231
10be7e0d
JL
62322009-07-18 Juri Linkov <juri@jurta.org>
6233
6234 * process.c (Fset_process_query_on_exit_flag): Mention killing
6235 a buffer in docstring.
6236
fa055055
KH
62372009-07-17 Kenichi Handa <handa@m17n.org>
6238
6239 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6240
042f7b69
YM
62412009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6242
6243 * nsfns.m (Fns_set_alpha): Remove function.
6244 (syms_of_nsfns): Don't defsubr it.
6245
6246 * nsterm.m (ns_get_color): Remove incompatible color formats.
6247 (ns_color_to_lisp): Generate #rrggbb color format string.
6248
4be941e3
RS
62492009-07-16 Richard Stallman <rms@gnu.org>
6250
6251 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6252 (Fset_buffer_auto_saved): Handle save_length = -2.
6253
4e6b227d
CY
62542009-07-16 Chong Yidong <cyd@stupidchicken.com>
6255
6256 * xterm.c (Qx_gtk_map_stock): New var.
6257
6258 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6259 of calling intern each time.
6260
a1856973
YM
62612009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6262
6263 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6264 does tiling.
6265
6266 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6267
497e54d8
KH
62682009-07-14 Kenichi Handa <handa@m17n.org>
6269
72d36834
KH
6270 * font.c (font_vconcat_entity_vectors): New function.
6271 (struct font_sort_data): New member font_driver_preference.
6272 (font_compare): Check font_driver_preference.
6273 (font_sort_entities): The format of the first argument changed.
6274 (font_delete_unmatched): Likewise.
6275 (font_list_entities): The return type changed.
6276 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6277 (font_find_for_lface): Adjuste for the above changes.
6278 Don't suppress the checking of C even if the repertory supports it.
6279 (Flist_fonts): Adjust for the above changes.
72d36834 6280
1ac9108a
SM
6281 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6282 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6283 Reject a font who has adstyle property that is different from a
6284 langname derived from registry property.
1ac9108a 6285 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6286
b6046155
EZ
62872009-07-13 Eli Zaretskii <eliz@gnu.org>
6288
6289 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6290 local copy of dirfilename.
6291
fb6b6049
KH
62922009-07-13 Kenichi Handa <handa@m17n.org>
6293
e2402a5e
KH
6294 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6295 against max_char.
6296
fb6b6049
KH
6297 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6298 calling XSYMBOL (sym).
6299
65156807
EZ
63002009-07-11 Eli Zaretskii <eliz@gnu.org>
6301
1ac9108a
SM
6302 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6303 New function.
6304 (directory_files_internal) [WINDOWSNT]:
6305 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6306 the filesystem of the directory is fast or slow.
6307
6308 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6309 file name.
6310 (is_slow_fs): New function.
6311 (stat): Use it to determine whether to issue more system calls to
6312 get accurate file attributes, when w32-get-true-file-attributes is
6313 `local'.
6314
e0ab5fcf
JD
63152009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6316
6317 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6318 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6319 parameter font-parameter as default to the font dialog.
6320
784ceded
KH
63212009-07-10 Kenichi Handa <handa@m17n.org>
6322
6323 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6324
fb8edc0b
EZ
63252009-07-09 Eli Zaretskii <eliz@gnu.org>
6326
1ac9108a 6327 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6328
fb8edc0b
EZ
6329 * w32.c (stat): Treat UNC file names as residing on remote
6330 drives. (Bug#3542)
6331
635c75b1
KH
63322009-07-09 Kenichi Handa <handa@m17n.org>
6333
6334 * fontset.c (fontset_find_font): Fix previous change.
6335
c1d5ce94
MA
63362009-07-08 Michael Albinus <michael.albinus@gmx.de>
6337
6338 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6339 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6340 error flag.
6341
edb61b39
KH
63422009-07-08 Kenichi Handa <handa@m17n.org>
6343
374bf7e4
KH
6344 * fontset.c (fontset_find_font): Fix the logic of handling
6345 charset_matched.
6346 (font_for_char): Delete unused var.
6347 (generate_ascii_font_name): Delete it.
6348
edb61b39
KH
6349 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6350
6351 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6352 (encode_coding_sjis): Fix the code range check.
6353
0f3f018c
CY
63542009-07-07 Chong Yidong <cyd@stupidchicken.com>
6355
6356 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6357 (Fexpand_file_name): Copy string data properly (Bug#3772).
6358
fcaf6f3a
JD
63592009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6360
6361 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6362 first MapNotify.
6363
6809ca75
KH
63642009-07-07 Kenichi Handa <handa@m17n.org>
6365
6366 * character.h (unibyte_has_multibyte_table): Delete extern.
6367 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6368
6369 * charset.c (Fset_charset_priority): Update charset_unibyte.
6370 (syms_of_charset): Initialize charset_unibyte.
6371
6372 * character.c (unibyte_has_multibyte_table): Delete it.
6373 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6374 charset_unibyte.
6375 (multibyte_char_to_unibyte_safe): Likewise.
6376 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6377
1ac9108a 6378 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6379 (x_produce_glyphs): Likewise.
6380
6381 * .gdbinit (xcharset): Fix the treating $arg0.
6382
ad9e2d54
EZ
63832009-07-04 Eli Zaretskii <eliz@gnu.org>
6384
6385 Emulation of `getloadavg' on MS-Windows.
50426a04 6386 * w32.c: Include float.h.
ad9e2d54
EZ
6387 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6388 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6389 (get_native_system_info, get_system_times): New functions.
6390 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6391 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6392 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6393 g_b_init_get_system_times, and num_of_processors.
6394
0a3472c7
JR
63952009-07-03 Jason Rumney <jasonr@gnu.org>
6396
6397 * w32term.c (w32_initialize): Use standard types.
6398
80904120
EZ
63992009-07-03 Eli Zaretskii <eliz@gnu.org>
6400
6401 * dired.c (Ffile_attributes): Decode user and group names by the
6402 locale's encoding. (Bug#3443)
6403
6978862d
DN
64042009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6405
f8d23104
DN
6406 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6407 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6408
6409 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6410
6411 * term.c (init_tty): Remove spurious #ifdef.
6412
6978862d
DN
6413 * m/mips.h: Mention this file is also used for netbsd.
6414 * m/pmax.h: Remove file.
6415
e044e4fc
JD
64162009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6417
6418 * xterm.h (struct x_display_info): Add invisible_cursor.
6419 (struct x_output): Add current_cursor.
6420
6421 * xterm.c (XTtoggle_invisible_pointer): New function.
6422 (x_define_frame_cursor): Don't define cursor if invisible or the
6423 same as before. Set current_cursor.
6424 (x_create_terminal): Set toggle_invisible_pointer_hook.
6425
6426 * xfns.c (make_invisible_cursor): New function.
6427 (x_set_mouse_color): Call make_invisible_cursor.
6428 Set current_cursor.
6429 (x_window): Set current_cursor.
6430
6431 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6432
6433 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6434 inserting a character.
6435 (read_avail_input): Call frame_make_pointer_visible.
6436
6437 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6438 (frame_make_pointer_invisible, frame_make_pointer_visible):
6439 New functions.
e044e4fc
JD
6440 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6441
6442 * frame.h: Declare frame_make_pointer_invisible and
6443 frame_make_pointer_visible.
6444 (struct frame): Add pointer_invisible.
6445
574c8efa
JD
64462009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6447
7b507248
JD
6448 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6449 frame isn't visible.
6450 (xg_frame_resized): If width/height is -1, get size of window
6451 from X server.
6452
6453 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6454 for MapNotify.
6455
835bdaa7 6456 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6457 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6458 (flush_and_sync): Reintroduce.
574c8efa 6459
3f1c6666 64602009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6461
31fd7c5c 6462 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6463
6464 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6465 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6466
6467 * frame.h: Declare Qsticky.
6468
cad9ef74
JD
6469 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6470
6471 * nsfns.m (ns_frame_parm_handlers): Ditto.
6472
6473 * frame.c: Declare Qsticky.
6474 (frame_parms): Add sticky.
6475
6476 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6477
6478 * xterm.h: Declare x_set_sticky.
6479
6480 * xterm.c (x_set_sticky): New function.
6481
69b16610
JD
6482 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6483 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6484 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6485
6486 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6487
6488 * frame.c: Qmaximized is new.
6489 (x_set_frame_parameters): Do not handle fullscreen specially.
6490 Only set width and height if explicitly set.
6491 (x_set_fullscreen): Handle Qmaximized.
6492 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6493 (syms_of_frame): Initialize Qmaximized.
6494
1ac9108a
SM
6495 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6496 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6497
6498 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6499 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6500 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6501 set gravity to NorthWestGravity when USE_GTK.
6502 (set_wm_state): New function.
31fd7c5c 6503 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6504 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6505 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6506 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6507 to x_real_positions and x_fullscreen_adjust.
6508
6509 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6510 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6511 flush_and_sync.
6512 (xg_height_changed): New function.
6513 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6514 and gtk_window_set_policy. Set frame gravity after parsing the
6515 geometry string.
3f1c6666
JD
6516 (xg_update_frame_menubar, free_frame_menubar)
6517 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6518 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6519 Remove calls to xg_frame_set_char_size.
6520
fd503d99
KH
65212009-07-01 Kenichi Handa <handa@m17n.org>
6522
6523 * keyboard.c (decode_keyboard_code): New function.
6524 (tty_read_avail_input): Decode the input bytes if necessary.
6525
1ac9108a
SM
6526 * coding.c (setup_coding_system):
6527 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6528 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6529 use Qno_conversion.
6530
24ed93fb
YM
65312009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6532
6533 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6534
99061dfc
CY
65352009-06-30 Chong Yidong <cyd@stupidchicken.com>
6536
1ac9108a 6537 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6538
ff90fbde
JR
65392009-06-30 Jason Rumney <jasonr@gnu.org>
6540
6541 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6542 is already loaded.
6543 Set user model ID if supported (bug#1849).
6544
5f445726
JM
65452009-06-29 Jim Meyering <meyering@redhat.com>
6546
6547 Remove useless if-before-xfree test.
6548 * nsfont.m (nsfont_close): Remove useless test.
6549 * term.c (delete_tty): Likewise.
6550 * w32.c (system_process_attributes): Likewise.
6551 * w32font.c (w32font_close): Likewise.
6552 * xfaces.c (x_free_gc): Likewise.
6553 * xselect.c (buffer): Likewise.
6554
b9607587
AS
65552009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6556
6557 * process.c (send_process): Keep decoded string in a local
6558 variable and protect it from GC. (Bug#3521)
6559
89ba96f4
EZ
65602009-06-28 Eli Zaretskii <eliz@gnu.org>
6561
6562 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6563 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6564
098a1589
CY
65652009-06-28 Chong Yidong <cyd@stupidchicken.com>
6566
485422be
CY
6567 * xdisp.c (start_display, handle_face_prop)
6568 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6569 (redisplay_window, try_window_id, produce_image_glyph):
6570 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6571
098a1589
CY
6572 * xterm.c (x_update_window_begin, x_new_focus_frame)
6573 (x_scroll_bar_handle_click, handle_one_xevent)
6574 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6575 (x_make_frame_visible, x_make_frame_invisible)
6576 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6577 code chunks that are now obsolete.
6578
78c38319
MA
65792009-06-28 Michael Albinus <michael.albinus@gmx.de>
6580
6581 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6582 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6583 for hours, when optimzation is enabled.
6584 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6585 (xd_read_message): Make them static.
6586
4189ed40
CY
65872009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6588
6589 * term.c (turn_on_face): Allow simultaneously bold and dim
6590 terminal faces (Bug#3530).
6591
cd9b5e16
CY
65922009-06-27 Chong Yidong <cyd@stupidchicken.com>
6593
4e23bedb
CY
6594 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6595
cd9b5e16
CY
6596 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6597 truncation glyphs (Bug#3686).
6598
07cc3c35
GM
65992009-06-27 Glenn Morris <rgm@gnu.org>
6600
6601 * m/pmax.h: Restore file, with only netbsd portions.
6602
31fd7c5c 66032009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6604
cd9b5e16 6605 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6606
42d4a64f
KH
66072009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6608
6609 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6610 the arg FORCE_SYMBOL.
6611
930fe55b 66122009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6613
6614 * fontset.c (fontset_find_font): When a usable rfont_def is found
6615 in a fallback font-group, make it the first element of the group.
6616
57ebc3fd
CY
66172009-06-24 Chong Yidong <cyd@stupidchicken.com>
6618
6619 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6620
f084f942
KH
66212009-06-24 Kenichi Handa <handa@m17n.org>
6622
6623 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6624 set for C.
6625 (fontset_font): Record the availability of a font for C both in
6626 the realized fontsets of the current one and the default one.
6627
2f686c87
DN
66282009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6629
6630 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6631 conditional, it is always defined on AIX.
6632
666e158e
MB
66332009-06-23 Miles Bader <miles@gnu.org>
6634
6635 * window.c (Vrecenter_redisplay): New variable.
6636 (syms_of_window): Initialize it.
6637 (Qtty): New extern declaration.
6638 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6639
c6da7cd2
JM
66402009-06-23 Jim Meyering <meyering@redhat.com>
6641
1ac9108a
SM
6642 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6643 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6644 pointer dereferences are guaranteed to be valid.
c6da7cd2 6645
678dca3d
KH
66462009-06-23 Kenichi Handa <handa@m17n.org>
6647
74d75424
KH
6648 * emacs.c (main): Call init_font ().
6649
6650 * font.h (Vfont_log): Extern it.
6651 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6652
6653 * font.c (font_sort_entities, font_list_entities)
6654 (font_matching_entity, font_open_entity)
6655 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6656 (Vfont_log): Delete static.
6657 (font_log_env_checked): Delete this variable.
6658 (font_add_log): Don't check font_log_env_checked.
6659 (font_deferred_log): Check Vfont_log.
6660 (init_font): New function.
6661
678dca3d
KH
6662 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6663
6664 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6665
6666 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6667
6668 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6669
6670 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6671 (face_for_char): Don't call font_deferred_log here.
6672 (font_for_char): Likewise.
6673
8a668709
CY
66742009-06-22 Chong Yidong <cyd@stupidchicken.com>
6675
9a01ee33
CY
6676 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6677 rather than its background_width for drawing the overline and
6678 underline (Bug#489).
6679
6680 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6681 rather than its background_width for drawing the overline and
6682 underline (Bug#489).
ec7c9926
CY
6683 (xg_default_icon_file): New variable.
6684 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6685 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6686
8a668709
CY
6687 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6688 (load_overlay_strings): Remove externs.
6689 (fast_find_position): Function deleted.
6690 (mouse_face_from_buffer_pos): New function, based on
6691 fast_find_position. Correctly handle before-strings,
6692 display-strings, and after-strings (Bug#1220).
6693 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6694
4d4c02d8
CY
66952009-06-21 Chong Yidong <cyd@stupidchicken.com>
6696
1ac9108a 6697 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6698 (move_it_in_display_line_to, move_it_in_display_line_to)
6699 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6700
70243478
CY
67012009-06-21 Chong Yidong <cyd@stupidchicken.com>
6702
6703 * Branch for 23.1.
6704
13087e59
JR
67052009-06-21 Jason Rumney <jasonr@gnu.org>
6706
6707 * w32term.c (keyboard_codepage): New static variable.
6708 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6709 (w32_read_socket) [WM_CHAR]: Use it to decode character
6710 input (bug#3237).
6711 (w32_initialize): Initialize it.
6712 (codepage_for_locale): New function.
6713
4735b74e
KR
67142009-06-20 Ken Raeburn <raeburn@raeburn.org>
6715
6716 * process.c (status_message): Pass Faset index argument as a lisp
6717 object, so as to work with USE_LISP_UNION_TYPE.
6718
0e727afa
YM
67192009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6720
6721 * coding.c (Ffind_coding_systems_region_internal):
6722 Cache checked characters.
6723
cf299835
KH
67242009-06-18 Kenichi Handa <handa@m17n.org>
6725
1ac9108a 6726 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6727
90f20d94
AS
67282009-06-18 Andreas Schwab <aschwab@redhat.com>
6729
6730 * xdisp.c (redisplay_internal): Check that the frame is still
6731 live after redisplay of its windows.
6732 (redisplay_windows): Check that the window is still live.
6733
7f1faf1c
KH
67342009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6735
6736 * coding.c (detect_coding_utf_16): Fix previous change.
6737
cc13543e
KH
67382009-06-16 Kenichi Handa <handa@m17n.org>
6739
6740 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6741 UTF-16 by checking the dispersion of Eth and Oth bytes.
6742
977b85f4
AS
67432009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6744
6745 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6746
66bd43d1
KH
67472009-06-15 Kenichi Handa <handa@m17n.org>
6748
6749 * process.c (status_message): Fix previous change. Be sure to
6750 decode a localized string.
6751
cb5ca9c5
YM
67522009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6753
6754 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6755 add comment explaining why.
6756
ec7709ba 67572009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6758
ec7709ba 6759 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6760
4b7f335c
AR
67612009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6762
6763 * nsfont.m (ns_attribute_value): Remove.
6764 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6765 (ns_has_attribute): Shrink the normal range.
6766 (ns_findfonts): Don't worry about requested spec in determining
6767 need for synthItal.
e41820ee 6768 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6769
73b26103
SZ
67702009-06-14 Seiji Zenitani <zenitani@mac.com>
6771
6772 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6773
5753e4da
KH
67742009-06-11 Kenichi Handa <handa@m17n.org>
6775
6776 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6777 overhang for the static composition case.
6778
3561b671
KH
67792009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6780
5753e4da
KH
6781 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6782 overhang for the automatic composition case.
6783
3561b671
KH
6784 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6785 composition case.
6786
852bbd41
CY
67872009-06-10 Chong Yidong <cyd@stupidchicken.com>
6788
6789 * xdisp.c (get_next_display_element): When handling wrap-prefix
6790 and line-prefix, treat \n as a control character (bug#3502).
6791
9903d1e6
KH
67922009-06-10 Kenichi Handa <handa@m17n.org>
6793
6794 * font.c (font_parse_family_registry): Fix for one-char foundry.
6795 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6796
0bcbaaaa
CY
67972009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6798
6799 * process.c (status_message): Fix handling of multibyte signal
6800 string (Bug#3499).
6801
40aa3f13
JM
68022009-06-09 Jim Meyering <meyering@redhat.com>
6803
1f80c7e2
CY
6804 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6805 color name is missing.
40aa3f13 6806
72d51285
KH
68072009-06-09 Kenichi Handa <handa@m17n.org>
6808
6809 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6810 FROM-CODE and TO-CODE are codepoints of CHARSET.
6811
c1d04d84
AR
68122009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6813
6814 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6815
68162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6817
6818 Changes to support :script/:lang/:otf in NS font driver.
6819 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6820 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6821 indicate not part of font driver interface, and change callers.
6822 (ns_get_family): Remove pointless null check.
6823 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6824 ns_spec_to_descriptor, ns_descriptor_to_entity.
6825 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6826 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6827 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6828 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6829 (ns_get_req_script, ns_accumulate_script_ranges)
6830 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6831 New functions.
6832 (nsfont_list, nsfont_match): Use ns_findfonts.
6833 (nsfont_open): Use font descriptor instead of traits.
6834 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6835 (dump_glyphstring): Rename to ns_dump_glyphstring.
6836
c7eb9816
AR
6837 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6838
c1d04d84
AR
6839 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6840
6841 * fontset.c (fontset_from_font): Remove NS-specific code.
6842
ec7709ba 68432009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6844
6845 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6846 nonactive windows.
6847
31fd7c5c 68482009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6849
1ac9108a 6850 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6851
68852c13 68522009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6853
6854 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6855
6756cd1d
CY
68562009-06-07 Chong Yidong <cyd@stupidchicken.com>
6857
6858 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6859 account for the overflowing of newlines into the last glyph on the
6860 display line (Bug#3482).
6861
28bf482a
DR
68622009-06-05 David Reitter <david.reitter@gmail.com>
6863
ec7709ba
JB
6864 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6865 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6866 Fns_selection_exists_p, Fns_selection_owner_p.
6867
fdb55376
JR
68682009-06-03 Jason Rumney <jasonr@gnu.org>
6869
6870 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6871 available. (Bug#3379)
6872
05129fbe
KH
68732009-05-29 Kenichi Handa <handa@m17n.org>
6874
1ac9108a
SM
6875 * coding.c (get_translation_table):
6876 Check Venable_character_translation.
05129fbe 6877
ec7709ba 68782009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6879
ec7709ba
JB
6880 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6881 (x_make_frame_visible): Move frame to front rather than calling
15891144 6882 ns_raise_frame().
ec7709ba 6883 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6884 isn't key window.
ec7709ba 6885 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6886 drawRect may be called by NSView even if the frame is hidden.
6887
ec7709ba
JB
6888 * nsfns.m (Fx_create_frame): Follow other ports in
6889 determining visibility; default to t. Ensure async_visible is set.
15891144 6890
21f73755
EZ
68912009-05-23 Eli Zaretskii <eliz@gnu.org>
6892
6893 * dired.c (Ffile_attributes): Doc fix.
6894
34001e41
CY
68952009-05-22 Chong Yidong <cyd@stupidchicken.com>
6896
6897 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6898
46306a17
SM
68992009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6900
6901 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6902 and xfont_scratch_props.
6903 (syms_of_xfont): Do it here instead.
6904 (xfont_find_ccl_program): Delete, unused.
6905 (xfont_open): Delete unused var `i'.
6906
ef6e0694
KH
69072009-05-21 Kenichi Handa <handa@m17n.org>
6908
6909 * fontset.c (Qlatin): Don't make it static.
6910
46306a17
SM
6911 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6912 New functions.
ef6e0694
KH
6913 (xfont_scripts_cache, xfont_scratch_props): New variables.
6914 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6915 (xfont_list_pattern): Argument changed. Callers changed.
6916 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6917 (xfont_list): Don't reject a font spec with :script property.
6918 (xfont_has_char): Fix setting of encoding.
6919 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6920 xfont_scratch_props.
6921
69222009-05-19 Kenichi Handa <handa@m17n.org>
6923
46306a17 6924 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6925 Callers changed.
6926
69272009-05-18 Kenichi Handa <handa@m17n.org>
6928
6929 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6930
ac71ced7
SM
69312009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6932
6933 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6934 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6935
1c6d1051
YM
69362009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6937
6938 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6939 (x_delete_terminal): Dissociate resource database from display and
6940 then call XrmDestroyDatabase before closing display.
6941
9b9b779c
AR
69422009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6943
6944 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6945 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6946 whether selected frame is viable before raising it (based on patch
6947 by David Reitter), and improve commentary.
6948 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6949
cccd42d5
KH
69502009-05-15 Kenichi Handa <handa@m17n.org>
6951
6952 * font.c (Ffont_spec): Check arguments.
6953
337fbd17
CY
69542009-05-14 Chong Yidong <cyd@stupidchicken.com>
6955
6956 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6957 weight when testing attributes (Bug#3282).
6958
47a6002f
JD
69592009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6960
6961 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6962 what we expect to get in the next ConfigureNotify event.
6963
9cb363db
YM
6964 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6965 before Xft one (Bug#1696).
6966
b9126609
CY
69672009-05-07 David Reitter <david.reitter@gmail.com>
6968
6969 * nsfns.m (Fx_display_planes): Compute bitplanes using
6970 NSBitsPerPixelFromDepth (Bug#3207).
6971
27a69fd9
CY
69722009-05-10 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6975
00f37552
TTN
69762009-05-10 Ulrich Mueller <ulm@gentoo.org>
6977
6978 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6979
2d82a920
DR
69802009-05-07 David Reitter <david.reitter@gmail.com>
6981
ec7709ba
JB
6982 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6983 Respect mouse face background.
2d82a920 6984
46b0d52d
DR
69852009-05-07 David Reitter <david.reitter@gmail.com>
6986
ec7709ba
JB
6987 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6988 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6989 in ns_update_begin and ns_update_end.
6990
ce1b23bb
SM
69912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6992
5996e1b7
SM
6993 * nsfns.m (ns_get_screen): Rewrite.
6994 Don't presume selected-frame is of type `ns'.
6995
ba98e3a0
SM
6996 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6997 all drivers.
6998
ce1b23bb
SM
6999 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7000
bcda200f
YM
70012009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7002
7003 * keyboard.h (add_user_signal): Fix typo in extern.
7004
7005 * lisp.h (add_user_signal): Remove extern.
7006
7007 * unexelf.c (unexec): Consider a section to precede the .bss section
7008 if its addresses overlap that of .bss.
7009 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7010 instead of dumping process.
7011
864660a2
SM
70122009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7015
50da4e56
SM
70162009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7017
7018 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7019
51520a1a
DN
70202009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7021
7022 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7023 any statements.
7024
409ea3a1
AS
70252009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7026
59c4c60f
AS
7027 * process.c (read_process_output): Make sure the current buffer is
7028 always restored.
7029
409ea3a1
AS
7030 * coding.c (record_conversion_result): Don't modify
7031 Vlast_code_conversion_error for successful result.
7032 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7033
56f00ed2
KH
70342009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7035
7036 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7037 (load_charset_map): Remove unnecessary code.
56f00ed2 7038
4491c9d2
DR
70392009-04-30 David Reitter <david.reitter@gmail.com>
7040
35f5b128 7041 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7042 through f24.
7043
6970f632
CY
70442009-04-30 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7047
7048 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7049 face_at_buffer_position.
7050 (face_before_or_after_it_pos, get_next_display_element)
7051 (note_mouse_highlight): Update face_at_buffer_position call.
7052
7053 * term.c (term_mouse_highlight):
7054 * msdos.c (IT_note_mouse_highlight):
7055 * fontset.c (Finternal_char_font):
35f5b128 7056 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7057
7058 * dispextern.h (face_at_buffer_position): Update prototype.
7059
0c616f63
KH
70602009-04-30 Kenichi Handa <handa@m17n.org>
7061
35f5b128 7062 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7063
ad3aaf33
AS
70642009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7065
7066 * callproc.c (Fcall_process): Fix GC protection. Make sure
7067 current buffer is always restored.
7068
c3c963a0
YM
70692009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7070
7071 * atimer.c (init_atimer): Also clear stopped_atimers.
7072
7073 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7074
7e3386cb
YM
7075 * process.c (create_process): Clean up merger residues of
7076 2008-07-17 change.
7077
91f68422
CY
70782009-04-29 Ulrich Mueller <ulm@gentoo.org>
7079
7080 * lread.c (Vread_circle): New variable.
7081 (read1): Disable recursive read if Vread_circle is nil.
7082
24b34550
KH
70832009-04-29 Kenichi Handa <handa@m17n.org>
7084
7085 * fontset.h (set_default_ascii_font): Delete extern.
7086
7087 * fontset.c (set_default_ascii_font): Delete this unused function.
7088
7089 * frame.c (x_set_font): When ARG is a font-object, check if the
7090 font-object matches with the ASCII font-spec of the frame's
9c358bda 7091 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7092
77bf07e1
AS
70932009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7094
7095 * fns.c (Flocale_info): Protect vector from GC during decoding.
7096
7097 * process.c (Fstart_process): Protect argv strings from GC during
7098 encoding.
7099
2c55aacf
AS
71002009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7101
7102 * sysdep.c: Include <ctype.h>.
7103
b892d3c9
DR
71042009-04-27 David Reitter <david.reitter@gmail.com>
7105
35f5b128 7106 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7107 Remove commented-out code.
7108
9d0644c4
JB
71092009-04-26 Johan Bockgård <bojohan@gnu.org>
7110
7111 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7112
b7053016
JR
71132009-04-25 Jason Rumney <jasonr@gnu.org>
7114
7115 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7116
4e8231f3
YM
71172009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7118
7119 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7120 Swap bytes in short integer if fringe bitmap width > 8.
7121
493dcf2c
KH
71222009-04-23 Kenichi Handa <handa@m17n.org>
7123
7124 * xfaces.c (Fx_list_fonts): If a font size is specified in
7125 PATTERN, set it in returned scalable fonts.
7126
401e9e57
CY
71272009-04-22 Chong Yidong <cyd@stupidchicken.com>
7128
708e05dc
CY
7129 * keyboard.c (Fset_input_meta_mode): Doc fix.
7130
7131 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7132
1ac9108a 7133 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7134
7135 * coding.c (Fterminal_coding_system): Doc fix.
7136
7137 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7138 (Fx_display_pixel_height, Fx_display_planes)
7139 (Fx_display_color_cells, Fx_server_max_request_size)
7140 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7141 (Fx_display_mm_height, Fx_display_mm_width)
7142 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7143 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7144 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7145 (check_x_display_info): Handle terminal objects instead of
7146 terminal ids.
7147
401e9e57
CY
7148 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7149 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7150 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7151 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7152
df80c7f0
KH
71532009-04-21 Kenichi Handa <handa@m17n.org>
7154
5a8f12af 7155 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7156 (font_score): Check AVGWIDTH too.
908567ef 7157
df80c7f0
KH
7158 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7159 worst case.
1ac9108a
SM
7160 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7161 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7162
705af33f
JR
71632009-04-19 Jason Rumney <jasonr@gnu.org>
7164
7165 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7166 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7167
7168 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7169 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7170 get_phys_cursor_geometry.
7171
b71ac3dd 7172 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7173 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7174 using get_phys_cursor_geometry.
7175
7176 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7177 correctly calculated.
7178
dc2933eb
JD
71792009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7180
1ac9108a
SM
7181 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7182 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7183 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7184 is deprecated.
7185
973e7849
AS
71862009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7187
7188 * font.c (font_put_frame_data): Use xfree instead of free.
7189
314d66f4
JB
71902009-04-17 Juanma Barranquero <lekktu@gmail.com>
7191
7192 * w32font.c (Qja, Qko): Remove declarations.
7193 (syms_of_w32font): Don't DEFSYM them.
7194
cf702558
CY
71952009-04-17 Chong Yidong <cyd@stupidchicken.com>
7196
7197 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7198
7199 * font.h (Qja, Qko): Extern them.
7200
7201 * ftfont.c (Qja, Qko): Remove declarations.
7202
7203 * xfont.c (Qja, Qko): Remove declarations.
7204
b50504f5
KH
72052009-04-17 Kenichi Handa <handa@m17n.org>
7206
bde25748
KH
7207 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7208 string from a vector to handle Latin-1 characters correctly.
7209
b50504f5
KH
7210 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7211 entity even if the cache hits.
7212
f4646fff
AS
72132009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7214
7215 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7216 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7217
e7deaab0
AS
7218 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7219 * lisp.h: Adjust prototypes.
7220
0a0e7d49
CY
72212009-04-16 Chong Yidong <cyd@stupidchicken.com>
7222
7223 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7224 change (Bug#3003).
7225
3c908a57
KH
72262009-04-16 Kenichi Handa <handa@m17n.org>
7227
1ac9108a 7228 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7229
7230 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7231 adstyle.
7232
7233 * ftfont.c (Qja, Qko): Don't make them static.
7234 (enum ftfont_cache_for): New enum.
7235 (fc_charset_table): Undo the previous change.
7236 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7237 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7238 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7239 non-scarable font, try to get AVERAGE_WIDTH.
7240 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7241 Change ft_face_cache from a list of a hash-table. Don't check
7242 `ja' and `ko' adstyle here.
7243 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7244 FTFONT_CACHE_FOR_CHARET.
7245 (ftfont_get_charset): Undo the previous change.
1ac9108a 7246 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7247 (ftfont_close): Likewise.
7248 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7249
7250 * font.c (font_sort_entites): Change the meaning of the arg
7251 BEST-ONLY. Don't optimize for VEC of lenght 1.
7252 (font_select_entity): Just return the value of font_sort_entites.
7253
7254 * xfaces.c (merge_face_vectors): Reflect font properties in
7255 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7256 font_clear_prop if a face attribute doesn't change.
7257
3c908a57
KH
7258 * charset.h (charset_ksc5601): Extern it.
7259
7260 * charset.c (charset_ksc5601): New variable.
7261 (Fdefine_charset_internal): Set charset_ksc5601.
7262 (init_charset_once): Initialize charset_ksc5601 to -1.
7263
d65859c3
DN
72642009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7265
7266 * fileio.c (history_delete_duplicates): Remove unused declaration.
7267
7268 * callint.c (history_delete_duplicates): New declaration.
7269 (Fcall_interactively): Remove command history duplicates when
7270 history_delete_duplicates is true.
7271
3ba010e5
EZ
72722009-04-14 Eli Zaretskii <eliz@gnu.org>
7273
7274 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7275
06f19b91
KH
72762009-04-14 Kenichi Handa <handa@m17n.org>
7277
7278 * font.c (Ffont_info): Fix docstring. Fix the second element of
7279 the returned value (bug#2949).
7280
2cce8bfc
CY
72812009-04-14 Chong Yidong <cyd@stupidchicken.com>
7282
7283 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7284
d156542d
KH
72852009-04-14 Kenichi Handa <handa@m17n.org>
7286
7287 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7288 encoding charset is ascii_compatible.
7289
7290 * charset.c (Fdefine_charset_internal): Make charset
7291 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7292 code_offset is 0, and covers all ASCII characters.
7293
86fa089e
SM
72942009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7297 (ns_string_to_pasteboard_internal):
7298 * nsmenu.m (process_dialog):
7299 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7300 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7301 * lisp.h (Fx_load_color_file): Declare.
7302
a8a3728b
KH
73032009-04-13 Kenichi Handa <handa@m17n.org>
7304
1ac9108a 7305 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7306 (font_select_entity): Suppress the code to optimize for the same
7307 kind of fonts.
7308 (font_load_for_lface): Get a font that supports at least ASCII
7309 characters.
7310
7311 * ftfont.c (Qja, Qko): New variables.
7312 (fc_charset_table): Delete uniquifier data for iso8859-1.
7313 (ftfont_get_latin1_charset): New function.
7314 (get_adstyle_property): New function.
7315 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7316 bitmap fonts.
7317 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7318 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7319 `ko' or `ja'.
7320 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7321 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7322 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7323 property.
7324 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7325 (syms_of_ftfont): DEFSYM Qja and Qko.
7326
483670b5
KH
73272009-04-09 Kenichi Handa <handa@m17n.org>
7328
12b55765
KH
7329 * charset.c (map_charset_chars): For a charset of `superset'
7330 method, fix calculation of code range.
7331
483670b5
KH
7332 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7333 from the list of extra properties.
7334 (font_clear_prop): Be sure to delete `:name' font property.
7335
57d3b93b
KH
73362009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7337
b4b2c2ca
YM
7338 * dispnew.c (redraw_overlapping_rows): Fix detection of
7339 overlapping for topmost and bottommost rows.
7340
1ac9108a 7341 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7342
472c3609
JR
73432009-04-06 Jason Rumney <jasonr@gnu.org>
7344
7345 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7346
ab193662
KH
73472009-04-06 Kenichi Handa <handa@m17n.org>
7348
7349 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7350
7351 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7352
0c26f026
KH
73532009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7354
7355 * ftfont.c (ftfont_open): Fix checking of the return value of
7356 FT_Load_Char. Fix setting font->underline_thickness.
7357
e173bbce
CY
73582009-04-04 Chong Yidong <cyd@stupidchicken.com>
7359
7360 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7361 (Fterminal_parameters, Fterminal_parameter)
7362 (Fset_terminal_parameter): In doc string, refer to terminal
7363 objects rather than terminal ids.
7364
693a2698
EZ
73652009-04-04 Eli Zaretskii <eliz@gnu.org>
7366
7367 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7368 ret_lim_data. (Bug#2867)
7369
d5221487
CY
73702009-04-03 Chong Yidong <cyd@stupidchicken.com>
7371
7372 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7373 so they don't get wider than the window, matching 2006-01-23
7374 change to the partner function in xdisp.c (Bug#2800).
7375
223509a3
KH
73762009-04-03 Kenichi Handa <handa@m17n.org>
7377
7378 * print.c (print_object): Make each lowest sub_char_table start a
7379 new line (Bug#2866).
7380
74fcd0b1
KH
73812009-04-02 Kenichi Handa <handa@m17n.org>
7382
7383 * fontset.c (fontset_font): Record no-font when a fontset
7384 explicitly tells not to try another font-specs.
7385
c542407d
SM
73862009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7387
7388 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7389
e3869731
KH
73902009-03-30 Kenichi Handa <handa@m17n.org>
7391
d8d2f142
KH
7392 * fontset.c (fontset_from_font): Specify only registry in a
7393 font-spec for all characters supported by that registry.
7394
e3869731
KH
7395 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7396 even if HAVE_M17N_FLT is not defined.
7397
5da5f805
CY
73982009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7399
7400 * ftfont.c: Conditionalize prototyping and use of
7401 ftfont_variation_glyphs.
7402
ab226c50
SM
74032009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7404
9628fed7
SM
7405 * frame.c (delete_frame): Work around compiler bug.
7406
7407 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7408 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7409 Some more EMACS_INT.
7410 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7411
7412 * xdisp.c (dump_glyph): Fix typo.
7413
ae19ba7c
SM
7414 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7415 (adjust_markers_gap_motion, adjust_markers_for_delete)
7416 (adjust_markers_for_insert, adjust_point)
7417 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7418 (make_gap, copy_text, count_size_as_multibyte, insert)
7419 (insert_and_inherit, insert_before_markers)
7420 (insert_before_markers_and_inherit, insert_1)
7421 (count_combining_before, count_combining_after, insert_1_both)
7422 (insert_from_string, insert_from_string_before_markers)
7423 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7424 (insert_from_buffer_1, adjust_after_replace)
7425 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7426 (replace_range_2, del_range, del_range_1, del_range_byte)
7427 (del_range_both, del_range_2, modify_region)
7428 (prepare_to_modify_buffer, signal_before_change)
7429 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7430 for buffer positions and sizes.
7431 * lisp.h: Adjust prototypes accordingly.
7432
7433 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7434 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7435 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7436
ab226c50
SM
7437 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7438
46dfb8fb
JD
74392009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7440
7441 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7442 lines and columns so we keep the same pixel height and width.
7443
7444 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7445 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7446 (x_handle_net_wm_state): New function to update frame parameter
7447 fullscreen.
7448 (x_term_init): Initialize atoms for _NET_WM_STATE.
7449
7450 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7451
d347e494
SM
74522009-03-27 Kevin Ryde <user42@zip.com.au>
7453
7454 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7455 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7456 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7457 (Fgpm_mouse_stop): Pass that new parameter.
7458 * termhooks.h (close_gpm): Adjust prototype.
7459
84db11d6
SM
74602009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7461
c95a5008
SM
7462 * lisp.h (Fx_focus_frame): Declare.
7463
84db11d6
SM
7464 * callint.c (Fcall_interactively): For '^' just delegate the work to
7465 handle-shift-selection.
7466 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7467
0a1958d6
CY
74682009-03-24 Chong Yidong <cyd@stupidchicken.com>
7469
0bfdff23
CY
7470 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7471
0a1958d6
CY
7472 * data.c (Qinteractive_form): New variable.
7473 (Finteractive_form): Use it.
7474
7475 * eval.c (Fcommandp): Use Qinteractive_form.
7476
58aec0d6
JR
74772009-03-24 Jason Rumney <jasonr@gnu.org>
7478
7479 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7480 Calculate total size precisely. Decode environment variables
7481 before substituting. (Bug#38)
7482
553dd618
KH
74832009-03-24 Kenichi Handa <handa@m17n.org>
7484
7485 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7486 encoding (Bug#2722).
553dd618 7487
c39ea606
JD
74882009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7489
7490 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7491 that gdpy is set.
7492
bc9b2b5e
AM
74932009-03-22 Alan Mackenzie <acm@muc.de>
7494
7495 * callint.c (Finteractive): Clarify the doc string - even
7496 promptless elements need \n separators.
7497
9f995a76
JR
74982009-03-22 Jason Rumney <jasonr@gnu.org>
7499
7500 * w32term.c (syms_of_w32term): Doc fix for
7501 x-use-underline-position-properties.
7502
22749e9a
EZ
75032009-03-21 Eli Zaretskii <eliz@gnu.org>
7504
7505 * w32.c (getpwuid): Change argument type to unsigned.
7506 (struct w32_id): Change type of `rid' member to unsigned.
7507 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7508 argument ID to unsigned. All callers changed.
7509 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7510
e00553bf
EZ
75112009-03-20 Eli Zaretskii <eliz@gnu.org>
7512
7513 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7514 negative, produce a float value.
7515
7516 * dired.c (make_uid, make_gid): New functions.
7517 (Ffile_attributes): Use them to avoid negative UID and GID.
7518
f761d6b6
JB
75192009-03-20 Juanma Barranquero <lekktu@gmail.com>
7520
7521 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7522 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7523 Fix typos in docstrings.
7524
d507f8d7
KH
75252009-03-19 Kenichi Handa <handa@m17n.org>
7526
7527 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7528 changed, use font_load_for_lface to get a new font object.
7529 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7530
7531 * frame.c (x_set_font): Handle the case that ARG is a cons.
7532
c68845e0
GM
75332009-03-19 Glenn Morris <rgm@gnu.org>
7534
7535 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7536
bfa49dd1
CY
75372009-03-19 Chong Yidong <cyd@stupidchicken.com>
7538
7539 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7540
8458d4c1
KH
75412009-03-19 Kenichi Handa <handa@m17n.org>
7542
7543 * charset.c (load_charset_map_from_file): When a mapfile can't be
7544 loaded, signal an error.
7545
78e7d1fe
EZ
75462009-03-18 Eli Zaretskii <eliz@gnu.org>
7547
7548 * dired.c (Ffile_attributes): Make sure UID and GID are always
7549 positive, even if the value is too large for a positive EMACS_INT.
7550 Doc fix.
7551
7552 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7553
5da9fdfa
YM
75542009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7555
7556 * xmenu.c (xdialog_show): Move Fredisplay call ...
7557 (Fx_popup_dialog): ... here.
7558
7519c40d
SM
75592009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7560
7561 * dired.c (file_name_completion): Disable the first optimization just
7562 installed, since it is not implemented correctly.
7563
2cd298e2
SM
75642009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7565
7566 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7567 only if the entry can affect bestmatch.
2cd298e2
SM
7568 Stop the search early, as Ftry_completion already does.
7569
48d37adf
CY
75702009-03-17 Chong Yidong <cyd@stupidchicken.com>
7571
e10c9c93 7572 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7573
9286b16a
CY
75742009-03-15 Chong Yidong <cyd@stupidchicken.com>
7575
7576 * keyboard.c (parse_menu_item): Don't display remappings as menu
7577 equivalent bindings (Bug#788).
7578
f7b146dc
JR
75792009-03-15 Jason Rumney <jasonr@gnu.org>
7580
7581 * w32term.h (WM_EMACS_PAINT): New message.
7582 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7583 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7584 before passing to lisp thread. (Bug#950)
7585
f761d6b6 75862009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7587
d93f9575
CY
7588 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7589 variable as it was never reset.
7590 (ns_term_init): Remove initialization of Lisp-settable defaults
7591 and ns_expand_space.
7592 (-setPanelFromDefaultValues): Remove ns_expand_space.
7593 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7594 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7595 i.e. no additional spacing, similar to Carbon port.
7596
d93f9575
CY
7597 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7598 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7599
305018ec
JD
76002009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7601
7602 * sound.c (alsa_configure): Remove call to deprecated
7603 snd_pcm_sw_params_set_xfer_align.
7604
f761d6b6 76052009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7606
7607 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7608 after clicking in a detached tool bar.
7609 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7610
46e722a9
SM
76112009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7612
348db3dd
SM
7613 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7614 int/Lisp_Object mixup).
46e722a9 7615
a3d16f39
KH
76162009-03-13 Kenichi Handa <handa@m17n.org>
7617
7618 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7619 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7620 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7621 (set_fontset_font): Change ARG to a vector. Handle range_list in
7622 ARG correctly.
7623 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7624 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7625 the above change.
7626 (fontset_from_font): Fix previous change.
fe24f56a 7627 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7628 entry. If FONTSET is the default fontset, don't set the extra
7629 slot of the returning char-table.
7630
b066e6b6
JB
76312009-03-12 Juanma Barranquero <lekktu@gmail.com>
7632
7633 * nsfns.m (Fx_close_connection): Doc fix.
7634 (Fns_do_applescript): Reflow docstring.
7635 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7636 (Fx_display_pixel_width, Fx_display_pixel_height)
7637 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7638 Fix typos in docstrings.
7639 (Fns_set_alpha): Fix typos in error messages.
7640
d472514e 76412009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7642
d472514e 7643 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7644 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7645 were used for such events.
7646
d472514e
JB
7647 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7648 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7649
d472514e 7650 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7651 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7652
fb930676
KH
76532009-03-11 Kenichi Handa <handa@m17n.org>
7654
ff85581a
KH
7655 * font.h (font_open_by_spec): Extern it.
7656
c50b7e98
KH
7657 * font.c (font_open_by_spec): New function.
7658 (font_open_by_name): Use font_open_by_spec.
7659
fb930676
KH
7660 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7661 fontset of the frame.
7662
7663 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7664 modify the default font of frames that use this fontset.
7665 (num_auto_fontsets): New variable.
7666 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7667 name. Be sure to set FONTSET_ASCII to the correct font name.
7668 (update_auto_fontset_alist): New function.
7669
df4e8455
JB
76702009-03-11 Juanma Barranquero <lekktu@gmail.com>
7671
7672 * makefile.w32-in: Update dependencies.
7673
0a375797
AR
76742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7675
7676 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7677
61313fa3
SM
76782009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7679
7680 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7681
b55103fb
CY
76822009-03-10 Chong Yidong <cyd@stupidchicken.com>
7683
7684 * lread.c (Feval_buffer): Doc fix.
7685
dde2559c
KH
76862009-03-09 Kenichi Handa <handa@m17n.org>
7687
7688 * charset.c (Qfile_name_handler_alist): Extern it.
7689 (load_charset_map_from_file): Temporarily bind
7690 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7691
df4e8455 76922009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7693
47f588bb
GM
7694 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7695 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7696
4ddf94bd
AR
76972009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7698
4c9bdfc2
AR
7699 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7700 (x_set_window_size): Change back to calculated method of setting
7701 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7702 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7703 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7704
fe41ae9e
AR
7705 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7706
4c9bdfc2
AR
7707 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7708 accelerator in parens under GNUstep.
7709
825d0875
KH
77102009-03-06 Kenichi Handa <handa@m17n.org>
7711
7712 These changes are to detect incorrect composition sequence without
f3b3be74 7713 looking ahead the source. (Bug#2370)
825d0875
KH
7714
7715 * coding.h: Include "composite.h".
7716 (enum compisition_state): New enum.
7717 (struct compisition_status): New struct.
7718 (struct iso_2022_spec): New member cmp_status.
7719 (struct emacs_mule_spec): New struct.
7720 (struct coding_system): New members ctext_extended_segment_len and
7721 embedded_utf_8. Change the union member
7722 spec.emacs_mule_full_support to spec.emacs_mule.
7723
7724 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7725 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7726 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7727 (ADD_COMPOSITION_DATA): New arg nbytes.
7728 (emacs_mule_char): New arg cmp_status.
7729 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7730 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7731 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7732 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7733 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7734 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7735 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7736 (EMACS_MULE_COMPOSITION_END): New macro.
7737 (emacs_mule_finish_composition): New function.
7738 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7739 (decode_coding_emacs_mule): Avoid long looking ahead while
7740 handling composition.
7741 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7742 (ENCODE_COMPOSITION_RULE): New macro.
7743 (finish_composition): New function.
7744 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7745 (DECODE_COMPOSITION_START): New implementation.
7746 (DECODE_COMPOSITION_END): Likewise.
7747 (STORE_COMPOSITION_RULE): New macro.
7748 (decode_coding_iso_2022): Avoid long looking ahead while handling
7749 composition, CTEXT extended segment, and embedded UTF-8.
7750 (setup_coding_system): For a coding of type iso-2022, reset
7751 CODING_ISO_EXTSEGMENT_LEN (coding) and
7752 CODING_ISO_EMBEDDED_UTF_8 (coding).
7753 (get_translation): Delete arguments last_block, from_nchars,
7754 to_nchars. Callers changed.
7755 (produce_chars): Don't modify charbuf. Adjusted for the change of
7756 get_translation.
98a326f7 7757 (produce_composition): Adjust for the new annotation sequence.
825d0875 7758 (handle_composition_annotation): Likewise.
98a326f7 7759 (consume_chars): Adjust for the change of get_translation.
825d0875 7760
ccbc4452
AR
77612009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7762
4ddf94bd 7763 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7764
988a7ddb
KH
77652009-03-05 Kenichi Handa <handa@m17n.org>
7766
7767 * font.c (font_select_entity): New function.
7768 (font_find_for_lface): Use font_select_entity to select a font.
7769
7770 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7771 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7772 font with C restriction.
7773
98a326f7 77742009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7775
be1bce46 7776 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7777
10ea2b82
JR
77782009-03-04 Jason Rumney <jasonr@gnu.org>
7779
2c93b248 7780 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7781 characters that have already been read. (Bug#2569)
2c93b248 7782
10ea2b82
JR
7783 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7784 Log an error message if check_image_size failed.
7785 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7786 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7787
71a0c011
EZ
77882009-03-02 Eli Zaretskii <eliz@gnu.org>
7789
7790 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7791 when decoding process output.
7792
2f63bba8
RS
77932009-03-01 Richard M Stallman <rms@gnu.org>
7794
7795 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7796
7797 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7798
0a9564cb
EZ
77992009-02-28 Eli Zaretskii <eliz@gnu.org>
7800
7801 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7802 (decode_coding_emacs_mule, decode_coding_iso_2022)
7803 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7804 (decode_coding_raw_text, decode_coding_charset)
7805 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7806 Honor inhibit-eol-conversion. (Bug #2186)
7807
449148b3
JR
78082009-02-28 Jason Rumney <jasonr@gnu.org>
7809
7810 * coding.c (detect_coding_charset): If not checking latin extra,
7811 fail on characters between 0x80 and 0xA0. (Bug#2354)
7812
a4aee864
EZ
78132009-02-28 Eli Zaretskii <eliz@gnu.org>
7814
7815 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7816 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7817
d88bee5a
GM
78182009-02-27 Glenn Morris <rgm@gnu.org>
7819
7820 * callint.c (Finteractive): Doc fix.
7821
a808f22d
KH
78222009-02-27 Kenichi Handa <handa@m17n.org>
7823
7824 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7825
caf8d60c
CY
78262009-02-27 Chong Yidong <cyd@stupidchicken.com>
7827
7828 * font.c (font_style_to_value): Set value for unknown symbols to
7829 100 instead of 255.
b61137ea
CY
7830 (weight_table, slant_table, width_table): Treat "unspecified" as
7831 the default value.
caf8d60c 7832
1a0de25c
JB
78332009-02-26 Juanma Barranquero <lekktu@gmail.com>
7834
7835 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7836
8fc45744
JB
78372009-02-25 Juanma Barranquero <lekktu@gmail.com>
7838
107bd7d1
JB
7839 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7840 error as soon as a recursive load is detected.
8fc45744 7841
f097e223
AR
78422009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7843
7844 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7845 before caching.
7846
8810a12f
KH
78472009-02-24 Kenichi Handa <handa@m17n.org>
7848
7849 * fontset.c (fontset_find_font): Fix the condition for checking
7850 unavailable font.
7851
2c7d1565
GM
78522009-02-24 Glenn Morris <rgm@gnu.org>
7853
7854 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7855 whitespace that confuses documentation.
7856
a20878b6
MB
78572009-02-23 Miles Bader <miles@gnu.org>
7858
7859 * process.c (Flist_system_processes, Fprocess_attributes)
7860 (syms_of_process): Rename `system-process-attributes' to
7861 `process-attributes'.
7862
b3b58c01
AS
78632009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7864
1b3b981b
AS
7865 * coding.h (struct coding_system): Make safe_charsets a pointer to
7866 unsigned char.
7867 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7868 being 255.
7869 (SAFE_CHARSET_P): Likewise.
7870 (setup_iso_safe_charsets): Properly setup safe_charsets.
7871 (Fdefine_coding_system_internal): Likewise.
7872 (setup_coding_system): Likewise. Remove unneeded casts.
7873 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7874 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7875 unneeded casts.
7876
b3b58c01
AS
7877 * insdel.c (del_range_2): Don't modify gap contents when called
7878 from decode_coding_object. (Bug#1809)
7879
0b6f228c
CY
78802009-02-21 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7883 Qfont_object.
7884 (Ftype_of): Recognize font objects.
7885
7886 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7887
7888 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7889 moved to data.c.
7890
52f8870b
AR
78912009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7892
7893 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7894 async_iconified. Based on a patch by Christian Lynbech
7895 <christian.lynbech@tieto.com>.
7896 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7897
7087d5e9
GM
78982009-02-20 Glenn Morris <rgm@gnu.org>
7899
7900 * syntax.c (Fskip_chars_forward): Fix doc typo.
7901
41d2ceef
CY
79022009-02-20 Chong Yidong <cyd@stupidchicken.com>
7903
7904 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7905
1a3b7ca6
CY
79062009-02-19 Chong Yidong <cyd@stupidchicken.com>
7907
7908 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7909
73cce38d
KH
79102009-02-19 Kenichi Handa <handa@m17n.org>
7911
7912 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7913 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7914
a51092ee
DN
79152009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7916
7917 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7918
c423ecca
KH
79192009-02-18 Kenichi Handa <handa@m17n.org>
7920
7921 * font.c (font_check_otf_features): Fix handling of `nil' element.
7922 (Ffont_spec): Describe :lang and :otf in the docstring.
7923
4c1958f4
AS
79242009-02-16 Andreas Schwab <schwab@suse.de>
7925
7926 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7927 string.
7928
5704f39a
KH
79292009-02-16 Kenichi Handa <handa@m17n.org>
7930
7931 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7932 (Bug#1723)
5704f39a 7933
8f0085aa
CY
79342009-02-14 Chong Yidong <cyd@stupidchicken.com>
7935
a057d86a 7936 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7937
7938 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7939 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7940
aff01dd9
EZ
79412009-02-14 Eli Zaretskii <eliz@gnu.org>
7942
7943 * msdos.c (MAX_SCREEN_BUF): New macro.
7944 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7945 Encode the entire run of glyphs sharing the same face, instead of
7946 doing that one glyph at a time (fixes a bug with displaying
7947 double-size characters).
7948
ba301db3
AR
79492009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7950
7951 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7952
7953 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7954 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7955 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7956
7957 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7958 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7959
51d861de
SM
79602009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7961
ac146f82 7962 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7963 invisible areas.
7964
7fed8996
JR
79652009-02-12 Jason Rumney <jasonr@gnu.org>
7966
631ea4fb
JR
7967 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7968 (add_font_entity_to_list): Call check_face_name even when family
7969 is unspecified.
7970
cb4a3e42
JR
7971 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7972 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7973 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7974
7fed8996 7975 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7976 raster fonts. (Bug#2219)
7fed8996 7977
895416e3
KH
79782009-02-12 Kenichi Handa <handa@m17n.org>
7979
7980 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7981 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7982 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7983 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7984 (find_automatic_composition): While looking forward and backward,
7985 check static composition. Fix where to stop looking forward.
7986 (composition_adjust_point): Fix checking of static composition.
7987 (Fcomposition_get_gstring): Pay attention to
1dacf998 7988 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7989
7990 * lisp.h (fast_looking_at): Extern it.
7991
7992 * search.c (fast_looking_at): New function.
7993
51d861de 7994 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7995 <struct glyph>.u.cmp.to.
7996 (append_composite_glyph): Likewise.
7997
51d861de 7998 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7999 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8000 composition.
51d861de 8001 (append_composite_glyph): Adjust for the change of
895416e3
KH
8002 <strcut glyph>.u.cmp.to.
8003
8510724d
JB
80042009-02-11 Juanma Barranquero <lekktu@gmail.com>
8005
8006 * casetab.c (init_casetab_once):
8007 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8008 * font.c (font_update_lface):
8009 * fontset.c (Fnew_fontset):
8010 * ftfont.c (ftfont_drive_otf):
8011 * xfont.c (xfont_open):
8012 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8013
294fa707
SM
80142009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 * fileio.c (Fwrite_region): !NILP -> CONSP.
8017
b5bfebec
AS
80182009-02-10 Andreas Schwab <schwab@suse.de>
8019
8020 * process.c (send_process): Properly relocate pointer into data
adab88bd 8021 when using encoded data. (Bug#2272)
b5bfebec 8022
cb84a2be
KH
80232009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8024
8025 * coding.c (detect_coding_charset): Fix previous change.
8026
89e09428
JR
80272009-02-08 Jason Rumney <jasonr@gnu.org>
8028
8029 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8030 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8031
4470a277
AS
80322009-02-07 Andreas Schwab <schwab@suse.de>
8033
8034 * unexelf.c (unexec): Fix error message.
8035
3175b12a
AR
80362009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8037
8038 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8039 when modal window is active. (Bug #2152)
3175b12a
AR
8040 (applicationShouldTerminate:): Remove now-unneeded while loop
8041 around NSRunAlertPanel.
8042
8043 * nsmenu.m (popupSession): New file-global variable.
8044 (pop_down_menu): End the popupSession before closing dialog.
8045 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8046 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8047 don't query NSApp for events (just sleep instead).
8048
8434d0b8
EZ
80492009-02-07 Eli Zaretskii <eliz@gnu.org>
8050
51d861de
SM
8051 * coding.c (syms_of_coding) <translation-table-for-input>:
8052 Modify doc string to discourage use for character code unification.
8434d0b8 8053
aa82edfd
CY
80542009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8055
8056 * atimer.c (run_timers): Update pending_atimers.
8057
2d283c7c
CY
80582009-02-06 Chong Yidong <cyd@stupidchicken.com>
8059
eb306cab
CY
8060 * image.c (svg_load_image): Fix last change.
8061
2d283c7c
CY
8062 * xfns.c (Fx_create_frame): Signal an error if no font is
8063 found (Bug#2147).
8064
4d8e170e
JB
80652009-02-05 Juanma Barranquero <lekktu@gmail.com>
8066
8067 * character.c (syms_of_character) <script-representative-chars>:
8068 Fix typo in docstring.
8069
c96169a0
AR
80702009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8071
8072 * nsmenu.m (pop_down_menu): New function.
8073 (ns_popup_dialog): Call it on unwind.
8074 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8075 call timer_check() (Bug#2154).
8076 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8077 handling_signal is set.
8078 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8079
31fd7c5c 8080 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8081
8082 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8083
8084 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8085
51d861de
SM
8086 * keyboard.c (poll_for_input_1, handle_async_input):
8087 Set handling_signal under HAVE_NS.
c96169a0 8088
aacd8ba1
GM
80892009-02-04 Glenn Morris <rgm@gnu.org>
8090
8091 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8092
4cb75c4b
KH
80932009-02-04 Kenichi Handa <handa@m17n.org>
8094
8095 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8096
8097 * charset.c (Fchar_charset): New optional arg restriction.
8098
8099 * coding.h (coding_system_charset_list): Extern it.
8100
8101 * coding.c (coding_system_charset_list): New function.
8102
8103 * composite.c: Include coding.h and termhooks.h.
8104 (composition_gstring_p): Fix for the terminal case.
8105 (composition_gstring_width): Likewise.
8106 (fill_gstring_body): Likewise.
8107 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8108 the frame.
8109 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8110 is within a composition.
867d4bb3 8111 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8112
8113 * term.c (encode_terminal_code): Fix handling of composition.
8114 (produce_composite_glyph): For static composition, get pixel_width
8115 from struct composition.
8116
826ba17e
AS
81172009-02-02 Andreas Schwab <schwab@suse.de>
8118
8119 * unexelf.c (unexec): Handle unaligned bss offset.
8120
8ad093db
AR
81212009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8122
8123 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8124 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8125
8ad093db
AR
8126 * keyboard.c (handle_interrupt): Don't call
8127 quit_throw_to_read_char() under NS.
d0a76a6e 8128
8ad093db
AR
8129 * blockinput.h: Remove NS-specific code.
8130
4d18a7a2
DN
81312009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8132
db878925
DN
8133 * dispnew.c (window_change_signal): Don't try to get the size of a
8134 suspended tty frame.
8135 * term.c (Fresume_tty): Resize if the size has changed while the
8136 tty was suspended.
8137
4d18a7a2
DN
8138 * alloc.c (mark_stack): Properly conditionalize previous change.
8139
8984df7c
JB
81402009-01-30 Juanma Barranquero <lekktu@gmail.com>
8141
8142 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8143 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8144 Remove; this code is not used on Windows.
8145
75f4f1ac
EZ
81462009-01-30 Eli Zaretskii <eliz@gnu.org>
8147
8148 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8149 EOLs that also has stray ^M characters.
8150
07a1e794
JB
81512009-01-30 Juanma Barranquero <lekktu@gmail.com>
8152
8153 * atimer.c (run_timers, alarm_signal_handler):
8154 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8155 * w32inevt.c (w32_console_read_socket):
8156 * w32term.c (w32_read_socket):
8157 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8158
a8b11cc9
CY
81592009-01-30 Chong Yidong <cyd@stupidchicken.com>
8160
8161 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8162 Initialize it as a relative filename pattern.
8163 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8164 (Fcall_process_region): Simplify temp file creation using
8165 temporary-file-directory.
8166
c279587b
EZ
81672009-01-29 Eli Zaretskii <eliz@gnu.org>
8168
8169 * msdos.c: Rename pending_signals to msdos_pending_signals.
8170 (sig_suspender, sigprocmask): Adjust.
8171
a8fe3242
CY
81722009-01-29 Chong Yidong <cyd@stupidchicken.com>
8173
8174 * keyboard.c (pending_signals): New var.
8175 (poll_for_input, input_available_signal, init_keyboard): Set it.
8176 (process_pending_signals): New function.
8177
8178 * lisp.h (QUIT): Check pending_signals instead of
8179 interrupt_input_pending. Use process_pending_signals.
8180
51d861de 8181 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8182
51d861de 8183 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8184
8185 * sysdep.c (emacs_write): Use process_pending_signals.
8186
8187 * xterm.c (XTread_socket): Update pending_signals.
8188
8189 * w32term.c (w32_read_socket): Update pending_signals.
8190
8191 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8192
6570a1c4
KH
81932009-01-29 Kenichi Handa <handa@m17n.org>
8194
8195 * xftfont.c (xftfont_has_char): New function.
8196 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8197
d72a4afa
AR
81982009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8199
8200 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8201 under GNUstep.
8202 (ns_query_color): New declaration.
8203
8204 * nsterm.m (ns_confirm_quit): New variable.
8205 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8206 (EmacsApp-applicationShouldTerminate:): Use it.
8207 (EmacsPrefsController): Let user set it.
8208 (ns_query_color): New function.
8209 (ns_defined_color): Use it.
8210 (ns_initialize): Drop.
8211 (ns_term_init): Add two lines from ns_initialize(), and set
8212 input_interrupt_mode to nil.
8213
8214 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8215 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8216
9fe78804
KH
82172009-01-28 Kenichi Handa <handa@m17n.org>
8218
8219 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8220 (fontset_get_font_group): Remember that no font-group is specified
8221 for C.
9fe78804 8222
fa57de36
CY
82232009-01-27 Chong Yidong <cyd@stupidchicken.com>
8224
930600e9
CY
8225 * fns.c (concat): Check for string overflow (bug#1787).
8226
fa57de36
CY
8227 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8228 Quadruple undo limits (bug#1501).
8229
7179ce7b
KH
82302009-01-27 Kenichi Handa <handa@m17n.org>
8231
8232 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8233 directly use GT_Get_Char_index.
8234
8235 * xftfont.c (struct xftfont_info): New member `index'.
8236
8237 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8238 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8239
5be8fcc0
CY
82402009-01-26 Kenichi Handa <handa@m17n.org>
8241
8242 * fontset.c (fontset_find_font): Fix handling of non-cons return
8243 value of fontset_get_font_group.
8244 (fontset_font): Revert last change.
8245
19ae3e61
JR
82462009-01-26 Jason Rumney <jasonr@gnu.org>
8247
8248 * w32font.c (w32font_list_internal): Return quickly if registry is
8249 unknown. Simplify final return.
8250 (add_font_entity_to_list): Break complex logic down into more
8251 manageable chunks. Move unknown registry check to
8252 w32font_list_internal.
8253
8612b71a
AR
82542009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8255
8256 Changes to remove Feval calls from GUI under NS.
8257
d8038940
JB
8258 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8259 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8260 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8261
8262 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8263 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8264 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8265 instead of NON_ASCII_KEYSTROKE_EVENT.
8266 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8267 (EmacsApp-applicationShouldTerminate:): Query user.
8268 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8269 instead of Feval.
8270
8271 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8272
8273 * keyboard.c (kbd_buffer_get_event): Check for it.
8274 (keys_of_keyboard): Define lispy keys for
8275 ns-put/unput-working-text.
8276
8277 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8278 versions.
8279 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8280
6288ae55
CY
82812009-01-25 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8284 setting current_buffer directly. (Bug#2044)
6288ae55 8285
289e7f8f
CY
82862009-01-24 Chong Yidong <cyd@stupidchicken.com>
8287
5ce87308 8288 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8289 any work. (Bug#1952, bug#1990).
5ce87308 8290
64cc3cf6 8291 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8292
b3243e6f
AR
82932009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8294
8295 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8296 (ns_no_defaults): New declaration.
8297 (main): Use it.
e0d2e69a 8298
d900b2af 8299 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8300
d900b2af 8301 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8302
d900b2af
AR
8303 * nsterm.m (ns_no_defaults): New variable.
8304 (ns_initialize): Don't read defaults when ns_no_defaults.
8305 (EmacsView-readSelectionFromPasteboard:)
8306 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8307 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8308 (ns_dumpglyphs_stretch): New function.
8309 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8310 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8311
e0d2e69a
AR
8312 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8313
3ac71f5d
CY
83142009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8315
8316 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8317 call for Sparc64.
8318
3fe53a83
AR
83192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8320
8321 * nsfns.m:
8322 * nsgui.h:
8323 * nsmenu.m:
8324 * nsselect.m:
8325 * nsterm.h:
8326 * nsterm.m: Remove '23' comments that indicated code added during
8327 update from emacs-20 -> emacs-23.
8328
10f87c6f 83292009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8330
8331 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8332 ns_alternate_modifier. (Bug#1217)
a3b53a85 8333
c7cef62d
AR
8334 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8335 Display all shortcuts, including those w/o super modifier.
8336
575fb8bd
AR
8337 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8338
918b848b
CY
83392009-01-22 Chong Yidong <cyd@stupidchicken.com>
8340
8341 * fileio.c (Vwrite_region_post_annotation_function)
8342 (Vwrite_region_annotation_buffers): New vars.
8343 (build_annotations_unwind): Just reset
8344 Vwrite_region_annotation_buffers.
8345 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8346 Call write-region-post-annotation-function.
8347 (build_annotations): Add to Vwrite_region_annotation_buffers if
8348 buffer changes.
8349
a39e2539
AR
83502009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8351
8352 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8353 Tiger.
51d861de
SM
8354 * nsfns.m (ns_do_applescript):
8355 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8356
35ed44db
AR
83572009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8358
8359 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8360
cbe0b5bf
AR
83612009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8362
8363 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8364
6049d3a0
AR
8365 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8366
8367 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8368 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8369 handle Ctrl-tab. (Bug#1841)
8370 (ns_get_color): Use unsigned long long for scanned hex string value.
8371 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8372 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8373 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8374 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8375 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8376 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8377 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8378
d3810c21 8379 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8380 DPI. (Bug#1316)
d3810c21
AR
8381 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8382 values in onTiger section.
4c7077c3 8383
e301e634
CY
83842009-01-19 Chong Yidong <cyd@stupidchicken.com>
8385
7f82490b
CY
8386 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8387 Check return value of font_spec_from_name.
64cc3cf6 8388 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8389
8390 * font.c (font_spec_from_name): Return Qnil if font name could not
8391 be parsed.
8392 (font_parse_name): Treat a `?' character as part of an XLFD.
8393
e301e634
CY
8394 * fns.c (Fsubstring): Doc fix.
8395
1c0db158
KH
83962009-01-19 Kenichi Handa <handa@m17n.org>
8397
51d861de 8398 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8399 (ftfont_list): Likewise.
8400
acf20901
JB
84012009-01-18 Juanma Barranquero <lekktu@gmail.com>
8402
fff4e459
JB
8403 * dbusbind.c (Fdbus_register_signal):
8404 * process.c (conv_sockaddr_to_lisp):
8405 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8406
acf20901
JB
8407 * callproc.c (Fgetenv_internal): Doc fix.
8408
e7abcdfb
CY
84092009-01-16 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8412 it is not even used.
8413
b60861e6
GM
84142009-01-16 Glenn Morris <rgm@gnu.org>
8415
8416 * font.c (Ffont_variation_glyphs): Silence compiler.
8417
8db52afe
JB
84182009-01-15 Juanma Barranquero <lekktu@gmail.com>
8419
8420 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8421 Reported by David Robinow <drobinow@gmail.com>.
8422
4cddb209
KH
84232009-01-15 Kenichi Handa <handa@m17n.org>
8424
51d861de 8425 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8426
f247f67b
JR
84272009-01-14 Jason Rumney <jasonr@gnu.org>
8428
8429 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8430 never a fontset. (Bug#1562)
f247f67b 8431
f56a4450
KH
84322009-01-14 Kenichi Handa <handa@m17n.org>
8433
8434 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8435 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8436
4e99855e
CY
84372009-01-13 Chong Yidong <cyd@stupidchicken.com>
8438
8439 * font.c (font_clear_prop): If clearing the family, clear the font
8440 width index too.
8441
fff4e459 8442 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8443
24f01470
JB
84442009-01-12 Juanma Barranquero <lekktu@gmail.com>
8445
8446 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8447 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8448 functions, use sizeof.
8449
a41240a3
MR
84502009-01-12 Martin Rudalics <rudalics@gmx.at>
8451
8452 * keyboard.c (read_char): Fix case where last_nonmenu_event
8453 returned a bad value with submenus. (Bug#447)
8454
944636b8
CY
84552009-01-12 Chong Yidong <cyd@stupidchicken.com>
8456
8457 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8458 family, clear the font width index too.
8459
0dad7c6f
JR
84602009-01-11 Jason Rumney <jasonr@gnu.org>
8461
8462 * keyboard.c (cmd_error_internal): Exit when errors occur before
8463 frame creation and not in daemon mode. (Bug#1836)
8464
7c2363af
CY
84652009-01-10 Chong Yidong <cyd@stupidchicken.com>
8466
8467 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8468 of a display vector, backtrack.
8469 (try_window_reusing_current_matrix): Check glyph type before
8470 referencing charpos member.
8471
97b1b294
EZ
84722009-01-10 Eli Zaretskii <eliz@gnu.org>
8473
8474 Fix Bug #876:
8475
8476 * coding.c (inhibit_null_byte_detection): New variable.
8477 (detect_coding, detect_coding_system): Don't pay attention to null
8478 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8479 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8480 <inhibit-iso-escape-detection>: Doc fix.
8481
4624b6e3
JR
84822009-01-09 Jason Rumney <jasonr@gnu.org>
8483
8484 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8485 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8486 Only report Unicode Plane 2 fonts as unicode-sip.
8487
323b840c
CY
84882009-01-09 Chong Yidong <cyd@stupidchicken.com>
8489
51d861de
SM
8490 * xfaces.c (Fx_font_family_list): Delete function.
8491 Move compatibility version to faces.el.
323b840c 8492
51d861de 8493 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8494
eba7400d
MR
84952009-01-09 Martin Rudalics <rudalics@gmx.at>
8496
8497 * frame.c (x_set_frame_parameters): Remember requested value for
8498 fullscreen before it's reset by the parameter handler.
8499
4b09796d
GM
85002009-01-09 Glenn Morris <rgm@gnu.org>
8501
8502 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8503 (last_command_event): ... and update all users.
4b09796d
GM
8504 (last_input_char): For clarity, rename to...
8505 (last_input_event): ... and update all users.
8506 (last-command-char, last-input-char): Move to subr.el as aliases.
8507 * cmds.c, commands.h: Update for last_command_char rename.
8508
14ccea62
CY
85092009-01-08 Chong Yidong <cyd@stupidchicken.com>
8510
51d861de 8511 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8512
5f004711
JR
85132009-01-08 Jason Rumney <jasonr@gnu.org>
8514
8515 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8516 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8517 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8518 Don't declare.
fff4e459 8519 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8520 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8521
b71f6f73
KH
85222009-01-07 Kenichi Handa <handa@m17n.org>
8523
50b06221 8524 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8525 remember the coding system used for decoding in
50b06221
KH
8526 coding_system (Bug#1039).
8527
b71f6f73 8528 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8529 breaking the loop. (Bug#870)
b71f6f73
KH
8530 (decode_coding_utf_16, decode_coding_emacs_mule)
8531 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8532 (decode_coding_charset): Likewise.
8533
56f668f7
MR
85342009-01-05 Martin Rudalics <rudalics@gmx.at>
8535
8536 * frame.c (x_set_frame_parameters): Make sure height (width) get
8537 applied when fullwidth (fullheight) is set. (Bug#1522)
8538
5da9424d
JB
85392009-01-04 Juanma Barranquero <lekktu@gmail.com>
8540
8541 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8542 (utc_base): Declare as ULONGLONG, not long double.
8543 (convert_time_raw): Delete.
8544 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8545 (initialize_utc_base): New function.
8546 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8547 (convert_from_time_t): Use initialize_utc_base; compute result with
8548 64-bit arithmetic.
8549 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8550
c4605e09
EZ
85512009-01-03 Eli Zaretskii <eliz@gnu.org>
8552
9acef61c 8553 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8554 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8555 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8556 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8557 [!subprocesses]: Define.
8558 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8559 (Flist_system_processes, Fsystem_process_attributes)
8560 [!subprocesses]: Call list_system_processes and
8561 system_process_attributes instead of returning Qnil.
8562
9acef61c
JB
8563 * dosfns.c (system_process_attributes, list_system_processes):
8564 New functions.
c4605e09
EZ
8565
8566 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8567
8568 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8569 Don't use the default (no-op) implementation.
8570
8b7d0a16
JR
85712009-01-03 Jason Rumney <jasonr@gnu.org>
8572
a6d46bc1
JR
8573 * keyboard.c (parse_modifiers_uncached): Wheel events are
8574 clicks (bug#687).
8575
8b7d0a16
JR
8576 * w32term.c (x_query_colors, x_query_color): New functions.
8577
8578 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8579 (svg_load_image): Cast returned pointers from dynamically loaded
8580 functions. Eliminate W32 specific code.
8581
bfe11752
DN
85822009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8583
89e2438a
DN
8584 * nsfns.m (x_set_foreground_color, x_set_background_color)
8585 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8586 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8587 x_ prefix instead of ns_. Update references.
8588 (syms_of_nsfns): Add a FIXME comment.
8589
8590 * nsterm.m (x_set_cursor_type): New prototype.
8591 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8592
bfe11752
DN
8593 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8594 for Solaris instead of incorrectly providing Qutime and Qcutime.
8595
031da700
EZ
85962009-01-02 Eli Zaretskii <eliz@gnu.org>
8597
8598 * w32.c (process_times): Compute sum of utime and stime.
8599 (system_process_attributes): Add Qtime to the alist.
8600
8601 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8602 and add them to the alist.
8603
8604 * process.c (top level) <Qtime, Qctime>: New variables.
8605 (syms_of_process): staticpro them.
8606 (Fsystem_process_attributes): Add their documentation to the doc
8607 string.
8608
8609 * process.h: Declare Qtime and Qctime.
8610
df23bf08
JR
86112009-01-02 Jason Rumney <jasonr@gnu.org>
8612
9acef61c 8613 * image.c (Qgobject): New symbol.
df23bf08
JR
8614 (syms_of_image): Initialize it.
8615 (init_svg_functions): Load some functions from gobject library.
8616
5bbdf7aa
DN
86172009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8618
8619 * frame.c (make_terminal_frame): Remove redundant code and useless
8620 block.
8621
63136da6
AS
86222009-01-01 Andreas Schwab <schwab@suse.de>
8623
8624 * process.c (conv_sockaddr_to_lisp): Add workaround for
8625 getsockname bug on BSD.
8626
9ef69046
CY
86272009-01-01 Chong Yidong <cyd@stupidchicken.com>
8628
d6fafbe0
CY
8629 * xfns.c (x_create_tip_frame): Set border width of the X window.
8630
51d861de 8631 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8632
f9c34147
JR
86332009-01-01 Jason Rumney <jasonr@gnu.org>
8634
9acef61c 8635 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8636 Don't block input, as per earlier xterm.c changes.
8637
f5497e45
AR
86382008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8639
8640 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8641 (ns_appkit_version_int): New function.
8642 (x-server-version): Use ns_appkit_version_int and follow 21+
8643 convention of returning 3 integers.
8644
c19cab20
KH
86452008-12-30 Kenichi Handa <handa@m17n.org>
8646
8647 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8648 (CHAR_SURROGATE_PAIR_P): New macro.
8649
8650 * font.h (struct font_driver): New member get_variation_glyphs.
8651
9acef61c 8652 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8653 (Ffont_variation_glyphs): New function.
8654 (syms_of_font): Defsubr it.
8655
8656 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8657 ftfont_variation_glyphs.
8658 (setup_otf_gstring): New function.
8659 (ftfont_drive_otf): Use it.
8660 (ftfont_shape_by_flt): Handle variation selector.
8661 (ftfont_variation_glyphs): New function.
8662
28cd591f
MR
86632008-12-30 Martin Rudalics <rudalics@gmx.at>
8664
8665 * frame.c (Vemacs_iconified): Remove.
8666
7f714baf
JR
86672008-12-30 Jason Rumney <jasonr@gnu.org>
8668
8669 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8670 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8671
9d2d22ab
CY
86722008-12-30 Chong Yidong <cyd@stupidchicken.com>
8673
8674 * indent.c (Fvertical_motion): Don't advance iterator if we have
8675 reseated to the desired position.
8676
8677 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8678 checking for pos match.
8679
545312c2
KH
86802008-12-30 Kenichi Handa <handa@m17n.org>
8681
1ede3eb6
KH
8682 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8683 just get the low 8-bit of the code.
8684
545312c2
KH
8685 * font.c (font_intern_prop): Validate str as multibyte.
8686
bd7bbf29
DN
86872008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8688
31e0750e
DN
8689 * dispextern.h (struct face): Move lface and hash from the middle
8690 of bitfields.
8691
bd7bbf29
DN
8692 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8693
b5672e7c
DN
86942008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8695
8696 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8697 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8698 instead of intervals.h.
8699
d704470f
AS
87002008-12-26 Andreas Schwab <schwab@suse.de>
8701
8702 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8703 cons.
8704
54b33868
MR
87052008-12-26 Martin Rudalics <rudalics@gmx.at>
8706
8707 * textprop.c (Qminibuffer_prompt): New variable.
8708 (syms_of_textprop): Initialize it.
8709 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8710 in minibuffer-prompt face. (Bug#1662)
8711
40b615d6
JR
87122008-12-25 Jason Rumney <jasonr@gnu.org>
8713
8714 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8715
baae5c2d
JR
87162008-12-24 Jason Rumney <jasonr@gnu.org>
8717
8718 * ralloc.c (r_alloc_reset_variable): New function.
8719
8720 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8721 record of what points where. (Bug#716)
baae5c2d 8722
a9051c88
DN
87232008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8724
8725 * minibuf.c (read_minibuf): Follow the non-interactive case when
8726 running as a daemon, before detaching.
8727
8b146312
AS
87282008-12-22 Andreas Schwab <schwab@suse.de>
8729
8730 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8731 * gtkutil.c (free_widget_value): Use xfree instead of free.
8732
56f2de10
MR
87332008-12-22 Martin Rudalics <rudalics@gmx.at>
8734
8735 * frame.c (delete_frame): New function derived from
8736 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8737 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8738 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8739 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8740 * frame.h: Extern delete_frame.
8741 * window.c (window_loop):
8742 * terminal.c (delete_terminal):
8743 * xterm.c (x_connection_closed):
8744 * xfns.c (Fx_hide_tip):
9acef61c 8745 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8746
1fc200d6
JR
87472008-12-21 Jason Rumney <jasonr@gnu.org>
8748
8749 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8750 when character maps to .notdef character.
8751
5e252df2
SM
87522008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8753
8754 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8755
99b72cc4
JR
87562008-12-20 Jason Rumney <jasonr@gnu.org>
8757
8758 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8759 a graphical frame on Windows. (Bug#1325)
99b72cc4 8760
acc49a52
JD
87612008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8762
8763 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8764
6ea15123
CY
87652008-12-20 Chong Yidong <cyd@stupidchicken.com>
8766
8767 * minibuf.c (Fread_buffer): Doc fix.
8768
b2dab6c8
JR
87692008-12-20 Jason Rumney <jasonr@gnu.org>
8770
54ea0c87 8771 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8772 server name in UNC paths. (Bug#719)
54ea0c87 8773
b2dab6c8 8774 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8775 charbuf. (Bug#1035)
b2dab6c8 8776
6d1921be
DN
87772008-12-19 Daniel Engeler <engeler@gmail.com>
8778
8779 * sysdep.c (serial_configure): Fix typo.
8780
53934c98
DN
87812008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8782
8783 * sysdep.c: Include alloca.h.
f4f634e8
DN
8784 (system_process_attributes): Add implementation for Solaris.
8785
8786 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8787
06e111a6
DN
87882008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8789
8790 Reorganize implementation of Flist_system_processes and
8791 Fsystem_process_attributes. No functional changes.
8792 * process.c: Don't #include pwd.h, grp.h and limits.h.
8793 (Flist_system_processes): Just call list_system_processes.
8794 (Fsystem_process_attributes): Just call system_process_attributes.
8795 (procfs_list_system_processes, time_from_jiffies)
8796 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8797 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8798
8799 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8800 (list_system_processes): Rename from
8801 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8802 Provide a do nothing implementation.
8803 (system_process_attributes): Rename from
8804 procfs_list_system_processes.
8805 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8806 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8807
8808 * w32.c (list_system_processes): Rename from
8809 w32_list_system_processes.
8810 (system_process_attributes): Rename from
8811 w32_system_process_attributes.
8812
8813 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8814
8815 * process.h (w32_list_system_processes)
8816 (w32_system_process_attributes): Remove.
362654a6
JB
8817 (list_system_processes, system_process_attributes):
8818 New prototypes.
06e111a6 8819
6a705b23
KH
88202008-12-19 Kenichi Handa <handa@m17n.org>
8821
8822 * xfont.c (xfont_decode_coding_xlfd): New function.
8823 (xfont_encode_coding_xlfd): New function.
8824 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8825 (xfont_list): Decode and encode XLFD by iso-8859-1.
8826 (xfont_match): Likewise.
8827 (xfont_list_family): Likewise.
8828 (xfont_open): Likewise.
8829
d66c0241 8830 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8831 names are utf-8.
8832
d66c0241 8833 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8834 names are utf-8.
8835
5a130941
JD
88362008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8837
8838 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8839 changed.
bfd20325
JD
8840 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8841 clicked on a detached tool bar button.
5a130941 8842
fd95644b
DN
88432008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8844
8845 * emacs.c (main): Print and error and exit when no data is read
8846 from the pipe.
8847
e6eee6ae
JR
88482008-12-17 Jason Rumney <jasonr@gnu.org>
8849
8850 * w32font.c (w32font_has_char): Always return -1.
8851
a35dd56b
KH
88522008-12-16 Kenichi Handa <handa@m17n.org>
8853
8854 * font.c (font_open_entity): Fix previous change.
8855
0e3635c2
DN
88562008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8857
8858 * process.c: Include <limits.h>.
8859
d4835507 88602008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8861
8862 * font.c (font_update_drivers): Fix mistake in reconstructing the
8863 driver list.
8864
88652008-12-16 Chong Yidong <cyd@stupidchicken.com>
8866
8867 * font.c (font_clear_cache): Fix format of font cache data.
8868
e2cbc401
CY
88692008-12-15 Chong Yidong <cyd@stupidchicken.com>
8870
8871 * xftfont.c (xftfont_open): Free Xft font pattern if
8872 XftFontOpenPattern fails.
8873
8874 * xterm.c (x_free_frame_resources): Remove extraneous call to
8875 free_frame_faces.
8876
b131d535
CY
88772008-12-13 Chong Yidong <cyd@stupidchicken.com>
8878
8879 * xterm.c (x_delete_display): Move xim_close_dpy call to
8880 x_delete_terminal.
8881 (x_delete_terminal): Call xim_close_dpy.
8882
e6df5336
JR
88832008-12-13 Jason Rumney <jasonr@gnu.org>
8884
8885 * w32font.c (intern_font_name): New function.
8886 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8887 (w32font_open_internal, Fx_select_font): Decode font name.
8888 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8889
8890 * w32font.h (intern_font_name): Declare new function.
8891
8892 * w32uniscribe.c (add_opentype_font_name_to_list):
8893 Use intern_font_name.
8894
20d68145
CY
88952008-12-13 Chong Yidong <cyd@stupidchicken.com>
8896
9f2554de
CY
8897 * frame.c (Fdelete_frame): Call free_font_driver_list.
8898
3d9bec9a
CY
8899 * font.c (free_font_driver_list): Implement missing function.
8900
20d68145
CY
8901 * w32term.c (w32_term_init): Don't initialize the image cache
8902 here; it will be done in init_frame_faces.
8903
8904 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8905 (struct x_display_info): Remove unused member null_pixel. New
8906 member xim_callback_data.
8907
8908 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8909 (xim_initialize): Save pointer to callback function data.
8910 (xim_close_dpy): Free callback function data. Call XCloseIM,
8911 reverting 2008-11-04 change by David Smith.
8912 (x_term_init): Don't initialize the image cache here; it will be
8913 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8914 (x_delete_display): Free x_dnd_atoms member.
8915
96f9306b
KH
89162008-12-13 Kenichi Handa <handa@m17n.org>
8917
6dec9044
JB
8918 * font.c (font_rescale_ratio): Moved from xfaces.c.
8919 Argument type changed. Handle a font-spec too.
96f9306b 8920 (font_score): Check Vface_font_rescale_alist.
6dec9044 8921 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8922
8923 * xfaces.c (font_rescale_ratio): Moved to font.c.
8924
8d5b4964
CY
89252008-12-13 Chong Yidong <cyd@stupidchicken.com>
8926
8927 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8928
e6df5336
JR
89292008-12-12 Jason Rumney <jasonr@gnu.org>
8930
8931 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8932 Vwindow_system_version to the real w32 major version.
8933
97c6058a
DN
89342008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8935
8936 * term.c (init_tty): Move setting the terminal name before the
8937 potential user: maybe_fatal.
8938
ec4e88d7
CY
89392008-12-11 Chong Yidong <cyd@stupidchicken.com>
8940
d4835507
JB
8941 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8942 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8943
b4233ec9
JR
89442008-12-11 Jason Rumney <jasonr@gnu.org>
8945
8ec71e23 8946 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8947 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8948
b4233ec9 8949 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8950 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8951
011a0143
JB
89522008-12-11 Juanma Barranquero <lekktu@gmail.com>
8953
8954 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8955
3c309f34
JB
89562008-12-11 Juanma Barranquero <lekktu@gmail.com>
8957
8958 * process.c (Fsystem_process_attributes, syms_of_process):
8959 Fix typo in name of Ssystem_process_attributes.
8960 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8961
fedc6ab5
JB
89622008-12-11 Juanma Barranquero <lekktu@gmail.com>
8963
8964 * syntax.c (Fmodify_syntax_entry): Doc fix.
8965
ba3de0e8
JB
89662008-12-10 Juanma Barranquero <lekktu@gmail.com>
8967
8968 * font.c (Ffont_spec): Move usage to end of docstring.
8969
174f1c74
JR
89702008-12-10 Jason Rumney <jasonr@gnu.org>
8971
8972 * w32font.c (Qcham): New symbol.
8973 (font_supported_scripts): Add cham, and comments for other new
8974 scripts in bitfield from OpenType spec.
9d32f818
JR
8975 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8976 contain characters beyond the bmp.
174f1c74 8977
7b649478
KH
89782008-12-10 Kenichi Handa <handa@m17n.org>
8979
8980 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8981 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8982 Qunicode_sip.
8983
2133e2d1
JB
89842008-12-10 Juanma Barranquero <lekktu@gmail.com>
8985
8986 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8987 (Fcoding_system_put): Use QCdefault_char.
8988 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8989
9af886ee
CY
89902008-12-09 Chong Yidong <cyd@stupidchicken.com>
8991
74d819eb
CY
8992 * xftfont.c (syms_of_xftfont): Fix typo.
8993
4ccfa1c0 8994 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8995
7c19d3ae
DN
89962008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8997
8998 * emacs.c (main): Close daemon_pipe on exec.
8999
567826bb
CY
90002008-12-08 Chong Yidong <cyd@stupidchicken.com>
9001
9002 * termchar.h (struct tty): New members termcap_term_buffer and
9003 termcap_strings_buffer.
9004
9005 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9006 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9007 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9008 All callers changed.
9009 (init_tty): Store termcap data and string buffers in new struct
9010 tty members termcap_term_buffer and termcap_strings_buffer.
9011 (delete_tty): Free them.
4ccfa1c0 9012 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9013
aa96c42b
SZ
90142008-12-07 Seiji Zenitani <zenitani@mac.com>
9015
9016 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9017 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9018
b7e1d896
CY
90192008-12-06 Chong Yidong <cyd@stupidchicken.com>
9020
9021 * coding.c (make_conversion_work_buffer): Disable buffer
9022 modification hooks in the work buffer.
9023
b5ec91a5
EZ
90242008-12-05 Eli Zaretskii <eliz@gnu.org>
9025
9026 * process.c (procfs_system_process_attributes): If `nread' has a
9027 negative value, assign zero to it.
9028
a5d2a52b
CY
90292008-12-05 Chong Yidong <cyd@stupidchicken.com>
9030
68c5540b 9031 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9032
7bf1bb21
KH
90332008-12-05 Kenichi Handa <handa@m17n.org>
9034
9035 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9036 second character is a combining character.
9037
2fdc7d00
EZ
90382008-12-05 Eli Zaretskii <eliz@gnu.org>
9039
9040 * process.c (procfs_system_process_attributes): Don't use cmd,
9041 cmdsize, and q without initializing them first.
9042
bf6bfba8
JR
90432008-12-04 Jason Rumney <jasonr@gnu.org>
9044
9045 * w32font.c (w32font_draw): Initialize orig_clip before getting
9046 it, and delete it when finished.
9047
a3b1a468
DN
90482008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9049
9050 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9051 case when running as a daemon before detaching.
9052
8b8be8eb
JB
90532008-12-03 Juanma Barranquero <lekktu@gmail.com>
9054
805f2638 9055 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9056
b1bde622
KH
90572008-12-03 Kenichi Handa <handa@m17n.org>
9058
e500c47d
KH
9059 * font.c (font_at): Set `multibyte' at first.
9060
ca516334
KH
9061 * coding.c (decode_coding_charset): Check type of an element of
9062 vector VALIDS.
7bf1bb21 9063 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9064
4ccfa1c0 9065 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9066 (font_for_char): Likewise.
9067
1e5ecd37
CY
90682008-12-03 Chong Yidong <cyd@stupidchicken.com>
9069
d5b01609 9070 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9071 (font_update_lface): Handle fonts with corrupted size specs,
9072 i.e. non-int and non-float.
d5b01609 9073
11e3a6e4 9074 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9075 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9076 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9077
ab06788b
CY
9078 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9079
1e5ecd37 9080 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9081 underline_minimum_offset for underline position.
1e5ecd37 9082
63c125ab
DN
90832008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9084
9085 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9086
9087 * character.c (c_string_width): Specify the type for LEN.
9088
3a8406e1
KH
90892008-12-03 Kenichi Handa <handa@m17n.org>
9090
4ccfa1c0 9091 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9092 (decode_coding_utf_8): Likewise.
4ccfa1c0 9093 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9094 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9095
651df7d9
CY
90962008-12-02 Chong Yidong <cyd@stupidchicken.com>
9097
9098 * keyboard.c (make_lispy_position): Only use PT if the selected
9099 window is current.
9100
1f625c6c
AS
91012008-12-02 Andreas Schwab <schwab@suse.de>
9102
f7741ce9
AS
9103 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9104
1f625c6c
AS
9105 * doprnt.c (doprnt1): Fix size of charbuf.
9106
92bc2678
CY
91072008-12-02 Chong Yidong <cyd@stupidchicken.com>
9108
9109 * keyboard.c (timer_check): Revert last change.
9110
93b9e8cc
JB
91112008-12-02 Juanma Barranquero <lekktu@gmail.com>
9112
9113 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9114
fd7a37d5
JB
91152008-12-01 Juanma Barranquero <lekktu@gmail.com>
9116
9117 * makefile.w32-in: Update dependencies.
9118 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9119
c115043b
AS
91202008-12-01 Andreas Schwab <schwab@suse.de>
9121
9122 * font.c (register_font_driver): Use xmalloc.
9123 (font_put_frame_data): Likewise.
9124
f5668d2a
CY
91252008-12-01 Chong Yidong <cyd@stupidchicken.com>
9126
860d96be
CY
9127 * xfaces.c (realize_x_face): Make abort condition clearer.
9128
f5668d2a
CY
9129 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9130
379c17e7
CY
91312008-11-30 Chong Yidong <cyd@stupidchicken.com>
9132
9133 * keyboard.c (timer_check): After a timer runs, ensure that the
9134 selected window's buffer is current.
9135
35f36d65
JB
91362008-11-30 Juanma Barranquero <lekktu@gmail.com>
9137
f952c61c
JB
9138 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9139 It was accidentally restored by the Unicode merge.
9140
35f36d65
JB
9141 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9142
b23077df
JB
91432008-11-29 Juanma Barranquero <lekktu@gmail.com>
9144
9145 * w32proc.c: Include "coding.h".
9146 (Fw32_short_file_name): Encode filename passed to Windows API.
9147 (Fw32_long_file_name): Encode filename passed to Windows API and
9148 decode back the result. (Bug#1433)
9149
b8ebe9dd
KH
91502008-11-29 Kenichi Handa <handa@m17n.org>
9151
8cc53f96
KH
9152 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9153 not before accessing it.
9154
b8ebe9dd
KH
9155 * charset.c (Fdefine_charset_internal): After calculating
9156 min_char, max_char, and fastmap, copy the charset structure again.
9157 (encode_char): Fix the previous change.
9158
59bc82c0
SZ
91592008-11-28 Seiji Zenitani <zenitani@mac.com>
9160
9161 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9162
9163 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9164
9165 * nsterm.m (x_set_frame_alpha): New function.
9166
32247e3d
EZ
91672008-11-27 Eli Zaretskii <eliz@gnu.org>
9168
9169 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9170
b003e5ff
JB
91712008-11-27 Juanma Barranquero <lekktu@gmail.com>
9172
9173 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9174 pointer to check_face_name.
9175
708550f5
KH
91762008-11-27 Kenichi Handa <handa@m17n.org>
9177
9178 * category.h (SET_CATEGORY_SET): Call set_category_set.
9179 (set_category_set): Extern it.
9180
9181 * category.c (hash_get_category_set): New function.
9182 (Fmodify_category_entry): Adjusted for the change of
9183 char_table_ref_and_range. Call hash_get_category_set to get a
9184 category set to store in the table.
9185
9186 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9187 Funify_charset.
9188
2ae37cf0 9189 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9190 (DECODE_CHAR): Check if the decoder vector is ready.
9191 (ENCODE_CHAR): Check if the encoder char-table is ready.
9192 (maybe_unify_char): Extern it.
9193
9194 * charset.c (Vchar_unified_charset_table): Delete it.
9195 (inhibit_load_charset_map): New variable.
9196 (temp_charset_work): New variable.
9197 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9198 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9199 New macros.
9200 (load_charset_map): Meaning of control_flag changed. If
9201 inhibit_load_charset_map is nonzero, setup a table in
9202 temp_charset_work.
9203 (load_charset): New argument control_flag.
9204 (map_charset_for_dump): New function.
9205 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9206 map_charset_for_dump.
9207 (Fdefine_charset_internal): If the charset method is MAP, load
9208 mapping tables by calling load_charset.
9209 (Funify_charset): Don't load a mapping table but directly set
9210 Vchar_unify_table.
9211 (maybe_unify_char): New function.
9212 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9213 Handle the case of inhibit_load_charset_map being nonzero.
9214 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9215 Handle the case of inhibit_load_charset_map being nonzero.
9216 (Fclear_charset_maps): Just free temp_charset_work.
9217 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9218 variable.
9219
9220 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9221 change of char_table_ref_and_range.
9222 (char_table_ref_and_range): Change the meaning of argument FROM
9223 and TO. Now the caller must provide initial values for *FROM
9224 and *TO.
9225
9226 * fontset.c (fontset_add): Adjusted for the change of
9227 char_table_ref_and_range.
9228 (fontset_get_font_group): Likewise.
9229 (Ffontset_info): Likewise.
9230
9231 * keymap.c (describe_vector): Adjusted for the change of
9232 char_table_ref_and_range. For char-table, put boundary between
9233 non-ASCII and 8-bit characters.
9234
9235 * print.c (print_object): For bool-vector, delete unnecessary
9236 check of ASCII_BYTE_P.
9237
9196133b
JR
92382008-11-26 Jason Rumney <jasonr@gnu.org>
9239
9240 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9241 leading in font height. (Bug#879)
9196133b 9242
9f688acf
GM
92432008-11-26 Glenn Morris <rgm@gnu.org>
9244
9245 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9246 redefinition with ifdef. (Bug#1383)
9247
90d19aff
AR
92482008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9249
9250 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9251
4ccfa1c0 92522008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9253
9254 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9255 New EmacsView methods.
9256 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9257 Fixes bug #1048,1357,1414.
9258
92592008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9260
9261 Fix bug #1362.
9262 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9263 is not an indexed color.
9264 * nsterm.m (free_indexed_color): Add argument checking.
9265 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9266
e7d5ecb3
CY
92672008-11-24 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9270 Document confirm-after-completion value for
9271 minibuffer-completion-confirm.
9272
c285743c
JR
92732008-11-24 Jason Rumney <jasonr@gnu.org>
9274
9275 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9276 warning.
9277
b0857706
JR
92782008-11-23 Jason Rumney <jasonr@gnu.org>
9279
9280 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9281 restored before returning.
9282
9283 * w32font.c (check_face_name): New function.
9284 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9285 fonts. (Bug#642)
b0857706 9286
ee50ff07
MR
92872008-11-22 Martin Rudalics <rudalics@gmx.at>
9288
9289 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9290 confirm-nonexistent-file-or-buffer in doc-string.
9291
b8ff72fa
SM
92922008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9293
9294 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9295 Fix copy/paste typo. Add checks.
9296
cee53ed4
KH
92972008-11-21 Kenichi Handa <handa@m17n.org>
9298
9299 * coding.c (detect_coding_iso_2022): Reject invalid composition
9300 sequence.
9301 (DECODE_COMPOSITION_START): If the current source is the last
9302 block, and the current composition doesn't end, regard this
9303 sequence as invalid.
9304 (decode_coding_iso_2022): Handle invalid composition sequence.
9305
f6ef1e65
MR
93062008-11-20 Martin Rudalics <rudalics@gmx.at>
9307
9308 * window.c (coordinates_in_window): Don't return
9309 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9310 line when the window is not the rightmost one. (Bug#1372)
9311
e08b1705
MR
93122008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9313
9314 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9315
ad98e89f
EZ
93162008-11-15 Eli Zaretskii <eliz@gnu.org>
9317
9318 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9319 and bright_bg if noninteractive is non-zero.
9320
fb098a4b
CY
93212008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9322
9323 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9324 x_draw_glyph_string_background.
9325
9326 * w32term.c (x_draw_glyph_string): Likewise.
9327
ce952b6e
CY
93282008-11-15 Chong Yidong <cyd@stupidchicken.com>
9329
9330 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9331 the next glyph string once past the overhang width.
9332
9333 * nsterm.m (ns_draw_glyph_string): Likewise.
9334
9335 * w32term.c (x_draw_glyph_string): Likewise.
9336
26ea7079
CY
93372008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9338
9339 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9340 double file close.
9341
1c33c906
MR
93422008-11-14 Martin Rudalics <rudalics@gmx.at>
9343
9344 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9345 dedicated status of window before attempting to display another
9346 buffer in it.
9347
8fc29035
JB
93482008-11-14 Juanma Barranquero <lekktu@gmail.com>
9349
9350 * msdos.c (Fmsdos_long_file_names):
9351 (syms_of_msdos) <dos-unsupported-char-glyph>:
9352 * dosfns.c (Fint86): Fix typos in docstrings.
9353
55fb4286
EZ
93542008-11-14 Eli Zaretskii <eliz@gnu.org>
9355
9356 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9357
3fda0315
KY
93582008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9359
9360 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9361
7e849c17
CY
93622008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9363
9364 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9365
9366 * frame.h: Negative alpha means "don't touch".
9367
9368 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9369
9370 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9371
b9fd67bd
DN
93722008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9373
9374 * hftctl.c:
9375 * chpdef.h:
9376 * acldef.h: Remove files used only for systems no longer supported.
9377
9378 * Makefile.in: Fix .o alphabetical ordering.
9379 (hftctl.o): Remove dependency, file removed.
9380 (keymap.o, print.o): Depend on charset.h.
9381
d5998e03
KH
93822008-11-10 Kenichi Handa <handa@m17n.org>
9383
2ae37cf0 9384 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9385
be70e183
CY
93862008-11-08 Chong Yidong <cyd@stupidchicken.com>
9387
9388 * dired.c (file_name_completion): If completion_ignore_case is
9389 enabled, ignore case when checking completion-regexp-list.
9390
7cf94eac
EZ
93912008-11-08 Eli Zaretskii <eliz@gnu.org>
9392
9393 * vm-limit.c (get_lim_data): Fix last change.
9394
ee107a89
KH
93952008-11-08 Kenichi Handa <handa@m17n.org>
9396
9397 * character.c (Fget_byte): New function.
9398 (syms_of_character): Defsubr Fget_byte.
9399
5fd15622
CY
94002008-11-07 Chong Yidong <cyd@stupidchicken.com>
9401
9402 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9403 cursor position is valid after scrolling.
9404
13d62fad
JB
94052008-11-06 Juanma Barranquero <lekktu@gmail.com>
9406
9407 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9408
a1dd2936
GM
94092008-11-06 Glenn Morris <rgm@gnu.org>
9410
9411 * xterm.c (handle_one_xevent): Don't let popup menus cause
9412 mouse-autoselect-window related window switching. (Bug#1261)
9413
860cd236
CY
94142008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9415
9416 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9417
653a3150
AS
94182008-11-04 Andreas Schwab <schwab@suse.de>
9419
9420 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9421
870f5cac
CY
94222008-11-03 Chong Yidong <cyd@stupidchicken.com>
9423
9424 * xfns.c (Fx_wm_set_size_hint): New function.
9425
1e02f3cb
MR
94262008-11-03 Martin Rudalics <rudalics@gmx.at>
9427
9428 * textprop.c (Fprevious_single_char_property_change): Return 0
9429 when there's no change in a string. (Bug#1301)
9430
e630dfc6
MR
94312008-11-02 Martin Rudalics <rudalics@gmx.at>
9432
9433 * frame.c (do_switch_frame): New argument NORECORD passed to
9434 Fselect_window.
9435 (Fselect_frame): New argument NORECORD passed to
9436 do_switch_frame.
9437 (Fset_frame_selected_window): New argument NORECORD passed to
9438 Fselect_frame.
9439 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9440 in call of do_switch_frame.
9441 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9442 Handle NORECORD argument in call of Fselect_frame.
9443 * lisp.h (do_switch_frame, Fselect_frame)
9444 (Fset_frame_selected_window): Adjust declarations.
9445 * window.c (select_frame_norecord): New function.
9446 (run_window_configuration_change_hook): Use it and call
9447 Fselect_frame with NORECORD set.
9448 (Fselect_window): Pass NORECORD to Fselect_frame.
9449 (Fset_window_configuration): Handle NORECORD argument in call of
9450 do_switch_frame.
9451 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9452 Fset_frame_selected_window.
9453 * keyboard.c (command_loop_1): Handle NORECORD in call of
9454 Fselect_frame (currently ifdefd).
9455
9020b223
GM
94562008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9457
9458 * emacs.c (USAGE2): Untabify.
9459
793ffee8
SM
94602008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9461
9462 * composite.c (fill_gstring_header): Fix copy/paste typo.
9463
ab6d1131
MR
94642008-10-31 Martin Rudalics <rudalics@gmx.at>
9465
9466 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9467 (Fother_window): Rename argument and rewrite doc-string.
9468 (select_window_norecord): Fix return value. (Bug#1276)
9469
601a9cf1
JB
94702008-10-30 Juanma Barranquero <lekktu@gmail.com>
9471
9472 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9473 new frames overriding foreground for tooltips. Based on similar patch
9474 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9475
813b0652
CY
94762008-10-29 Chong Yidong <cyd@stupidchicken.com>
9477
9478 * emacs.c (Fdaemon_initialized): Initialize nfd.
9479
4414f58f
MR
94802008-10-29 Martin Rudalics <rudalics@gmx.at>
9481
9482 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9483 (Fwindow_text_height): Clarify doc-strings.
9484 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9485 doc-string of window-scroll-functions.
9486
ecdcaa09
RS
94872008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9488
9489 * category.c (syms_of_category): Fix typo in docstring.
9490
23fe745a
JB
94912008-10-28 Juanma Barranquero <lekktu@gmail.com>
9492
9493 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9494 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9495 Fix typos in docstrings.
9496
ff808935
DN
94972008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9498
9499 * emacs.c (daemon_pipe): Make non-static.
9500 (IS_DAEMON): Move definition ...
9501 * lisp.h (IS_DAEMON): ... here.
9502 (daemon_pipe): Declare.
9503 (is_daemon): Remove.
9504 * dispnew.c (init_display): Use IS_DAEMON.
9505
fc012771
SM
95062008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9507
9508 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9509 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9510
9511 * emacs.c (is_daemon): Remove.
9512 (main): Don't set is_daemon.
9513 (IS_DAEMON): New macro.
9514 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9515 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9516 parent exits.
9517 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9518
d8bdbe6f
CY
95192008-10-27 Chong Yidong <cyd@stupidchicken.com>
9520
d1a072bf
CY
9521 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9522 over-sized glyph, draw it with the default glyph width.
9523
e2e325aa
CY
9524 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9525 glyph, draw it with the default glyph width.
9526
9527 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9528 glyph, draw it with the default glyph width.
9529
d8bdbe6f
CY
9530 * xdisp.c (try_scrolling): When computing the distance from the
9531 scroll margin to PT, try moving some distance past the window
9532 bottom before giving up.
9533
7bfac547
MR
95342008-10-27 Martin Rudalics <rudalics@gmx.at>
9535
9536 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9537 (Fset_window_buffer): Explain in doc-string that a window can be
9538 "strongly" dedicated to its buffer.
9539
4ff029f6
DN
95402008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9541
9542 * emacs.c (daemon_name): New variable.
9543 (main): Deal with --daemon=SERVER_NAME.
9544 (Fdaemonp): Return a name if one was passed to --daemon.
9545
5790ef40
DN
95462008-10-26 Romain Francoise <romain@orebokech.com>
9547
f9bd0df9 9548 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9549 (main): Create a pipe before forking, make the parent exit only after
9550 the child has closed its end of the pipe. Move closing the
9551 descriptors ...
9552 (Fdaemon_initialized): ... here. New function.
9553
f5385255
SM
95542008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9555
4d632321
SM
9556 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9557 the previous unoptimized table.
9558
f5385255
SM
9559 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9560 the distinction between non-nil and non-t value of `dedicated'.
9561
6c56a0f3
CY
95622008-10-25 Chong Yidong <cyd@stupidchicken.com>
9563
9564 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9565 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9566
fec89261
MR
95672008-10-25 Martin Rudalics <rudalics@gmx.at>
9568
9569 * window.c (Fget_buffer_window, Fdelete_windows_on)
9570 (Freplace_buffer_in_windows): Make buffer argument optional and
9571 rename to buffer_or_name.
9572
34fcddd0
CY
95732008-10-24 Chong Yidong <cyd@stupidchicken.com>
9574
f5385255
SM
9575 * xdisp.c (handle_single_display_spec, handle_display_prop):
9576 Undo 2005-05-16 change.
34fcddd0
CY
9577 (handle_stop): Pop iterator if it's loaded with an empty string.
9578 (get_overlay_strings_1): Don't save iterator if it's loaded with
9579 an empty string (bug#1201).
9580
064766f2
KH
95812008-10-24 Kenichi Handa <handa@m17n.org>
9582
9583 * ftfont.c (ftfont_otf_features): Fix previous change.
9584 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9585 calling ftfont_otf_features.
9586
f9bd0df9 95872008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9588
9589 * font.c (font_match_p): Fix for the case that a vector of
9590 characters is in script-representative-chars.
9591
1dae9197
MA
95922008-10-24 Michael Albinus <michael.albinus@gmx.de>
9593
9594 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9595 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9596 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9597 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9598 macro. (Bug#1186)
1dae9197 9599
f9bd0df9 96002008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9601
9602 * s/sol2-10.h: New file.
9603
878a4584
JB
96042008-10-23 Juanma Barranquero <lekktu@gmail.com>
9605
9606 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9607 poor beast has survived 9+ years and the jump from xterm.c!).
9608
cd265ca6
MR
96092008-10-23 Martin Rudalics <rudalics@gmx.at>
9610
9611 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9612 Reword doc-string.
f5385255 9613 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9614
472a4dc9
JB
96152008-10-23 Juanma Barranquero <lekktu@gmail.com>
9616
9617 * character.c (syms_of_character) <script-representative-chars>:
9618 <unicode-category-table>: Doc fixes.
9619
159bd5a2
NF
96202008-10-23 Noah Friedman <friedman@splode.com>
9621
9622 * coding.c (make_conversion_work_buffer): Check that
9623 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9624 Fget_buffer_create.
9625
49f9c344
KH
96262008-10-23 Kenichi Handa <handa@m17n.org>
9627
9628 * font.c (font_add_log): Check the values of extra properties.
9629
12bb3111
MR
96302008-10-22 Martin Rudalics <rudalics@gmx.at>
9631
9632 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9633 Reword doc-string.
9634 (Fset_window_parameter): Use NILP.
9635 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9636 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9637
bbeb4e99
JB
96382008-10-22 Juanma Barranquero <lekktu@gmail.com>
9639
9640 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9641
96422008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9643
9644 * nsfns.m (ns_appkit_version): New function.
9645 (x-server-version): Use it.
9646 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9647 (x-server-vendor): Don't check_ns().
9648
9649 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9650
a9b555d3
JB
96512008-10-22 Juanma Barranquero <lekktu@gmail.com>
9652
9653 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9654 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9655
4626499f
KH
96562008-10-22 Kenichi Handa <handa@m17n.org>
9657
e3681952
KH
9658 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9659 scripts.
9660
4626499f
KH
9661 * category.c (word_boundary_p): Check scripts instead of charset.
9662 Handle nil value in word-separating-categories and
9663 word-combining-categories.
9664 (syms_of_category): Fix docstrings of word-separating-categories
9665 and word-combining-categories.
9666
1560f91a
EZ
96672008-10-21 Eli Zaretskii <eliz@gnu.org>
9668
9669 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9670 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9671
f4668441
MR
96722008-10-21 Martin Rudalics <rudalics@gmx.at>
9673
9674 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9675 Rename arg "buffer" to "buffer_or_name".
9676 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9677 it optional.
9678 (no_switch_window): Remove since the return value is not used.
a9b555d3 9679 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9680 Consider window as dedicated when Fwindow_dedicated_p returns a
9681 non-nil value.
9682 * lisp.h: Remove prototype for no_switch_window.
9683
fd75ddb2
JD
96842008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9685
9686 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9687 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9688
07295713
KH
96892008-10-21 Kenichi Handa <handa@m17n.org>
9690
9691 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9692 check Vlatin_extra_code_table.
9693
712adc82
EZ
96942008-10-20 Eli Zaretskii <eliz@gnu.org>
9695
9696 * fileio.c (Fset_file_modes): Doc fix.
9697
f549eb0b
MA
96982008-10-19 Michael Albinus <michael.albinus@gmx.de>
9699
9700 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9701 in arrays.
9702
aac0c6e3
MR
97032008-10-19 Martin Rudalics <rudalics@gmx.at>
9704
9705 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9706 Mention kill-buffer in doc-string.
9707 (Fset_window_buffer): Reinsert tem check removed in last commit.
9708 (Fenlarge_window, Fshrink_window): Have argument names and
9709 doc-string follow Elisp manual more closely.
9710
97112008-10-18 Eli Zaretskii <eliz@gnu.org>
9712
9713 * fileio.c (Fset_file_modes): Doc fix.
9714
97152008-10-18 Martin Rudalics <rudalics@gmx.at>
9716
9717 * window.c (Fwindow_width, Fset_window_start)
9718 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9719 (Fdelete_windows_on, Freplace_buffer_in_windows):
9720 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9721 (Fwindow_dedicated_p): Make window argument optional.
9722 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9723 (Fset_window_buffer): Respect any non-nil dedicated value for
9724 window. Rename "buffer" argument to "buffer_or_name".
9725
97262008-10-18 Ulrich Mueller <ulm@gentoo.org>
9727
9728 * m/sh3.h: New file, machine description for SuperH.
9729
97302008-10-17 Martin Rudalics <rudalics@gmx.at>
9731
9732 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9733
97342008-10-17 Kenichi Handa <handa@m17n.org>
9735
9736 * ftfont.c (ftfont_otf_features): Fix indexing
9737 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9738
97392008-10-16 Magnus Henoch <mange@freemail.hu>
9740
9741 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9742 (Fdbus_call_method_asynchronously): Ditto.
9743 This change makes C-h f display the argument list.
9744
97452008-10-16 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * fileio.c (Fexpand_file_name): Doc fix.
9748
9749 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9750 of :foreground and :background equivalent to unspecified (20.x
9751 compatibility).
9752
97532008-10-15 Eli Zaretskii <eliz@gnu.org>
9754
9755 * buffer.c (syms_of_buffer): Doc fix.
9756
97572008-10-14 Kenichi Handa <handa@m17n.org>
9758
9759 * font.c (font_clear_prop): When clearing font width, clear the
9760 average width field too.
9761
97622008-10-12 Andreas Schwab <schwab@suse.de>
9763
9764 * ftfont.c (ftfont_shape_by_flt): Make static.
9765 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9766
9767 * font.c: Don't include <m17n-flt.h>.
9768
97692008-10-10 Eli Zaretskii <eliz@gnu.org>
9770
9771 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9772
97732008-10-09 Eli Zaretskii <eliz@gnu.org>
9774
9775 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9776 away code.
9777
97782008-10-09 Chong Yidong <cyd@stupidchicken.com>
9779
9780 * dispnew.c (update_text_area): Avoid looping due to large glyph
9781 overhangs (bug#1070).
9782
97832008-10-09 Kenichi Handa <handa@m17n.org>
9784
9785 * fontset.c (face_for_char): If face->fontset is negative, just
9786 return ascii_face.
9787
f5385255
SM
9788 * font.c (font_delete_unmatched): Fix previous change.
9789 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9790
97912008-10-09 Martin Rudalics <rudalics@gmx.at>
9792
9793 * frame.c (Fraise_frame): On text-only terminals select frame in
9794 order to make it visible. (Bug#1061)
9795
97962008-10-08 Chong Yidong <cyd@stupidchicken.com>
9797
9798 * fontset.c (fontset_find_font): Check frame validity.
9799
98002008-10-07 Chong Yidong <cyd@stupidchicken.com>
9801
a9b555d3 9802 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9803 (xg_display_close): Allow Emacs to close all displays (bug#985).
9804
98052008-10-06 Andreas Schwab <schwab@suse.de>
9806
f5385255 9807 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9808
98092008-10-06 Chong Yidong <cyd@stupidchicken.com>
9810
f5385255 9811 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9812
a9b555d3 9813 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9814
9815 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9816 during initialization.
9817
98182008-10-04 Eli Zaretskii <eliz@gnu.org>
9819
9820 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9821 whole thing on MSDOS frames as well as on a TTY.
9822
9823 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9824 well as for TTY.
9825 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9826 well as on a TTY.
9827
9828 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9829 as well as for TTY.
9830
9831 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9832
9833 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9834 MSDOS frames as well.
9835
98362008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9837
9838 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9839 correct arguments.
b71ac3dd 9840 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9841
98422008-10-03 Glenn Morris <rgm@gnu.org>
9843
9844 * emacs.c (USAGE1): Add --daemon.
9845
98462008-10-02 Eli Zaretskii <eliz@gnu.org>
9847
9848 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9849 100, so it's in percents as advertised.
9850
98512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9852
9853 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9854 (ns_output.current_cursor, ns_output.desired_cursor)
9855 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9856 (FRAME_NEW_CURSOR_COLOR): Remove.
9857
9858 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9859 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9860 enumeration (HOLLOW_BOX_CURSOR, etc.).
9861
9862 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9863 (draw_window_cursor): Simplify code.
f5385255
SM
9864 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9865 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9866 updates manually.
a9b555d3
JB
9867 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9868 Use core Emacs cursor types.
aac0c6e3 9869
b8ff72fa 9870 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9871
98722008-10-02 Martin Rudalics <rudalics@gmx.at>
9873
9874 * process.c (Faccept_process_output): Fix doc-string.
9875
98762008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9877
9878 * gmalloc.c (__sbrk): Also define for uClibc.
9879
9880 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9881 for uClibc.
9882
98832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9884
9885 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9886 styles.
9887 (nsfont_open): Reenable the cache.
9888
98892008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9890
9891 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9892 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9893
98942008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9895
9896 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9897 a suspended terminal.
9898
98992008-09-30 Michael Albinus <michael.albinus@gmx.de>
9900
9901 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9902
99032008-09-30 Eli Zaretskii <eliz@gnu.org>
9904
9905 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9906
99072008-09-30 Chong Yidong <cyd@stupidchicken.com>
9908
9909 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9910 in a continued line coincides with a line beginning.
9911
99122008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9913
9914 * nsfont.m (nsfont_trait_distance): Fix bug.
9915 (nsfont_list): Return a list rather than a vector (syncs with Handa
9916 changes of 2008-05-14).
9917 (nsfont_open): Improve logging.
9918
99192008-09-29 Andreas Schwab <schwab@suse.de>
9920
9921 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9922
99232008-09-28 Martin Rudalics <rudalics@gmx.at>
9924
9925 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9926 name as char-resolve-modifiers.
9927 Reported by: Markus Triska <markus.triska@gmx.at>
9928
99292008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9930
9931 * dispnew.c (init_display): Return earlier when running as a daemon.
9932
99332008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9934
9935 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9936
99372008-09-27 Eli Zaretskii <eliz@gnu.org>
9938
9939 * composite.c (Fcomposition_get_gstring)
9940 (Fcompose_region_internal, Fcompose_string_internal)
9941 (Ffind_composition_internal): Doc fix.
9942 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9943 (syms_of_composite) <auto-composition-function>: Doc fix.
9944 (syms_of_composite) <composition-function-table>: Doc fix.
9945
99462008-09-25 Chong Yidong <cyd@stupidchicken.com>
9947
9948 * search.c (wordify): New argument for lax word-ends.
9949 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9950
99512008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9952
9953 * lisp.h (is_daemon): Declare.
9954 * dispnew.c (init_display): Do not try to initialize the terminal
9955 when running as a daemon.
9956
99572008-09-22 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9960 x_display_pixel_height.
9961
99622008-09-22 Martin Rudalics <rudalics@gmx.at>
9963
9964 * undo.c (record_point): Don't call Fundo_boundary for first
9965 change. (Bug#731)
9966
99672008-09-22 Juanma Barranquero <lekktu@gmail.com>
9968
9969 * emacs.c (Fdaemonp): Doc fix.
9970
99712008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9972
9973 * emacs.c (main): Place #ifdef in the proper place.
9974
99752008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9976
9977 * emacs.c (standard_args): Add --daemon.
9978 (main): Disconnect from the terminal when --daemon is passed.
9979 (is_daemon): New variable.
9980 (Fdaemonp): New function.
9981 (syms_of_emacs): Defsubr it.
9982
99832008-09-20 Chong Yidong <cyd@stupidchicken.com>
9984
9985 * xdisp.c (get_next_display_element): Handle string display
9986 correctly when checking for the end of a box run.
9987
99882008-09-20 Glenn Morris <rgm@gnu.org>
9989
9990 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9991 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9992 (Frename_file): Avoid copying to trash if a rename involves
9993 a delete. (Bug#964).
9994
99952008-09-20 Eli Zaretskii <eliz@gnu.org>
9996
9997 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9998 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9999 frames as well as termcap frames.
10000 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10001 get_named_tty.
10002
100032008-09-19 Eli Zaretskii <eliz@gnu.org>
10004
10005 * process.c (procfs_system_process_attributes): Fix cmdline in
10006 case /proc/PID/cmdline is empty.
10007
10008 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10009 x_display_pixel_height.
10010
100112008-09-19 Juanma Barranquero <lekktu@gmail.com>
10012
10013 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10014
10015 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10016 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10017
100182008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10019
10020 * dispextern.h (struct it): Move line_wrap away from the middle of
10021 bitfields. Move voffset in struct iterator_stack_entry after the
10022 bitfields. Move tab_width near after another short.
10023
100242008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10025
10026 * frame.h (struct frame): Move alpha from the middle of bitfields.
10027
10028 * window.h (struct window): Move frozen_window_start_p after the
10029 rest of the bitfields to reduce padding.
10030
100312008-09-18 Chong Yidong <cyd@stupidchicken.com>
10032
10033 * xterm.h (x_display_info): Remove `height' and `width' members.
10034
10035 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10036
10037 * w32term.h (w32_display_info): Remove `height', `width',
10038 `height_in', and `width_in' members.
10039
b8ff72fa
SM
10040 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10041 New functions.
aac0c6e3
MR
10042 (x_calc_absolute_position): Use them.
10043 (x_term_init): Omit removed `height' and `width' members.
10044
b8ff72fa
SM
10045 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10046 New functions.
aac0c6e3
MR
10047 (w32_read_socket, x_calc_absolute_position): Use them.
10048 (w32_initialize_display_info, w32_term_init): Omit removed members
10049 of w32_display_info.
10050
b8ff72fa
SM
10051 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10052 New functions.
10053 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10054
b8ff72fa
SM
10055 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10056 New functions.
aac0c6e3
MR
10057 (x_calc_absolute_position): Use them.
10058 (x_term_init): Omit removed `height' and `width' members.
10059
10060 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10061 (compute_tip_xy):
10062 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10063 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10064 x_display_pixel_width.
10065
100662008-09-18 Kenichi Handa <handa@m17n.org>
10067
10068 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10069 (composition_compute_stop_pos): Fix handling of static composition.
10070 (Fcomposition_get_gstring): Check FROM and TO at first.
10071
100722008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10073
46e722a9 10074 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10075 mixup (YAILOM).
10076
100772008-09-17 Chong Yidong <cyd@stupidchicken.com>
10078
10079 * indent.c (Fvertical_motion): Use position reported by iterator
10080 instead of PT for determining screen motion (bug#943).
10081
100822008-09-17 Romain Francoise <romain@orebokech.com>
10083
10084 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10085
100862008-09-17 Kenichi Handa <handa@m17n.org>
10087
10088 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10089
10090 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10091 if necessary.
10092
100932008-09-16 Kenichi Handa <handa@m17n.org>
10094
10095 * coding.c (make_conversion_work_buffer): Avoid calling
10096 Fget_buffer_create if it is not necessary.
10097
100982008-09-15 Martin Rudalics <rudalics@gmx.at>
10099
10100 * window.c (Fselect_window): Don't update window_select_count and
10101 use_time when norecord is not nil.
10102
101032008-09-14 Kenichi Handa <handa@m17n.org>
10104
10105 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10106 specpdl_ptr.
10107
101082008-09-12 Kenichi Handa <handa@m17n.org>
10109
10110 * indent.c (scan_for_column): Don't handle automatic composition
10111 if the current buffer is not associated with a window.
10112
10113 * composite.c (composition_reseat_it): If the current buffer is
10114 not associated with a window, ignore the automatic composition.
10115 (find_automatic_composition): Likewise.
10116
101172008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10118
10119 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10120 (Fgpm_mouse_stop): Use it.
10121 * termhooks.h (close_gpm): Declare.
10122 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10123 connection if Gpm_GetEvent fails.
10124
10125 * window.c (set_window_buffer): Always preserve current-buffer.
10126
101272008-09-12 Glenn Morris <rgm@gnu.org>
10128
10129 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10130
101312008-09-11 Glenn Morris <rgm@gnu.org>
10132
10133 * charset.c (charset-map-path): Doc fix.
10134
101352008-09-10 Kenichi Handa <handa@m17n.org>
10136
10137 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10138
10139 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10140 compose a grapheme cluster with the preceding base glyph.
10141
10142 * composite.c (composition_compute_stop_pos): Fix previous change.
10143 Reset cmp_it->id to -1 at first.
10144
101452008-09-10 Glenn Morris <rgm@gnu.org>
10146
10147 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10148
101492008-09-09 Chong Yidong <cyd@stupidchicken.com>
10150
10151 * keyboard.c (read_key_sequence): Reapply translation maps when
10152 switching keyboards.
10153
101542008-09-09 Kenichi Handa <handa@m17n.org>
10155
10156 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10157 characters.
10158
10159 * composite.c (FORWARD_CHAR): Fix calculation
10160 of (POSITION).pos_byte.
10161 (composition_compute_stop_pos): Limit the search of composition to
10162 at most 500 characters ahead. If we reach the limit or find a
10163 newline, set cmp_it->ch to -2 and return 0.
10164 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10165
101662008-09-08 Kenichi Handa <handa@m17n.org>
10167
10168 * indent.c (Fvertical_motion): Be sure to set
10169 it_overshoot_expected if it.cmp_it.id is non-negative.
10170
101712008-09-07 Andreas Schwab <schwab@suse.de>
10172
10173 * callproc.c (Fcall_process): Don't hold references to string data
10174 across garbage collection. Move initialisation of new_argv down
10175 to avoid compiler bug.
10176
101772008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10178
10179 * process.c (Fsystem_process_attributes): Doc fix.
10180
101812008-09-07 Chong Yidong <cyd@stupidchicken.com>
10182
10183 * callproc.c (Fcall_process): Canonicalize current directory name.
10184
10185 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10186 iterator advances to the next line if the current line ends in a
10187 continued tab.
10188
101892008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10190
10191 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10192 member to point to cmp_from.
10193
10194 * xdisp.c: Doc fix for references to gidx data member.
10195
101962008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10197
10198 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10199
102002008-09-07 Kenichi Handa <handa@m17n.org>
10201
10202 * composite.c (FORWARD_CHAR): Check STOP after
10203 incrementing (POSITION).pos.
10204
102052008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10206
10207 * process.c (Fsystem_process_attributes): Doc fix.
10208
102092008-09-06 Chong Yidong <cyd@stupidchicken.com>
10210
10211 * keyboard.c (Ftop_level): Doc fix.
10212
102132008-09-06 Eli Zaretskii <eliz@gnu.org>
10214
10215 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10216 minibuffer, don't let lower part of menu invade the echo area.
10217
10218 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10219 "char *q" to access menu text and advance through it. Revert the
10220 change that displayed ">" instead of ASCII character 0x10.
10221
102222008-09-05 Eli Zaretskii <eliz@gnu.org>
10223
10224 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10225 toggle boxes and radio buttons on MS-DOS as well.
10226
102272008-09-05 Kenichi Handa <handa@m17n.org>
10228
10229 * composite.c (autocmp_chars): Check lookback count.
10230 (composition_compute_stop_pos): Set cmp_it->lookback.
10231 (composition_reseat_it): Check lookback count.
10232 (struct position_record): New struct.
10233 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10234 (find_automatic_composition): New function.
10235 (composition_adjust_point): Use find_automatic_composition.
10236
10237 * dispextern.h (struct composition_it): New member lookback.
10238
102392008-09-02 Chong Yidong <cyd@stupidchicken.com>
10240
10241 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10242 if moving by a single line.
10243
102442008-09-02 Andreas Schwab <schwab@suse.de>
10245
10246 * xterm.c (x_delete_display): Fix merge error.
10247
10248 * fileio.c (Fexpand_file_name): Remove unused variables.
10249
102502008-09-02 Eli Zaretskii <eliz@gnu.org>
10251
10252 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10253 storage on all platforms, not just on DOS_NT.
10254
102552008-09-02 Jason Rumney <jasonr@gnu.org>
10256
b8ff72fa
SM
10257 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10258 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10259
102602008-09-01 Chong Yidong <cyd@stupidchicken.com>
10261
10262 * xfaces.c (Finternal_set_alternative_font_family_alist)
10263 (Finternal_set_alternative_font_registry_alist): Properly copy
10264 entire alist structure.
10265
102662008-09-01 Kenichi Handa <handa@m17n.org>
10267
d66c0241 10268 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10269 representative chars of the script is a vector.
d66c0241
JB
10270 (ftfont_list): Handle the case where the representative chars of
10271 the script is a vector.
aac0c6e3
MR
10272
10273 * character.c (syms_of_character): Docstring of
10274 script-representative-chars fixed.
10275
102762008-08-31 Eli Zaretskii <eliz@gnu.org>
10277
10278 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10279 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10280 the menu. Allocate larger buffer for `text', to account for
10281 possible ^C characters.
10282
102832008-08-31 Martin Rudalics <rudalics@gmx.at>
10284
10285 * xdisp.c (prepare_menu_bars): Don't call
10286 Vwindow_size_change_functions with arg Qt.
10287
102882008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * font.h (font_range):
10291 * fileio.c (report_file_error):
46e722a9
SM
10292 * composite.c (composition_update_it): Yet another int/Lisp_Object
10293 mixup (YAILOM).
aac0c6e3
MR
10294
102952008-08-30 Glenn Morris <rgm@gnu.org>
10296
10297 * data.c (Fmake_variable_frame_local): Doc fix.
10298
10299 * frame.c (Fmodify_frame_parameters): Doc fix.
10300
103012008-08-30 Eli Zaretskii <eliz@gnu.org>
10302
10303 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10304 needed by GetTokenInformation.
10305 (w32_system_process_attributes): Check return values of all system
10306 APIs.
10307
10308 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10309 only when the state changes.
10310 (IT_update_begin, IT_update_end): Add termscript trace.
10311
10312 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10313 clipboard is unavailable. Set dst to NULL if it doesn't point to
10314 malloc'ed data.
10315 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10316 passing random values to xfree.
10317
10318 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10319 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10320
103212008-08-29 Jason Rumney <jasonr@gnu.org>
10322
10323 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10324
103252008-08-29 Eli Zaretskii <eliz@gnu.org>
10326
10327 * composite.c (fill_gstring_body): Avoid compiler warnings.
10328
10329 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10330 LGLYPH_SET_CODE to avoid compiler warnings.
10331
2ae37cf0 10332 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10333
10334 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10335
10336 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10337 LGLYPH_SET_CODE.
10338
103392008-08-29 Kenichi Handa <handa@m17n.org>
10340
10341 * fileio.c (report_file_error): Don't downcase the first character
10342 of errstring if it is still unibyte.
10343
103442008-08-29 Kenichi Handa <handa@m17n.org>
10345
10346 These changes are to re-implement the automatic composition so
10347 that it doesn't use text properties.
10348
10349 * Makefile.in (ftfont.o): Depend on composite.h.
10350 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10351
10352 * character.h (Vunicode_category_table): Extern it.
10353
10354 * character.c (Vunicode_category_table): New variable.
10355 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10356
10357 * chartab.c (optimize_sub_char_table): Perform more greedy
10358 optimization.
10359
b8ff72fa
SM
10360 * composite.h (enum composition_method):
10361 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10362 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10363 (Vcomposition_function_table): Extern it.
10364 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10365 (composition_gstring_put_cache, composition_gstring_from_id)
10366 (composition_gstring_p, composition_gstring_width)
10367 (composition_compute_stop_pos, composition_reseat_it)
10368 (composition_update_it, composition_adjust_point): Extern them.
10369 (Fcomposition_get_gstring): EXFUN it.
10370
d66c0241 10371 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10372 (Vcomposition_function_table)
10373 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10374 (gstring_hash_table, gstring_work, gstring_work_headers):
10375 New variables.
aac0c6e3
MR
10376 (gstring_lookup_cache, composition_gstring_put_cache)
10377 (composition_gstring_from_id, composition_gstring_p)
10378 (composition_gstring_width, fill_gstring_header)
10379 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10380 (composition_reseat_it, composition_update_it)
b8ff72fa 10381 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10382 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10383 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10384 Defsubr composition_get_gstring.
aac0c6e3
MR
10385
10386 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10387 cmp_id.
10388 (struct glyph_string): Delete the member gidx. New members
10389 cmp_id, cmp_from, and cmp_to.
10390 (enum it_method): Delete GET_FROM_COMPOSITION.
10391 (struct composition_it): New struct.
10392 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10393 Delete c, len, cmp_id, cmp_len in u.comp.
10394
10395 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10396 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10397 (enum lglyph_indices): Likewise.
b8ff72fa 10398 (font_range): Adjust extern.
aac0c6e3
MR
10399 (font_fill_lglyph_metrics): Extern it.
10400
10401 * font.c (QCf): New variable.
10402 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10403 (font_prepare_composition): Delete this function.
10404 (font_range): Type and arguments changed.
10405 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10406 (font_fill_lglyph_metrics): New function.
b8ff72fa 10407 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10408 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10409 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10410 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10411
10412 * fontset.h (font_for_char): Extern it.
10413
10414 * fontset.c (font_for_char): New function.
10415
10416 * ftfont.c: Include composite.h.
10417 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10418 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10419
10420 * indent.c: Include composite.h and dispextern.h.
10421 (check_composition): Delete this function.
10422 (scan_for_column): Handle composition by
10423 composition_compute_stop_pos, composition_reseat_it, and
10424 composition_update_it.
10425 (compute_motion): Likewise.
10426 (Fvertical_motion): Fix checking of composition.
10427
10428 * keyboard.c (adjust_point_for_property): Check composition by
10429 composition_adjust_point.
10430
b8ff72fa 10431 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10432 struct glyph_string.
10433
b8ff72fa
SM
10434 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10435 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10436 struct glyph.
10437 (produce_composite_glyph): Likewise.
10438
b8ff72fa
SM
10439 * w32term.c (x_draw_composite_glyph_string_foreground):
10440 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10441 (x_draw_glyph_string): Likewise.
10442
10443 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10444 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10445
10446 * xdisp.c: Include font.h.
10447 (it_props): Delete the entry for Qauto_composed.
10448 (init_iterator): Initialize it->cmp_it.id to -1.
10449 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10450 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10451 (handle_auto_composed_prop): Delete it.
10452 (handle_composition_prop): Handle only static composition.
10453 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10454 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10455 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10456 (pop_it): Likewise.
10457 (get_next_element): Delete next_element_from_composition.
10458 (CHAR_COMPOSED_P): New macro.
10459 (get_next_display_element): For automatic composition, get a face
10460 from the font in the glyph-string.
10461 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10462 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10463 (next_element_from_string): Check if the character at the current
10464 position is composed by CHAR_COMPOSED_P.
10465 (next_element_from_buffer): Likewise.
d66c0241
JB
10466 (next_element_from_composition): Adjust for the change of struct it.
10467 Update it->cmp_it.
b8ff72fa
SM
10468 (dump_glyph): Adjust for the change of struct glyph.
10469 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10470 it and struct glyph. Don't handle automatic composition here.
10471 (fill_gstring_glyph_string): New function.
10472 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10473 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10474 (BUILD_GSTRING_GLYPH_STRING): New macro.
10475 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10476 automatic composition.
b8ff72fa 10477 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10478 struct glyph.
b8ff72fa 10479 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10480
b8ff72fa 10481 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10482 the change of struct glyph_string.
10483 (x_draw_glyph_string): Likewise.
10484
104852008-08-29 Glenn Morris <rgm@gnu.org>
10486
10487 * buffer.c (word-wrap): Doc fix.
10488 * xdisp.c (truncate-partial-width-windows): Doc fix.
10489 Increase default to 50.
10490
104912008-08-29 Chong Yidong <cyd@stupidchicken.com>
10492
10493 * xdisp.c (update_tool_bar_unwind): New function.
10494 (update_tool_bar): Temporarily set selected frame before building
10495 tool-bar items.
10496
104972008-08-28 Michael Albinus <michael.albinus@gmx.de>
10498
10499 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10500 snprintf, respectively.
10501 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10502
105032008-08-28 Chong Yidong <cyd@stupidchicken.com>
10504
10505 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10506 LDFLAGS to GNUstep CC invocation.
10507
105082008-08-27 Chong Yidong <cyd@stupidchicken.com>
10509
10510 * indent.c (Fvertical_motion): Revert last change. Handle the
10511 general case where we are moving forward, and PT spans multiple
10512 screen lines.
10513
10514 * eval.c (find_handler_clause): Temporarily increase
10515 max-lisp-eval-depth while printing the backtrace buffer, to
10516 guarantee that help-mode code can run.
10517
105182008-08-27 Eli Zaretskii <eliz@gnu.org>
10519
10520 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10521 colors under -rv.
10522 (IT_set_frame_parameters): Don't swap foreground and background
10523 colors if `(reverse . t)' is present in the frame properties.
10524 (internal_terminal_init): Call init_frame_faces only for the
10525 initial frame.
10526
105272008-08-27 Andreas Schwab <schwab@suse.de>
10528
10529 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10530
105312008-08-27 Andreas Schwab <schwab@suse.de>
10532
10533 * search.c (search_buffer): Set char_base to zero only at the end.
10534
105352008-08-27 Kenichi Handa <handa@m17n.org>
10536
b8ff72fa 10537 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10538
105392008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10540
10541 * xterm.c (x_term_init): Temporarily hide the partially
10542 initialized terminal while calling vendor-specific-keysyms.
10543
105442008-08-26 Eli Zaretskii <eliz@gnu.org>
10545
10546 * msdos.c (internal_terminal_init): Most initializations done only
10547 once, especially initial_screen_colors[] and termscript open.
10548
105492008-08-26 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * eval.c (Fcondition_case): Doc fix.
10552
10553 * widgetprv.h (EmacsFramePart): Change font member to the new font
10554 struct.
10555
10556 * widget.c: Include character.h and font.h for XSETFONT.
10557 (setup_frame_gcs): Compute X font id from font struct, just once.
10558
105592008-08-26 Eli Zaretskii <eliz@gnu.org>
10560
10561 * term.c (get_named_tty): Fix last change.
10562
105632008-08-26 Chong Yidong <cyd@stupidchicken.com>
10564
10565 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10566 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10567
105682008-08-25 Eli Zaretskii <eliz@gnu.org>
10569
10570 * frame.c (do_switch_frame): Mark previously displayed frame as
10571 obscured for FRAME_MSDOS_P frames as well.
10572
105732008-08-24 Eli Zaretskii <eliz@gnu.org>
10574
10575 * frame.c (make_terminal_frame): Initialize f->terminal,
10576 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10577 Set the top frame to newly created frame.
10578 (Fmake_terminal_frame): Reuse the_only_display_info.
10579
10580 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10581 estimating available memory.
10582
b97439ce 105832008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10584
10585 * nsterm.m (ns_draw_window_cursor): Don't call
10586 NSDisableScreenUpdates and NSEnableScreenUpdates on
10587 non-NS_IMPL_COCOA systems.
10588
105892008-08-23 Andreas Schwab <schwab@suse.de>
10590
10591 * process.c (procfs_system_process_attributes): Fix use of
10592 uninitialized variables.
10593
105942008-08-23 Eli Zaretskii <eliz@gnu.org>
10595
10596 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10597
10598 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10599 calling tty-set-up-initial-frame-faces.
10600
b8ff72fa
SM
10601 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10602 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10603
10604 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10605 addition to output_termcap.
10606
10607 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10608
10609 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10610 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10611 highlight.
10612
10613 * process.c [!subprocesses]: Define QCname.
10614 (syms_of_process): Intern and staticpro it.
10615
10616 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10617 Adjust for changes in encoding/decoding routines.
10618 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10619 encode_coding and decode_coding.
10620
b8ff72fa 10621 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10622
10623 * dosfns.c: Include frame.h before termhooks.h.
10624 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10625 variable termscript.
10626
10627 * s/msdos.h (USER_FULL_NAME): Define.
10628 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10629
10630 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10631 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10632 pw->pw_gecos.
10633
10634 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10635 SELECTED_FRAME as additional (1st) argument.
10636 (tty_read_avail_input): Handle output_msdos_raw in
10637 addition to output_termcap.
10638
10639 * msdos.c: Include frame.h before termhooks.h.
10640 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10641 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10642 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10643 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10644 (IT_set_terminal_modes, IT_reset_terminal_modes)
10645 (IT_set_frame_parameters): Use tty->termscript instead of a global
10646 variable termscript.
10647 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10648 global variable terminal_coding. Don't refer to
10649 Vnonascii_translation_table.
10650 (internal_terminal_init): Set Vwindow_system in current_kboard.
10651 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10652 Announce date and time of session start, if termscript is open.
10653 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10654 term.c:init_tty). Open termscript only of not already open.
10655 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10656 here instead of dos_ttraw. Don't initialize display if this is an
10657 initial tty. Don't set FRAME_FONT.
10658 (Vwindow_system_version): Bump to 23.
10659 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10660 is available, set up mouse_position_hook.
10661 (dos_ttraw, IT_set_terminal_modes): If called with initial
10662 terminal, do nothing.
10663 (IT_set_frame_parameters): Handle the Qtty_type frame
10664 parameter by calling internal_terminal_init.
10665 (dos_set_window_size, show_mouse_face)
10666 (clear_mouse_face, IT_note_mode_line_highlight)
10667 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10668 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10669 (initialize_msdos_display): New function.
10670 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10671 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10672 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10673 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10674 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10675 (request_sigio, unrequest_sigio): Don't define, now defined on
10676 sysdep.c.
10677 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10678
10679 * term.c [MSDOS]: Include msdos.h.
10680 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10681 conditional to DOS_NT. Allow only one call to this function in a
10682 session. Don't allocate a new struct tty_display_info; instead,
10683 reuse the_only_display_info. Call get_tty_size to get screen
10684 dimensions. Call init_baud_rate to set bad_rate.
10685 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10686 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10687 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10688 (get_tty_terminal, get_named_tty, Ftty_type)
10689 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10690 output_termcap.
b8ff72fa
SM
10691 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10692 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10693 only when subprocesses are supported.
aac0c6e3
MR
10694
10695 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10696 f->output_data.x.
10697 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10698 terminal devices.
10699
5582fbc7 10700 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10701 x_output.
10702 (FRAME_FONT): Use output_data.tty.
10703 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10704 (struct x_display_info): Rename from display_info. Update all users in
10705 msdos.c.
aac0c6e3 10706 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10707 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10708 (dos_ttraw): Update prototype.
10709
10710 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10711 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10712
107132008-08-23 Jason Rumney <jasonr@gnu.org>
10714
10715 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10716 (fn_TIFFSetDirectory): New library function used.
10717 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10718 (tiff_load): Use :index to select among multiple images. Set count
10719 property when multiple images exist.
10720 (gif_format): Use :index, not :image.
10721
107222008-08-23 Chong Yidong <cyd@stupidchicken.com>
10723
10724 * xdisp.c (try_scrolling): Check INT_MAX instead of
10725 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10726 to obtain INT_MAX.
10727
107282008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10729
10730 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10731
107322008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10733
10734 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10735 GNUstep library location.
10736
107372008-08-21 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10740 before using it.
10741
10742 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10743
107442008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10745
10746 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10747 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10748 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10749 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10750 (EmacsApp-cursor_blink_handler): Remove declaration.
10751 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10752 match 01 Feb 2008 changes in xterm.c.
10753 (ns_read_socket): Add cast to avoid warning.
10754 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10755 GNUstep.
10756
107572008-08-20 Chong Yidong <cyd@stupidchicken.com>
10758
10759 * xselect.c (x_get_foreign_selection): Return nil if desired
10760 selection could not be obtained, instead of signalling an error.
10761
107622008-08-20 David Reitter <david.reitter@gmail.com>
10763
10764 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10765 * nsterm.m: Remove ns-specific code for cursor blinking.
10766 (ns_draw_window_cursor): Clear cursor properly rather than
10767 redrawing the area. Respect width of bar cursors.
10768 These changes enable the use of generic blink-cursor-mode and
10769 generic cursor types in NS and support smooth cursor movements (do
10770 not blink off after command).
10771 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10772 Nextstep, too.
10773
107742008-08-19 Kenichi Handa <handa@m17n.org>
10775
10776 * font.c (Vfont_log_deferred): New variable.
10777 (font_add_log): Check Vfont_log_deferred.
10778 (font_deferred_log): New function.
10779
10780 * font.h (font_deferred_log): Extern it.
10781
10782 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10783 for sorting.
10784 (face_for_char): Use deferred log.
10785
107862008-08-18 Kenichi Handa <handa@m17n.org>
10787
10788 * fontset.c (face_for_char): Add font log.
10789
10790 * font.c (font_add_log): Add the font properties :script, :lang,
10791 and :otf in the log.
10792
107932008-08-17 Chong Yidong <cyd@stupidchicken.com>
10794
10795 * xdisp.c: Remove dead code.
10796 (handle_invisible_prop, next_overlay_string): Defer call to
10797 setup_for_ellipsis.
10798 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10799
108002008-08-15 Chong Yidong <cyd@stupidchicken.com>
10801
10802 * xfaces.c (lookup_derived_face): Properly handle possible zero
10803 return value of get_lface_attributes.
10804 (merge_faces): Don't tell lookup_derived_face to signal an error
10805 if face is not found.
10806
10807 * dired.c (Fdirectory_files): Doc fix.
10808
10809 * process.c (make_process): Initialize kill_without_query struct
10810 member.
10811
108122008-08-15 Eli Zaretskii <eliz@gnu.org>
10813
10814 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10815 Alternative calculation of totphys for Visual Studio 6.
10816
10817 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10818
10819 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10820 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10821 All users changed.
10822 (stat): Only root directory passed to GetDriveType. Allow RAM
10823 disk as well as local fixed disk when w32-get-true-file-attributes
10824 is set to `local'.
10825 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10826 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10827 (w32_cached_id, w32_add_to_cache): New functions.
10828 (get_name_and_id): Look account names in the cache before calling
10829 lookup_account_sid.
10830 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10831 New initialization flags.
10832 (globals_of_w32): Initialize them to zero.
10833 (w32_system_process_attributes): Use w32_cached_id and
10834 w32_add_to_cache.
10835
108362008-08-14 Lawrence Mitchell <wence@gmx.li>
10837
10838 * lread.c (Fread_char, Fread_char_exclusive): If no character
10839 event is read before timeout is reached, return nil, rather than
10840 converting to a number.
10841
108422008-08-14 Chong Yidong <cyd@stupidchicken.com>
10843
10844 * fns.c (use_dialog_box): Doc fix.
10845
10846 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10847 on OS X.
10848
108492008-08-13 Chong Yidong <cyd@stupidchicken.com>
10850
10851 * frame.c (Qns_parse_geometry): New var.
10852 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10853
108542008-08-11 Chong Yidong <cyd@stupidchicken.com>
10855
10856 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10857 space character in calculating tabs.
10858
108592008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10860
10861 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10862
108632008-08-10 Glenn Morris <rgm@gnu.org>
10864
10865 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10866 silence gcc "limited range of data type" warnings in some
10867 make_fixnum_or_float calls.
10868
108692008-08-09 Eli Zaretskii <eliz@gnu.org>
10870
10871 * w32.c (w32_system_process_attributes): If the process does not
10872 exist, return nil.
10873
10874 * w32.c: Include thelp32.h, psapi.h and coding.h.
10875 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10876 declarations.
10877 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10878 (Process32Next_Proc): New typedefs.
10879 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10880 (g_b_init_process32_next, g_b_init_open_thread_token)
10881 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10882 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10883 (g_b_init_get_process_working_set_size)
10884 (g_b_init_global_memory_status_ex): New static variables.
10885 (globals_of_w32): Initialize them.
10886 (create_toolhelp32_snapshot, process32_first, process32_next)
10887 (open_thread_token, impersonate_self, revert_to_self)
10888 (get_process_memory_info, get_process_working_set_size)
10889 (global_memory_status, global_memory_status_ex): New wrapper
10890 functions.
10891 (w32_list_system_processes, w32_system_process_attributes)
10892 (enable_privilege, restore_privilege, ltime, process_times):
10893 New functions.
10894 (convert_time_raw): New function.
10895 (convert_time): Remove conversion of FILETIME into time in 100
10896 nsec units, call convert_time_raw instead.
10897
10898 * process.h (w32_list_system_processes, w32_system_process_attributes):
10899 Add prototypes.
10900 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10901 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10902 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10903 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10904
10905 * process.c (Fsystem_process_attributes): Doc fix.
10906
109072008-08-08 Chong Yidong <cyd@stupidchicken.com>
10908
10909 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10910 a continued multi-char glyph; if so, advance to the actual glyph.
10911
109122008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10913
10914 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10915
10916 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10917 (.m.o): Use it.
10918 * config.in: Regenerate.
10919
109202008-08-07 Chong Yidong <cyd@stupidchicken.com>
10921
10922 * xdisp.c (redisplay_window): Revert last change.
10923 (try_window): Check bottom scroll margin too.
10924
109252008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10926
10927 * config.in: Regenerate.
10928
10929 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10930 -list-load-path-shadows'.
10931 (nsgui.h): Reduce number of things depending on it.
10932
109332008-08-06 Chong Yidong <cyd@stupidchicken.com>
10934
10935 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10936 instead of window-end which does the wrong thing at eob.
10937 (try_cursor_movement): Minor optimization.
10938 (redisplay_window): If scroll margin is defined, don't assume
10939 window doesn't need scrolling.
10940
109412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10942
10943 * config.in: Regenerate.
10944
10945 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10946 (mostlyclean): Don't delete *.d under NS.
10947
10948 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10949
109502008-08-06 Kenichi Handa <handa@m17n.org>
10951
10952 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10953
109542008-08-06 Andreas Schwab <schwab@suse.de>
10955
10956 * config.in: Regenerate.
10957
109582008-08-05 Chong Yidong <cyd@stupidchicken.com>
10959
10960 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10961 forcing a window start.
10962
10963 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10964 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10965
109662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10967
10968 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10969 argument.
10970
109712008-08-05 Juanma Barranquero <lekktu@gmail.com>
10972
10973 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10974 <scroll-down-aggressively, before-change-functions>:
10975 <after-change-functions>: Reflow docstrings.
10976
109772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10978 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10979
10980 Dock menu customization, based on a patch by Ken Raeburn, plus some
10981 other fixes.
10982 * nsmenu.m (dockMenu): New variable.
10983 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10984
10985 * nsterm.h (dockMenu): Declare.
10986
10987 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10988 (ns_term_init): Initialize dockMenu.
10989 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10990 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10991 left.
10992
10993 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10994
109952008-08-04 Chong Yidong <cyd@stupidchicken.com>
10996
10997 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10998
10999 * config.in: Regenerate.
11000
110012008-08-04 Seiji Zenitani <zenitani@mac.com>
11002
11003 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11004
110052008-08-04 Chong Yidong <cyd@stupidchicken.com>
11006
11007 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11008
110092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11010
11011 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11012
11013 * keyboard.h: Comment an #endif.
11014
11015 * lisp.h (have_menus_p): Adjust comment.
11016
11017 * menu.c (find_and_return_menu_selection): Fix comparison with
11018 client_data.
11019
11020 * nsmenu.m (popup_activated_flag): New variable.
11021 (popup_activated): New function.
11022 (menu-or-popup-active-p): New exported lisp definition.
11023 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11024 when popup done.
11025 (ns_popup_dialog): Set popup_activated_flag.
11026
11027 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11028 version for GNUstep (handled by conditional typedef in nsterm.m).
11029 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11030 in rgb.txt).
11031
11032 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11033
11034 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11035
11036 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11037
11038 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11039 shortcircuit if popup_activated like GTK and X toolkit.
11040
11041 * m/inter386.h: Change DARWIN to DARWIN_OS.
11042
11043 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11044 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11045 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11046 comment on NO_SOCK_SIGIO.
11047
110482008-08-03 Chong Yidong <cyd@stupidchicken.com>
11049
11050 * nsterm.m (windowDidResize): Remove stopModal call.
11051
110522008-08-03 Andreas Schwab <schwab@suse.de>
11053
11054 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11055 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11056
110572008-08-02 Chong Yidong <cyd@stupidchicken.com>
11058
11059 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11060 Don't use uninitialized pointer variable when using getrlimit.
11061
110622008-08-02 Jason Rumney <jasonr@gnu.org>
11063
11064 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11065
110662008-08-02 Eli Zaretskii <eliz@gnu.org>
11067
11068 * alloc.c (NSTATICS): Bump to 0x640.
11069
11070 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11071
11072 * lisp.h: Add prototype for directory_files_internal.
11073
11074 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11075 New functions.
11076 (syms_of_process): Defsubr them. Add initializations for various
11077 Q* symbols used in procfs_system_process_attributes.
11078 (procfs_list_system_processes, procfs_system_process_attributes)
11079 [HAVE_PROCFS]: New functions.
11080 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11081 (procfs_get_total_memory): New functions.
11082
110832008-08-01 Juanma Barranquero <lekktu@gmail.com>
11084
11085 * xfaces.c (Fx_load_color_file): Fix previous change;
11086 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11087
110882008-08-01 Michael Albinus <michael.albinus@gmx.de>
11089
11090 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11091
110922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11093
11094 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11095
110962008-08-01 Chong Yidong <cyd@stupidchicken.com>
11097
11098 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11099
11100 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11101 define NSApplicationDelegateReplySuccess.
11102 (EmacsView -converstationIdentifier): Use long instead of
11103 NSInteger for GNUstep, since it doesn't have NSInteger.
11104
11105 * xmenu.c: Revert last change.
11106
11107 * keyboard.h: Fix last change.
11108
111092008-08-01 Juanma Barranquero <lekktu@gmail.com>
11110
11111 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11112 on Windows.
11113
111142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11115
11116 Warning clearing and clean-up in NS port.
11117 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11118 Add prototypes.
11119 * nsgui.h (FACE_DEFAULT): Remove, unused.
11120 (XGCValues): Change colors to unsigned long.
11121 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11122 nsterm.m.
11123 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11124 (ns_list_fonts): Remove, unused.
11125 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11126 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11127 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11128 (nsfont_draw): Compare face colors to 0, not nil.
11129 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11130 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11131 (-addSubmenuWithTitle:): Use NSMenuItem class.
11132 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11133 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11134 (ns_clip_to_row): Make gc arg a BOOL.
11135 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11136 ns_clip_to_row() call.
11137 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11138 used). Cast FRAME_FONT assignments.
11139 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11140 (ns_string_to_lispmod): Change arg to const char.
11141 (ns_term_init): Use NSMenuItem class.
11142 (EmacsApp -openFile:): Move to different section of file.
11143 (EmacsApp -application:openFiles:): Don't return a value, call
11144 -replyToOpenOrPrint:.
11145 (EmacsView -keyDown:): Fix up cast.
11146 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11147 (EmacsView -menuDown:): Cast tag in call to
11148 find_and_call_menu_selection().
11149 (ns_list_fonts): Remove, unused.
11150 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11151 (ns_fontname_to_xlfd): Make static.
11152 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11153 Remove prototypes (now in keyboard.h).
11154 (next_menubar_widget_id): Remove, unused.
11155 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11156 Remove prototypes (now in keyboard.h).
11157 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11158
111592008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11160
11161 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11162 (floatfns.o): Depend on syssignal.h.
11163 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11164
11165 * systty.h: Fix previous change that removed BSD_TERMIOS.
11166 Add comments to #ifdefs.
11167
111682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11169
11170 * w32fns.c (w32-load-color-file): Remove.
11171 (x-open-connection): Use renamed Fx_load_color_file.
11172 * xfaces.c (x-load-color-file): Add.
11173 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11174 Emacs.clr.
11175 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11176
111772008-07-31 Michael Albinus <michael.albinus@gmx.de>
11178
11179 * dbusbind.c (Fdbus_call_method_asynchronously)
11180 (Fdbus_method_error_internal): New defuns.
11181 (xd_read_message): Handle also reply messages.
11182 (Vdbus_registered_functions_table): Extend docstring.
11183
111842008-07-31 Juanma Barranquero <lekktu@gmail.com>
11185
11186 * keyboard.c (gobble_input): Fix previous change.
11187
111882008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11189
11190 * bitmaps/README:
11191 * xfns.c:
11192 * termcap.c:
11193 * term.c:
11194 * syswait.h:
11195 * systty.h:
11196 * systime.h:
11197 * syssignal.h:
11198 * sysdep.c:
11199 * process.h:
11200 * process.c:
11201 * print.c:
11202 * ndir.h:
11203 * lread.c:
11204 * keyboard.c:
11205 * getpagesize.h:
11206 * floatfns.c:
11207 * fileio.c:
11208 * emacs.c:
11209 * doc.c:
11210 * dispnew.c:
11211 * dired.c:
11212 * data.c:
11213 * callproc.c:
11214 * buffer.c:
11215 * README:
11216 * Makefile.in:
11217 * s/template.h:
11218 * s/msdos.h:
11219 * m/vax.h: Remove VMS support.
11220 * s/vms.h:
11221 * vlimit.h:
11222 * uaf.h:
11223 * temacs.opt:
11224 * param.h:
11225 * ioctl.h: Remove file.
11226
112272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11228
11229 * s/ms-w32.h (MULTI_KBOARD): Remove.
11230 * xterm.c:
11231 * xselect.c:
11232 * xfns.c:
11233 * window.c:
11234 * w32term.c:
11235 * w32fns.c:
11236 * terminal.c:
11237 * termhooks.h:
11238 * term.c:
11239 * sysdep.c:
11240 * keyboard.h:
11241 * keyboard.c:
11242 * frame.h:
11243 * frame.c:
11244 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11245 * config.in: Regenerate.
11246
112472008-07-30 Jason Rumney <jasonr@gnu.org>
11248
11249 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11250
11251 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11252 (w32font_open_internal): Get unicode version of textmetrics.
11253 Don't enable or disable glyph indices here.
11254 (w32font_open): Disable use of glyph indices.
11255
11256 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11257
112582008-07-30 Chong Yidong <cyd@stupidchicken.com>
11259
11260 * minibuf.c (Vread_buffer_function): Doc fix.
11261
112622008-07-30 John Paul Wallington <jpw@pobox.com>
11263
11264 * minibuf.c (read_buffer_completion_ignore_case): New var.
11265 (Fread_buffer): Use it.
11266
112672008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11268
11269 * systty.h (sensemode): Remove empty #if. Remove reference to
11270 BSD_TERMIOS, unused.
11271
11272 * sysdep.c: Remove reference to DGUX.
11273 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11274
11275 * config.in: Regenerate.
11276
112772008-07-30 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11280
112812008-07-29 Jason Rumney <jasonr@gnu.org>
11282
11283 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11284 is populated.
11285 (uniscribe_encode_char): Always use uniscribe.
11286 Avoid using context if cache is populated.
11287
112882008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11289
11290 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11291 open menu.
11292
11293 * gtkutil.c (menu_nav_ended): Remove.
11294 (create_menus): Remove signal connect for menu_nav_ended.
11295
112962008-07-28 Chong Yidong <cyd@stupidchicken.com>
11297
11298 * xdisp.c (redisplay_window): Check return value of
11299 compute_window_start_on_continuation_line before forcing a window
11300 start.
11301
113022008-07-28 Jason Rumney <jasonr@gnu.org>
11303
11304 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11305
11306 * w32term.c (w32_enable_unicode_output, cleartype_active):
11307 Remove obsolete display options.
11308 (x_draw_glyph_string_background): Don't use old cleartype_active
11309 workaround.
11310 (w32_initialize): Remove cleartype_active initialization.
11311 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11312
113132008-07-28 Andreas Schwab <schwab@suse.de>
11314
11315 * lisp.h (init_weak_hash_tables, syms_of_font)
11316 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11317 (remove_hash_entry): Don't declare.
11318 * eval.c (maybe_call_debugger): Make static and move before use.
11319 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11320 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11321 * xterm.h (x_set_frame_alpha): Declare.
11322
113232008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11324
11325 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11326 (create_menus): Connect selection-done to menu_nav_ended.
11327
113282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11329
11330 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11331 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11332 parameter with read of 'alpha' one.
11333 (Qns_frame_parameter): Remove.
5582fbc7 11334 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11335 (next-selection-coding-system, Vselection_coding_system)
11336 (Vnext_selection_coding_system): Drop.
11337
113382008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11339
11340 * nsfns.m (do-applescript, do_applescript): Rename to
11341 ns-do-applescript, ns_do_applescript, and move within file.
11342
113432008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11344
11345 Remove support for Mac Carbon.
11346 * mactoolbox.c:
11347 * macterm.h:
11348 * macterm.c:
11349 * macselect.c:
11350 * macmenu.c:
11351 * macgui.h:
11352 * macfns.c:
11353 * mac.c: Remove file.
11354 * s/darwin.h:
11355 * m/intel386.h:
11356 * xfaces.c:
11357 * xdisp.c:
11358 * window.c:
11359 * tparam.c:
11360 * termhooks.h:
11361 * termcap.c:
11362 * term.c:
11363 * syssignal.h:
11364 * sysselect.h:
11365 * sysdep.c:
11366 * process.c:
11367 * lread.c:
11368 * lisp.h:
11369 * keyboard.c:
11370 * image.c:
11371 * fringe.c:
11372 * frame.h:
11373 * frame.c:
11374 * fontset.c:
11375 * font.h:
11376 * font.c:
11377 * fns.c:
11378 * fileio.c:
11379 * emacs.c:
11380 * dispnew.c:
11381 * dispextern.h:
11382 * config.in:
11383 * atimer.c:
2ae37cf0 11384 * Makefile.in: Remove code for Carbon.
aac0c6e3 11385
f0131492 113862008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11387
11388 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11389
113902008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11391
11392 * macterm.h (kCGBitmapByteOrder32Host): New define for
11393 non-universal SDKs.
11394
11395 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11396 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11397
11398 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11399 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11400
114012008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11402
11403 * w32inevt.c: Include dispextern.h.
11404
114052008-07-26 Andreas Schwab <schwab@suse.de>
11406
11407 * print.c (print_object): Fix off-by-one in last change.
11408
114092008-07-25 Juanma Barranquero <lekktu@gmail.com>
11410
11411 * term.c (syms_of_term): Don't initialize default_orig_pair,
11412 default_set_foreground and default_set_background on Windows.
11413
114142008-07-25 Jason Rumney <jasonr@gnu.org>
11415
11416 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11417 ScriptItemize. Clean up return value checking. Remove unused
11418 variables.
11419 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11420 shaping engine.
11421
11422 * w32font.c (w32font_has_char): Handle the case where we can't
11423 determine the script for a character.
11424
114252008-07-25 Chong Yidong <cyd@stupidchicken.com>
11426
11427 * term.c (syms_of_term): Initialize default_orig_pair,
11428 default_set_foreground, and default_set_background.
11429
11430 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11431 clash (bug#86).
11432 (getloadavg): Callers changed.
11433
11434 * image.c (svg_load_image): Fix last change.
11435 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11436 image size is valid. Use g_object_unref instead of deprecated
11437 rsvg_handle_free to free rsvg handle.
11438 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11439
114402008-07-25 Jason Rumney <jasonr@gnu.org>
11441
11442 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11443 surrogates before looking up glyph index.
11444 (w32font_text_extents): Encode as surrogates if falling back to
11445 functions that need UTF-16 wide chars.
11446
11447 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11448 BMP as surrogates before looking up glyph index.
11449
114502008-07-25 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * image.c (svg_load_image): Check for failure in return value of
11453 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11454
114552008-07-25 Jason Rumney <jasonr@gnu.org>
11456
11457 * w32font.c (Fx_select_font): Reverse sense of second arg.
11458
114592008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11460
11461 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11462 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11463
11464 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11465 (PURESIZE): Use it.
11466
114672008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11468
11469 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11470 * m/alpha.h (TEXT_END):
11471 * m/ibmrs6000.h (TEXT_END):
11472 * m/macppc.h (TEXT_END):
11473 * s/darwin.h (TEXT_END):
11474 * s/msdos.h (TEXT_END): Remove, unused.
11475 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11476 * s/cygwin.h: Remove comment.
11477
11478 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11479 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11480 * m/intel386.h (DOT_GLOBAL_START):
11481 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11482 (USG): Remove, file not used on USG platforms.
11483
11484 * Makefile.in (HAVE_X11): Remove empty #else.
11485
114862008-07-24 Andreas Schwab <schwab@suse.de>
11487
11488 * fileio.c (Finsert_file_contents): Properly adjust undo list
11489 after format conversion.
11490
114912008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11492
11493 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11494 (menu_nav_ended): Remove.
11495 (create_menus): Remove signal connect for menu_nav_ended.
11496 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11497 create_menus.
11498 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11499
115002008-07-23 Jason Rumney <jasonr@gnu.org>
11501
11502 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11503 with opened font.
11504 (w32font_open): Set font type to gdi.
11505
11506 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11507
115082008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11509
11510 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11511 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11512 defines it.
11513 * unexec.c (ADDR_CORRECT): Define unconditionally.
11514
11515 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11516
11517 * unexec.c: Remove code depending on !COFF and USG, the file is
11518 not used for such systems.
11519
11520 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11521 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11522 (LD_SWITCH_SYSTEM_1): Remove, update users.
11523
11524 * s/darwin.h (DATA_END):
11525 * m/intel386.h (DATA_END):
11526 * m/ibmrs6000.h (DATA_END):
11527 * m/alpha.h (DATA_END): Remove, unused.
11528
11529 * config.in: Regenerate.
11530 * s/ms-w32.h (subprocesses): Define unconditionally.
11531 * s/template.h (subprocesses): Update comment.
11532 * s/vms.h (subprocesses):
11533 * s/usg5-4.h (subprocesses):
11534 * s/hpux10-20.h (subprocesses):
11535 * s/gnu-linux.h (subprocesses):
11536 * s/cygwin.h (subprocesses):
11537 * s/bsd-common.h (subprocesses):
11538 * s/aix4-2.h (subprocesses):
11539 * s/darwin.h (subprocesses): Do not define, defined by default now.
11540
11541 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11542 Remove all references.
11543 (temacs): Add GNUstep specific ld flags.
11544
11545 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11546 similarly to what X does.
11547
115482008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11549
11550 * nsfns.m (x-list-fonts): Remove.
11551 (syms_of_nsfns): Drop the x-list-fonts declaration.
11552 * nsterm.m: Get rid of remaining "//" comments.
11553
115542008-07-22 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11557
11558 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11559 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11560 (Fns_own_selection_internal, Fx_disown_selection_internal)
11561 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11562
11563 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11564 ... */' style of docstrings. Doc fixes.
11565
115662008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11567
11568 * terminfo.c (UP, BC, PC): Undo previous change.
11569
11570 * nsfns.m: Rename ns prefixed functions/variables to the
11571 corresponding x versions. Update references.
11572
115732008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11574
11575 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11576
115772008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11578
11579 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11580 Remove forwarding functions.
11581 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11582 non-static.
11583 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11584 non-static.
11585 (ns_frame_parm_handlers): Use the new names.
11586 (syms_of_nsfns): Move to the end of file.
11587
11588 * nsterm.m (syms_of_nsterm): Move to the end of file.
11589
11590 * dispnew.c (init_display): Remove code for X10.
11591
115922008-07-22 Jason Rumney <jasonr@gnu.org>
11593
11594 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11595 bare drive.
11596
115972008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11598
11599 * nsterm.m (syms_of_nsterm): Remove debugging println.
11600
116012008-07-22 David Reitter <david.reitter@gmail.com>
11602
11603 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11604 Carbon implementation of the same functionality: execute arbitrary
11605 AppleScript code.
11606
116072008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11608
11609 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11610 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11611 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11612 (Fx_display_mm_height, Fx_display_mm_width)
11613 (Fx_display_backing_store, Fx_display_visual_class)
11614 (Fx_display_save_under, Fx_open_connection)
11615 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11616 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11617 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11618 (Fx_display_pixel_width, Fx_display_pixel_height)
11619 (Fx_display_usable_bounds, Fx_display_planes)
11620 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11621 ... */' style of docstrings.
11622
116232008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11624
11625 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11626 on this platform.
11627 (mips):
11628 * m/iris4d.h (mips): Do not define.
11629 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11630
11631 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11632
11633 * image.c:
11634 * nsfns.m:
11635 * nsselect.m:
11636 * nsterm.h:
11637 * nsterm.m: Rename ns prefixed functions/variables to the
11638 corresponding x versions. Update references.
11639
11640 * m/ibms390x.h (NO_REMAP): Do not undefine.
11641
11642 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11643
116442008-07-21 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11647 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11648 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11649 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11650 (Fns_display_mm_height, Fns_display_mm_width)
11651 (Fns_display_backing_store, Fns_display_visual_class)
11652 (Fns_display_save_under, Fns_open_connection)
11653 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11654 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11655 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11656 (Fns_display_pixel_width, Fns_display_pixel_height)
11657 (Fns_display_usable_bounds, Fx_display_planes)
11658 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11659
116602008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11661
11662 * print.c (print_object): Check print_depth before searching for
11663 circularities.
11664
116652008-07-21 Michael Albinus <michael.albinus@gmx.de>
11666
11667 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11668 only sprintf.
11669
116702008-07-21 Kenichi Handa <handa@m17n.org>
11671
11672 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11673
116742008-07-20 Andreas Schwab <schwab@suse.de>
11675
11676 * syntax.c (find_start_pos, find_start_value)
11677 (find_start_value_byte, find_start_begv, find_defun_start)
11678 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11679
116802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11681
11682 * s/sol2-3.h: Insert contents of s/sol2.h.
11683 (LD_SWITCH_SYSTEM): Remove redundant definition.
11684 * s/sol2.h: Remove, unused.
11685
116862008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11687
11688 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11689
116902008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11691
11692 * Makefile.in (ns_appdir): Fix typo in find command.
11693
116942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11695
11696 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11697
11698 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11699 added not supported anymore.
11700
11701 * s/usg5-4-2.h (LIBS_SYSTEM):
11702 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11703
11704 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11705 * s/lynxos.h (GETPGRP_NO_ARG):
11706 * s/hpux10-20.h (NO_SIOCTL_H):
11707 * s/gnu.h (GETPGRP_NO_ARG):
11708 * s/gnu-linux.h (NO_SIOCTL_H):
11709 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11710 * s/cygwin.h (GETPGRP_NO_ARG):
11711 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11712 (C_DEBUG_SWITCH): Remove duplicate definition.
11713
11714 * m/ibms390.h: Remove boilerplate comments.
11715
11716 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11717
11718 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11719 (wait_reading_process_output): Remove code for SunOS, platform not
11720 supported anymore. Use SOLARIS2 instead of sun.
11721
117222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11723
11724 * font.c (font_open_by_name): Under NS, default lface height to zero.
11725 (font_open_for_lface): Under NS, set size based on frame fontsize.
11726 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11727 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11728
117292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11730
11731 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11732 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11733 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11734 YES/NO.
11735 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11736 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11737 * Makefile.in (clean): Clear out build destination dir.
11738
117392008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11740
11741 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11742 xterm, xselect.
11743 * lisp.h: Remove declaration of hash_remove.
11744 * nsgui.h: Remove redefinitions of hash_remove.
11745 * fns.c (hash_remove): Rename to hash_remove_from_table.
11746
117472008-07-19 Seiji Zenitani <zenitani@mac.com>
11748
11749 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11750 strdup() the family UTF8String before modifying it.
11751
117522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11753
11754 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11755 NS_FACE_BACKGROUND with 0 instead of nil.
11756 * nsfont.m (nsfont_draw): Same.
11757
117582008-07-19 Chong Yidong <cyd@stupidchicken.com>
11759
11760 * nsfns.m (ns_set_background_color): Fix crash.
11761
117622008-07-18 Chong Yidong <cyd@stupidchicken.com>
11763
11764 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11765
117662008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11767
11768 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11769
117702008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11771
11772 * gtkutil.c: Include <config.h> instead of "config.h".
11773
11774 * lisp.h (Foverlay_buffer): Add EXFUN.
11775
11776 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11777 child process to complete child_setup. Undo 2005-09-21 change.
11778
11779 * s/darwin.h: Mention setsid after vfork.
11780
117812008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11782
11783 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11784 Depend on macgui.h.
11785
11786 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11787 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11788
11789 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11790 and f19.
11791 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11792
11793 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11794 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11795 Remove enumerators.
11796
11797 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11798 Check if FACE_FROM_ID returns NULL.
11799
118002008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11801
11802 * w32inevt.c (change_frame_size): Remove extern declaration.
11803 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11804 change_frame_size.
11805
118062008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11807
11808 * getloadavg.c: Revert last change (2008-07-15).
11809
118102008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11811
11812 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11813 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11814 from configure.
11815
118162008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11817
11818 * s/sol2.h:
11819 * s/sol2-4.h: Reorganize conditionals.
11820
11821 * ecrt0.c: Remove code depending on m68000, not used anymore.
11822
11823 * fns.c (hash_remove): Make static.
11824 * lisp.h (hash_remove): Don't prototype.
11825
11826 * m/ibmrs6000.h:
11827 * m/ibms390x.h:
11828 * m/macppc.h: Remove boilerplate comments.
11829
11830 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11831 Solaris, which does not need them.
11832
11833 * m/vax.h: Remove comments about unsupported systems.
11834
11835 * s/darwin.h: Reorganize ifdefs.
11836
118372008-07-17 Andreas Schwab <schwab@suse.de>
11838
11839 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11840
118412008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11842
11843 Use SDATA. Follow coding convention of placing operators at
11844 beginning of next line rather than end of previous line, and placing
11845 spaces around infix operators.
11846
11847 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11848 in case it was defined already.
11849 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11850 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11851 ns_default.
11852 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11853 Lisp_Objects.
11854 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11855 (ns_defined_color, ns_color_to_lisp): Declare.
11856 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11857 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11858 it's accepted even with USE_LISP_UNION_TYPE.
11859 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11860 (update_frame_tool_bar): Remove apparently obsolete tests for
11861 non-integerness of f->tool_bar_lines.
11862 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11863 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11864 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11865 (nsfont_open): Don't confuse NULL for Qnil.
11866 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11867 * menu.h (find_and_call_menu_selection):
11868 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11869 (find_and_return_menu_selection): Always return something.
11870 * frame.h: Include dispextern.h for Display_Info.
11871 (display_x_get_resource): Declare.
11872
118732008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11874
11875 * syntax.c: Remove stdio.h include accidentally introduced in
11876 Emacs.app commit.
11877 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11878 NS_IMPL_COCOA.
11879 * keyboard.c (handle_async_input, input_available_signal): Remove
11880 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11881
118822008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11883
11884 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11885 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11886 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11887 Use SDATA.
11888
11889 * keymap.c: Remove all NS-specific code.
11890 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11891 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11892 where_is_preferred_modifier, return a different value depending on how
11893 preferred is the binding.
11894 (where_is_internal): Adjust accordingly.
11895 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11896 Adjust to new preferred_sequence_p.
11897 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11898 * keyboard.c (parse_solitary_modifier): Not static any more.
11899 * keyboard.h (parse_solitary_modifier): Declare.
11900
119012008-07-16 Andreas Schwab <schwab@suse.de>
11902
11903 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11904 of easymenu.
11905
119062008-07-16 Chong Yidong <cyd@stupidchicken.com>
11907
11908 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11909 that we don't move off the line.
11910
119112008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11912
11913 * keyboard.c (Qsuper): Remove.
11914 (parse_menu_item): Don't call where_is_internal specially for NS.
11915
119162008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11917
11918 * s/gnu-linux.h: Remove boilerplate comments.
11919
11920 * m/alpha.h (__ELF__): Consolidate conditions.
11921
11922 * m/m68k.h (linux): Use GNU_LINUX instead.
11923 Remove boilerplate comments.
11924
11925 * m/intel386.h: Undo refactoring from previous change.
11926 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11927 too, remove dead code.
11928 (linux): Use GNU_LINUX instead.
11929
119302008-07-16 Jason Rumney <jasonr@gnu.org>
11931
11932 * w32gui.h: Repeat 26 June changes lost by last change.
11933
119342008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11935
11936 * systty.h: Remove code for Aix on 386, unsupported platform.
11937
11938 * s/ms-w32.h: Remove boilerplate comments.
11939 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11940
11941 * s/gnu-linux.h (TERM): Remove support.
11942 (HAVE_SYSVIPC): Remove, unused.
11943 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11944 for this system.
11945
11946 * process.c: Remove support for IRIS, unused.
11947 Remove support for TERM, not relevant anymore.
11948
11949 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11950 used with the definition.
11951
11952 * s/aix4-2.h (static): Do not undef.
11953
11954 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11955 only used on Aix.
11956 (HAVE_SYSVIPC): Remove, unused.
11957
11958 * m/hp800.h (CANNOT_DUMP): Do not undef.
11959
11960 * m/alpha.h: Fix comment.
11961
11962 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11963 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11964 used by this configuration.
11965 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11966 * unexec.c: Remove code depending on HPUX and
11967 USG_SHARED_LIBRARIES, not used with this file. Remove code
11968 depending on IRIS, unused. Remove if 0-ed code.
11969
11970 * s/template.h: Remove comments about static.
11971
11972 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11973 Remove if 0-ed code.
11974 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11975 were the same as the default.
11976 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11977 Remove boilerplate comments.
11978 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11979 (HAVE_SYSVIPC): Remove, unused.
11980 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11981
11982 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11983 Remove boilerplate comments.
11984 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11985 Remove boilerplate comments.
11986 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11987 Remove boilerplate comments.
11988 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11989
11990 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11991 USG systems which do not use DATA_SEG_BITS.
11992 Refactor code. Remove boilerplate comments.
11993
11994 * m/ibms390.h:
11995 * m/m68k.h:
11996 * s/bsd-common.h:
11997 * s/cygwin.h:
11998 * s/darwin.h:
11999 * s/freebsd.h:
12000 * s/gnu.h:
12001 * s/msdos.h: Remove boilerplate comments.
12002
12003 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12004 do not use this file.
aac0c6e3
MR
12005 (IRIS_4D): Remove, unused.
12006
12007 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12008 do not use this file.
aac0c6e3
MR
12009 (SIGN_EXTEND_CHAR):
12010 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12011 * unexmips.c: Remove file, unused.
12012
12013 * editfns.c (Fuser_full_name): Replace the only use of
12014 USER_FULL_NAME with its value.
12015 * config.in: Regenerate.
12016
120172008-07-16 David Reitter <david.reitter@gmail.com>
12018
12019 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12020 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12021
120222008-07-16 Glenn Morris <rgm@gnu.org>
12023
12024 * emacs.c (system-type): Doc fix.
12025
120262008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12027
12028 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12029 If the cache doesn't work, let's fix it, rather than work around it.
12030
120312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12032
12033 * Makefile.in: Correct additions for nsfont.o in last commit.
12034 * nsfont.m: New file (forgot last commit).
12035
120362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12037
12038 * callproc.c (set_initial_environment): Initialize
12039 Vprocess_environment under CANNOT_DUMP (fixes crash when
12040 batch-compiling for bootstrap).
12041
120422008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12043 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12044
12045 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
12046 fix crash due to different init order.
12047
120482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12049
12050 Changes and additions for NeXTstep windowing system (Cocoa and
12051 GNUstep) support.
12052
12053 * Makefile.in:
12054 * config.in: Support defines and build commands for NS port.
12055 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12056 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12057 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12058 windowing.
12059 (struct face): Add synth_ital field.
12060 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12061 (init_display): Initialize Vinitial_window_system to "ns" when so
12062 compiled.
12063 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12064 (display_arg): Use under NS.
12065 (main): Under NS, allocate autorelease pool and handle command line
12066 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12067 (standard_args): Add NS-specific args.
12068 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12069 * font.c (DEFAULT_ENCODING): New variable.
12070 (font_find_for_lface): Use it.
12071 (syms_of_font): Load syms_of_nsfont under NS.
12072 * font.h: Declare nsfont_driver when compiled under NS.
12073 * fontset.c: When compiling under NS, include nsterm.h.
12074 (fontset_from_font): Autoconstruct fontset under NS.
12075 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12076 symbol, document and use it.
12077 (do_switch_frame): When for_deletion under Cocoa, add
12078 Fraise_frame(Qnil).
12079 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12080 (x_get_arg): Allow "yes" and "no" as boolean values.
12081 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12082 Qright under Cocoa.
12083 (focus-follows-mouse): Default to 0 under NS.
12084 * frame.h (enum output_method): Add output_ns.
12085 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12086 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12087 (FRAME_WINDOW_P): NS-specific definition.
12088 * fringe.c (max_used_fringe_bitmap): Make public.
12089 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12090 (getloadavg): Use NeXT code under descendant OS's.
12091 * image.c (includes and header section, x_create_bitmap_from_data)
12092 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12093 (image_background_transparent, x_clear_image_1)
12094 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12095 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12096 (x_to_xcolors, x_from_xcolors, x_disable_image)
12097 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12098 other GUIs, including XPM support using code originally written for
12099 Carbon GUI.
12100 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12101 using NS API.
12102 (image_ascent): Use font metrics macros instead of direct struct field
12103 access.
12104 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12105 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12106 Also, handle NS as GTK for menu bar purposes.
12107 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12108 toolkit where they differ.
12109 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12110 use cachelist, still needed under NS.
12111 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12112 (struct widget_value): Define it here for menu.c.
12113 * keymap.c (includes): Include modifier internals.
12114 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12115 NS.
12116 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12117 support for preferring sequences using certain modifiers, specified by
12118 the FIRSTONLY argument.
12119 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12120 under NS GNUstep implementation.
12121 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12122 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12123 * menu.c: Include nsterm.h under NS.
12124 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12125 (free_menubar_widget_tree_value, update_submenu_strings)
12126 (find_and_call_menu_selection): Treat NS as X and NT.
12127 (find_and_return_menu_selection): New function, used for popup menus.
12128 * nsgui.h:
12129 * nsterm.h:
12130 * nsfns.m:
12131 * nsimage.m:
12132 * nsmenu.m:
12133 * nsselect.m:
12134 * nsterm.m: New files.
12135 * process.c (wait_reading_process_output): Under NS, call ns_select()
12136 instead of plain select().
12137 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12138 beginning of buffer.
12139 * sysselect.h (init_process): Rename when compiling under Cocoa to
12140 avoid name conflict.
12141 * termhooks.h (display_info): Add ns_display_info to union.
12142 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12143 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12144 COCOA environment.
12145 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12146 unexec() signature. (Note, this will dump, but the resulting file
12147 crashes; unexosx is used instead; keeping around for reference and
12148 possible aid in getting dump working under GNUstep.)
12149 * w32gui.h (button_type, widget_value): Remove definitions (now in
12150 keyboard.h).
12151 * window.c: Include nsterm.h when compiling under NS.
12152 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12153 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12154 other GUI windowing systems.
12155 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12156 GTK.
12157 (x_consider_frame_title): Under NS, set icon type and frame
12158 modified-state indicator; use ns_set_name_as_filename() when using
12159 formatted title.
12160 (update_window_cursor): Make public when compiling under NS.
12161 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12162 (hourglass_atimer, Vhourglass_delay
12163 * xfaces.c (header section, init_frame_faces, clear_font_table)
12164 (defined_color, unload_color, x_face_list_fonts)
12165 (prepare_face_for_display): Add NS support parallel to other GUIs.
12166 Emulate GCs like other non-X GUIs.
12167 (split_font_name): Don't lowercase font name under NS.
12168 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12169 under NS.
12170 * s/darwin.h: Add support for compilation under NS.
12171
121722008-07-15 Jason Rumney <jasonr@gnu.org>
12173
12174 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12175 (w32_show_hourglass): Rename from show_hourglass.
12176 (w32_hide_hourglass): Rename from hide_hourglass.
12177 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12178 (Vhourglass_delay): Declare extern.
12179 (hourglass_started): Remove.
12180
12181 * xdisp.c (Vhourglass_delay): Remove static.
12182 (hourglass_started, start_hourglass, cancel_hourglass):
12183 Don't include these versions on WINDOWSNT.
12184
121852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12186
12187 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12188 variables (formerly in xfns.c).
12189 (show_hourglass, hide_hourglass): New prototypes (same).
12190 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12191 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12192 in xfns.c).
12193 (syms_of_xdisp): Declare/initialize display-hourglass,
12194 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12195 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12196 formerly in xfns.c.
12197 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12198 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12199 (start_hourglass, cancel_hourglass): Remove.
12200 (show_hourglass, hide_hourglass): Remove prototypes and static
12201 modifiers.
12202 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12203 hourglass_atimer, hourglass_shown_p declaration/initialization.
12204 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12205 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12206 (start_hourglass, cancel_hourglass): Remove.
12207 (show_hourglass, hide_hourglass): Remove prototypes and static
12208 modifiers.
12209 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12210 hourglass_atimer, hourglass_shown_p declaration/initialization.
12211 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12212 (DEFAULT_HOURGLASS_DELAY): Remove.
12213 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12214 hourglass_shown_p declaration/initialization.
12215
122162008-07-14 Jason Rumney <jasonr@gnu.org>
12217
12218 * w32fns.c (w32_get_arg): Remove wrapper function.
12219 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12220 directly.
12221 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12222
122232008-07-14 Kenichi Handa <handa@m17n.org>
12224
12225 * xfont.c (xfont_open): Add workaround for X's bug.
12226
122272008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12228
12229 * fontset.c: Include <stdio.h> unconditionally.
12230
122312008-07-13 Michael Albinus <michael.albinus@gmx.de>
12232
12233 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12234 for filtering.
12235
122362008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12237
12238 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12239
12240 * m/macppc.h:
12241 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12242
12243 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12244 (SPECIAL_EMACS_INT):
12245 * m/ia64.h (SPECIAL_EMACS_INT):
12246 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12247 * s/gnu.h (NLIST_STRUCT):
12248 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12249 * s/gnu-linux.h (LINUX):
12250 * s/msdos.h (HAVE_FACES):
12251 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12252
12253 * systty.h:
12254 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12255 anymore.
12256
122572008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12258
12259 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12260 always defined as int.
12261
12262 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12263 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12264 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12265 * s/freebsd.h (HAVE_WAIT_HEADER):
12266 * s/bsd-common.h (HAVE_UNION_WAIT):
12267 * s/aix4-2.h (HAVE_WAIT_HEADER):
12268 * m/mips.h (HAVE_UNION_WAIT):
12269 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12270 (COFF, static): Do not define, they are undefined later in the file.
12271
12272 * process.c (update_status): Don't use a union.
12273 (status_convert):
12274 (sigchld_handler): Use int instead of WAITTYPE.
12275
122762008-07-12 Chong Yidong <cyd@stupidchicken.com>
12277
12278 * indent.c (Fvertical_motion): Restore hscroll before moving to
12279 goal column.
12280
122812008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12282
12283 * lisp.h: Remove left over code.
12284
122852008-07-11 Andreas Schwab <schwab@suse.de>
12286
12287 * lisp.h: Fix logic in last change.
12288
12289 * menu.h: New file.
12290 * menu.c: Include it.
12291 * xmenu.c: Likewise.
12292 * Makefile.in: Update dependencies.
12293
122942008-07-11 Kenichi Handa <handa@m17n.org>
12295
12296 * fontset.c (fontset_from_font): Cancel the previous change.
12297
122982008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12299
12300 * lisp.h:
12301 * w32heap.c:
12302 * emacs.c:
12303 * alloc.c: Replace all references of NO_UNION_TYPE with
12304 USE_LISP_UNION_TYPE.
12305
12306 * m/xtensa.h (NO_UNION_TYPE):
12307 * m/vax.h (NO_UNION_TYPE):
12308 * m/template.h (NO_UNION_TYPE):
12309 * m/sparc.h (NO_UNION_TYPE):
12310 * m/mips.h (NO_UNION_TYPE):
12311 * m/macppc.h (NO_UNION_TYPE):
12312 * m/m68k.h (NO_UNION_TYPE):
12313 * m/iris4d.h (NO_UNION_TYPE):
12314 * m/intel386.h (NO_UNION_TYPE):
12315 * m/ibms390x.h (NO_UNION_TYPE):
12316 * m/ibms390.h (NO_UNION_TYPE):
12317 * m/ibmrs6000.h (NO_UNION_TYPE):
12318 * m/ia64.h (NO_UNION_TYPE):
12319 * m/hp800.h (NO_UNION_TYPE):
12320 * m/arm.h (NO_UNION_TYPE):
12321 * m/amdx86-64.h (NO_UNION_TYPE):
12322 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12323 defining it the same.
12324
123252008-07-10 Chong Yidong <cyd@stupidchicken.com>
12326
12327 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12328
123292008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12330
12331 * fileio.c:
50426a04 12332 * sysdep.c:
aac0c6e3
MR
12333 * systty.h:
12334 * m/ibmrs6000.h:
12335 * m/iris4d.h:
12336 * s/aix4-2.h:
12337 * s/freebsd.h:
12338 * s/gnu-linux.h:
12339 * s/hpux10-20.h:
12340 * s/hpux11.h:
12341 * s/netbsd.h:
12342 * s/sol2-3.h:
12343 * s/sol2-4.h:
12344 * s/sol2.h:
12345 * s/usg5-4.h:
12346 * s/vms.h: Remove references to unused variables.
12347
123482008-07-10 Andreas Schwab <schwab@suse.de>
12349
12350 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12351 pattern before matching the generic family.
12352
123532008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12354
12355 * unexec.c:
12356 * s/vms.h:
12357 * s/usg5-4-2.h:
12358 * s/sol2-5.h:
12359 * s/freebsd.h:
12360 * s/darwin.h: Remove dead code.
12361
12362 * m/template.h:
12363 * m/sparc.h:
12364 * m/mips.h:
12365 * m/m68k.h:
12366 * m/iris4d.h:
12367 * m/intel386.h:
12368 * m/ibms390x.h:
12369 * m/ibms390.h:
12370 * m/ia64.h:
12371 * m/hp800.h:
12372 * m/arm.h:
12373 * m/amdx86-64.h: Remove dead code and references to unused
12374 and compiler defined symbols.
12375
12376 * unexmips.c:
12377 * unexelf.c: Remove references to desupported systems.
12378
12379 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12380
12381 * m/powermac.h: Remove boilerplate comments.
12382 (NO_REMAP): Remove unused definition.
12383
12384 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12385 define them.
12386
123872008-07-10 Kenichi Handa <handa@m17n.org>
12388
12389 * xfont.c (xfont_open): Log the reason of failure.
12390
123912008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12392
12393 * fontset.c (fontset_get_font_group):
12394 * font.c (font_check_otf): Specify argument types.
12395
123962008-07-09 Kenichi Handa <handa@m17n.org>
12397
12398 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12399 non-ASCII char is found.
12400
12401 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12402 (reorder_font_vector): Change the arg preferred_family to font.
12403 Prefer the spec matching with font.
12404 (fontset_get_font_group): New function.
12405 (fontset_find_font): Change the format of an element of a realized
12406 fontset. Use fontset_get_font_group.
12407 (fontset_font): Try the current fontset, the default fontset, the
12408 fallbacks of the current fontset, and the fallbacks of the default
12409 fontset in this order.
12410 (face_for_char): Delete the shortcut to use the current font.
12411 (fontset_from_font): Don't set fonts for Latin in the fontset.
12412
12413 * font.h (font_make_object, font_match_p): Adjust prototypes.
12414
12415 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12416
12417 * font.c (font_make_object): New arg entity and pixelsize.
12418 (font_check_otf_features, font_check_otf): New functions.
12419 (font_match_p): Check :lang, :script, and :otf properties.
12420
12421 * xfont.c (xfont_open): Adjust it for the change of
12422 font_make_object.
12423 (xfont_text_extents): Fix initial setting of metrics.
12424
12425 * ftfont.c (struct ftfont_info): New member index, delete member
12426 fc_charset_idx. Make the member order compatible with struct
12427 xftfont_info.
12428 (fc_charset_table): Change charset names to registry names.
12429 (ftfont_pattern_entity): Delete the args registry and
12430 fc_charset_idx. Change the value of :font-entity property
12431 to (FONTNAME . INDEX). Always set :registry property to
12432 `iso10646-1'.
12433 (struct ftfont_cache_data): New struct.
12434 (ftfont_lookup_cache): New arg for_face.
12435 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12436 (ftfont_driver): Set the member otf_capability.
12437 (ftfont_get_charset): Adjust it for the change of
12438 fc_charset_table.
12439 (OTF_TAG_SYM): New macro.
12440 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12441 for the change of fc_charset_table.
12442 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12443 ftfont_pattern_entity. Add FC_INDEX to objset.
12444 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12445 and ftfont_pattern_entity.
12446 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12447 font_make_object, struct ftfont_info.
12448 (ftfont_has_char): Use ftfont_get_fc_charset.
12449 (ftfont_otf_features, ftfont_otf_capability): New functions.
12450 (ftfont_shape): Use ftfont_get_otf.
12451 (ftfont_text_extents): Fix initial setting of metrics.
12452
12453 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12454 member order compatible with struct ftfont_info.
12455 (xftfont_open): Add FC_CHARSET to the pattern. Set
12456 xftfont_info->ft_size. Don't unlock the face. Check BDF
12457 properties if appropriate.
12458 (xftfont_close): Unlock the face.
12459 (xftfont_anchor_point, xftfont_shape): Deleted.
12460 (syms_of_xftfont): Don't set members anchor_point and shape of
12461 xftfont_driver.
12462
12463 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12464 font_make_object.
12465
12466 * w32font.c (w32font_open): Adjust it for the change of
12467 font_make_object.
12468 (w32font_open_internal): Don't set properties of font_object here.
12469
124702008-07-08 Chong Yidong <cyd@stupidchicken.com>
12471
12472 * macfns.c (x_create_tip_frame):
12473 * w32fns.c (x_create_tip_frame):
12474 * xfns.c (x_create_tip_frame): Pass parameter argument to
12475 face-set-after-frame-default.
12476
12477 * xfaces.c (Finternal_merge_in_global_face): Save merged
12478 attributes for the default face back into the face vector.
12479
124802008-07-08 Andreas Schwab <schwab@suse.de>
12481
12482 * fontset.h: Declare fontset_from_font. Don't declare
12483 new_fontset_from_font and fontset_from_font_name.
12484 * xterm.c: Include "fontset.h".
12485 * Makefile.in (xterm.o): Update dependencies.
12486
124872008-07-08 Glenn Morris <rgm@gnu.org>
12488
12489 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12490 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12491
124922008-07-07 Chong Yidong <cyd@stupidchicken.com>
12493
12494 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12495 (x_set_frame_parameters): Don't bind it.
12496
124972008-07-07 Juanma Barranquero <lekktu@gmail.com>
12498
12499 * w32fns.c (map_w32_filename): Declare extern.
12500
125012008-07-07 Jason Rumney <jasonr@gnu.org>
12502
12503 * w32term.c (WS_EX_LAYERED): Define if not already.
12504
125052008-07-06 Chong Yidong <cyd@stupidchicken.com>
12506
12507 * xfaces.c (set_font_frame_param): Don't try to set the font
12508 parameter if it is still unspecified in the lface.
12509
125102008-07-05 Chong Yidong <cyd@stupidchicken.com>
12511
12512 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12513 face if it didn't already exist.
12514
12515 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12516
125172008-07-05 Andreas Schwab <schwab@suse.de>
12518
12519 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12520
125212008-07-05 Chong Yidong <cyd@stupidchicken.com>
12522
12523 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12524 word-wrapping.
12525 (IT_DISPLAYING_WHITESPACE): New macro.
12526 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12527 when word-wrapping. Simplify word-wrapping logic. Use correct
12528 pixel positions when saving copies of the iterator.
12529 (display_line): Use proper wrap point if the last character on a
12530 line was preceded by whitespace.
12531
125322008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12533
12534 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12535
125362008-07-04 Kenichi Handa <handa@m17n.org>
12537
12538 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12539
12540 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12541
125422008-07-02 Jason Rumney <jasonr@gnu.org>
12543
12544 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12545 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12546
12547 * xdisp.c (next_element_from_display_vector): Move assignment out
12548 of if statement.
12549
125502008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12551
12552 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12553
12554 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12555 (syms_of_fileio): Initialize and export them.
12556 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12557
12558 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12559 (Fsystem_move_file_to_trash): New function.
12560 (syms_of_w32fns): Export it to lisp.
12561
125622008-07-01 Jason Rumney <jasonr@gnu.org>
12563
12564 * w32font.c (w32font_text_extents): Don't count overhang as part
12565 of width.
12566
125672008-06-30 Miles Bader <miles@gnu.org>
12568
12569 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12570 Add `avoid_cursor_p' field.
12571
12572 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12573 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12574 (append_glyph, append_composite_glyph, produce_image_glyph)
12575 (append_stretch_glyph): Initialize avoid_cursor_p.
12576 (get_it_property): Rename from `get_line_height_property'.
12577 (x_produce_glyphs): Use get_it_property.
12578 (handle_line_prefix, push_display_prop): New functions.
12579 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12580 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12581 New variables.
12582 (syms_of_xdisp): Initialize them.
12583
125842008-06-30 Kenichi Handa <handa@m17n.org>
12585
12586 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12587 XftDefaultSubstitute (they are called in XftFontMatch).
12588 (xftfont_open): Fix args to ftfont_font_format.
12589
12590 * ftfont.c (fc_charset_table): New member lang.
12591 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12592 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12593 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12594 (ftfont_open): Fix args to ftfont_font_format.
12595 (ftfont_font_format): New arg filename.
12596
125972008-06-30 Chong Yidong <cyd@stupidchicken.com>
12598
12599 * xfaces.c (Finternal_merge_in_global_face): If default face was
12600 modified, realize it again. Update the font face attribute.
12601
126022008-06-29 Jason Rumney <jasonr@gnu.org>
12603
12604 * w32term.c (x_set_frame_alpha): Fix logic.
12605
126062008-06-29 Kenichi Handa <handa@m17n.org>
12607
12608 * fontset.c (Finternal_char_font): Return font-object instead of
12609 font-name.
12610
12611 * composite.c (get_composition_id): Fix the width calculation for TAB.
12612
126132008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12614
12615 * indent.c (Fvertical_motion): Properly handle float column arg.
12616
126172008-06-28 Jason Rumney <jasonr@gnu.org>
12618
12619 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12620 (pfnSetLayeredWindowAttributes): New function pointer.
12621 (w32_initialize): Initialize it when supported.
12622 (x_set_frame_alpha): New function.
12623
12624 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12625 (w32_frame_parm_handlers): Set alpha handler.
12626
12627 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12628
126292008-06-27 Jason Rumney <jasonr@gnu.org>
12630
12631 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12632 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12633 (w32_to_x_charset, x_to_w32_charset)
12634 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12635 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12636 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12637 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12638 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12639 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12640 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12641 (Qw32_charset_unicode): Remove.
12642 (syms_of_w32fns): Update for above changes.
12643
12644 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12645 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12646 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12647 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12648 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12649 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12650 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12651 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12652 (syms_of_w32font): Update for above changes.
12653
126542008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12655
12656 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12657 removed #if.
12658 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12659
126602008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12661 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12662
12663 * makefile.w32-in (LOCAL_FLAGS):
12664 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12665
12666 * sysdep.c (_spawnlp, _getpid):
12667 Declare with explicit _cdecl instead of _CRTAPI1.
12668
12669 * editfns.c (Fget_internal_run_time):
12670 Check for WINDOWSNT with #ifdef, not #if.
12671
126722008-06-26 Jason Rumney <jasonr@gnu.org>
12673
12674 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12675
12676 * w32term.c (x_draw_glyph_string_foreground)
12677 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12678 Use FONT_HANDLE macro.
12679 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12680
12681 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12682 (uniscribe_encode_char): Use FONT_HANDLE macro.
12683
12684 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12685 (w32font_text_extents): Use precast w32_font.
12686 (w32font_close): Free cached metrics.
12687 (w32font_open_internal): Allocate space for name on stack.
12688
126892008-06-26 Chong Yidong <cyd@stupidchicken.com>
12690
12691 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12692
126932008-06-26 Jason Rumney <jasonr@gnu.org>
12694
12695 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12696 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12697
126982008-06-26 Juanma Barranquero <lekktu@gmail.com>
12699
12700 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12701
127022008-06-26 Jason Rumney <jasonr@gnu.org>
12703
12704 * w32bdf.c, w32bdf.h: Remove obsolete files.
12705
12706 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12707
12708 * w32gui.h: Don't include w32bdf.h.
12709 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12710 Remove obsolete font support.
12711
12712 * w32font.h (struct w32font_info): Remove compat_w32_font.
12713 Add hfont member.
12714 (FONT_COMPAT): Remove obsolete macro.
12715
12716 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12717 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12718 (w32font_open_internal): Remove compat code. Set new hfont member.
12719 (Fx_select_font): Use new hfont member.
12720
12721 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12722 (uniscribe_encode_char): Use new hfont member.
12723
12724 * w32term.c (x_draw_glyph_string_foreground)
12725 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12726 (x_draw_glyph_string): Use metrics in w32font_info.
12727
127282008-06-26 Kenichi Handa <handa@m17n.org>
12729
12730 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12731
127322008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12733
12734 * unexnext.c:
12735 * m/ews4800.h:
12736 * m/hp9000s300.h:
12737 * m/ibm370aix.h:
12738 * m/mips-siemens.h:
12739 * m/ncr386.h:
12740 * m/next.h:
12741 * m/pmax.h:
12742 * m/powerpcle.h:
12743 * m/tandem-s2.h:
12744 * s/386bsd.h:
12745 * s/bsd386.h:
12746 * s/bsd4-1.h:
12747 * s/bsd4-2.h:
12748 * s/bsdos2-1.h:
12749 * s/bsdos2.h:
12750 * s/bsdos3.h:
12751 * s/bsdos4.h:
12752 * s/nextstep.h:
12753 * s/ultrix4-3.h:
12754 * s/usg5-0.h:
12755 * s/usg5-2-2.h:
12756 * s/usg5-2.h:
12757 * s/usg5-4-3.h:
12758 * s/ux4800.h:
12759 * s/uxpds.h:
12760 * s/uxpv.h: Remove support for obsolete systems.
12761 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12762 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12763 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12764 Remove, insert contents in s/aix4-2.h.
12765 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12766 * s/bsd4-3.h: Rename to ...
12767 * s/bsd-common.h: ... this.
12768 * data.c:
12769 * doc.c:
12770 * ecrt0.c:
12771 * emacs.c:
12772 * fileio.c:
12773 * floatfns.c:
12774 * keyboard.c:
12775 * mem-limits.h:
12776 * print.c:
12777 * process.c:
12778 * sysdep.c:
12779 * syssignal.h:
12780 * systty.h:
12781 * syswait.h:
12782 * term.c:
12783 * unexec.c:
12784 * unexelf.c:
12785 * unexhp9k800.c:
12786 * m/hp800.h:
12787 * m/ibmrs6000.h:
12788 * m/mips.h:
12789 * m/vax.h:
12790 * s/darwin.h:
12791 * s/freebsd.h:
12792 * s/gnu.h:
12793 * s/ms-w32.h:
12794 * s/msdos.h:
12795 * s/netbsd.h:
12796 * s/template.h: Remove references to obsolete variables.
12797
12798 * Makefile.in: Add dependencies for all unexec files.
12799 (admindir): Remove unused variable.
12800 (UNEXEC_SRC): Remove references.
12801
128022008-06-25 Chong Yidong <cyd@stupidchicken.com>
12803
12804 * xfns.c (x_default_font_parameter): If Xft is available, first
12805 try Monospace-12 for the default font.
12806
128072008-06-25 Jason Rumney <jasonr@gnu.org>
12808
12809 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12810
128112008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12812
12813 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12814
12815 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12816
128172008-06-25 Juanma Barranquero <lekktu@gmail.com>
12818
12819 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12820 <scroll-conservatively>: Fix typo in docstring.
12821
12822 * xselect.c (Fx_send_client_event): Doc fix.
12823
128242008-06-25 Kenichi Handa <handa@m17n.org>
12825
12826 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12827
12828 * font.c (font_parse_fcname): Remove unused variables.
12829 (font_sort_entites): Delete the arg SPEC. Caller changed.
12830 Fix for the case of ! best_only.
12831 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12832
12833 * lisp.h (Fstring_to_unibyte): EXFUN it.
12834
12835 * character.h (str_to_unibyte): Extern it.
12836
12837 * character.c (str_to_unibyte): New function.
12838
12839 * fns.c (Fstring_to_unibyte): New function.
12840 (syms_of_fns): Defsubr it.
12841
128422008-06-24 Kenichi Handa <handa@m17n.org>
12843
12844 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12845 DPI too.
12846 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12847
128482008-06-24 Andreas Schwab <schwab@suse.de>
12849
12850 * Makefile.in (${lispsource}loaddefs.el): Rename from
12851 ../lisp/loaddefs.el.
12852 (bootstrap-clean): Do what distclean does but don't remove
12853 Makefile.
12854 (distclean): Depend on bootstrap-clean and remove Makefile.
12855
128562008-06-24 Chong Yidong <cyd@stupidchicken.com>
12857
12858 * buffer.h (struct buffer): New member word_wrap.
12859
12860 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12861 word-wrap.
12862 (init_buffer_once): Initialize them.
12863
12864 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12865 line_wrap enum possessing three possible values.
12866
12867 * termopts.h: Replace truncate_partial_width_windows with
12868 Vtruncate_partial_width_windows.
12869
12870 * dispnew.c (direct_output_for_insert): Avoid direct output when
12871 inserting a space with word wrap on.
12872
12873 * indent.c (compute_motion): Obey integer values of
12874 truncate-partial-width-windows.
12875
12876 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12877 replacing truncate_partial_width_windows.
12878 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12879 truncate only if the window width is below that integer.
12880 (start_display, resize_mini_window, produce_stretch_glyph)
12881 (display_string, move_it_in_display_line_to): Use line_wrap.
12882 (back_to_previous_visible_line_start, reseat_1): Reset
12883 string_from_display_prop_p.
12884 (display_line): Extend default face to end of line when wrapping.
12885
128862008-06-24 Kim F. Storm <storm@cua.dk>
12887
12888 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12889 to wrap continued lines at word boundaries.
12890
128912008-06-24 Jason Rumney <jasonr@gnu.org>
12892
12893 * font.c (Ffont_face_attributes): Multiply pixel size before point
12894 conversion to avoid multiplying rounding error.
12895
128962008-06-23 Jason Rumney <jasonr@gnu.org>
12897
12898 * w32term.c (x_draw_glyph_string_background)
12899 (x_draw_glyph_string): Remove old bdf font code.
12900
12901 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12902
129032008-06-22 Kenichi Handa <handa@m17n.org>
12904
12905 * font.c (font_find_for_lface): Try the adstyle specified in
12906 the property of LFACE_FONT of LFACE (if any).
12907
129082008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12909 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12910
12911 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12912
129132008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12914
12915 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12916 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12917 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12918 (witness-emacs): Remove.
12919 (lisp, shortlisp): Move loaddefs.el earlier.
12920 (mostlyclean): Forget about witness-emacs.
12921
129222008-06-22 Glenn Morris <rgm@gnu.org>
12923
12924 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12925 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12926
129272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12928
12929 * Makefile.in (PRECOMP): Remove.
12930 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12931 (witness-emacs): Run `compile-first'.
12932 (.el.elc): Use the new compile-onefile target.
12933
129342008-06-21 Kenichi Handa <handa@m17n.org>
12935
12936 * xftfont.c (xftfont_open): Handle QCembolden only when
12937 FC_EMBOLDEN is defined.
12938
129392008-06-21 Andreas Schwab <schwab@suse.de>
12940
12941 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12942 (.el.elc): Likewise.
12943
129442008-06-21 Miles Bader <miles@gnu.org>
12945
12946 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12947 build dir, not the lisp source dir.
12948
129492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12950
12951 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12952 (bootstrapclean): Remove.
12953 (.el.elc): New rule.
12954 (PRECOMP): New var.
12955 (../lisp/subdirs.el): Remove.
12956 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12957 (witness-emacs): New target.
12958 (mostlyclean): Remove witness-emacs as well.
12959 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12960 Add witness-emacs dependency.
12961
129622008-06-20 Chong Yidong <cyd@stupidchicken.com>
12963
12964 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12965 defined by the font.
12966
129672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12968
12969 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12970 (bootstrap-clean): New target that keeps TAGS around.
12971 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12972 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12973
129742008-06-20 Jason Rumney <jasonr@gnu.org>
12975
12976 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12977 Remove obsolete font code.
12978
12979 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12980 to determine language support.
12981
129822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12983
12984 * sysdep.c (cfsetspeed): New fun extracted from the code.
12985 (cfmakeraw): Move before first use.
12986
129872008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12988
12989 * sysdep.c (cfmakeraw): Provide fallback implementation.
12990 (serial_configure): Provide fallback implementation of cfsetspeed.
12991
129922008-06-20 Kenichi Handa <handa@m17n.org>
12993
12994 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12995 the pattern.
12996
12997 * fontset.c (fontset_from_font): Copy font_spec before changing
12998 the elements.
12999
13000 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13001
130022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13003
13004 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13005 for explicit `font' parameters.
13006
13007 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13008
130092008-06-19 Kenichi Handa <handa@m17n.org>
13010
13011 * frame.c: Include <ctype.h>.
13012 (x_set_font_backend): Allow spacing characters in the X resource
13013 for FontBackend.
13014
130152008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13016
13017 * w32fns.c, xfns.c (Qfont_param): New var.
13018 (syms_of_w32fns): Initialize it.
13019 (x_default_font_parameter): Record explicit `font' into
13020 `font-parameter'.
13021
130222008-06-18 Kenichi Handa <handa@m17n.org>
13023
13024 * font.c (font_parse_xlfd): Fix previous change.
13025 (font_parse_fcname): Don't use :fc-unknown-spec.
13026 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13027 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13028 (font_add_log): Prepend the driver name to the resulting fonts.
13029
13030 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13031 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13032 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13033
13034 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13035 (QCembolden): New variables.
13036 (syms_of_xftfont): DEFSYM them.
13037 (xftfont_open): Call XftFontMatch. Don't trust the result of
13038 XftTextExtents8 if the pixel_size is less than 5.
13039
130402008-06-18 Andreas Schwab <schwab@suse.de>
13041
13042 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13043 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13044
130452008-06-18 Jason Rumney <jasonr@gnu.org>
13046
13047 * w32font.c (w32font_list, w32font_match): Add logging.
13048
13049 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13050
130512008-06-17 Chong Yidong <cyd@stupidchicken.com>
13052
13053 * font.c (font_parse_fcname): Store divider characters for
13054 unknown-spec list. For known key symbols, intern using correct
13055 symbol name.
13056
130572008-06-17 Kenichi Handa <handa@m17n.org>
13058
13059 * xfaces.c (realize_default_face): If the frame is not on window
13060 system, set the fontset of face to nil.
13061
130622008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13063
13064 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13065
130662008-06-16 Juanma Barranquero <lekktu@gmail.com>
13067
13068 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13069 (build_font_name_from_vector): Delete externs.
13070
13071 * xfaces.c (struct font_name): Don't declare.
13072
130732008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13074
13075 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13076
130772008-06-16 Chong Yidong <cyd@stupidchicken.com>
13078
13079 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13080
130812008-06-16 Juanma Barranquero <lekktu@gmail.com>
13082
13083 * font.c (Ffont_spec): Fix usage in docstring.
13084 (Ffont_face_attributes): Doc fix.
13085
130862008-06-16 Andreas Schwab <schwab@suse.de>
13087
13088 * font.c (Ffont_face_attributes): Fix definition.
13089
130902008-06-16 Jason Rumney <jasonr@gnu.org>
13091
13092 * font.h (font_style_symbolic_from_value): Remove.
13093
13094 * font.c (font_style_symbolic_from_value): Remove.
13095 (font_style_symbolic): Revert to pre 2008-06-13 version.
13096
13097 * w32font.c (w32_to_fc_weight): New function.
13098 (w32font_full_name, logfont_to_fcname): Use it.
13099
131002008-06-16 Kenichi Handa <handa@m17n.org>
13101
13102 * font.c (font_check_object): Delete it.
13103 (font_clear_cache): Check if a font-object is alive.
13104 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13105 font-object to nil.
13106 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13107 (font_at): Don't call font_check_object.
13108 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13109
131102008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13111
13112 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13113
131142008-06-16 Chong Yidong <cyd@stupidchicken.com>
13115
13116 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13117
131182008-06-15 Chong Yidong <cyd@stupidchicken.com>
13119
13120 * font.c (font_parse_fcname): Only one decimal point.
13121 (font_unparse_fcname): Handle data in family and foundry indices
13122 as symbols, not strings.
13123 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13124
13125 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13126
13127 * font.h (font_unparse_gtkname): Add prototype.
13128
131292008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13130
13131 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13132
131332008-06-15 Andreas Schwab <schwab@suse.de>
13134
13135 * font.c (font_update_drivers): Fix crash when no drivers match.
13136
131372008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13138
13139 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13140 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13141
131422008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13143
13144 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13145
131462008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13147
13148 * process.c (Fserial_process_configure, Fprocess_send_eof):
13149 Use EQ to compare Lisp_Objects.
13150
131512008-06-13 Jason Rumney <jasonr@gnu.org>
13152
13153 * w32fns.c (Fw32_select_font): Remove old font API function.
13154
13155 * w32font.c (logfont_to_fcname): New function.
13156 (Fx_select_font): New font dialog function compatible with
13157 GTK/fontconfig version.
13158
13159 * font.c (font_style_symbolic_from_value): New function.
13160 (font_style_symbolic): Use it.
13161
13162 * font.h (font_style_symbolic_from_value): Declare new function.
13163
131642008-06-13 Juanma Barranquero <lekktu@gmail.com>
13165
13166 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13167 <font-width-table>: Fix typos in docstrings.
13168
131692008-06-13 Daniel Engeler <engeler@gmail.com>
13170
13171 These changes add serial port access.
13172 * process.c: Add HAVE_SERIAL.
13173 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13174 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13175 (list_processes_1, select_wrapper, Fstop_process)
13176 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13177 (status_notify): Modify to handle serial processes.
13178 [HAVE_SERIAL] (Fserial_process_configure)
13179 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13180 New functions.
13181 * process.h (struct Lisp_Process): Add `type'.
13182 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13183 New functions.
13184 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13185 serial ports.
b71ac3dd 13186 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13187 * w32.h: Add FILE_SERIAL.
13188 (struct _child_process): Add ovl_read, ovl_write.
13189
131902008-06-13 Kenichi Handa <handa@m17n.org>
13191
13192 * dispextern.h (enum lface_attribute_index): New member
13193 LFACE_FOUNDRY_INDEX.
13194
13195 * font.c (font_score): Delete arg alternate_families. Check only
13196 weight, slant, width, and size. Ignore the difference of alias
13197 style symbols.
13198 (font_sort_entites): Adjust for the above change. Reflect the
13199 order of font-driver to scores.
13200 (font_list_entities): Don't check alternate_familes here.
13201 (font_clear_prop): Handle foundry.
13202 (font_update_lface): Don't parse "foundry-family" form here.
13203 Handle FONT_FOUNDRY_INDEX.
13204 (font_find_for_lface): Likewise. Handle alternate families here.
13205 If registry is nil, try iso8859-1 and ascii-0.
13206 (font_open_for_lface): Pay attention to size in ENTITY.
13207 (font_open_by_name): Simplify by calling font_load_for_lface.
13208 (free_font_driver_list): Delete it.
13209 (font_update_drivers): Preserve the order of backends.
13210 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13211 of font_score and font_sort_entites.
13212 (font_update_sort_order): Likewise.
13213
13214 * xfaces.c (LFACE_FOUNDRY): New macro.
13215 (check_lface_attrs): Check foundry.
13216 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13217 (merge_face_vectors): Check foundry.
13218 (merge_face_ref): Likewise.
13219 (Finternal_set_lisp_face_attribute): Likewise.
13220 (x_update_menu_appearance): Likewise.
13221 (Finternal_get_lisp_face_attribute): Likewise.
13222 (lface_hash): Likewise.
13223 (lface_same_font_attributes_p): Likewise.
13224 (x_supports_face_attributes_p): Likewise.
13225 (tty_supports_face_attributes_p): Likewise.
13226 (Finternal_set_alternative_font_family_alist): Intern strings.
13227 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13228 (realize_default_face): Set LFACE_FOUNDRY (lface).
13229
13230 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13231 font-driver at first.
13232
13233 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13234
132352008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13236
13237 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13238
132392008-06-12 Jim Meyering <meyering@redhat.com>
13240
13241 Make unexec_free handle NULL the same way free does.
13242 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13243
132442008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13245
13246 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13247 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13248 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13249 (WEAK_ALIAS): Simplify.
13250 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13251 when searching a unibyte buffer.
13252
132532008-06-12 Chong Yidong <cyd@stupidchicken.com>
13254
13255 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13256
132572008-06-12 Juanma Barranquero <lekktu@gmail.com>
13258
13259 * w32font.c: Include ctype.h.
13260
132612008-06-11 Jason Rumney <jasonr@gnu.org>
13262
13263 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13264 misreported as space.
13265 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13266 as aliases for registry iso10646-1.
13267
132682008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13269
13270 * buffer.c (clone_per_buffer_values): Skip `name'.
13271
132722008-06-11 Chong Yidong <cyd@stupidchicken.com>
13273
13274 * font.c (font_parse_fcname): Fix last change; accept decimal
13275 points in font size.
13276
132772008-06-10 Jason Rumney <jasonr@gnu.org>
13278
13279 * w32uniscribe.c (add_opentype_font_name_to_list):
13280 Skip non unicode fonts.
13281
132822008-06-10 Chong Yidong <cyd@stupidchicken.com>
13283
13284 * xfns.c (Fx_font_dialog): New function.
13285
13286 * gtkutil.c (xg_dialog_response_cb): Rename from
13287 xg_file_response_callback.
13288 (pop_down_dialog): Rename from pop_down_file_dialog.
13289 (xg_get_file_name): Callers changed.
13290 (xg_get_font_name): New function.
13291
13292 * gtkutil.h (xg_get_font_name): Insert prototype.
13293
132942008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13295
13296 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13297 x_underline_minimum_display_offset.
13298 (syms_of_xdisp): Declare it here rather than in xterm.c.
13299 * dispextern.h (underline_minimum_offset): Declare it.
13300 * w32term.c (x_draw_glyph_string): Use it.
13301 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13302 (syms_of_xterm): Don't declare it any more.
13303 (x_draw_glyph_string): Adjust to the new name.
13304
8719abec 133052008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13306
13307 * xterm.c (x_underline_minimum_display_offset): New var.
13308 (x_draw_glyph_string): Use it.
13309 (syms_of_xterm): Declare it.
13310
133112008-06-10 Chong Yidong <cyd@stupidchicken.com>
13312
13313 * font.c (font_parse_fcname): Accept GTK-style font names too.
13314
133152008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13316
13317 * dired.c (file_name_completion): Don't return t if the match is exact
13318 but with different capitalization.
13319 * minibuf.c (Ftry_completion): Simplify.
13320
13321 * window.c (Vwindow_point_insertion_type): New var.
13322 (set_window_buffer): Use it.
13323 (syms_of_window): Init and export it to Lisp.
13324
133252008-06-10 Kenichi Handa <handa@m17n.org>
13326
13327 * font.h (font_intern_prop): Prototype adjusted.
13328
13329 * font.c (font_intern_prop): New arg force_symbol.
13330 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13331 Adjust for the change of font_intern_prop.
13332
13333 * ftfont.c (ftfont_pattern_entity):
13334 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13335 (w32_registry):
13336 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13337 the change of font_intern_prop.
13338
133392008-06-09 Juanma Barranquero <lekktu@gmail.com>
13340
13341 * w32menu.c (digest_single_submenu): Declare extern.
13342
133432008-06-09 Jason Rumney <jasonr@gnu.org>
13344
13345 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13346
13347 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13348 (parse_single_submenu): Remove.
13349 (digest_single_submenu): Remove.
13350 (syms_of_w32menu): Don't initialise variables that have moved
13351 to menu.c.
13352 (set_frame_menubar): Sync with version in xmenu.c.
13353 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13354
13355 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13356 Make static again.
13357
133582008-06-09 Jason Rumney <jasonr@gnu.org>
13359
13360 Changes to w32 files related to the move of common menu code
13361 to menu.c on 2008-06-08 by Chong Yidong.
13362
13363 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13364 defs to w32gui.h.
13365 (single_keymap_panes, push_menu_item, push_menu_pane):
13366 Make globally visible.
13367
13368 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13369 (local_free, malloc_widget_value, free_widget_value)
13370 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13371 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13372 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13373 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13374 (menu_items, menu_items_allocated, menu_items_used)
13375 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13376 (init_menu_items, finish_menu_items, discard_menu_items)
13377 (grow_menu_items, push_submenu_start, push_submenu_end)
13378 (push_left_right_boundary, push_menu_pane, push_menu_item)
13379 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13380 (free_menubar_widget_tree_value, parse_single_submenu)
13381 (update_submenu_strings): Remove functions.
13382 (xmalloc_widget_value): Remove and declare extern.
13383
13384 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13385 (OBJ1): Build it.
13386
13387 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13388 (local_heap, local_alloc, local_free, malloc_widget_value)
13389 (free_widget_value): Define here.
13390
133912008-06-09 Kenichi Handa <handa@m17n.org>
13392
13393 * font.h (Qascii_0): Extern it.
13394
13395 * font.c (Qascii_0): New variable.
13396 (syms_of_font): DEFSYM it.
13397 (font_open_by_name): If the registry "iso8859-1" fails, try also
13398 "ascii-0".
13399
13400 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13401
134022008-06-08 Kenichi Handa <handa@m17n.org>
13403
13404 * .gdbinit (xfont): New command.
13405
134062008-06-08 Andreas Schwab <schwab@suse.de>
13407
13408 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13409 * Makefile.in (menu.o): Update dependencies.
13410
13411 * Makefile.in (obj): Always add menu.o.
13412 * emacs.c (main): Always call syms_of_menu.
13413 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13414
134152008-06-08 Chong Yidong <cyd@stupidchicken.com>
13416
13417 * Makefile.in: Compile menu.c.
13418
13419 * lisp.h: Declare syms_of_menu.
13420
13421 * emacs.c (main): Call syms_of_menu.
13422
13423 * keyboard.h: Relocate platform-independent menu definitions from
13424 xmenu.c.
13425
13426 * menu.c: New file. Relocate platform-independent menu
13427 definitions from xmenu.c. Suggested by Adrian Robert.
13428
13429 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13430 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13431 (menu_items_used, menu_items_n_panes)
13432 (menu_items_submenu_depth): Move to keyboard.h.
13433 (init_menu_items, finish_menu_items, unuse_menu_items)
13434 (discard_menu_items, restore_menu_items, save_menu_items)
13435 (grow_menu_items, push_submenu_start, push_submenu_end)
13436 (push_left_right_boundary, push_menu_pane, push_menu_item)
13437 (keymap_panes, single_keymap_panes, single_menu_item)
13438 (list_of_panes, list_of_items, find_and_call_menu_selection)
13439 (xmalloc_widget_value, free_menubar_widget_value_tree)
13440 (parse_single_submenu, digest_single_submenu)
13441 (update_submenu_strings): Move to menu.c.
13442
134432008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13444
13445 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13446
134472008-06-06 Miles Bader <miles@gnu.org>
13448
13449 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13450 face, not frame default.
13451
134522008-06-05 Martin Rudalics <rudalics@gmx.at>
13453
13454 * window.c (pop_up_windows, pop_up_frames)
13455 (display_buffer_reuse_frames, Vpop_up_frame_function)
13456 (Vdisplay_buffer_function, Veven_window_heights)
13457 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13458 (Vspecial_display_function, Vsame_window_buffer_names)
13459 (Vsame_window_regexps, split_height_threshold)
13460 (Vsplit_window_preferred_function): Move those vars to window.el.
13461 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13462 (Fdisplay_buffer): Move those functions to window.el.
13463 (syms_of_window): Remove corresponding declarations.
13464 (display_buffer): New function.
13465 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13466 * dispnew.c (Flast_nonminibuf_frame): New function.
13467 * buffer.c (Fpop_to_buffer): Move to window.el.
13468
134692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13470
13471 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13472
134732008-06-05 Kenichi Handa <handa@m17n.org>
13474
13475 * coding.c (detect_coding): Fix previous change.
13476 (detect_coding_system): Likewise.
13477
134782008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13479
13480 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13481
13482 * keymap.c (Vminibuffer_local_filename_must_match_map):
13483 Rename from Vminibuffer_local_must_match_filename_map.
13484 (syms_of_keymap):
13485 * minibuf.c (Fcompleting_read): Adjust accordingly.
13486 * commands.h: Rename declaration as well.
13487
134882008-06-05 Kenichi Handa <handa@m17n.org>
13489
13490 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13491 family name.
13492 (Ffont_put): Likewise.
13493
13494 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13495 current font-spec.
13496
13497 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13498 is unspecified.
13499
13500 * xfaces.c (realize_x_face): If the font-related face attributes
13501 are the same as those of default face, realize a new fontset from
13502 default->fontset.
13503 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13504
135052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13506
13507 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13508 (move_it_in_display_line): New wrapper.
13509
13510 * window.c (window_scroll_pixel_based_preserve_x)
13511 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13512 (window_scroll_pixel_based, window_scroll_line_based):
13513 Use them to preserve column positions.
13514 (syms_of_window): Initialize them.
13515
13516 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13517 (HPOS . VPOS) pair.
13518
13519 * dispextern.h (move_it_in_display_line): Declare.
13520
135212008-06-05 Juanma Barranquero <lekktu@gmail.com>
13522
13523 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13524 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13525 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13526
135272008-06-04 Juanma Barranquero <lekktu@gmail.com>
13528
13529 * window.c (Fset_window_parameter): Doc fix.
13530 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13531
135322008-06-04 Joakim Verona <joakim@verona.se>
13533
13534 * window.h (struct window): Add new member window_parameters.
13535
13536 * window.c (Fwindow_parameters, Fwindow_parameter)
13537 (Fset_window_parameter): New defuns.
13538 (syms_of_window): Defsubr the new defuns.
13539 (make_window): Initialize window_parameters to nil.
13540
135412008-06-04 John Paul Wallington <jpw@pobox.com>
13542
13543 * eval.c (Fdefmacro): Doc fix.
13544
135452008-06-04 Kenichi Handa <handa@m17n.org>
13546
13547 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13548 Be sure to call setup_coding_system when we find a proper coding system.
13549 (detect_coding_system): Fix handling of coding->head_ascii.
13550
135512008-06-03 Andreas Schwab <schwab@suse.de>
13552
13553 * font.c (font_prop_validate_spacing): Fix last change.
13554
135552008-06-03 Kenichi Handa <handa@m17n.org>
13556
13557 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13558 (font_parse_fcname): Fix handling of unknown key.
13559
13560 * xfont.c (xfont_list): Try an alias.
13561
13562 * charset.c (char_charset): Return NULL if the arg charset_list is
13563 specified and C doesn't belong to any of them.
13564
135652008-06-02 Chip Coldwell <coldwell@redhat.com>
13566
13567 * font.c (font_pixel_size): Don't take cdr of an integer.
13568
135692008-06-02 Jim Meyering <meyering@redhat.com>
13570
13571 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13572 * alloc.c (xfree): Return right away for a NULL arg.
13573 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13574 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13575 * mac.c (create_apple_event_from_event_ref): Likewise.
13576 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13577 Likewise.
13578 * doprnt.c (doprnt1): Likewise.
13579 * frame.c (frame): Likewise.
13580 * keyboard.c (wipe_kboard): Likewise.
13581 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13582 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13583 * term.c (tty_default_color_capabilities, maybe_fatal)
13584 (delete_tty): Likewise.
13585 * w16select.c (string): Likewise.
13586 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13587 * w32bdf.c (w32_free_bdf_font): Likewise.
13588 * w32fns.c (w32_unload_font): Likewise.
13589 * w32font.c (w32font_close): Likewise.
13590 * window.c (size_window): Likewise.
13591 * xselect.c (receive_incremental_selection): Likewise.
13592 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13593 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13594 * w32.c (stat): Likewise.
13595
13596 Remove useless if-before-free tests.
13597 * editfns.c (Fset_time_zone_rule): Likewise.
13598 * lread.c (nosuffix): Likewise.
13599 * ralloc.c (get_bloc): Likewise.
13600 * regex.c (reg_free): Likewise.
13601 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13602 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13603 * xsmfns.c (smc_save_yourself_CB): Likewise.
13604
136052008-06-02 Kenichi Handa <handa@m17n.org>
13606
13607 * font.c (font_find_for_lface): Handle float font size.
13608 (font_open_for_lface): Likewise.
13609
13610 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13611 comparing the properties.
13612
136132008-06-01 Jason Rumney <jasonr@gnu.org>
13614
13615 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13616 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13617 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13618 Don't add empty script list.
13619 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13620
136212008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13622
13623 * Makefile.in (dot, dotdot): Remove, update users.
13624 ".." has been used elsewhere in the file for a long time.
13625 (LIBXT_STATIC): Remove conditional based on unused variable.
13626
136272008-06-01 Miles Bader <miles@gnu.org>
13628
13629 * xfaces.c (Vface_remapping_alist): New variable.
13630 (syms_of_xfaces): Initialize it.
13631 (enum named_merge_point_kind): New type.
13632 (struct named_merge_point): Add `named_merge_point_kind' field.
13633 (push_named_merge_point): Make cycle detection respect different
13634 named-merge-point kinds.
13635 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13636 Remove face-name alias resolution.
13637 (lface_from_face_name): New definition using
13638 `lface_from_face_name_no_resolve'.
13639 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13640 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13641 (get_lface_attributes): New definition that layers face-remapping on
13642 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13643 (lookup_basic_face): New function.
13644 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13645 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13646 `get_lface_attributes'.
13647 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13648 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13649 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13650
13651 * xdisp.c (init_iterator): Pass base_face_id through
13652 `lookup_basic_face' when we actually use it as a face-id.
13653 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13654 DEFAULT_FACE_ID.
13655
13656 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13657 lookup the initial face-id.
13658
13659 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13660
136612008-06-01 Juanma Barranquero <lekktu@gmail.com>
13662
13663 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13664 (Fremove_text_properties): Fix typos in docstrings.
13665
136662008-05-31 Kenichi Handa <handa@m17n.org>
13667
13668 * font.c (font_list_entities): Fix the car part of data to be
13669 stored in the cache.
13670
13671 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13672
136732008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13674
13675 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13676 Add a `test' argument so another predicate than `equal' can be used.
13677 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13678 (map_char_table): Remove unused vars `c' and `i'.
13679 * lisp.h (Foptimize_char_table): Adjust declaration.
13680 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13681
136822008-05-30 Kenichi Handa <handa@m17n.org>
13683
13684 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13685 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13686 defined.
13687
136882008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13689
13690 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13691 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13692 frame-local settings for the same variable.
13693
136942008-05-30 Kenichi Handa <handa@m17n.org>
13695
13696 * fontset.c (Ffont_info): Move to font.c.
13697 (syms_of_fontset): Delete defsubr of Sfont_info.
13698
13699 * font.c (font_style_to_value, font_score): Delete casting of the
13700 args to xstcasecmp.
13701 (register_font_driver): Increment num_font_drivers only when
13702 registering the driver globally.
13703 (Ffont_info): Move from fontset.c. Handle a font object too.
13704 (syms_of_font): Defsubr Sfont_info.
13705
137062008-05-29 Kenichi Handa <handa@m17n.org>
13707
13708 * coding.h (enum define_coding_utf8_arg_index): New enum.
13709 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13710 coding_attr_utf_bom.
13711 (enum utf_bom_type): Rename from utf_16_bom_type.
13712 (struct utf_16_spec): Adjust for the above change.
13713 (struct coding_system): Add utf_8_bom in `spec' union.
13714
13715 * coding.c (CODING_UTF_8_BOM): New macro.
13716 (enum coding_category): Delete coding_category_utf_8, add
13717 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13718 coding_category_utf_8_sig.
13719 (CATEGORY_MASK_UTF_8): Delete it.
13720 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13721 (CATEGORY_MASK_UTF_8_SIG): New macros.
13722 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13723 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13724 CATEGORY_MASK_UTF_8_SIG.
13725 (CATEGORY_MASK_UTF_8): New macro.
13726 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13727 (detect_coding_utf_8): Check BOM.
13728 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13729 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13730 (encode_coding_utf_16): Likewise.
13731 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13732 (detect_coding, detect_coding_system): Handle utf-8-auto.
13733 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13734 (syms_of_coding): Fix setting up of Vcoding_category_table.
13735
137362008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13737
13738 * process.c (Faccept_process_output): If `millisec' is non-nil,
13739 `seconds' default to 0.
13740 (wait_reading_process_output): Also return non-nil if we read output
13741 from a non-running process.
13742
137432008-05-29 Jason Rumney <jasonr@gnu.org>
13744
13745 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13746 `raster' specified.
13747 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13748 in the uniscribe backend, but disallow any font that has no
13749 unicode subrange support.
13750
137512008-05-29 Juanma Barranquero <lekktu@gmail.com>
13752
13753 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13754 Fix typos in docstrings.
13755
137562008-05-29 Kenichi Handa <handa@m17n.org>
13757
13758 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13759 (Fx_family_fonts): Set frame correctly.
13760
137612008-05-28 Jason Rumney <jasonr@gnu.org>
13762
13763 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13764
137652008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13766
13767 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13768 calling build_annotations.
13769
137702008-05-28 Juanma Barranquero <lekktu@gmail.com>
13771
13772 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13773 (Fencode_coding_string):
13774 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13775 <latin-extra-code-table>: Fix typos in docstrings.
13776 (syms_of_coding) <coding-system-alist>: Doc fix.
13777 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13778
137792008-05-28 Kenichi Handa <handa@m17n.org>
13780
13781 * fontset.c (Ffont_info): Don't call font_close_object.
13782
13783 * font.c (font_parse_family_registry): Use Ffont_put to validate
13784 foundry and family.
13785 (font_delete_unmatched): Don't check spacing.
13786 (font_list_entities): Add spacing to the spec to list fonts.
13787
13788 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13789 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13790
13791 * coding.c (encode_coding_raw_text): Fix previous change.
13792 (encode_coding_object): When the dst_object is a buffer and is
13793 different from src_object, move gap to PT.
13794
137952008-05-27 Chong Yidong <cyd@stupidchicken.com>
13796
13797 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13798
137992008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13800
13801 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13802 all branches. Compute it differently.
13803
13804 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13805
138062008-05-27 Juanma Barranquero <lekktu@gmail.com>
13807
13808 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13809 into "else if () ... else ...".
13810
138112008-05-27 Jason Rumney <jasonr@gnu.org>
13812
13813 * w32font.c (w32font_open_internal): Determine if glyph indices
13814 are likely to work here.
13815
138162008-05-27 Chong Yidong <cyd@stupidchicken.com>
13817
13818 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13819 draw overlap glyphs with appropriate highlighting.
13820
138212008-05-27 Kenichi Handa <handa@m17n.org>
13822
13823 * xfont.c (xfont_open): Fix calculation of font->average_width.
13824
138252008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13826
13827 * casefiddle.c (casify_object): Try to guess better whether the
13828 argument is a byte or a char.
13829
138302008-05-26 Andreas Schwab <schwab@suse.de>
13831
13832 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13833 Always send multiples of format size.
13834
13835 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13836
138372008-05-26 Jason Rumney <jasonr@gnu.org>
13838
13839 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13840 (compute_metrics): Don't set failure if we just cleared the cache.
13841 (w32_weight_table): Remove unused variable.
13842 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13843 backwards compatibility.
13844
138452008-05-25 Kenichi Handa <handa@m17n.org>
13846
13847 * w32term.c (x_draw_glyph_string):
13848 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13849
13850 * xfaces.c: Delete unused function prototypes.
13851 (xstrlwr, font_frame): Delete them.
13852 (clear_face_cache): Delete unused variable.
13853
13854 * xftfont.c (xftfont_open): Delete unused variable.
13855 If underline_thickness is not 1, adjust underline_position.
13856
13857 * ftxfont.c (ftxfont_open): Delete unused variable.
13858
13859 * fontset.c (face_for_char): Optimize for the case of no charset
13860 property.
13861
13862 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13863 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13864 (otf_open, font_otf_capability, generate_otf_features)
13865 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13866 Comment out by surrounding "#if 0" and "#endif" for the moment.
13867 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13868 (syms_of_font): Codes for accessing above commented out.
13869
138702008-05-24 Eli Zaretskii <eliz@gnu.org>
13871
13872 * w32proc.c: Include dispextern.h.
13873
13874 * w32.c: Include dispextern.h.
13875
138762008-05-23 Juanma Barranquero <lekktu@gmail.com>
13877
13878 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13879 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13880 Fix typos in docstrings.
13881
138822008-05-23 Jason Rumney <jasonr@gnu.org>
13883
13884 * xsmfns.c: Remove includes that are already included by config.h.
13885
138862008-05-23 Kenichi Handa <handa@m17n.org>
13887
13888 * charset.c (Qemacs, charset_emacs): New variables.
13889 (char_charset): Fix for non-Unicode characters.
13890 (syms_of_charset): Define charset_emacs.
13891
13892 * w32term.c (x_draw_glyph_string): Be sure to update
13893 s->underline_thickness and s->underline_position. Be sure to draw
13894 underline within the current line area.
13895
13896 * xterm.c (x_draw_glyph_string): Be sure to update
13897 s->underline_thickness and s->underline_position. Be sure to draw
13898 underline within the current line area.
13899
13900 * fontset.c: Delete unused variables and add casting for char *
13901 throughout the file.
13902 (fontset_font): Try the fallback fonts of the current fontset
13903 before consulting the default fontset.
13904
13905 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13906
13907 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13908
139092008-05-22 Jason Rumney <jasonr@gnu.org>
13910
13911 * font.c: Don't include strings.h.
13912
13913 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13914
13915 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13916 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13917 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13918 to call xstrcasecmp.
13919
13920 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13921
13922 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13923
13924 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13925
13926 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13927
139282008-05-22 Kenichi Handa <handa@m17n.org>
13929
13930 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13931
13932 * font.c (font_prop_validate_style): Adjust for the format
13933 change of font_style_table.
13934
13935 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13936 two args.
13937
13938 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13939 two args.
13940
139412008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13942
13943 * minibuf.c (keys_of_minibuf): Delete.
13944 * lisp.h (keys_of_minibuf): Delete.
13945 * emacs.c (main): Don't call keys_of_minibuf.
13946
139472008-05-22 Kenichi Handa <handa@m17n.org>
13948
13949 * ftfont.c (ftfont_resolve_generic_family): Rename from
13950 ftfont_list_generic_family. Return a single family for each
13951 generic family.
13952 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13953 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13954 Call font_add_log.
13955 (ftfont_match): Call font_add_log.
13956
13957 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13958 (FONT_DEBUG): Define it.
13959 (font_add_log): Extern it.
13960 (font_assert): Rename from xassert.
13961
13962 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13963 (xfont_list_family): Call font_add_log.
13964 (xfont_match): Likewise.
13965 (memq_no_quit): Delete.
13966
13967 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13968 call of Ffont_xlfd_name.
13969
13970 * xfaces.c (struct table_entry, slant_table, weight_table)
13971 (swidth_table): Move to font.c.
13972
13973 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13974 xassert are changed to font_assert. Delete many unused variables.
13975 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13976 New variables.
13977 (struct table_entry): Move from xfaces.c and modified.
13978 (weight_table, slant_table, width_table): Move from xfaces.c and
13979 contents adjusted for the change of struct table_entry.
13980 (font_style_to_value, font_style_symbolic): Adjust for the
13981 format change of font_style_table.
13982 (font_parse_family_registry): Don't overwrite existing foundry and
13983 family of font_spec.
13984 (font_score): Fix calculation of diff for sizes.
13985 (font_sort_entites): Call font_add_log.
13986 (font_delete_unmatched): Return a newly created list.
13987 (font_list_entities): Fix previous change. Call font_add_log.
13988 (font_matching_entity, font_open_entity, font_close_entity):
13989 Call font_add_log.
13990 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13991 (Finternal_set_font_style_table): Delete.
13992 (BUILD_STYLE_TABLE): New macro.
13993 (build_style_table): New function.
13994 (Vfont_log, font_log_env_checked): New variables.
13995 (font_add_log): New function.
13996 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13997 Declare Lisp variables "font-weight-table", "font-slant-table",
13998 "font-width-table", and "font-log". Initialize font_style_table.
13999
140002008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14001
14002 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14003
140042008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14005 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14006
14007 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14008 (Vframe_alpha_lower_limit): New variable.
14009 (x_set_alpha): New function.
14010
14011 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14012
14013 * xfns.c (x-create-frame, Qalpha):
14014 Initialize the frame parameter `alpha'.
14015 * xterm.c (OPAQUE, OPACITY): New.
14016 (x_set_frame_alpha): New function.
14017 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14018
14019 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14020 * w32fns.c (w32_frame_parm_handlers): Likewise.
14021
140222008-05-20 Jason Rumney <jasonr@gnu.org>
14023
14024 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14025 truetype fonts to opentype list.
14026
140272008-05-20 Juanma Barranquero <lekktu@gmail.com>
14028
14029 * fontset.c (Ffontset_info): Doc fix.
14030 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14031 <ignore-relative-composition>: Fix typos in docstrings.
14032
14033 * font.c (syms-of-font) <font-encoding-alist>:
14034 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14035 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14036 (Ffont_otf_alternates): Doc fixes.
14037
140382008-05-20 Kenichi Handa <handa@m17n.org>
14039
14040 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14041 font.h through out the file.
14042 (FONT_DRIVERS): Rename from FONTOBJ.
14043 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14044 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14045
14046 * emacs.c (main): Call syms_of_font unconditionally.
14047
14048 * font.h (find_font_encoding): Extern it.
14049
14050 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14051 fontset.c.
194d44e7 14052 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14053 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14054 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14055 only when HAVE_WINDOW_SYSTEM is defined.
14056 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14057 when HAVE_WINDOW_SYSTEM is defined.
14058
14059 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14060 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14061
14062 * xfaces.c: Include font.h unconditionally.
14063 (merge_face_ref, merge_face_vectors)
14064 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14065
140662008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14067
14068 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14069 indirect_variable.
14070 * eval.c (lisp_indirect_variable): New fun.
14071 (Fuser_variable_p): Use it.
14072
140732008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14074
14075 * lisp.h (indirect_variable):
14076 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14077 Use Lisp_Symbol pointers rather than Lisp_Object.
14078 Adjust callers.
14079 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14080 To this end, change calling-convention.
14081
14082 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14083 if some non-hidden buffers are selected by string&pred.
14084
140852008-05-19 Chong Yidong <cyd@stupidchicken.com>
14086
14087 * process.c (wait_reading_process_output): Always check status
14088 when in batch mode.
14089
140902008-05-19 Kenichi Handa <handa@m17n.org>
14091
14092 * font.c (font_list_entities): Fix handling of cache.
14093 (font_matching_entity): Likewise.
14094
14095 * ftfont.c (cs_iso8859_1): Delete.
14096 (ft_face_cache): New variable.
14097 (struct ftfont_info): New member fc_charset_idx.
14098 (ftfont_build_basic_charsets): Delete.
14099 (fc_charset_table): New variable.
14100 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14101 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14102 Callers changed.
14103 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14104 (ftfont_spec_pattern): New argument fc_charset_idx.
14105 Check registry more rigidly. Change callers.
14106 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14107 change of :font-entity property of the font.
14108
14109 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14110 property of the font.
14111
141122008-05-18 Juanma Barranquero <lekktu@gmail.com>
14113
14114 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14115 (Funencodable_char_position, Fcheck_coding_systems_region)
14116 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14117 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14118 (Ffind_operation_coding_system, Fset_coding_system_priority)
14119 (Fcoding_system_eol_type): Doc fixes.
14120
141212008-05-17 Glenn Morris <rgm@gnu.org>
14122
14123 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14124
141252008-05-16 Eli Zaretskii <eliz@gnu.org>
14126
14127 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14128 and st_gid.
14129
14130 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14131 HAVE_WINDOW_SYSTEM is not defined.
14132
14133 * xfaces.c (merge_face_ref, merge_face_vectors)
14134 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14135 HAVE_WINDOW_SYSTEM is defined.
14136 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14137
141382008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14139
14140 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14141
141422008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14143
14144 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14145
141462008-05-15 Kenichi Handa <handa@m17n.org>
14147
14148 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14149 preference.
14150
141512008-05-15 Glenn Morris <rgm@gnu.org>
14152
14153 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14154
141552008-05-15 Chong Yidong <cyd@stupidchicken.com>
14156
14157 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14158 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14159
14160 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14161
141622008-05-15 Kenichi Handa <handa@m17n.org>
14163
14164 * ftfont.c (ftfont_list): Downcase family name to check generic
14165 families.
14166
14167 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14168 font-spec for QCfont value.
14169
14170 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14171 buffer. Check the return value of it.
14172
141732008-05-14 Jason Rumney <jasonr@gnu.org>
14174
14175 * w32term.c (w32_get_glyph_overhangs): Remove.
14176 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14177
141782008-05-14 Kenichi Handa <handa@m17n.org>
14179
14180 * font.c (font_prop_validate): Make nil a valid value.
14181 (font_clear_cache): Check if the cached vector of entities is nil
14182 or not.
14183
141842008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14185
14186 * emacs.c (main_thread): Conditionalize on
14187 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14188 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14189
14190 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14191 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14192 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14193
141942008-05-14 Kenichi Handa <handa@m17n.org>
14195
14196 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14197 has no corresponding coding system.
14198
141992008-05-14 Jason Rumney <jasonr@gnu.org>
14200
14201 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14202
14203 * w32font.h (w32font_open_internal): Update declaration.
14204
14205 * w32font.c (w32font_open_internal): Change last argument from
14206 w32font_info struct to font object. Fill in font object from
14207 font_entity. Get Outline metrics if possible. Use them to
14208 calculate underline position and thickness. Use xlfd name as name
14209 property. Don't set codepage.
14210 (w32font_open): Pass font_object to w32font_open_internal. Don't
14211 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14212 (w32font_draw): Use s->font.
14213 (clear_cached_metrics): Don't clear non-existent blocks.
14214
14215 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14216 font was not found.
14217 (x_draw_glyph_string): Use underline position and thickness from font.
14218
14219 * w32uniscribe.c (uniscribe_open): Pass font_object to
14220 w32font_open_internal.
14221
142222008-05-14 Kenichi Handa <handa@m17n.org>
14223
14224 These changes are to delete all legacy font-handling codes, and
14225 make Emacs use only font-backends.
14226
14227 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14228 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14229
14230 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14231
14232 * charset.h (Vcharset_non_preferred_head)
14233 (Vcurrent_iso639_language): Extern them.
14234
14235 * charset.c (Vcharset_non_preferred_head): New variable.
14236 (Vcurrent_iso639_language): New variable.
14237 (syms_of_charset): Declare it as a Lisp variable.
14238 (char_charset): Don't check non preferred charsets. As a last
14239 resort, return charset_unicode.
14240 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14241
14242 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14243 conditionals. Don't check enable_font_backend. Delete all codes
14244 used only when USE_FONT_BACKEND is not defined.
14245
14246 * dispextern.h (struct glyph_string): Change type of `font' to
14247 `struct font *'.
14248 (struct glyph_string): New member underline_position and
14249 underline_thickness.
14250 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14251 (struct face): Change type of `font' to `struct font *'. Remove
14252 members `font_name', `font_info_id'.
14253 (per_char_metric, encode_char): Delete externs.
14254 (calc_pixel_width_or_height): Adjust the prototype.
14255
14256 * emacs.c (enable_font_backend): Delete extern.
14257 (main): Don't set enable_font_backend. Don't check the command
14258 line argument "-disable-font-backend".
14259
14260 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14261 (enum font_property_index): New members FONT_DPI_INDEX,
14262 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14263 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14264 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14265 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14266 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14267 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14268 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14269 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14270 (struct font_spec, struct font_entity): New structs.
14271 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14272 (struct font): Many members from old "struct font_info" moved to
14273 here. Members font and entity deleted.
14274 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14275 the new font-related objects.
14276 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14277 (CHECK_FONT_GET_OBJECT): Likewise.
14278 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14279 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14280 (struct font_driver): New members case_sensitive anc check. Type
14281 of the member list and open changed.
14282 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14283 (font_symbolic_width, font_find_object, font_get_spec)
14284 (font_set_lface_from_name): Delete extern.
14285 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14286
14287 * font.c: Include <strings.h>.
14288 (enable_font_backend): Delete it.
14289 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14290 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14291 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14292 (null_string): Delete it.
14293 (null_vector): Make it static.
14294 (font_family_alist): Delete it.
14295 (Qnormal): Extern it.
14296 (QCextra, QClanguage): Delete it.
14297 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14298 (font_make_spec, font_make_entity, font_make_object)
14299 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14300 the string. Callers changed.
14301 (font_pixel_size): Adjusted for the format change of font-related
14302 objects.
14303 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14304 (font_style_to_value, font_style_symbolic): New function.
14305 (build_font_family_alist): Delete it.
14306 (font_registry_charsets): Use Fassoc_string instead of
14307 assq_no_quit.
14308 (font_prop_validate_symbol): Don't return null_string.
14309 (font_prop_validate_style): Adjusted for the change of
14310 style-related values in a font vector.
14311 (font_property_table): Delete entries for QClanguage and
14312 QCantialias, add entries for QCavgwidth.
14313 (get_font_prop_index): Delete the 2nd argument FROM.
14314 (font_prop_validate): Arguments changed.
14315 (font_put_extra): Adjusted for the change of font-related objects.
14316 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14317 (font_parse_fcname, font_unparse_fcname)
14318 (font_prepare_composition): Likewise.
14319 (font_parse_family_registry): Renamed from font_merge_old_spec.
14320 (otf_open): Delete the 1st arg entity.
14321 (font_otf_capability): Adjusted for the above change.
14322 (font_score): New arg alternate_families. Adjusted for the change
14323 of font-related objects.
14324 (font_sort_entites): New arg best_only.
14325 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14326 Delete them.
14327 (font_match_p): Check alternate families.
14328 (font_find_object): Delete it.
14329 (font_check_object): New function.
14330 (font_clear_cache): Adjusted for the change of font-related objects.
14331 (font_delete_unmatched): New arg.
14332 (font_list_entities): Call font_driver->list with a spec that
14333 doesn't specify style-related properties.
14334 (font_matching_entity): Arguments changed. Caller changed.
14335 (font_open_entity): Adjusted for the change of font-related objects.
14336 (font_close_object, font_has_char, font_encode_char)
14337 (font_get_name, font_get_spec): Likewise.
14338 (font_spec_from_name, font_clear_prop, font_update_lface):
14339 New functions.
14340 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14341 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14342 (font_at): Adjusted for the change of font-related objects.
14343 (font_range): New function.
14344 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14345 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14346 (Fcopy_font_spec, Fmerge_font_spec): New function.
14347 (Ffont_family_list): Renamed from list-families.
14348 (Finternal_set_font_style_table): Arguments changed.
14349 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14350 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14351 change of font-related objects.
14352 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14353
14354 * fontset.h (struct font_info): Delete it. Most members go to
14355 struct font.
14356 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14357 (enum FONT_SPEC_INDEX): Delete it.
14358 (font_info, list_fonts_func, load_font_func, query_font_func)
14359 (set_frame_fontset_func, find_ccl_program_func)
14360 (get_font_repertory_func, new_fontset_from_font_name): Delete
14361 externs.
14362 (fontset_from_font_name): Extern it.
14363 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14364 (FONT_INFO_FROM_FACE): Deleted.
14365 (face_for_font): Adjust prototype.
14366
14367 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14368 conditionals. Don't check enable_font_backend. Delete all codes
14369 used only when USE_FONT_BACKEND is not defined.
14370 (get_font_info_func, list_font_func, load_font_func)
14371 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14372 (get_font_repertory_func): Delete them.
14373 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14374 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14375 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14376 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14377 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14378 (fontset_compare_rfontdef): New function.
14379 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14380 rfont-defs by qsort. Adjusted for the change of font-group vector.
14381 (load_font_get_repertory): Deleted.
14382 (fontset_find_font): Use new macros to ref/set elements of
14383 font-def and rfont-def.
14384 (fontset_font): Fix the timing of remembering that no font for C.
14385 (free_face_fontset): Do nothing if the face has no fontset.
14386 (face_suitable_for_char_p): Use new macros to ref/set elements of
14387 rfont-def.
14388 (face_for_char): Likewise. Call face_for_char with font_object.
14389 (fs_load_font): Delete. Delete #pragma surrounding it.
14390 (fs_query_fontset): Use strcasecmp instead of strcmp.
14391 (generate_ascii_font_name): Adjusted for the format change of
14392 font-spec.
14393 (Fset_fontset_font): Likewise. Use new macros to set elements of
14394 font-def.
14395 (Fnew_fontset): Use font_unparse_xlfd to generate
14396 FONTSET_ASCII (fontset).
14397 (new_fontset_from_font_name): Deleted.
14398 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14399 a fontset is already created for the font. FIx updating of
14400 Vfontset_alias_alist.
14401 (fontset_ascii_font): Deleted.
14402 (Ffont_info): Adjusted for the format change of font-spec.
14403 (Finternal_char_font): Likewise.
14404 (Ffontset_info): Likewise.
14405 (syms_of_fontset): Don't check load_font_func.
14406
14407 * fns.c (internal_equal): Handle PREV_FONT.
14408
14409 * frame.h: Delete USE_FONT_BACKEND conditional.
14410
14411 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14412 conditionals. Don't check enable_font_backend. Delete all codes
14413 used only when USE_FONT_BACKEND is not defined.
14414 (x_set_font): Call x_new_font, not x_new_fontset2.
14415 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14416 already set for the frame.
14417
14418 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14419 a font-entity by font_make_entity. Use font_intern_prop instead
14420 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14421 font property. If a font is scalable, set avgwidth property to 0.
14422 Set font-entity property by font_put_extra.
14423 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14424 (ffont_driver): Adjusted for the change of struct font_driver.
14425 (ftfont_spec_pattern): New function.
14426 (ftfont_list): Return a list, not vector.
14427 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14428 (ftfont_list_family): Don't downcase names.
14429 (ftfont_free_entity): Deleted.
14430 (ftfont_open): Return a font-object. Adjusted for the change of
14431 struct font. Get underline_thickness and underline_position from
14432 font property. Don't update dpyinfo->smallest_font_height and
14433 dpyinfo->smallest_char_width.
14434 (ftfont_close): Don't free `struct font'.
14435 (ftfont_has_char): Adjusted for the format change of font-entity.
14436 (ftfont_encode_char, ftfont_text_extents): Likewise.
14437
14438 * ftxfont.c (ftxfont_list): Return a list, not vector.
14439 (ftxfont_open): Return a font-object. Adjusted for the change of
14440 struct font. Get underline_thickness and underline_position from
14441 font property. Don't update dpyinfo->smallest_font_height and
14442 dpyinfo->smallest_char_width.
14443 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14444 (ftxfont_draw): Adjusted for the change of struct font.
14445
14446 * image.c (image_ascent): Don't include "charset.h". Include
14447 "character.h" and "font.h".
14448
14449 * lisp.h (enum pvec_type): New member PREV_FONT.
14450 (Fassoc_string): EXFUN it.
14451
14452 * print.c: Include font.h.
14453 (print_object): Handle font-related objects.
14454
14455 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14456 conditionals. Don't check enable_font_backend. Delete all codes
14457 used only when USE_FONT_BACKEND is not defined.
14458 (handle_auto_composed_prop): Do nothing if it->f is not on a
14459 window system. Check how many following characters can be
14460 displayed by the same font.
14461 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14462 'struct font *'.
14463 (get_char_face_and_encoding): Assign the whole encoding task to
14464 the `encode-char' method of a font driver.
14465 (fill_composite_glyph_string): Adjusted for the change of `struct
14466 face' and `struct glyph_string'.
14467 (fill_glyph_string): Likewise.
14468 (get_per_char_metric): Arguments changed.
14469 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14470 and `struct glyph_string'.
14471 (produce_stretch_glyph, calc_line_height_property)
14472 (x_produce_glyphs): Likewise.
14473
14474 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14475 conditionals. Don't check enable_font_backend. Delete all codes
14476 used only when USE_FONT_BACKEND is not defined. Use
14477 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14478 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14479 (Qp): Extern them.
14480 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14481 Deleted.
14482 (struct font_name): Deleted.
14483 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14484 (compare_fonts_by_sort_order): New function.
14485 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14486 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14487 Deleted.
14488 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14489 compare_fonts_by_sort_order.
14490 (Fx_font_family_list): Call Ffont_family_list.
14491 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14492 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14493 (face_symbolic_slant, face_symbolic_swidth)
14494 (split_font_name_into_vector, build_font_name_from_vector)
14495 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14496 (font_rescale_ratio, split_font_name, build_font_name)
14497 (free_font_names, sort_fonts, x_face_list_fonts)
14498 (face_font_available_p, sorted_font_list, cmp_font_names)
14499 (font_list_1, concat_font_list, font_list, remove_duplicates):
14500 Deleted.
14501 (Fx_list_fonts): Use Ffont_list.
14502 (LFACE_AVGWIDTH): Deleted.
14503 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14504 by FONTP.
14505 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14506 (set_lface_from_font_name): Delete it.
14507 (set_lface_from_font): Renamed from
14508 set_lface_from_font_and_fontset. Caller changed. Don't set
14509 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14510 for face.
14511 (merge_face_vectors): Copy font-spec if necessary.
14512 Clear properties of the font-spec if necessary.
14513 (merge_face_ref): Clear properties of the font-spec if necessary.
14514 (Finternal_set_lisp_face_attribute): Likewise.
14515 (set_font_frame_param): Use font_load_for_lface to load a
14516 font-object, and call Fmodify_frame_parameters with it.
14517 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14518 font name by Ffont_xlfd_name.
14519 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14520 QCslant, and QCwidth.
14521 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14522 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14523 Compare fonts by EQ.
14524 (lookup_non_ascii_face): Deleted.
14525 (face_for_font): The 2nd argument changed.
14526 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14527 Check atomic font properties by case insensitive.
14528 (realize_non_ascii_face): Set face->overstrike correctly.
14529 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14530 (dump_realized_face): Get font name from
14531 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14532
14533 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14534 conditionals. Don't check enable_font_backend. Delete all codes
14535 used only when USE_FONT_BACKEND is not defined.
14536 (xic_create_xfontset): Original code deleted and renamed from
14537 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14538 (x_make_gc): Don't set GCFont in GCs.
14539 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14540 opened by "fixed".
14541 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14542 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14543 get_font_repertory_func.
14544
14545 * xfont.c: Include <stdlib.h> and "ccl.h".
14546 (struct xfont_info): New structure.
14547 (xfont_query_font): Deleted.
14548 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14549 moved from xterm.c.
14550 (xfont_driver): Adjusted for the change of struct font_driver.
14551 (compare_font_names): New function.
14552 (xfont_list_pattern): Sort font names case insensitively. Make
14553 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14554 (xfont_list): Return a list, not vector.
14555 (xfont_match): If the font doesn't have QCname property, generate
14556 a name from the other font properties.
14557 (xfont_open): Return a font-object. Adjusted for the change of
14558 struct font. Get underline_thickness and underline_position from
14559 font property. Don't update dpyinfo->smallest_font_height and
14560 dpyinfo->smallest_char_width.
14561 (xfont_close): Don't free struct font.
14562 (xfont_prepare_face): Adjusted for the change of struct font.
14563 (xfont_done_face): Deleted.
14564 (xfont_has_char): Adjusted for the change of struct font.
14565 (xfont_encode_char, xfont_draw): Likewise.
14566 (xfont_check): New function.
14567
14568 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14569 callback function.
14570 (xftfont_match): Adjusted for the format change of font-entity.
14571 (xftfont_open): Adjusted for the format change of font-entity and
14572 font-object. Adjusted for the change of struct font. Return a
14573 font-object. Don't update dpyinfo->smallest_font_height and
14574 dpyinfo->smallest_char_width.
14575 (xftfont_close): Block input while calling XftFontClose.
14576 (xftfont_prepare_face): Don't block input while calling
14577 xftfont_get_colors. Adjusted for the change of struct font.
14578 (xftfont_shape): Return value of error case fixed.
14579
14580 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14581
14582 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14583 conditionals.
14584 (FONT_WIDTH): Return (f)->max_width.
14585 (struct x_display_info): Delete member `font'.
14586 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14587 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14588 (struct x_output): Change type of `font' to `struct font *'.
14589
14590 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14591 conditionals. Don't check enable_font_backend. Delete all codes
14592 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14593 (x_per_char_metric, x_encode_char): Deleted.
14594 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14595 (x_compute_glyph_string_overhangs): Adjusted for the change of
14596 `struct face'.
14597 (x_draw_glyph_string_foreground)
14598 (x_draw_composite_glyph_string_foreground): Likewise.
14599 (x_draw_glyph_string): Likewise. Use font->underline_position and
14600 font->underline_thickness.
14601 (x_new_font): Renamed from x_new_fontset2.
14602 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14603 (x_check_font): Call `check' method of a font driver.
14604 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14605 (x_query_font, x_get_font_repertory): Deleted.
14606 (x_find_ccl_program): Renamed and moved to xfont.c.
14607 (x_redisplay_interface): Adjusted for the change of `struct
14608 redisplay_interface'.
14609
14610 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14611 conditionals. Don't check enable_font_backend. Delete all codes
14612 used only when USE_FONT_BACKEND is not defined. Surround non-used
14613 code by "#ifdef OLD_FONT" and "endif".
14614 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14615
14616 * w32font.h (struct w32font_info): New member.
14617 (FONT_COMPAT): New macro.
14618 (w32font_open_internal): Prototype adjusted.
14619
14620 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14621 OLD_FONT" and "endif".
14622
14623 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14624 conditionals. Don't check enable_font_backend. Delete all codes
14625 used only when USE_FONT_BACKEND is not defined.
14626 (w32font_open): Return a font-object. Make a font-object by
14627 font_make_object. Adjusted for the change of struct w32font_info.
14628 (w32font_close): Don't free struct font. Adjusted for the change
14629 of struct w32font_info.
14630 (w32font_encode_char, w32font_text_extents, w32font_draw):
14631 Adjusted for the change of struct w32font_info.
14632 (w32font_draw): Likewise.
14633 (w32font_list_internal): Return a list, not vector.
14634 (w32font_open_internal): Change the 4th arg to font-object.
14635 Adjusted for the change of struct w32font_info and font-object format.
14636 (add_font_name_to_list): Don't downcase names.
14637 (w32_enumfont_pattern_entity): Make a font-entity by
14638 font_make_entity. Adjusted for the format change of font-entity.
14639 Use FONT_SET_STYLE to set a style-related font property. If a
14640 font is scalable, set avgwidth property to 0. Set font-entity
14641 property by font_put_extra.
14642 (font_matches_spec): Adjusted for the format change of font-entity.
14643 (w32_weight_table, w32_decode_weight): New variables.
14644 (w32_encode_weight): New function.
14645 (fill_in_logfont): Adjusted for the format change of font-spec.
14646 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14647 weight value.
14648 (w32font_driver): Adjusted for the change of struct font_driver.
14649
14650 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14651 conditionals. Don't check enable_font_backend. Surround non-used
14652 code by "#ifdef OLD_FONT" and "endif".
14653 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14654 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14655
14656 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14657 conditionals. Don't check enable_font_backend. Delete all codes
14658 used only when USE_FONT_BACKEND is not defined. Surround non-used
14659 code by "#ifdef OLD_FONT" and "endif".
14660
14661 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14662 (uniscribe_open): Return value changed to font-object.
14663 Adjusted for the format change of font-object.
14664 (uniscribe_otf_capability): Adjusted for the change of struct font.
14665 (add_opentype_font_name_to_list): Don't downcase names.
14666 (uniscribe_font_driver): Adjusted for the change of struct
14667 font_driver.
14668
146692008-05-13 Chong Yidong <cyd@stupidchicken.com>
14670
14671 * dispnew.c (update_frame_1): Check if tty output is still valid
14672 before flushing it.
14673
146742008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14675
14676 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14677 to Gtk+ menus.
14678
146792008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * dired.c (file_name_completion): Tweak the code so as to always do it
14682 in a single pass. Tighten the scope of some variables.
14683
14684 * dired.c (Qdefault_directory): New var.
14685 (file_name_completion): Use it instead of Fexpand_file_name.
14686 (syms_of_dired): Initialize it.
14687
146882008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14689
14690 * fileio.c (double_dollars): Remove dead code.
14691
146922008-05-10 Eli Zaretskii <eliz@gnu.org>
14693
14694 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14695 Mention w32-get-true-file-attributes in doc string.
14696
14697 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14698
146992008-05-09 Glenn Morris <rgm@gnu.org>
14700
14701 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14702 2008-04-23.
14703
147042008-05-09 Eli Zaretskii <eliz@gnu.org>
14705
14706 Support for reporting owner and group of each file on MS-Windows:
14707 * dired.c (stat_uname, stat_gname): New functions, with special
14708 implementation for w32.
14709 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14710
14711 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14712 (dflt_group_name): New static variable.
14713 (dflt_group): Rename from the_group.
14714 (init_user_info): Init dflt_group fields. Get user's group name
14715 from LookupAccountSid.
14716 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14717 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14718 New initialization states.
14719 (globals_of_w32): Initialize them to zero. Initialize the default
14720 group name to "None".
14721 (GetFileSecurity_Name): New global var, the name of the function
14722 to call for GetFileSecurity.
14723 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14724 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14725 (get_file_security, get_security_descriptor_owner)
14726 (get_security_descriptor_group, is_valid_sid)
14727 (get_file_security_desc, get_rid, get_name_and_id)
14728 (get_file_owner_and_group): New functions.
14729 (stat): Use get_file_security_desc and get_file_owner_and_group to
14730 report the owner and primary group of each file. Don't ignore the
14731 high 32 bits of file's size, now that st_size is 64-bit wide.
14732 Fix test when to get true file attributes.
14733 (init_user_info): Use get_rid instead of equivalent inline code.
14734 (fstat): Don't ignore the high 32 bits of file's size.
14735
147362008-05-09 Chong Yidong <cyd@stupidchicken.com>
14737
14738 * image.c (png_load): Use correct bit-depth for setting background
14739 color.
14740
147412008-05-08 Eli Zaretskii <eliz@gnu.org>
14742
14743 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14744 epa-hook.elc.
14745
147462008-05-08 Juanma Barranquero <lekktu@gmail.com>
14747
14748 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14749
147502008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14751
14752 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14753 because the original parameters are in pure storage now.
14754 (mac_window): Remove unused params. Update callers.
14755
147562008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14757
14758 * lread.c (substitute_object_recurse): Use lower-level primitives.
14759 Don't signal errors when traversing sub-char-tables.
14760 Don't loop over all the possible characters when traversing char-tables.
14761
14762 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14763 just like we do in print.c.
14764
147652008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14766
14767 * minibuf.c (Ftry_completion): Remove code left over from when we used
14768 scmp instead of Fcompare_strings.
14769
147702008-05-04 Juanma Barranquero <lekktu@gmail.com>
14771
14772 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14773
147742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14775
14776 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14777 Create bitmap context in native byte order.
14778
14779 * macterm.c (XDrawLine)
14780 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14781 context in native byte order.
14782
147832008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14784
14785 * config.in: Regenerate.
14786
14787 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14788 New definitions for Image I/O support.
14789 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14790 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14791 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14792 (mac_data_provider_release_data, image_load_image_io)
14793 [USE_MAC_IMAGE_IO]: New functions.
14794 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14795 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14796 (init_image_func_pointer) [MAC_OSX]: Remove function.
14797 (image_load_quartz2d) [MAC_OSX]: Check availability of
14798 CGImageCreateWithPNGDataProvider at compile time.
14799 Use lowercase `false' for boolean constant.
14800 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14801 Use image_load_image_io.
14802 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14803 Don't check MyCGImageCreateWithPNGDataProvider.
14804 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14805 Don't call init_image_func_pointer.
14806
14807 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14808
14809 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14810 Make variable non-static.
14811 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14812 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14813
14814 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14815 (RED_FROM_ULONG): Mask off higher bits.
14816 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14817
14818 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14819 Include AvailabilityMacros.h.
14820 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14821 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14822
148232008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14824
14825 * chartab.c (Fset_char_table_range): If range is t, really set all
14826 chars to that value.
14827
148282008-05-03 Eli Zaretskii <eliz@gnu.org>
14829
14830 * dired.c (Ffile_attributes): Don't allow the device number become
14831 negative.
14832
148332008-05-02 Daiki Ueno <ueno@unixuser.org>
14834
14835 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14836
148372008-05-02 Juri Linkov <juri@jurta.org>
14838
14839 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14840 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14841 DEFAULT argument as a list of default values in docstrings.
14842
148432008-05-01 Chong Yidong <cyd@stupidchicken.com>
14844
14845 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14846
148472008-05-01 Martin Rudalics <rudalics@gmx.at>
14848
14849 * dispnew.c (change_frame_size_1): Preserve small windows when
14850 shrinking frames by calling set_window_height|width with third
14851 arg 2.
14852
14853 * window.h (struct window): Replace field too_small_ok by field
14854 resize_proportionally.
14855
14856 * window.c (make_window): Initialize resize_proportionally.
14857 (enlarge_window): Temporarily set resize_proportionally to make
14858 sure that shrink_windows does scale the window proportionally.
14859 (shrink_windows): When window has resize_proportionally set try
14860 to shrink it proportionally by stealing from other windows.
14861 (struct saved_window, Fset_window_configuration)
14862 (compare_window_configurations): Handle resize_proportionally.
14863 (WINDOW_TOTAL_SIZE): New macro.
14864 (window_min_size, shrink_windows, size_window): Use it.
14865 (check_min_window_sizes): Remove. Invalid values of
14866 window-min-height|width are handled by window_min_size_2 now.
14867 (size_window, Fsplit_window, enlarge_window)
14868 (adjust_window_trailing_edge, grow_mini_window): Don't call
14869 check_min_window_sizes.
14870 (window_min_size_2, window_min_size_1, window_min_size):
14871 New argument safe_p for retrieving "safe" minimum sizes.
14872 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14873 (adjust_window_trailing_edge, grow_mini_window):
14874 Adjust arguments of window_min_size... functions.
14875 (shrink_windows): Argument min_size removed. New argument
14876 safe_p allows shrinking windows to their safe minimum sizes.
14877 Calculate minimum size and decide whether a window shall be
14878 deleted for each window individually.
14879 (size_window): When nodelete_p equals 2, tell shrink_windows to
14880 delete windows only if their new minimum size is no more safe.
14881 (shrink_window_lowest_first): Call window_min_size_1 to make
14882 sure to preserve modeline of bottom-most window when resizing
14883 the minibuffer.
14884 (Fset_window_configuration, Fcurrent_window_configuration)
14885 (compare_window_configurations): Do not handle
14886 window-min-height|width any more.
14887 (syms_of_window): Clarify window-min-height|width doc-strings.
14888
148892008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14890
14891 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14892 some more. Copy some of the code from Ftry_completions.
14893 Remove special case code that dates back to initial revision when the
14894 slash was only added when necessary and that can't trigger nowadays.
14895
148962008-04-27 Kenichi Handa <handa@m17n.org>
14897
14898 * font.c (font_prop_validate): Signal `error' instead of `font'.
14899
149002008-04-29 Jason Rumney <jasonr@gnu.org>
14901
14902 * w32fns.c (Fw32_battery_status): New defun.
14903 (syms_of_w32fns): Defsubr it.
14904
149052008-04-28 Andreas Schwab <schwab@suse.de>
14906
14907 * dired.c (file_name_completion): Fix another mixing of encoded
14908 and decoded names.
14909
149102008-04-28 Juanma Barranquero <lekktu@gmail.com>
14911
14912 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14913
149142008-04-27 Juanma Barranquero <lekktu@gmail.com>
14915
14916 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14917
149182008-04-27 Andreas Schwab <schwab@suse.de>
14919
14920 * dired.c (file_name_completion): Fix inappropriate mixing of
14921 encoded and decoded names.
14922
14923 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14924
14925 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14926
149272008-04-26 Eli Zaretskii <eliz@gnu.org>
14928
14929 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14930 2008-03-31, it's not needed anymore with `struct stat' definition
14931 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14932 for the same reasons.
14933
149342008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14935
14936 * m/sparc.h: Additional redefinitions for GNU/Linux.
14937
149382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14939
14940 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14941 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14942 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14943 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14944 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14945 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14946 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14947 Likewise.
14948
14949 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14950 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14951 (mac_ax_number_of_characters): Add externs.
14952 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14953 [USE_MAC_TSM]: Likewise.
14954 (mac_handle_text_input_event) [MAC_OSX]:
14955 Handle kEventTextInputOffsetToPos for no active input area case.
14956 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14957 (mac_handle_document_access_event)
14958 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14959 (install_application_handler) [MAC_OSX]: Register handlers for
14960 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14961 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14962 Register mac_handle_document_access_event.
14963
14964 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14965 Make functions non-static.
14966
149672008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14968
14969 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14970 (read_file_name_completion_ignore_case, insert_default_directory)
14971 (Qdefault_directory): Move to minibuffer.el.
14972 (Fread_file_name): Call the new `read-file-name' instead.
14973
149742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14975
14976 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14977 Make function non-static.
14978 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14979 Remove function.
14980 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14981 Move to mactoolbox.c.
14982 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14983
14984 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14985 (mac_rect_make): New macro.
14986
14987 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14988 instead of float.
14989 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14990 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14991 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14992 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14993 CGRectMake.
14994 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14995 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14996 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14997 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14998 instead of WindowRef in argument type.
14999 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15000 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15001 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15002 instead of DISPLAY. All uses changed.
15003 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15004 (x_calc_absolute_position): Simplify so as not to use
15005 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15006
15007 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15008 instead of WindowRef in argument type.
15009 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15010 [TARGET_API_MAC_CARBON]: Remove externs.
15011 (create_apple_event, mac_event_parameters_to_lisp)
15012 [TARGET_API_MAC_CARBON]: Add externs.
15013
15014 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15015 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15016 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15017 is clicked.
15018 (x_activate_menubar): Remove extern for saved_menu_event_location.
15019 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15020 Move from mac.c.
15021
150222008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15023
15024 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15025 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15026
150272008-04-23 Jason Rumney <jasonr@gnu.org>
15028
15029 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15030 attributes only for local files.
15031
15032 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15033 default to Qlocal.
15034
150352008-04-22 Juri Linkov <juri@jurta.org>
15036
15037 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15038 read-buffer-to-switch instead of using the letter "B".
15039
150402008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15041
15042 * fileio.c (Qdefault_directory): New variable.
15043 (Fread_file_name): Use it to pass `dir' to the completion functions.
15044
150452008-04-20 Chong Yidong <cyd@stupidchicken.com>
15046
15047 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15048
150492008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15050
15051 * keyboard.c (Vpre_help_message): Remove.
15052 (show_help_echo): Remove default C code.
15053
15054 * dired.c (directory_files_internal, file_name_completion):
15055 Only call ENCODE_FILE if the string is indeed decoded.
15056
150572008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15058
15059 * Makefile.in (TOOLKIT_DEFINES): Remove.
15060 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15061
150622008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15063
15064 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15065 (mactoolbox.o): New target.
15066
15067 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15068 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15069
15070 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15071 Use mac_set_frame_window_background instead of XSetWindowBackground.
15072 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15073 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15074 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15075 instead of SetWindowTitleWithCFString.
15076 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15077 Move function to mactoolbox.c.
15078 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15079 Use mac_set_window_modified instead of SetWindowModified.
15080 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15081 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15082 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15083 FrontNonFloatingWindow. Use mac_activate_window instead of
15084 ActivateWindow. Use mac_active_non_floating_window instead of
15085 ActiveNonFloatingWindow.
15086 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15087 Use mac_show_hourglass and mac_hide_hourglass.
15088 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15089 instead of GetGlobalMouse.
15090 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15091 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15092 Use mac_bring_window_to_front instead of BringToFront.
15093 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15094 mactoolbox.c.
15095 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15096 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15097 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15098 mactoolbox.c.
15099
15100 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15101 (XtPointer): Move typedef from macmenu.c.
15102 (enum button_type): Move enum from macmenu.c.
15103 (widget_value): Move typedef from macmenu.c.
15104 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15105 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15106 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15107 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15108 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15109 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15110 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15111 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15112 (Selection): Move typedef from macselect.c.
15113 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15114 macterm.c.
15115 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15116 (mac_is_window_collapsed, mac_bring_window_to_front)
15117 (mac_send_window_behind, mac_hide_window, mac_show_window)
15118 (mac_collapse_window, mac_front_non_floating_window)
15119 (mac_active_non_floating_window, mac_activate_window)
15120 (mac_move_window_structure, mac_move_window, mac_size_window)
15121 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15122
15123 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15124 (enum mac_menu_kind): Move enum to mactoolbox.c.
15125 (min_menu_id): Move variable to mactoolbox.c.
15126 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15127 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15128 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15129 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15130 [TARGET_API_MAC_CARBON]: Likewise.
15131 (XtPointer): Move typedef to macgui.h.
15132 (enum button_type): Move enum to macgui.h.
15133 (widget_value): Move typedef to macgui.h.
15134 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15135 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15136 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15137 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15138 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15139 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15140 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15141 (popup_activated_flag): Make variable non-static.
15142 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15143 (add_menu_item, fill_menu, dispose_menus):
15144 Move functions to mactoolbox.c.
15145 (restore_show_help_function, menu_target_item_handler)
15146 (install_menu_target_item_handler, mac_handle_dialog_event)
15147 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15148 [TARGET_API_MAC_CARBON]: Likewise.
15149 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15150 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15151 (find_and_call_menu_selection, name_is_separator): Make function
15152 non-static.
15153 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15154 to mactoolbox.c.
15155 (set_frame_menubar): Don't call install_menu_quit_handler.
15156 (menu_item_selection): New variable.
15157 (mac_menu_show): Use create_and_show_popup_menu.
15158 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15159 selection but set variable menu_item_selection. All uses changed.
15160 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15161 Call install_menu_quit_handler. Move to mactoolbox.c.
15162
15163 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15164 (Selection): Move typedef to macgui.h.
15165 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15166 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15167 Make variables non-static.
15168 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15169 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15170 Make functions non-static.
15171 (Vmac_service_selection) [MAC_OSX]: Likewise.
15172 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15173 (mac_valid_selection_target_p, mac_clear_selection)
15174 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15175 (mac_put_selection_value, mac_selection_has_target_p)
15176 (mac_get_selection_value, mac_get_selection_target_list)
15177 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15178 Move functions to mactoolbox.c.
15179 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15180 Likewise.
15181 (copy_scrap_flavor_data, mac_handle_service_event)
15182 (install_service_handler) [MAC_OSX]: Likewise.
15183 (syms_of_macselect) <Vmac_dnd_known_types>:
15184 Use mac_dnd_default_known_types.
15185
15186 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15187 Move to mactoolbox.c.
15188 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15189 (Fx_selection_owner_p): Add EXFUN.
15190 (install_window_handler, remove_window_handler, XSetWindowBackground):
15191 Remove externs.
15192 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15193 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15194 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15195 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15196 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15197 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15198 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15199 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15200 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15201 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15202 (mac_valid_selection_target_p, mac_clear_selection)
15203 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15204 (mac_put_selection_value, mac_selection_has_target_p)
15205 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15206 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15207 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15208 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15209 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15210 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15211 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15212 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15213 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15214
15215 * mactoolbox.c: New file.
15216
152172008-04-18 Jason Rumney <jasonr@gnu.org>
15218
15219 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15220
152212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15222
15223 * character.c (Fmultibyte_char_to_unibyte):
15224 Return latin1 chars unchanged.
15225
15226 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15227 relocated if it points to `name'.
15228
152292008-04-17 Kenichi Handa <handa@m17n.org>
15230
15231 * data.c (Faset): Allow setting a multibyte character in an
15232 ASCII-only unibyte string.
15233
15234 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15235
152362008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15237
15238 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15239 done in config.h.
15240
152412008-04-16 Juanma Barranquero <lekktu@gmail.com>
15242
15243 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15244 (Fchar_direction): Add usage in the docstring.
15245
152462008-04-15 Chong Yidong <cyd@stupidchicken.com>
15247
15248 * keyboard.c (read_key_sequence): Remove always-true checks.
15249
152502008-04-14 Jason Rumney <jasonr@gnu.org>
15251
15252 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15253 compatibility struct, for better underline positioning.
15254
152552008-04-13 David Hansen <david.hansen@gmx.net>
15256
15257 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15258 string.
15259
152602008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15261
15262 * m/hp800.h (XUINT, XSET): Remove.
15263
152642008-04-12 Juanma Barranquero <lekktu@gmail.com>
15265
15266 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15267 previous change.
15268
152692008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15270
15271 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15272 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15273
152742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15275
15276 * keymap.h (map_keymap_canonical): Declare.
15277 * xmenu.c (single_keymap_panes): Use it.
15278
152792008-04-11 Glenn Morris <rgm@gnu.org>
15280
15281 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15282 set the target's value to that of the alias.
15283
152842008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15285
15286 * term.c (set_tty_color_mode): Left over typo.
15287
152882008-04-10 Michael Albinus <michael.albinus@gmx.de>
15289
15290 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15291 only after check for file name handler functions. Signal, when
15292 native functionality is not supported.
15293 (syms_of_fileio): Declare it unconditionally.
15294
152952008-04-10 Jason Rumney <jasonr@gnu.org>
15296
15297 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15298 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15299
15300 * w32.c (logon_network_drive): Also logon to remote drives that
15301 are mapped to drive letters.
15302
153032008-04-10 Glenn Morris <rgm@gnu.org>
15304
15305 * xdisp.c (truncate-partial-width-windows): Doc fix.
15306
153072008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15308
15309 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15310 Move functions to minibuffer.el.
15311 (syms_of_fileio): Don't declare them.
15312
153132008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15314
15315 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15316 (syms_of_minibuf): Remove its initialization.
15317
15318 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15319
153202008-04-09 Juanma Barranquero <lekktu@gmail.com>
15321
15322 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15323
153242008-04-09 Jason Rumney <jasonr@gnu.org>
15325
15326 * makefile.w32-in (distclean): Delete makefile too.
15327 (maintainer-clean): New target.
15328
15329 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15330
15331 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15332 for new font backend and composite cases.
15333
153342008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15335
15336 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15337 Most of the code moved to run_timers.
15338 (do_pending_atimers): Call run_timers.
15339 (run_timers): New function.
15340
15341 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15342 run atimers.
15343
15344 * process.c (wait_reading_process_output): The same as above.
15345
153462008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15347
15348 * minibuf.c (last_exact_completion): Remove variable.
15349 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15350 (complete_and_exit_1, complete_and_exit_2)
15351 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15352 (Fdisplay_completion_list, display_completion_list_1)
15353 (Fminibuffer_completion_help, Fself_insert_and_exit)
15354 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15355 minibuffer.el.
15356 (syms_of_minibuf): Remove corresponding initializations.
15357
15358 * keyboard.c (Qdeactivate_mark): New var.
15359 (command_loop_1): Use it to call `deactivate-mark'.
15360 (syms_of_keyboard): Initialize it.
15361
15362 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15363 to another frame.
15364 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15365 Don't call set_tty_color_mode.
15366 (store_frame_param): Reset previous_frame rather than call
15367 set_tty_color_mode.
15368 * term.c (set_tty_color_mode): Rewrite.
15369 * dispextern.h (set_tty_color_mode): New type.
15370 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15371
153722008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15373
15374 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15375 for generic chars, which do not exist any more in emacs-unicode.
15376
153772008-04-08 Michael Albinus <michael.albinus@gmx.de>
15378
15379 * coding.c (detect_coding_emacs_mule)
15380 (Ffind_operation_coding_system): Fix typo.
15381
153822008-04-08 Jason Rumney <jasonr@gnu.org>
15383
15384 * w32uniscribe.c (SNAME): Extract only symbol name.
15385
15386 * w32font.h (struct w32_metric_cache): New struct.
15387 (w32font_info): Use it.
15388 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15389 (CACHE_BLOCKSIZE): New constants.
15390
15391 * w32font.c (Qja, Qko, Qzh): New symbols.
15392 (syms_of_w32font): Initialise them.
15393 (font_matches_spec): Use them to filter by language.
15394 (recompute_cached_metrics): Remove function.
15395 (compute_metrics, clear_cached_metrics): New functions.
15396 (w32font_encode_char): Use them to manage metric cache.
15397 (w32font_text_extents): Cache metrics for all glyphs on demand.
15398 Delay converting glyph indices to WORD until needed.
15399 (w32font_open_internal): Initialize metric cache to empty.
15400 (registry_to_w32_charset): Charset should always be a symbol.
15401 (fill_in_logfont, list_all_matching_fonts): Family should
15402 always be a symbol.
15403
154042008-04-06 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15407 Give up if glyph indices not supported. Use uniscribe obtained
15408 ABC widths for individual metrics. Map glyph clusters back to
15409 characters using fClusterStart flag. Return number of glyphs
15410 produced, not chars processed.
15411 (uniscribe_shape): Map char at FROM to current glyph.
15412
154132008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15414
15415 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15416 Use SetMenuItemHierarchicalMenu.
15417
154182008-04-05 Jason Rumney <jasonr@gnu.org>
15419
15420 * image.c (pbm_load): Allow color values up to 65535.
15421 Throw an error if max_color_idx is outside the supported range.
15422 Report an error when image size is invalid.
15423 Read two bytes at a time when raw images have max_color_idx above 255.
15424
aac0c6e3
MR
154252008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15426
15427 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15428 append "CCL: Quitted" when the CCL program is quitted.
15429 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15430
15431 * ccl.h (struct ccl_program): New member quit_silently.
15432
154332008-04-05 Chong Yidong <cyd@stupidchicken.com>
15434
15435 * search.c (compile_pattern_1): Treat non-nil and non-string of
15436 search-spaces-regexp as nil.
15437
15438 * minibuf.c (Fassoc_string): Tweak docstring.
15439
154402008-04-05 Eli Zaretskii <eliz@gnu.org>
15441
15442 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15443 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15444 2008-03-14 to force inode be positive.
15445
15446 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15447 _S_* ones, since we now use our own sys/stat.h.
15448 (stat, fstat): Don't mangle the inode number.
15449 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15450
154512008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15452
15453 * frame.h (struct frame): Give one more bit to `visible' since we use
15454 values larger than 1 to indicate obscured frames on ttys.
15455
15456 * keymap.c (Qkeymap_canonicalize): New var.
15457 (Fmap_keymap_internal): New fun.
15458 (describe_map): Use keymap-canonicalize.
15459
15460 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15461 (Fundo_boundary): Set them.
15462 (syms_of_undo): Initialize them.
15463 (record_point): Use them instead of last_point_position*.
15464 (last_undo_buffer): Change type.
15465
154662008-04-04 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15469 (recompute_cached_metrics): Don't set ascent and descent per char.
15470
15471 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15472 (uniscribe_check_otf): Add GC protection before consing.
15473 Rearrange loop for counting features.
15474
154752008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15476
15477 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15478 buffer with byte-size of source buffer.
15479
154802008-04-03 Chong Yidong <cyd@stupidchicken.com>
15481
15482 * callint.c (Fcall_interactively): Handle temporary region even
15483 when shift-select-mode is off.
15484
154852008-04-03 Jason Rumney <jasonr@gnu.org>
15486
15487 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15488
154892008-04-03 Kenichi Handa <handa@m17n.org>
15490
15491 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15492 (CATEGORY_MASK_UTF_16): Likewise.
15493 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15494 binary file.
15495 (detect_coding): Add null-byte detection for a binary file.
15496 (detect_coding_system): Likewise.
15497
154982008-04-03 Jason Rumney <jasonr@gnu.org>
15499
15500 * w32uniscribe.c: New file.
15501
15502 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15503
15504 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15505
15506 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15507 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15508 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15509 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15510 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15511 (Qphonetic): New symbols.
15512 (syms_of_w32font): Initialize them.
15513 (font_supported_scripts): Use them.
15514 (w32font_list_family): List all charsets.
15515 (w32font_text_extents, recompute_cached_metrics): Fix metric
15516 calculations.
15517 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15518 Give opentype fonts their own format.
15519 (font_matches_spec): New arguments backend and logfont.
15520 Handle :otf spec for uniscribe backend.
15521 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15522 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15523
15524 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15525 font backend.
15526 (globals_of_w32fns): Initialize uniscribe font backend.
15527
15528 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15529 dependencies.
15530 (w32uniscribe.$(O)): New file to build.
15531 (FONT_OBJ): Include w32uniscribe.$(O).
15532 (LIBS): Add uniscribe libraries.
15533
15534 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15535
155362008-04-02 Chong Yidong <cyd@stupidchicken.com>
15537
15538 * callint.c (Vshift_select_mode): New var.
15539 (Finteractive): Document new ^ spec.
15540 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15541 is present.
15542
15543 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15544 (command_loop_1): Avoid running the direct display versions of
15545 forward-char and backward-char if shift-selection may occur.
15546 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15547 shift-translation takes place.
15548
15549 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15550 avoid clobbering by define-minor-mode.
15551
15552 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15553 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15554
15555 * syntax.c (Fforward_word): Add ^ interactive spec.
15556
15557 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15558 (Fscroll_right): Add ^ interactive spec.
15559
155602008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15561
15562 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15563
15564 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15565
15566 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15567
155682008-03-31 Juri Linkov <juri@jurta.org>
15569
15570 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15571
155722008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15573
15574 * gtkutil.c (xg_set_geometry): Fix indentation.
15575 (xg_resize_outer_widget): Remove.
15576 (x_wm_size_hint_off): Fix indentation.
15577 (xg_frame_set_char_size): Call flush_and_sync after
15578 gtk_window_resize.
15579 (x_wm_set_size_hint): Pass NULL as geometry window to
15580 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15581 Add menu bar and tool bar height to base height.
15582 (xg_update_frame_menubar, free_frame_menubar)
15583 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15584 (update_frame_tool_bar, free_frame_tool_bar):
15585 Change xg_resize_outer_widget to xg_frame_set_char_size.
15586
155872008-03-30 Michael Albinus <michael.albinus@gmx.de>
15588
15589 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15590 (Fdbus_call_method): New parameter TIMEOUT.
15591 (dbus-send-signal): Optimize UNGCPRO call.
15592
155932008-03-29 Juri Linkov <juri@jurta.org>
15594
15595 * window.c (Fdisplay_buffer): Move call to
15596 Vsplit_window_preferred_function out of conditions that check
15597 if window is eligible for vertical splitting.
15598 When Vsplit_window_preferred_function is non-nil, call it and use
15599 its non-nil return value as window. Otherwise, continue doing
15600 vertical splitting using Fsplit_window with arg horflag=nil.
15601 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15602 default value from `split-window' to nil.
15603
156042008-03-29 Juri Linkov <juri@jurta.org>
15605
15606 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15607 for interactive code letters 'b' and 'B'.
15608
156092008-03-29 Eli Zaretskii <eliz@gnu.org>
15610
15611 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15612 multibyte string.
15613
156142008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15615
15616 * keyboard.c (pending_funcalls): New var.
15617 (timer_check): Run it.
15618 (syms_of_keyboard): Initialize it.
15619 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15620 (Vdelete_terminal_functions): New vars.
15621 (syms_of_terminal): Initialize them.
15622 (Fdelete_terminal): Run delete-terminal-functions.
15623 * xdisp.c (safe_eval): Rewrite.
15624 (safe_call2): New fun.
15625 * frame.c (Qdelete_frame_functions): New var.
15626 (syms_of_frame): Initialize it.
15627 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15628 * lisp.h (safe_call2, pending_funcalls): Declare.
15629
156302008-03-28 Andreas Schwab <schwab@suse.de>
15631
15632 * indent.c (Fmove_to_column): Move declaration before statements.
15633
156342008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15635
15636 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15637 (struct frame): Use bit fields for boolean vars.
15638
15639 * process.c (server_accept_connection): Simplify naming.
15640 (emacs_get_tty_pgrp): Use SDATA.
15641
15642 * coding.c (decode_coding_object): Fix last change.
15643
156442008-03-27 Jason Rumney <jasonr@gnu.org>
15645
15646 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15647
156482008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15649
15650 * charset.c (Fdefine_charset_internal): Change the way of
15651 registering charsets in Vcharset_order_list.
15652 (syms_of_charset): Make the charset `eight-bit' supplementary.
15653
156542008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15655
15656 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15657 operations, to avoid having the difference between pointers
15658 overflow.
15659
156602008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15661
15662 * indent.c (check_display_width): New fun.
15663 (scan_for_column): Use it.
15664
15665 * data.c (syms_of_data): Mark most-positive-fixnum and
15666 most-negative-fixnum as constants.
15667
15668 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15669
15670 * indent.c (scan_for_column): Extract from current_column_1.
15671 Merge with the same code from Fmove_to_column.
15672 (current_column_1, Fmove_to_column): Use it.
15673
156742008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15675
15676 * keymap.c (map_keymap_internal): New fun.
15677 (map_keymap): Use it.
15678 (Fmap_keymap_internal): New fun.
15679 (Fmap_keymap): Remove left-out test from before make_save_value.
15680
15681 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15682
15683 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15684 Use XCAR/XCDR.
15685
15686 * process.h (struct Lisp_Process): Remove filter_multibyte.
15687 * process.c (QCfilter_multibyte): Remove.
15688 (setup_process_coding_systems): Don't use filter_multibyte.
15689 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15690 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15691 (Fset_process_filter_multibyte): Change the coding-system to
15692 approximate the previous behavior.
15693 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15694 coding-system.
15695
15696 * coding.c (decode_coding_object): When not decoding into a buffer,
15697 obey the coding system's preference of (uni|multi)byte.
15698
156992008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15700
15701 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15702 every char is changed and has a different byte-length.
15703 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15704 Fix int -> EMACS_INT.
15705
157062008-03-23 David Hansen <david.hansen@gmx.net>
15707
15708 * dbusbind.c (xd_read_message): Remove extra copying of message
15709 strings. Check for NULL `interface' or `member'.
15710
157112008-03-22 Eli Zaretskii <eliz@gnu.org>
15712
15713 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15714 cFileName a file name that includes `?' characters, use the 8+3
15715 alias in cAlternateFileName instead.
15716
157172008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15718
15719 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15720
157212008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15722
15723 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15724 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15725 work on current_buffer only instead (that was already the case
15726 for some of the code anyway).
15727 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15728 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15729 (SET_PT, SET_PT_BOTH): Adjust.
15730 * intervals.h (set_point, temp_set_point, set_point_both)
15731 (temp_set_point_both): Remove redundant declarations.
15732
157332008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15734
15735 * fileio.c (Finsert_file_contents):
15736 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15737 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15738 when buffer != current_buffer anyway.
15739
157402008-03-20 Andreas Schwab <schwab@suse.de>
15741
15742 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15743 as default.
15744
157452008-03-19 Jason Rumney <jasonr@gnu.org>
15746
15747 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15748 (syms_of_w32fns): Initialize them.
15749 (HOURGLASS_ID): New constant.
15750 (x_window_to_frame): Don't check hourglass_window.
15751 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15752 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15753 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15754 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15755 Only change the cursor if hourglass is not active.
15756 (Fx_create_frame): Initialize frame's current_cursor.
15757 (hourglass_atimer): Remove.
15758 (hourglass_started): New function.
15759 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15760 (show_hourglass): Adapt to w32, changing argument to frame.
15761
15762 * w32term.h (struct w32_output): Remove hourglass_window.
15763 Add current_cursor.
15764
15765 * eval.c (call_debugger, Fsignal):
15766 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15767 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15768 (Fexecute_extended_command, cancel_hourglass_unwind):
15769 * minibuf.c (read_minibuf):
15770 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15771
157722008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15773
15774 * window.c (run_funs): New fun.
15775 (run_window_configuration_change_hook): Use it to run the buffer-local
15776 and the global part of the hook.
15777
15778 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15779 (unwind_format_mode_line): Restore selected window.
15780 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15781
157822008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15783
15784 * editfns.c (Fchar_equal): Check they are valid characters.
15785
15786 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15787
157882008-03-17 Andreas Schwab <schwab@suse.de>
15789
15790 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15791 against a charset.
15792
15793 * lisp.h (Fbuffer_list): Declare.
15794
157952008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15796
aac0c6e3
MR
15797 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15798 handlebox_widget is != 0.
15799
158002008-03-16 Juri Linkov <juri@jurta.org>
15801
15802 * callint.c (Fcall_interactively): For interactive code letters
15803 'b' and 'B' put the buffer list into the list of default "future"
15804 values of the minibuffer.
15805
158062008-03-16 Andreas Schwab <schwab@suse.de>
15807
15808 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15809 modifiers.
15810
15811 * regex.c (re_match_2_internal): Correct matching of a charset
15812 against latin-1 characters.
15813
158142008-03-16 Kenichi Handa <handa@m17n.org>
15815
15816 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15817 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15818 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15819 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15820 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15821 CHAR_STRING_ADVANCE.
15822 (produce_chars): Fix for the case that the source and the
15823 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15824 instead of CHAR_STRING_ADVANCE.
15825 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15826 STRING_CHAR_ADVANCE.
15827
158282008-03-15 Andreas Schwab <schwab@suse.de>
15829
15830 * regex.c (re_match_2_internal): Correct matching of eight bit
15831 characters in unibyte strings.
15832
158332008-03-15 Martin Rudalics <rudalics@gmx.at>
15834
15835 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15836 at end of range when it coincides with the end of the buffer.
15837
158382008-03-14 Eli Zaretskii <eliz@gnu.org>
15839
15840 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15841
15842 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15843
158442008-03-14 Jason Rumney <jasonr@gnu.org>
15845
15846 * editfns.c (initial_tz): New variable.
15847 (syms_of_editfns): Initialize it.
15848 (Fset_time_zone_rule): Set it when first called.
15849 Use it when TZSTRING is nil.
15850
15851 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15852 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15853 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15854 (globals_of_w32fns): Initialize them.
15855 (compute_tip_xy): Use them to position tooltips.
15856
158572008-03-14 Glenn Morris <rgm@gnu.org>
15858
15859 * emacs.c (main): Revert previous change.
15860 (standard_args): Revert -internal-script back to -scriptload,
15861 and remove the long-option form.
15862
158632008-03-13 Glenn Morris <rgm@gnu.org>
15864
15865 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15866 Remove option -enable-font-backend.
15867
158682008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15869
15870 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15871
158722008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15873
15874 * xterm.c (x_connection_closed): For GTK: If this is the last
15875 terminal just exit without closing the display.
15876
158772008-03-11 Jason Rumney <jasonr@gnu.org>
15878
15879 * w32font.c (w32font_full_name): Use floor to round.
15880
f0131492 158812008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15882
15883 * sound.c (alsa_configure): Declare vol at beginning of block.
15884
15885 * fontset.c (Ffontset_info): Remove extra semicolon.
15886
158872008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15888
15889 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15890 size of resulting string.
15891
158922008-03-10 Jason Rumney <jasonr@gnu.org>
15893
15894 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15895
158962008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15897
15898 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15899 Don't pretend as if characters with display property haven't been
15900 consumed for string-replacing-string case.
15901
159022008-03-08 Kim F. Storm <storm@cua.dk>
15903
15904 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15905 (get_next_display_element, next_element_from_string)
15906 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15907
159082008-03-08 Andreas Schwab <schwab@suse.de>
15909
15910 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15911
159122008-03-06 Jason Rumney <jasonr@gnu.org>
15913
15914 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15915 when charset not specified. Only translate ANSI to unicode when
15916 font_type is truetype.
15917 (w32font_coverage_ok): New function.
15918 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15919
159202008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15921
15922 * lread.c (Fread_char): Resolve modifiers.
15923 (Fread_char_exclusive): Likewise.
15924
15925 * character.c (char_resolve_modifier_mask): New function.
15926 (char_string): Use char_resolve_modifier_mask.
15927 (Fchar_resolve_modifiers): New function.
15928 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15929 function.
15930
159312008-03-04 Jason Rumney <jasonr@gnu.org>
15932
15933 * makefile.w32-in: Always include w32font.c in the build.
15934 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15935
159362008-03-04 Andreas Schwab <schwab@suse.de>
15937
15938 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15939 (versionclean): Likewise.
15940
159412008-03-04 Juanma Barranquero <lekktu@gmail.com>
15942
15943 * .cvsignore: Add oo.
15944
159452008-03-03 Andreas Schwab <schwab@suse.de>
15946
15947 * coding.c (decode_coding_object): Inhibit gap shrinking while
15948 decoding in place.
15949
159502008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15951
15952 * w32term.c: Remove unused include "gnu.h".
15953 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15954
15955 * gnu.h: Rename to ...
15956 * emacs-icon.h: ... this.
15957 * xterm.c: Use emacs-icon.h instead of gnu.h.
15958 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15959
159602008-03-03 Juanma Barranquero <lekktu@gmail.com>
15961
15962 * w32font.c: Include math.h.
15963
159642008-03-03 Jason Rumney <jasonr@gnu.org>
15965
15966 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15967 Compute options separately.
15968 (w32font_open_internal): Set glyph_idx before caching metrics.
15969
15970 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15971 Define if system headers don't.
15972 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15973 (w32font_encode_char): Don't declare here.
15974
15975 * w32font.c (Quniscribe, QCformat): New symbols.
15976 (syms_of_w32font): Define them.
15977 (w32font_has_char): Indicate uncertainty.
15978 (w32font_encode_char): Encode as glyph point. Make static.
15979 (recompute_cached_metrics): New function.
15980 (w32font_open_internal): Use it. Set font to use glyph points
15981 initially. Set format based on type of font.
15982 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15983 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15984 on it. Set format based on information available here.
15985 (add_font_entity_to_list): Identify backend based on opentype_only.
15986
159872008-03-02 Andreas Schwab <schwab@suse.de>
15988
15989 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15990
15991 * coding.c (decode_coding_big5, produce_chars):
15992 Fix typos in last change.
15993
159942008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15995
15996 * gnu.h: New icon.
15997
159982008-03-02 Kenichi Handa <handa@m17n.org>
15999
16000 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16001 `dos', don't decode '\r' if that is the last in the source.
16002 (decode_coding_utf_16, decode_coding_emacs_mule)
16003 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16004 (decode_coding_raw_text, decode_coding_charset): Likewise.
16005 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16006
160072008-03-01 Jason Rumney <jasonr@gnu.org>
16008
16009 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16010
160112008-03-01 Kim F. Storm <storm@cua.dk>
16012
16013 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16014
160152008-03-01 Jason Rumney <jasonr@gnu.org>
16016
16017 * w32font.c (w32font_full_name): New function.
16018 (w32font_open_internal): Use it.
16019
160202008-03-01 Kim F. Storm <storm@cua.dk>
16021
16022 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16023
160242008-03-01 Jason Rumney <jasonr@gnu.org>
16025
16026 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16027
160282008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16029
16030 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16031 xg_frame_resized when the event is for the edit widget.
16032
16033 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16034
16035 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16036 set_char_size.
16037 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16038 operations on widgets here. Just set frame size if needed.
16039 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16040 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16041 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16042 the whole frame.
16043 (xg_create_tool_bar): Move attachment of the tool bar to
16044 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16045 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16046
160472008-03-01 Jason Rumney <jasonr@gnu.org>
16048
16049 * w32fns.c (w32_msg_pump): Disable debug code.
16050
160512008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16052
16053 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16054
160552008-02-29 Chong Yidong <cyd@stupidchicken.com>
16056
16057 * xdisp.c (next_overlay_string): Don't set
16058 overlay_strings_at_end_processed_p if we're currently reading from
16059 a display string.
16060
160612008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16062
16063 * xdisp.c (get_overlay_strings_1): Fix typo.
16064
160652008-02-29 Chong Yidong <cyd@stupidchicken.com>
16066
16067 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16068
160692008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16070
16071 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16072
16073 * xdisp.c (display_mode_element): Cancel the previous change.
16074 (decode_mode_spec): Likewise.
16075 (handle_auto_composed_prop): Don't make composition if it->string
16076 is a string.
16077
160782008-02-27 Kim F. Storm <storm@cua.dk>
16079
16080 * lisp.h (GLYPH): Change type from int to struct with separate char
16081 and face_id members.
16082 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16083 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16084 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16085 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16086 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16087 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16088 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16089 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16090 handle new Lisp glyph code encoding, either an integer or a cons.
16091
16092 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16093 (GLYPH_ALIAS): Delete.
16094 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16095 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16096 (GLYPH_FROM_CHAR): Replace macro by ...
16097 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16098
16099 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16100 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16101 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16102 (GLYPH_INVALID_P): New macro.
16103 (spec_glyph_lookup_face): Update prototype.
16104
16105 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16106 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16107 new glyph code encoding.
16108 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16109 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16110
16111 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16112 Adapt to new glyph type and new glyph code encoding.
16113
16114 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16115
16116 * indent.c (current_column, current_column_1, Fmove_to_column)
16117 (compute_motion): Adapt to new glyph code encoding.
16118
16119 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16120
161212008-02-27 Chong Yidong <cyd@stupidchicken.com>
16122
16123 * process.c (wait_reading_process_output): Check for window
16124 changes caused by timers.
16125 Suggested by Johan Bockgård.
16126
161272008-02-27 Glenn Morris <rgm@gnu.org>
16128
16129 * emacs.c (USAGE1): Add `--disable-font-backend'.
16130
161312008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16132
16133 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16134 is made to the buffer.
16135
161362008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16137
16138 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16139 (face_at_string_position):
16140 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16141 (face_at_string_position):
16142 * xdisp.c (display_string, next_overlay_change):
16143 * buffer.h (overlays_at):
16144 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16145 Update callers.
16146
161472008-02-26 Chong Yidong <cyd@stupidchicken.com>
16148
16149 * editfns.c (Fformat): Doc fix.
16150
161512008-02-26 Juanma Barranquero <lekktu@gmail.com>
16152
16153 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16154 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16155 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16156
161572008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16158
16159 * buffer.c (Fbuffer_swap_text): New function.
16160 (syms_of_buffer): Defsubr it.
16161
161622008-02-25 Chong Yidong <cyd@stupidchicken.com>
16163
16164 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16165
161662008-02-25 Jason Rumney <jasonr@gnu.org>
16167
16168 * w32font.c (w32font_draw): Draw one character at a time when padding.
16169
161702008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16171
16172 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16173 Handle a nil arg. Use run_window_configuration_change_hook.
16174 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16175 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16176 Use run_window_configuration_change_hook.
16177
161782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16179
16180 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16181 1-pixel width.
16182
161832008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16184
16185 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16186 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16187 if the glyph in the font is zero pixel with.
16188
16189 * dispextern.h (struct glyph_string): New member padding_p.
16190
16191 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16192
16193 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16194
16195 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16196
16197 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16198
16199 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16200
162012008-02-25 Jason Rumney <jasonr@gnu.org>
16202
16203 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16204
162052008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16206
16207 Allow fine-grained image-cache flushing.
16208 * dispextern.h (struct image): Add `dependencies' field.
16209 (clear_image_caches): Change arg to Lisp_Object.
16210 * image.c (make_image): Initialize `dependencies' field.
16211 (clear_image_cache): Change arg to allow fine-grained flushing.
16212 Perform the flush even if image-cache-eviction-delay is nil.
16213 (clear_image_caches): Change arg to Lisp_Object.
16214 (Fclear_image_cache): Expand meaning of the argument.
16215 (mark_image): Mark `dependencies' field.
16216 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16217 (lface_hash): Use XHASH rather than XFASTINT.
16218 (face_at_buffer_position): Fix int -> EMACS_INT position.
16219 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16220 (select_frame_for_redisplay): Remove code duplication.
16221 (redisplay_internal): Adapt arg to call to clear_image_caches.
16222
162232008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16224
16225 * s/vms4-0.h:
16226 * s/vms4-2.h:
16227 * s/vms4-4.h:
16228 * s/vms5-5.h: Remove, unused.
16229
16230 * s/irix5-2.h:
16231 * s/irix6-0.h:
16232 * s/riscos5.h:
16233 * s/mach-bsd4-3.h:
16234 * m/mips4.h: Remove files for obsolete systems.
16235
16236 * Makefile.in:
16237 * filelock.c:
16238 * unexmips.c:
16239 * m/hp9000s300.h:
16240 * m/iris4d.h:
16241 * s/aix3-1.h:
16242 * s/hpux.h:
16243 * s/msdos.h:
16244 * s/usg5-0.h:
16245 * s/usg5-2-2.h:
16246 * s/usg5-2.h:
16247 * s/usg5-3.h: Remove references to obsolete variables.
16248
16249 * s/irix5-0.h: Remove, move all the contents ...
16250 * s/irix6-5.h: ... here. Simplify.
16251 * config.in: Regenerate.
16252
162532008-02-24 Jason Rumney <jasonr@gnu.org>
16254
16255 * w32term.c (x_draw_glyph_string_background): Clear the background
16256 manually when cleartype is in use.
16257 (x_draw_glyph_string_foreground): Draw text transparently when
16258 cleartype is in use.
16259
16260 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16261 a font into it unless we have to.
16262
162632008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16264
16265 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16266 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16267
aac0c6e3
MR
162682008-02-18 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32fns.c (Fw32_shell_execute): Encode parameters.
16271
162722008-02-09 Eli Zaretskii <eliz@gnu.org>
16273
16274 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16275
162762008-02-05 Juanma Barranquero <lekktu@gmail.com>
16277
16278 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16279
162802008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16281
16282 * xterm.c (x_set_offset): Don't change the gravity if
16283 CHANGE_GRAVITY is -1.
16284
162852008-02-23 Chong Yidong <cyd@stupidchicken.com>
16286
16287 * fileio.c (auto_save_error_occurred): New var.
16288 (auto_save_error): Set it.
16289 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16290 error occurred.
16291
162922008-02-23 Eli Zaretskii <eliz@gnu.org>
16293
16294 * w32.c (globals_of_w32): Add initializations for
16295 g_b_init_get_sid_sub_authority and
16296 g_b_init_get_sid_sub_authority_count.
16297
162982008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16299
16300 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16301 (font_parse_xlfd): Use them for sanity check.
16302 (Finternal_set_font_style_table): Make sure the table is bijective.
16303
16304 Consolidate the image_cache to the terminal struct.
16305 * termhooks.h (P_): Remove redundant def.
16306 (struct terminal): New field `image_cache'.
16307 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16308 of FRAME_X_IMAGE_CACHE.
16309 * xterm.h (struct x_display_info): Remove image_cache field.
16310 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16311 * w32term.h (struct w32_display_info): Remove image_cache field.
16312 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16313 * macterm.h (struct mac_display_info): Remove image_cache field.
16314 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16315 * xterm.c (x_term_init):
16316 * w32term.c (w32_term_init):
16317 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16318 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16319 Remove declarations.
16320 (clear_image_caches, mark_image_cache): New declarations.
16321 * xfaces.c (clear_face_cache):
16322 * xdisp.c (redisplay_internal): Use clear_image_caches.
16323 * image.c (clear_image_cache): Don't check that a frame is on
16324 a window-system before checking if it shares the same cache.
16325 (clear_image_caches): New function.
16326 (Fclear_image_cache): Use it.
16327 (mark_image): Move from allo.c.
16328 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16329 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16330 (mark_object): Don't call mark_image_cache for frames.
16331 (mark_terminals): Call mark_image_cache.
16332
16333 * lisp.h (Fdelete_terminal): Declare.
16334
16335 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16336 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16337 wrong_type_argument.
16338
163392008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16340
16341 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16342 malayalam.el, and tamil.el. Add sinhala.el.
16343
163442008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16345
16346 * xterm.c (x_connection_closed): Consolidate identical tests.
16347 (x_delete_terminal): Don't crash if called via x_connection_closed.
16348
163492008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16350
16351 * xdisp.c (decode_mode_spec): New arg string.
16352 (display_mode_element): Adjust for the above change.
16353
163542008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16355
16356 * callint.c (Fcall_interactively): Use AREF.
16357
163582008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16359
16360 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16361
163622008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16363
16364 * xfns.c (Fx_show_tip): Set string to " " if empty.
16365
163662008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16367
16368 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16369 with Qt.
16370
163712008-02-17 Kenichi Handa <handa@m17n.org>
16372
16373 * ftfont.c (ftfont_shape): Return Lispy number.
16374
16375 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16376 for GCs.
16377 (Finternal_set_font_selection_order): Call font_update_sort_order
16378 only when enable_font_backend is set.
16379 (realize_x_face): Set face->font_info to that of default face only
16380 when enable_font_backend is set.
16381
16382 * xdisp.c (handle_composition_prop): Set it->c to the fist
16383 character of the composed region.
16384 (fill_composite_glyph_string): Set base_face->font_info to
16385 s->font_info. Get a face for ascii from base_face->ascii_face.
16386 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16387 with a face already decided.
16388 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16389 non-negative.
16390 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16391 call font_prepare_composition unconditionally.
16392
16393 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16394
16395 * xterm.h (struct x_display_info): New member font.
16396
16397 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16398 (x_set_mouse_face_gc, x_new_font): Likewise.
16399 (x_term_init): Setup display_info->font.
16400 (x_delete_terminal): Free display_info->font.
16401
16402 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16403
16404 * ftxfont.c (ftxfont_default_fid): Delete it.
16405 (ftxfont_open): Set xfont->fid to 0.
16406 (ftxfont_end_for_frame): Clear data specific to the frame and the
16407 font-driver.
16408
16409 * xftfont.c (xftfont_default_fid): Delete it.
16410 (xftfont_open): Set xfont->fid to 0.
16411
16412 * fontset.c (FONTSET_OBJLIST): New macro.
16413 (fontset_find_font): Update font-object list of the fontset.
16414 (free_realized_fontset): New function.
16415 (free_face_fontset): Call free_realized_fontset.
16416 (Ffont_info): Call font_close_object only when enable_font_backend
16417 is set.
16418
16419 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16420 [HAVE_NTGUI]: Include w32term.h.
16421 [MAC_OS]: Include macterm.ch.
16422 (font_otf_ValueRecord): Use make_number.
16423 (font_finish_cache): Fix handling of reference count.
16424 (font_clear_cache): Update num_fonts.
16425 (font_open_entity): Update smallest_char_width and
16426 smallest_font_height of the frame.
16427 (font_close_object): Update num_fonts.
16428 (Fclear_font_cache): Fix finding the target cache data.
16429
164302008-02-16 Glenn Morris <rgm@gnu.org>
16431
16432 * fontset.c (Finternal_char_font): Fix compilation warning.
16433
164342008-02-16 Eli Zaretskii <eliz@gnu.org>
16435
16436 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16437 instead of char arrays. Enlarge the size of array passed to
16438 get_token_information.
16439
16440 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16441 warnings.
16442
164432008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16444
16445 * .gdbinit: Don't set `args', it breaks gdb --args.
16446
164472008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16448
16449 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16450 within a narrowed buffer.
16451
164522008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16453
16454 * coding.c (decode_coding_object, encode_coding_object):
16455 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16456
164572008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16458
16459 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16460 hardcoding 1.
16461 (detect_coding_system):
16462 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16463 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16464 * insdel.c (insert_from_gap):
16465 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16466 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16467 (string_to_multibyte):
16468 * character.c (chars_in_text, multibyte_chars_in_text):
16469 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16470
16471 * character.h (FETCH_STRING_CHAR_ADVANCE)
16472 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16473 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16474 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16475
16476 * casefiddle.c (casify_region): Only call after-change and composition
16477 functions on the part of the region that was changed.
16478
16479 * keyboard.c (read_avail_input):
16480 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16481
164822008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16483
16484 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16485 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16486
164872008-02-11 Juanma Barranquero <lekktu@gmail.com>
16488
16489 * w32menu.c (push_submenu_start, push_submenu_end)
16490 (push_left_right_boundary, push_menu_pane, push_menu_item):
16491 * keyboard.c (read_key_sequence): Don't pass args with side effects
16492 to AREF, it fails when compiling with -DENABLE_CHECKING.
16493
164942008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16495
16496 * Makefile.in (${lispsource}international/charprop.el):
16497 Delete this target.
16498
16499 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16500 emacs-unicode-2.
16501
165022008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16505
165062008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16507
16508 * frame.c (Qnoelisp): New symbol.
16509 (syms_of_frame): Initialize it.
16510 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16511 harmless Elisp code, from a strong `force' from x_connection_closed.
16512 * frame.h (Qnoelisp): Declare.
16513 * xterm.c (x_connection_closed): Pass `noelisp'.
16514
16515 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16516 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16517 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16518 rather than `int' for the type of `type'.
16519
165202008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16521
16522 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16523
16524 * Makefile.in (GNUC): Remove support for gcc-1.x.
16525
165262008-02-10 Richard Stallman <rms@gnu.org>
16527
16528 * lisp.h (ASET): Use AREF, not ASLOT.
16529
165302008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16531
16532 * lisp.h (ASET): Check bounds.
16533
165342008-02-10 Glenn Morris <rgm@gnu.org>
16535
16536 * buffer.c (mode-name): Doc fix.
16537
165382008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16539
16540 * Makefile.in:
16541 * emacs.c:
16542 * gmalloc.c:
16543 * keyboard.c:
16544 * lisp.h:
16545 * m/ibm370aix.h:
16546 * process.c:
16547 * regex.c:
16548 * s/hpux.h:
16549 * sysdep.c:
16550 * sysselect.h:
16551 * systty.h:
16552 * unexec.c:
16553 * w32term.c:
16554 * xsmfns.c:
16555 * xterm.c: Remove code that deals with obsolete variables.
16556
16557 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16558
16559 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16560 nothing else needs it anymore.
16561
165622008-02-09 Eli Zaretskii <eliz@gnu.org>
16563
16564 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16565 instead of unibyte_char_to_multibyte.
16566
165672008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16568
16569 * s/gnu-linux.h: Remove commented out code.
16570
16571 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16572
16573 * Makefile.in: Update what RMS says about using autoconf.
16574 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16575 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16576 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16577 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16578
165792008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16580
16581 * keymap.c (Fkey_description): Move side effect outside of macro call.
16582
16583 * xfaces.c (Finternal_make_lisp_face):
16584 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16585
16586 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16587 (syms_of_fontset): Use ASET.
16588
16589 * fns.c (concat): Move side effect outside of macro call.
16590 (hash_clear): Use ASET.
16591
165922008-02-08 Richard Stallman <rms@gnu.org>
16593
16594 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16595 If FORCE, and frame has a surrogate minibuffer for another frame,
16596 delete the other frame first.
16597
165982008-02-07 Timo Savola <timo.savola@iki.fi>
16599
16600 * xterm.c (x_detect_focus_change): Handle embed client message.
16601 (handle_one_xevent): Ditto.
16602 (handle_one_xevent): If embedded and we get a button press/release,
16603 request focus.
16604 (xembed_set_info, xembed_send_message): New functions.
16605 (x_make_frame_visible): Call xembed_set_info if embedded.
16606 (x_make_frame_invisible): Call xembed_set_info if embedded.
16607 (x_term_init): Initialize Xatom_XEMBED.
16608 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16609 (x_iconify_frame): Ditto.
16610
16611 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16612 (enum xembed_info, enum xembed_message, enum xembed_focus)
16613 (enum xembed_modifier, enum xembed_accelerator): New.
16614 (xembed_set_info, xembed_send_message): Declare.
16615 (FRAME_X_EMBEDDED_P): New.
16616
16617 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16618 gtk_plug_new.
16619
16620 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16621 window ID of a frame.
16622 (x_window): Reparent frame if embedded.
16623 (Fx_create_frame): Don't set border width if embedded.
16624
16625 * emacs.c (USAGE3): Add --parent-id.
16626 (standard_args): Ditto.
16627
166282008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16629
16630 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16631
166322008-02-07 Jim Meyering <meyering@redhat.com>
16633
16634 Use "do...while (0)", not "if (1)...else" in macro definitions.
16635 The latter provokes a warning from gcc about the empty else, when
16636 followed by ";". Also, without that trailing semicolon, it would
16637 silently swallow up any following statement.
16638 * syntax.h (SETUP_SYNTAX_TABLE)
16639 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16640 * buffer.h (DECODE_POSITION): Likewise.
16641 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16642 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16643 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16644 (FETCH_CHAR_ADVANCE): Likewise.
16645 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16646
166472008-02-07 Jim Meyering <meyering@redhat.com>
16648
16649 * lread.c [lint]: Don't include <sys/inode.h>.
16650
166512008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16652
16653 * xselect.c (x_handle_dnd_message):
16654 * xmenu.c (digest_single_submenu, xmenu_show):
16655 * xdisp.c (with_echo_area_buffer_unwind_data)
16656 (format_mode_line_unwind_data, unwind_format_mode_line)
16657 (display_menu_bar):
16658 * eval.c (Ffetch_bytecode):
16659 * doc.c (store_function_docstring):
16660 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16661 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16662 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16663
166642008-02-07 Kenichi Handa <handa@m17n.org>
16665
16666 * ftxfont.c (ftxfont_open): Don't set
16667 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16668
16669 * ftfont.c (ftfont_open): Fix previous change.
16670
166712008-02-06 Jason Rumney <jasonr@gnu.org>
16672
16673 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16674 Use cached metrics for ASCII characters.
16675 (w32font_open_internal): Don't set font's owning_frame.
16676 Cache metrics for ASCII characters.
16677
16678 * w32font.h (struct w32font_info): Add ascii_metrics.
16679 Remove owning_frame.
16680
166812008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16682
16683 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16684 to negative value.
16685
16686 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16687
16688 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16689
16690 * charset.c (syms_of_charset): Set QCtest and Qeq.
16691
166922008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16693
16694 * process.c (Fstart_process):
16695 * callproc.c (Fcall_process): Handle the case where
16696 Funhandled_file_name_directory returns nil.
16697
16698 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16699 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16700 * font.c (check_gstring): Use them and AREF to access the vector before
16701 we know it's really a gstring.
16702 (Ffont_shape_text): Fix typo.
46e722a9 16703 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16704
16705 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16706 Declare.
16707
16708 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16709
167102008-02-05 Jason Rumney <jasonr@gnu.org>
16711
16712 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16713 Set smallest_font_height and smallest_char_width in display info.
16714
167152008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16716
16717 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16718
167192008-02-05 Miles Bader <miles@gnu.org>
16720
16721 * xfaces.c (get_lface_attributes, merge_named_face)
16722 (lookup_named_face, lookup_derived_face, realize_named_face):
16723 Revert 2008-02-01 change by cyd@stupidchicken.com.
16724
167252008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16726
16727 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16728 fallback fonts.
16729 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16730
167312008-02-04 Jason Rumney <jasonr@gnu.org>
16732
16733 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16734 set full_name.
16735 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16736
167372008-02-03 Jason Rumney <jasonr@gnu.org>
16738
16739 * makefile.w32-in (OBJ1): Include font.o here.
16740 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16741
167422008-02-02 Jason Rumney <jasonr@gnu.org>
16743
16744 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16745
167462008-02-01 Jason Rumney <jasonr@gnu.org>
16747
16748 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16749
16750 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16751
167522008-02-01 Andreas Schwab <schwab@suse.de>
16753
16754 * Makefile.in (shortlisp, lisp): Update for rename of
16755 ../lisp/language/myanmar.el.
16756
167572008-02-01 Chong Yidong <cyd@stupidchicken.com>
16758
16759 * xfaces.c (get_lface_attributes): Delete function.
16760 (merge_named_face, lookup_named_face, lookup_derived_face)
16761 (realize_named_face): Call lface_from_face_name directly, and use
16762 the fact that merge_face_vectors does not alter its FROM argument.
16763
167642008-02-01 Jason Rumney <jasonr@gnu.org>
16765
16766 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16767 input in the default locale. Handle non-Unicode multibyte input.
16768
167692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16770
16771 * fontset.c (reorder_font_vector): Exclude nil elements from the
16772 font group. Don't try multiple fonts.
16773 (fontset_font): Adjust for the above change.
16774 (Finternal_char_font): Return nil if the found font doesn't
16775 contain the character ch.
16776
16777 * Makefile.in (lisp, shortlisp): Add cham.el.
16778
167792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16780
16781 * font.h (FONTP): Make it return 1 also for a font-object.
16782
16783 * .gdbinit (xfontset): New function.
16784
16785 * font.c (font_find_for_lface): Check if the character C is
16786 supported or not only for the first font.
16787
16788 * fontset.c (reorder_font_vector): Fix typo.
16789 (fontset_find_font): Don't add a font-spec specifying a script.
16790 Use 0 (not Qt) for the indication of empty font-group. Change the
16791 format of RFONT-DEF. Return Qt if no font in the font-group
16792 support the character.
16793 (fontset_font): Adjust for the above change. If no font was
16794 found the character, remember that.
16795 (face_for_char): Adjust for the change of RFONT-DEF.
16796 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16797 no font for the target.
16798 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16799
168002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16801
16802 * font.c (font_load_for_face): Handle the case that the font in
16803 face->lface is a string.
16804
168052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16806
16807 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16808
168092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16810
16811 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16812 Fix previous change. If the frame is not on a window system,
16813 signal an error.
16814
168152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16816
16817 * coding.c (decode_coding_object, encode_coding_object): Adjust
16818 marker positions after conversion.
16819
16820 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16821
168222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16823
16824 * font.c (font_find_for_lface): Fix the handling of the return
16825 value of font_has_char.
16826 (Ffont_shape_text): Fix previous change.
16827
16828 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16829 (fontset_ref_and_range): Delete it.
16830 (fontset_find_font): Call char_table_ref_and_range instead of
16831 FONTSET_REF_AND_RANGE.
16832 (make_fontset): Don't setup font groups of Latin here.
16833 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16834 (new_fontset_from_font): Make the specified font the default for
16835 all Latin characters.
16836
168372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16838
16839 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16840 is on a window system before accessing the fontset of the frame.
16841
168422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16843
16844 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16845
16846 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16847 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16848
16849 * font.c (Ffont_shape_text): If the font driver doesn't have a
16850 shaper function, make zero-width glyphs to have at least one-pixel
16851 width. Fix setting of `to' field of glyphs.
16852
168532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16854
16855 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16856 glyphs.
16857
16858 * font.h (struct font_driver): Improve docstring of member `shape'.
16859
168602008-02-01 Kenichi Handa <handa@m17n.org>
16861
16862 * composite.c (syms_of_composite): Fix docstring of
16863 auto-composition-function.
16864
16865 * font.h (LGLYPH_SIZE): New macro.
16866
16867 * font.c (Ffont_fill_gstring): Stop filling when a character not
16868 supported by the font is found.
16869 (Ffont_shape_text): When a shape callback function returns nil,
16870 try at most two more times with larger gstring.
16871 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16872
16873 * xdisp.c (handle_auto_composed_prop): Change the argument to
16874 auto-composition-function.
16875
16876 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16877 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16878 Lispy glyph and store it in the lgstring.
16879
16880 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16881
16882 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16883
168842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16885
16886 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16887
16888 * fontset.c (Vfont_encoding_charset_alist): New variable.
16889 (syms_of_fontset): DEFVAR it.
16890 (reorder_font_vector, fontset_find_font): Optimize for the case of
16891 no need of reordering.
16892 (face_for_char): Map the charset property by
16893 Vfont_encoding_charset_alist.
16894
168952008-02-01 Jason Rumney <jasonr@gnu.org>
16896
16897 * w32font.c (logfonts_match): Don't check adstyle here.
16898 (font_matches_spec): Check here against physical font instead.
16899 (add_font_entity_to_list): Avoid some substitutions.
16900
16901 * font.c (font_parse_fcname): Default weight and slant to normal.
16902 (font_score): Prefer normal fonts if weight or slant unspecified.
16903 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16904 match freetype scores.
16905
169062008-02-01 Jason Rumney <jasonr@gnu.org>
16907
16908 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16909 font, as it may have been deleted.
16910 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16911 most common hyphenless variation.
16912 (logfonts_match): Check generic family.
16913 (font_matches_spec): Don't check generic family here.
16914 (fill_in_logfont): Set generic family based on adstyle.
16915
16916 * w32font.h (w32font_get_cache): Update declaration.
16917
169182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16919
16920 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16921
16922 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16923 If none of the new drivers are available, call font_update_drivers
16924 with the old drivers.
16925
16926 * w32font.c (w32font_get_cache): Adjust the argument type.
16927
16928 * xfont.c (xfont_get_cache): Adjust the argument type.
16929
16930 * font.h (struct font_driver): Change argument type of get_cache.
16931
16932 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16933
16934 * font.c (Ffont_get): Fix arguments to Fassoc.
16935 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16936 (font_clear_cache): New function.
16937 (font_list_entities, font_matching_entity): Use font_get_cache.
16938 (font_update_drivers): Call font_clear_cache when finishing a driver.
16939
16940 * fontset.c (fontset_find_font): Fix previous change.
16941
169422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16943
16944 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16945 dpyinfo->font_table.
16946 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16947 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16948
16949 * font.c (font_at): Handle the case that the arg C is negative.
16950 Handle the unibyte case.
16951 (Ffont_at): Call font_at with the arg C -1.
16952
16953 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16954 the position here, and call font_at with the arg C -1.
16955 Don't check the range of the existing composition at the point.
16956
169572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16958
16959 * fontset.c (fontset_add): New args charset_id and family.
16960 Change caller.
16961 (load_font_get_repertory, fontset_find_font): Assume that
16962 font_spec is always a font-spec object.
16963 (Fset_fontset_font): Always store a font-spec object in a fontset.
16964
16965 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16966 instead of get_property_and_range.
16967
169682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16969
16970 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16971 (xftfont_open): Don't keep locking face.
16972 (xftfont_close): Don't unlock face.
16973 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16974
16975 * fontset.c (fontset_find_font): Don't prefer a font of
16976 supplementary charset.
16977
169782008-02-01 Kenichi Handa <handa@m17n.org>
16979
16980 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16981 script, langsys_tag to langsys, new member script.
16982 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16983 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16984 listing to the script specified in that property. Fix arg to
16985 OTF_check_features.
16986
169872008-02-01 Jason Rumney <jasonr@gnu.org>
16988
16989 * w32font.h: New file.
16990
16991 * w32font.c: Include it.
16992 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16993 (w32font_open): Set owning_frame.
16994 (w32font_text_extents): Use owning_frame.
16995 (struct font_callback_data): Add opentype_only field.
16996 (add_font_entity_to_list): Use it to filter fonts.
16997 Don't check against full name.
16998 (w32font_list_internal): New function.
16999 (w32font_list): Use it.
17000 (w32font_match_internal): New function.
17001 (w32font_match): Use it.
17002 (w32font_open_internal): New function.
17003 (w32font_open): Use it.
17004 (w32font_get_cache, w32font_close, w32font_has_char)
17005 (w32font_encode_char, w32font_text_extents, w32font_draw):
17006 Make non-static.
17007
17008 * makefile.w32-in (w32font.o): Depend on w32font.h.
17009
170102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17011
17012 * charset.c (Fdefine_charset_internal): Record a supplementary
17013 charset at the tail of Vcharset_order_list.
17014
17015 * font.c (Ffont_shape_text): Fix the return value.
17016
17017 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17018
17019 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17020
170212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17022
17023 * ftfont.c (struct OpenTypeSpec): New struct.
17024 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17025 (ftfont_get_open_type_spec): New function.
17026 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17027
17028 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17029
170302008-02-01 Jason Rumney <jasonr@gnu.org>
17031
17032 * w32font.c (add_font_entity_to_list): Compare only the beginning
17033 of full name.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17038 Never return HANDLED_RECOMPUTE_PROPS.
17039
170402008-02-01 Kenichi Handa <handa@m17n.org>
17041
17042 * font.c (font_gstring_produce): Delete it.
17043
17044 * composite.h (COMPOSITION_METHOD):
17045 Handle COMPOSITION_WITH_GLYPH_STRING.
17046
170472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17048
17049 * xfont.c (Qx): Delete.
17050 (syms_of_xfont): Don't initialize Qx.
17051
17052 * composite.h (enum composition_method):
17053 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17054
170552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17056
17057 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17058 (choose_face_font): Accept new form of font-spec.
17059
17060 * frame.h (font_driver_list): Declare it unconditionally.
17061 (struct frame): Define members font_driver_list and font_data_list
17062 unconditionally.
17063
17064 * fontset.c: Include "font.h" unconditionally.
17065 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17066 (Fset_fontset_font): Accept a font-spec object.
17067
17068 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17069 PIXEL_SIZE part a wild card.
17070
17071 * dispextern.h (struct glyph_string): Define members clip and
17072 num_clips unconditionally.
17073 (struct face): Define members font_info and extra unconditionally.
17074
17075 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17076 ftfont_info only when HAVE_LIBOTF is defined.
17077
170782008-02-01 Andreas Schwab <schwab@suse.de>
17079
17080 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17081 and end.
17082
170832008-02-01 Jason Rumney <jasonr@gnu.org>
17084
17085 * w32font.c (w32font_driver): Add new fields.
17086
170872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17088
17089 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17090 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17091 (LIBES): Add @M17N_FLT_CFLAGS@.
17092
17093 * composite.c (compose_text): Don't treat the new style
17094 composition specially.
17095
17096 * emacs.c (main): Call syms_of_font unconditionally.
17097
17098 * font.h (FONT_ENTITY_NOT_LOADABLE)
17099 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17100 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17101 (struct font_driver): New member shape.
17102 (font_registry_charsets): Extern it.
17103 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17104 (font_otf_capability, font_drive_otf): Delete their externs.
17105
17106 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17107 (font_charset_alist, font_registry_charsets): Move from xfont.c
17108 and rename.
17109 (font_prop_validate_otf): New function.
17110 (font_property_table): Register it for QCotf.
17111 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17112 (font_drive_otf): Delete.
17113 (font_prepare_composition): New arg F. Adjust for the change of
17114 lispy gstring.
17115 (font_find_for_lface): New arg C.
17116 (font_load_for_face): Adjust for the change of font_find_for_lface.
17117 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17118 lispy gstring.
17119 (Ffont_shape_text): New function.
17120 (Fopen_font): If the font size is not given, use 12-pixel.
17121 (Ffont_at): New arg STRING.
17122 (syms_of_font): Initalize font_charset_alist.
17123 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17124 conditionally.
17125
17126 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17127 fonts of the same font-spec. Change the format of RFONT-DEF.
17128 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17129 Adjust for the change of RFONT-DEF.
17130 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17131
17132 * ftfont.h: New file.
17133
17134 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17135 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17136 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17137 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17138 font_otf_capability and font_drive_otf, set ftfont_shape.
17139 (ftfont_list): Adjust for the change of :otf property value.
17140 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17141 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17142 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17143 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17144 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17145 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17146
17147 * w32term.c (x_draw_composite_glyph_string_foreground):
17148 Adjust for the change of lispy gstring.
17149
17150 * xdisp.c (handle_composition_prop): Adjust for the change of
17151 lispy gstring. Call a function for auto-composition with the
17152 third arg it->window.
17153 (fill_composite_glyph_string): Adjust for the change of lispy string.
17154 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17155
17156 * xfaces.c (set_font_frame_param): Adjust for the change of
17157 font_find_for_lface.
17158
17159 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17160 (xfont_registry_charsets): Likewise. Change caller.
17161 (syms_of_xfont): Don't handle x_font_charset_alist.
17162
17163 * xftfont.c: Include "ftfont.h".
17164 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17165 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17166 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17167 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17168 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17169 Set xftfont_driver.shape to xftfont_shape.
17170
17171 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17172 the change of lispy gstring.
17173
171742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17175
17176 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17177
171782008-02-01 Jason Rumney <jasonr@gnu.org>
17179
17180 * w32font.c (w32font_draw): Fill background manually.
17181
171822008-02-01 Jason Rumney <jasonr@gnu.org>
17183
17184 * font.c (Qfontp): Remove unused symbol.
17185 (QCantialias): New symbol.
17186 (syms_of_font): Define it.
17187 (font_property_table): Set a validator for QCantialias.
17188
17189 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17190 Define if not already.
17191 (QCfamily): Share with xfaces.c.
17192 (Qstandard, Qsubpixel, Qnatural): New symbols.
17193 (syms_of_w32font): Define them. Don't define QCfamily here.
17194 (w32_antialias_type, lispy_antialias_type): New functions.
17195 (w32_enumfont_pattern_entity): New arg requested_font.
17196 Set antialias parameter if non-default was requested.
17197 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17198
171992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17200
17201 * lread.c (read1): Undo the previous change.
17202
172032008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17204
17205 * frame.c (Fdelete_frame): Call font_update_drivers only when
17206 USE_FONT_BACKEND is defined.
17207
172082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17209
17210 * font.h (struct font_bitmap): New member bits_per_pixel.
17211 (struct font_driver): New members start_for_frame and end_for_frame.
17212 (struct font_data_list): New struct.
17213 (font_put_frame_data, font_get_frame_data): Extern them.
17214
17215 * frame.h (struct frame): New member font_data_list.
17216
17217 * font.c (font_update_drivers): Call driver->start_for_frame and
17218 driver->end_for_frame at proper timings.
17219 (font_put_frame_data, font_get_frame_data): New functions.
17220 (Ffont_spec): Add usage in the docstring.
17221
17222 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17223 (Fdelete_frame): Call font_update_drivers.
17224
17225 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17226 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17227 (xftfont_get_xft_draw): New function.
17228 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17229 (xftfont_end_for_frame): New function.
17230 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17231
17232 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17233 Change argument. Cache GCs in the per-frame data.
17234 (struct ftxfont_frame_data): New struct.
17235 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17236 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17237 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17238 (ftxfont_end_for_frame): New function.
17239 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17240
17241 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17242
172432008-02-01 Kenichi Handa <handa@m17n.org>
17244
17245 * xselect.c (Vselection_coding_system)
17246 (Vnext_selection_coding_system): Delete them.
17247 (syms_of_xselect): Don't declare selection-coding-system and
17248 next-selection-coding-system. They are declared in select.el.
17249
172502008-02-01 Jason Rumney <jasonr@gnu.org>
17251
17252 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17253
17254 * w32fns.c: Include imm.h.
17255 (get_composition_string_fn, get_ime_context_fn): New optional
17256 system functions.
17257 (globals_of_w32fns): Load them from imm32.dll.
17258 (ignore_ime_char): New flag.
17259 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17260 WM_IME_ENDCOMPOSITION messages.
17261
17262 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17263 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17264
172652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17266
17267 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17268 (READCHAR_REPORT_MULTIBYTE): New macro.
17269 (readchar): New 2nd arg MULTIBYTE.
17270 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17271 Make symbol's name multibyte according to the multibyteness of the
17272 source.
17273
172742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17275
17276 * xfaces.c (face_for_overlay_string): Call lookup_face with
17277 correct arguments (fix of synching with the trunk).
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17282 (font_prop_validate_non_neg, font_prop_validate_spacing):
17283 Delete argument prop_index.
17284 (font_property_table): Change arguments to validater. Change Callers.
17285 (font_lispy_object): Delete.
17286 (font_at): Use font_find_object instead fo font_lispy_object.
17287
172882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17289
17290 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17291 and file names.
17292
172932008-02-01 Jason Rumney <jasonr@gnu.org>
17294
17295 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17296 (font_matches_spec): Remove debug output.
17297 (add_font_entity_to_list): Avoid using substituted fonts.
17298
172992008-02-01 Jason Rumney <jasonr@gnu.org>
17300
17301 * doc.c (Fsnarf_documentation):
17302 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17303
173042008-02-01 Miles Bader <miles@gnu.org>
17305
17306 * dispextern.h (struct glyph_row): Only define "clip" field if
17307 HAVE_WINDOW_SYSTEM is defined.
17308
173092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17310
17311 Fix up multi-tty merge.
17312
17313 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17314 and indentation.
17315
17316 * xfaces.c (free_realized_face, clear_face_gcs):
17317 Include font_done_for_face in the input_blocked section, just in case.
17318
17319 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17320 (get_char_face_and_encoding): Undo last change and remove the *other*
17321 duplicate definition (i.e. keep the one that's better scoped and that
17322 includes code for the font-backend).
17323
17324 * terminal.c (create_terminal): Default keyboard_coding to
17325 `no-conversion' and terminal_coding to `undecided'.
17326
17327 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17328
17329 * fontset.c (free_realized_fontsets): Check that the table entry does
17330 contain a fontset before trying to compare it to `base'.
17331
17332 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17333 syms_of_charset, and syms_of_coding earlier because init_window_once
17334 now needs Vcoding_system_hash_table to be setup.
17335
17336 * coding.h (default_buffer_file_coding): Remove.
17337
17338 * coding.c (default_buffer_file_coding): Remove.
17339 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17340 than ->symbol, and use the terminal-local coding system.
17341 (syms_of_coding): Don't setup the coding-systems that are not
17342 terminal-local.
17343 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17344
17345 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17346 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17347
17348 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17349 in chartab.c and were re-added here by mistake.
17350 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17351
17352 * doc.c (Fsnarf_documentation):
17353 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17354 src to etc.
17355
17356 * ChangeLog.10: Add mistakenly removed entry.
17357
173582008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17359
17360 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17361
173622008-02-01 Miles Bader <miles@gnu.org>
17363
17364 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17365 Add extra args to FACE_FOR_CHAR.
17366
173672008-02-01 Kenichi Handa <handa@m17n.org>
17368
17369 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17370 in sequence.
17371
17372 * chartab.c (map_sub_char_table, map_char_table): If the range
17373 contains just one character, call the function with that character
17374 even if the depth is not 3.
17375
173762008-02-01 Jason Rumney <jasonr@gnu.org>
17377
17378 * w32font.c (w32font_text_extents): Calculate metrics for the
17379 whole string.
17380
173812008-02-01 Jason Rumney <jasonr@gnu.org>
17382
17383 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17384
173852008-02-01 Jason Rumney <jasonr@gnu.org>
17386
17387 * w32term.c (x_set_glyph_string_clipping): Use
17388 get_glyph_string_clip_rects.
17389 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17390 Adjust for the change of struct glyph_string.
17391
17392 * w32font.c (w32font_draw): Do clipping here.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * xftfont.c (xftfont_draw): Adjust for the change of struct
17397 glyph_string.
17398
17399 * xterm.c (x_set_glyph_string_clipping): Use
17400 get_glyph_string_clip_rects.
17401 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17402 Adjust for the change of struct glyph_string.
17403
17404 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17405 the resulting clip(s}.
17406 (expose_overlaps): Add arg r. Change callers. Set it to
17407 row->clip temporarily.
17408 (expose_window): Redraw rows overlapping the exposed area.
17409
17410 * dispextern.h (struct glyph_row): New member clip.
17411 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17412 clip_height, new member clip, and num_clips.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * data.c (Fchar_or_string_p): Fix docstring.
17417
174182008-02-01 Kenichi Handa <handa@m17n.org>
17419
17420 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17421 create a temporary XftDraw object.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * font.c (Ffontp): Fix docstring.
17426
17427 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17428 strong evidence of ISO-2022.
17429
174302008-02-01 Kenichi Handa <handa@m17n.org>
17431
17432 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17433 SYNTAX_ENTRY_FOLLOW_PARENT.
17434
174352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17436
17437 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17438 its type.
17439 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17440 Update to the new type of weak_hash_tables and next_weak.
17441
17442 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17443 a plain C pointer to Lisp_Hash_Table.
17444
17445 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17446 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17447 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17448 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17449 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17450 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17451 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17452 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17453 (GC_EQ): Remove since they've been identical to their non-GC_
17454 alter-egos ever since the markbit was eradicated.
17455
17456 * alloc.c:
17457 * buffer.c:
17458 * buffer.h:
17459 * data.c:
17460 * fileio.c:
17461 * filelock.c:
17462 * fns.c:
17463 * frame.h:
17464 * lisp.h:
17465 * macterm.c:
17466 * print.c:
17467 * process.c:
17468 * w32fns.c:
17469 * w32menu.c:
17470 * w32term.c:
17471 * xfns.c:
17472 * xmenu.c:
17473 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * chartab.c (map_sub_char_table): Make it work for the top-level
17478 char-table. Fix handling of parent char-table.
17479 (map_char_table): Adjust for the above change.
17480
174812008-02-01 Jason Rumney <jasonr@gnu.org>
17482
17483 * w32font.c (Qgdi): Rename from Qw32.
17484
174852008-02-01 Jason Rumney <jasonr@gnu.org>
17486
17487 * w32bdf.c (get_quoted_string): Make function static.
17488
174892008-02-01 Kenichi Handa <handa@m17n.org>
17490
17491 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17492 bigger ascent and descent than those of the font, use them as
17493 font's ascent and descent.
17494
174952008-02-01 Kenichi Handa <handa@m17n.org>
17496
17497 * Makefile.in (${lispsource}international/charprop.el): Move this
17498 target within "#ifdef HAVE_UNIDATA" and "#endif".
17499
175002008-02-01 Kenichi Handa <handa@m17n.org>
17501
17502 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17503 (shortlisp): Add ../lisp/language/tai-viet.el.
17504
175052008-02-01 Ulrich Mueller <ulm@gentoo.org>
17506
17507 * Makefile.in (${lispsource}international/charprop.el): Depend on
17508 temacs${EXEEXT}.
17509
175102008-02-01 Jason Rumney <jasonr@gnu.org>
17511
17512 * w32font.c (w32font_close): Delete the GDI font object.
17513
17514 * w32menu.c: Include character.h.
17515
17516 * w32proc.c: Likewise.
17517
17518 * w32select.c: Likewise.
17519
17520 * makefile.w32-in (w32proc.o): Depend on character.h.
17521
175222008-02-01 Jason Rumney <jasonr@gnu.org>
17523
17524 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17525
17526 * w32menu.c (syms_of_w32menu): Likewise.
17527
17528 * w32proc.c (syms_of_ntproc): Likewise.
17529
17530 * w32select.c (syms_of_w32select): Likewise.
17531
17532 * w32term.c (syms_of_w32term): Likewise.
17533
175342008-02-01 Jason Rumney <jasonr@gnu.org>
17535
17536 * w32font.c (w32font_draw): Delete brush after using it.
17537
175382008-02-01 Jason Rumney <jasonr@gnu.org>
17539
17540 * w32font.c (w32font_open): Don't set font_idx.
17541 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17542 to font settings.
17543 (w32font_draw): Fill background explicitly.
17544
175452008-02-01 Jason Rumney <jasonr@gnu.org>
17546
17547 * w32term.c (w32_initialize): Don't call w32font_initialize.
17548
17549 * w32font.c (w32font_info): Remove subranges.
17550 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17551 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17552 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17553 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17554 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17555 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17556 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17557 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17558 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17559 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17560 New symbols.
17561 (font_callback_data): New struct.
17562 (w32font_list, w32font_match): Use it.
17563 (w32font_open): Don't populate subranges.
17564 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17565 (w32font_encode_char): Always return unicode code-point as-is.
17566 (w32font_text_extents): Supply a transformation matrix to
17567 GetGlyphOutline. Never look up by glyph index. Avoid looping
17568 twice. Use unicode version of GetTexExtentPoint32 instead of
17569 glyph index version.
17570 (set_fonts_frame): Remove.
17571 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17572 set frame parameter. Use backward compatible fake foundries.
17573 Save generic family in extra slot under QCfamily. Make width slot
17574 constant. Save QCspacing value. Save list of scripts instead of
17575 binary subranges.
17576 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17577 (add_font_entity_to_list): Use font_callback_data struct. Filter
17578 unwanted fonts.
17579 (add_one_font_entity_to_list): Use font_callback_data struct.
17580 (w32_registry): Default to iso10646_1.
17581 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17582 string font registries. Don't fill in font name if it is a generic
17583 family name, fill family instead. Use spacing, family and script
17584 extra info to fill pitch, family and charset fields.
17585 (list_all_matching_fonts): Use font_callback_data struct.
17586 (unicode_range_for_char): Remove.
17587 (font_supported_scripts): New function.
17588 (w32font_initialize): Remove.
17589 (syms_of_w32font): Update which symbols are defined.
17590
175912008-02-01 Jason Rumney <jasonr@gnu.org>
17592
17593 * font.c (font_pixel_size): Reverse assq_no_quit args.
17594
17595 * w32term.h (FONT_WIDTH): Report max width, not average.
17596 (FONT_MAX_WIDTH): Remove.
17597 (FONT_AVG_WIDTH): New macro.
17598
17599 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17600 redefinition of FONT_WIDTH.
17601
17602 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17603 (w32_cache_char_metrics): Use FONT_WIDTH.
17604
17605 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17606
176072008-02-01 Jason Rumney <jasonr@gnu.org>
17608
17609 * w32font.c (w32font_open): Make lfHeight negative.
17610
17611 * w32fns.c (x_default_font_parameter): Use new style font name.
17612 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17613
176142008-02-01 Jason Rumney <jasonr@gnu.org>
17615
17616 * w32font.c (QCsubranges): New symbol.
17617 (w32font_open, w32font_has_char): Get subranges from subproperty
17618 of extra.
17619 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17620 (syms_of_w32font): Define :subranges symbol.
17621
17622 * font.c (font_put_extra): Expose externally.
17623
17624 * font.h (font_put_extra): Move declaration from font.c.
17625
17626 * font.c (Ffont_get): Use font driver to determine otf capability.
17627 (adjust_anchor): Check if driver defines anchor_point before using.
17628
17629 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17630 (w32font_draw): Use options.
17631 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17632 Fix detection of truetype fonts.
17633 (registry_to_w32_charset): Handle charsets other than iso8859-1
17634 expressed as lisp symbols.
17635 (w32_registry): Express charset as lisp symbol.
17636 (fill_in_logfont): Reverse pixel and point height logic.
17637 Don't set width here. Set quality to default.
17638
17639 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17640 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17641
17642 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17643 Remove redundant loop and allocation.
17644
17645 * makefile.w32-in (font.o, w32font.o): New objects.
17646 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17647 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17648
17649 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17650 STORE_XCHARB a valid l-value.
17651
17652 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17653 calculations for non-Truetype fonts.
17654 (x_draw_glyph_string): Sync with xterm.c.
17655 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17656 Remove redundant code.
17657 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17658
17659 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17660 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17661
17662 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17663 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17664
17665 * w32font.c: New file for w32 font backend.
17666
176672008-02-01 Kenichi Handa <handa@m17n.org>
17668
17669 * term.c: Don't include "buffer.h" twice.
17670
176712008-02-01 Kenichi Handa <handa@m17n.org>
17672
17673 * character.c (Funibyte_string): New function.
17674 (syms_of_character): Defsubr it.
17675
176762008-02-01 Jason Rumney <jasonr@gnu.org>
17677
17678 * w32term.c [USE_FONT_BACKEND]:
17679 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17680 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17681 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17682 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17683 (x_free_frame_resources): Sync with xterm.c.
17684
176852008-02-01 Andreas Schwab <schwab@suse.de>
17686
17687 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17688 char-table size.
17689
176902008-02-01 Kenichi Handa <handa@m17n.org>
17691
17692 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17693
176942008-02-01 Kenichi Handa <handa@m17n.org>
17695
17696 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17697 font_otf_gpos, add font_drive_otf.
17698
17699 * fontset.c (fontset_find_font): Pay attention to font size
17700 specified for a font.
17701 (reorder_font_vector): Check contents of font_def.
17702
17703 * font.c (struct otf_list): Delete it.
17704 (otf_list): Make it a lisp variable.
17705 (otf_open): Use lispy otf_list.
17706 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17707 (check_otf_features): New function.
17708 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17709 New functions.
17710 (font_drive_otf): New function merging font_otf_gsub and
17711 font_otf_gpos.
17712 (font_open_for_lface): New arg spec. Change argument order.
17713 (font_load_for_face): Adjust for the change of font_open_for_lface.
17714 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17715 Ffont_otf_gpos.
17716 (syms_of_font): Staticpro otf_list. Delete defsubr of
17717 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17718
17719 * xfaces.c (set_font_frame_param): Adjust for the change of
17720 font_open_for_lface.
17721
17722 * font.h (font_open_for_lface): Adjust prototype.
17723 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17724 member otf_drive.
17725 (font_otf_gsub, font_otf_gpos): Delete externs.
17726 (font_drive_otf): Extern it.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * font.c (font_at): If the window W is not on a window system,
17731 return Qnil.
17732
17733 * coding.c (produce_chars, encode_coding): Don't call
17734 insert_from_gap if no characters to produce.
17735
177362008-02-01 Kenichi Handa <handa@m17n.org>
17737
17738 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17739 Fclear_face_cache.
17740
17741 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17742
177432008-02-01 Miles Bader <miles@gnu.org>
17744
17745 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17746 Parse "--disable-font-backend" option.
17747 (standard_args): Add "--disable-font-backend" option.
17748
177492008-02-01 Kenichi Handa <handa@m17n.org>
17750
17751 * fontset.c (fontset_find_font): New function.
17752 (fontset_font): Use fontset_find_font.
17753 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17754 Register the specified font for all Latin characters.
17755 (new_fontset_from_font): Register the specified font for all Latin
17756 characters.
17757 (dump_fontset): For a realized fontset, include the base fontset
17758 name in the returned vector.
17759
177602008-02-01 Kenichi Handa <handa@m17n.org>
17761
17762 * character.h (CHAR_STRING): Cast C to unsigned on calling
17763 char_string.
17764
17765 * character.c (char_string): Type of arg C changed to unsigned.
17766 Signal an error if C is an invalid character code.
17767
17768 * editfns.c (general_insert_function, Fchar_to_string):
17769 Use CHARACTERP, not INTEGERP.
17770
177712008-02-01 Kenichi Handa <handa@m17n.org>
17772
17773 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17774 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17775
17776 * regex.c (analyse_first): Fix for multibyte characters in "case
17777 charset:" and "case categoryspec:".
17778
177792008-02-01 Andreas Schwab <schwab@suse.de>
17780
17781 * Makefile.in (LIBES): Move standard libraries to the end.
17782
177832008-02-01 Kenichi Handa <handa@m17n.org>
17784
17785 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17786 nonzero, don't shrink the buffer nextb.
17787
17788 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17789
17790 * coding.c (coding_alloc_by_making_gap): New arg offset.
17791 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17792 offset.
17793 (decode_coding_iso_2022): Update coding->safe_charsets.
17794 (decode_coding_gap): Temporarily set
17795 current_buffer->text->inhibit_shrinking to 1.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17800 indexing into elements of s->cmp and s->char2b.
17801
178022008-02-01 Juanma Barranquero <lekktu@gmail.com>
17803
17804 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17805
178062008-02-01 Kenichi Handa <handa@m17n.org>
17807
17808 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17809 target_multibyte instead of multibyte.
17810 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17811 (bcmp_translate): Change the argument name from multibyte to
17812 target_multibyte.
17813
178142008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 These changes are to compile a regexp into a pattern that can be
17817 used both for multibyte and unibyte targets.
17818
17819 * Makefile.in (search.o): Depend on charset.h.
17820
17821 * character.c (multibyte_char_to_unibyte_safe): New function.
17822
17823 * search.c: Include "charset.h".
17824 (compile_pattern_1): Delete argument multibyte. Don't set
17825 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17826 (compile_pattern): Don't compare cp->buf.target_multibyte.
17827 Compare cp->buf.charset_unibyte.
17828 (compile_pattern): Set cp->buf.target_multibyte.
17829
17830 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17831
17832 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17833
17834 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17835 multibyte. Change callers.
17836 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17837 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17838 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17839 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17840 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17841 (regex_compile): Make the compiled pattern usable both for
17842 multibyte and unibyte targets.
17843 (analyse_first): Make the fastmap usable both for multibyte and
17844 unibyte targets.
17845 (TRANSLATE_VIA_MULTIBYTE): Delete.
17846 (re_match_2_internal): Pay attention to the case that the
17847 multibyteness of bufp and target may be different.
17848
178492008-02-01 Kenichi Handa <handa@m17n.org>
17850
17851 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17852 empty box occupy at least one column width.
17853
178542008-02-01 Miles Bader <miles@gnu.org>
17855
17856 * Makefile.in: Remove redundant HAVE_XFT clause.
17857
178582008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17861
178622008-02-01 Kenichi Handa <handa@m17n.org>
17863
17864 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17865 being nil.
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17870
178712008-02-01 Kenichi Handa <handa@m17n.org>
17872
17873 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * search.c (simple_search): Fix previous change.
17878
178792008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * xftfont.c (ftfont_font_format): Extern declaration.
17882
17883 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17884
17885 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17886 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17887
17888 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17889 (ftfont_font_format): Fix previous change.
17890
17891 * font.h (Ffont_xlfd_name): EXFUN it.
17892
17893 * font.c (font_parse_xlfd): Fix the array size of `f'.
17894 (register_font_driver): Use EQ to compare driver->type.
17895
17896 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17897 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17898 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17899
179002008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17903 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17904
179052008-02-01 Kenichi Handa <handa@m17n.org>
17906
17907 * xfont.c (xfont_open): Set font->format.
17908
17909 * xftfont.c (xftfont_open): Set font->format.
17910
17911 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17912 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17913 (ftfont_open): Set font->format.
17914 (ftfont_font_format): New function.
17915
17916 * font.h (struct font): New member format.
17917
17918 * font.c (Qopentype): New variable.
17919 (syms_of_font): Defsym it.
17920 (Fquery_font): Change the format of the last element of the return
17921 value.
17922
179232008-02-01 Kenichi Handa <handa@m17n.org>
17924
17925 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17926 last resort.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * coding.c (detect_coding_charset): Fix detection of multi-byte
17931 charset.
17932
179332008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17934
17935 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * xdisp.c (get_next_display_element): Set it->face_id for the
17940 first component of a composition.
17941 (x_produce_glyphs): Check if the font is changed or not for composition.
17942
179432008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * fontset.c (Qlatin): New variable.
17946 (syms_of_fontset): Define it as a lisp symbol.
17947 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17948
179492008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * font.c (font_unparse_fcname): Pay attention to the case that
17952 some of font property is a null string.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * term.c: Include "composite.h".
17957 (encode_terminal_code): Output all components of composition.
17958 Check the size of encode_terminal_src.
17959 (produce_glyphs): For composition, call produce_composite_glyph.
17960 (append_composite_glyph, produce_composite_glyph): New functions.
17961
17962 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17963 is not found, get font_info from the current ascii face.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17968 buffer-file-name to Qnil before calling insert_from_buffer.
17969
17970 * font.c (font_unparse_fcname): Pay attention to the case that
17971 foundry is a null string.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17976
17977 * font.c (Qunicode_sip): New variable.
17978 (syms_of_font): Declare it as a Lisp symbol.
17979
17980 * font.h (Qunicode_sip): Extern it.
17981
179822008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * composite.c (get_composition_id): Pay attention to TAB component.
17985
17986 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17987 TAB. Adjust for the change of s->char2b which always points to
17988 the first element of allocated memory.
17989
17990 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17991
17992 * xdisp.c (handle_composition_prop): Set it->c to the first
17993 non-TAB component.
17994 (fill_composite_glyph_string): Change argument.
17995 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17996 (x_produce_glyphs): Fix handling of left/right padding.
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * coding.c (detect_coding_system): Fix for handling off
18001 inhibit_iso_escape_detection. Fix for the case that no coding
18002 system is defined for a specific coding category.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * font.c (font_matching_entity): Delete unused local var.
18007
18008 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18009 opening a font.
18010
18011 * fileio.c (Finsert_file_contents): On recovering a file, assume
18012 Unix-like eol.
18013 (choose_write_coding_system): On auto-saving a file, force
18014 Unix-like eol.
18015
18016 * coding.c (setup_coding_system): Fix setting of
18017 coding->common_flags based on eol_type.
18018 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18019 inherit from it.
18020
180212008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 * alloc.c (NSTATICS): Increas to 0x600.
18024
180252008-02-01 Kenichi Handa <handa@m17n.org>
18026
18027 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18028 (ftfont_list): Don't check :name property.
18029 (ftfont_match): New function.
18030 (ftfont_pattern_entity): If the pattern doesn't contain
18031 FC_SPACING, don't assume FC_MONO.
18032
18033 * font.h (struct font_driver): New member `match'.
18034 (font_update_drivers): Adjust prototype.
18035
18036 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18037 property of FONT.
18038 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18039 them unconditionally.
18040 (font_matching_entity): New function.
18041 (font_open_by_name): Try font_matching_entity if exact match is
18042 not found.
18043 (font_update_drivers): Delete the arg FONT. Return a list of
18044 actually used backends. Don't free faces, font caches here.
18045 Don't store data in frame parameters. Don't call x_set_font.
18046 (Ffont_spec): Store :name property as is.
18047 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18048 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18049 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18050 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18051 Call font->driver->otf_gsub instead of font_otf_gsub.
18052
18053 * frame.c (x_set_font_backend): Do more works that were done in
18054 font_update_drivers before.
18055
18056 * xfont.c (xfont_match): New function.
18057 (xfont_driver): Set xfont_driver.match to xfont_match.
18058 (xfont_draw): Set font in GC if necessary.
18059
18060 * ftxfont.c (ftxfont_match): New function.
18061 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18062
18063 * xftfont.c (xftfont_match): New function.
18064 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * font.h (struct font): New member scalable.
18069 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18070 (font_otf_gsub): Adjust prototype.
18071
18072 * font.c (font_otf_capability): Fix handling of the default langsys.
18073 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18074 Check the contents of SPEC.
18075 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18076 (check_gstring): New function.
18077 (REPLACEMENT_CHARACTER): New macro.
18078 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18079 glyph codes of GSTRING.
18080 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18081 (font_prepare_composition): Set cmp->glyph_len.
18082 (font_open_entity): Set font->scalable.
18083 (Ffont_get): Handle :otf property.
18084 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18085 functions.
18086 (Fquery_font): Use font->font.full_name.
18087 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18088 Sfont_otf_alternates.
18089
18090 * ftfont.c (ftfont_open): Set font->font.full_name and
18091 font->font.name properly. Fix calculation of font->font.height
18092 and font->min_width.
18093
18094 * ftxfont.c (ftxfont_create_gcs): New function.
18095 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18096 (ftxfont_draw_backgrond): Fix filling region.
18097 (ftxfont_default_fid): New function.
18098 (ftxfont_open): Set xfont->fid to the return value of
18099 ftxfont_default_fid.
18100 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18101 (ftxfont_done_face): Free only GCs that are created by
18102 ftxfont_create_gcs.
18103 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18104
18105 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18106 Clip to src->width, etc (not src->clip_XXX).
18107
18108 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18109 FontBackend frame parameter.
18110
181112008-02-01 Kenichi Handa <handa@m17n.org>
18112
18113 * font.h (struct font_driver_list): New member `on'.
18114 (Fclear_font_cache): EXFUN it.
18115 (font_update_drivers): Extern it.
18116
18117 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18118 (font_list_entities): Check driver_list->on.
18119 (register_font_driver): Initalize `on' member to 0.
18120 (font_update_drivers): New function.
18121 (Fclear_font_cache): Check driver_list->on.
18122
18123 * frame.h (Qfont_backend): Extern it.
18124 (x_set_font_backend): Extern it.
18125
18126 * frame.c (Qfont_backend): New variable.
18127 (frame_parms): New element for font-backend.
18128 (x_set_font_backend): New function.
18129
18130 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18131 FontBackend frame parameter.
18132 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18133 x_set_font_backend.
18134
18135 * xfont.c (xfont_list): Don't try listing by :name property if the
18136 name is not for XLFD.
18137
181382008-02-01 Kenichi Handa <handa@m17n.org>
18139
18140 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18141 (LGLYPH_SET_TO): New macros.
18142 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18143 element of G is vector or not.
18144 (font_at): Extern it.
18145
18146 * font.c: Include window.h.
18147 (font_lispy_object): New function.
18148 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18149 end of valid glyph.
18150 (font_close_object): Fix getting (struct font *).
18151 (font_at): New function.
18152 (Ffont_get): If FONT is a font-object, get entity from it.
18153 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18154 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18155 range check.
18156 (Ffont_at): New function.
18157 (syms_of_font): Defsubr Sfont_at.
18158
18159 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18160 before the entry for Qcomposition.
18161 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18162 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18163 the font in gstring.
18164 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18165 LGLYPH_FORM (g) to detect the end of valid glyph.
18166 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18167 we are composing with gstring.
18168
18169 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18170 Check if adjustment is vector or not.
18171
18172 * Makefile.in (font.o): Make it depends on window.h.
18173
181742008-02-01 Kenichi Handa <handa@m17n.org>
18175
18176 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18177 adjustment is vector or not.
18178
181792008-02-01 Miles Bader <miles@gnu.org>
18180
18181 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18186 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18187 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18188
18189 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18190 (DEVICE_DELTA): Fix typo.
18191 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18192 LGLYPH format.
18193
18194 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18195 the change of LGLYPH format.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * ftfont.c (ftfont_list): Fix typo.
18200 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18201
182022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18203
18204 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18205
18206 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18207 xftface_info is non-NULL.
18208
182092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18210
18211 * ftfont.c (ftfont_list): Move misplaced #endif.
18212
182132008-02-01 Kenichi Handa <handa@m17n.org>
18214
18215 * ftfont.c (ftfont_list): Pay attention to the case that
18216 FC_CAPABILITY is not defined.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * xftfont.c (xftfont_open): Set charset related members to -1.
18221
18222 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18223 QCname.
18224 (ftfont_open): Set charset related members to -1.
18225
18226 * fontset.c (Votf_script_alist): New variable.
18227 (syms_of_fontset): Initialize it.
18228 (fontset_font): Delete unused variable.
18229
18230 * fontset.h (Votf_script_alist): Extern it.
18231
18232 * font.c (font_find_for_lface): Optimize code.
18233
18234 * font.h (font_close_object, font_merge_old_spec): Extern them.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18239 (syms_of_font): Initialize them.
18240 (font_pixel_size): Allow float value in dpi.
18241 (font_prop_validate_type): Delete.
18242 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18243 Change caller.
18244 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18245 (font_prop_validate_extra): Delete.
18246 (font_prop_validate_spacing): New function.
18247 (font_property_table): Add elements for all known properties.
18248 (get_font_prop_index): Rename from check_font_prop_name. New
18249 argument FROM. Change caller.
18250 (font_prop_validate): Validate all known properties.
18251 (font_put_extra): Delete argument force. Change caller.
18252 (font_expand_wildcards): Make it static. Fix the way of shrinking
18253 the possible range.
18254 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18255 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18256 Change caller.
18257 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18258 (font_parse_fcname): Delete argument merge. Fix parsing of point
18259 size. Don't validate properties values here. Change caller.
18260 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18261 (font_open_by_name): Delete unused variable.
18262 (Ffont_spec): Likewise. Validate property values.
18263 (Ffont_match_p): New function.
18264
18265 * font.h (QCscalable): Extern it.
18266 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18267
18268 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18269
18270 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18271 (xfont_list_pattern): New function.
18272 (xfont_list): Use xfont_list_pattern.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * font.h (Flist_fonts): EXFUN it.
18277
182782008-02-01 Jason Rumney <jasonr@gnu.org>
18279
18280 * w32term.c (w32_initialize): Add back smoothing_type and
18281 smoothing_enabled definitions.
18282
182832008-02-01 Kenichi Handa <handa@m17n.org>
18284
18285 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18286 s->face->font on determining underline position.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18291 (font_has_char): Accept font-object too.
18292 (font_find_for_lface): Try at first with a size specified in face.
18293
182942008-02-01 Kenichi Handa <handa@m17n.org>
18295
18296 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18297 font_open_by_name.
18298
182992008-02-01 Kenichi Handa <handa@m17n.org>
18300
18301 * font.h (QCspacing, QCdpi): Extern them.
18302 (enum font_spacing): New enum.
18303 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18304
18305 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18306 (QCspacing, QCdpi): New variables.
18307 (syms_of_font): Initialize them.
18308 (font_pixel_size): New function.
18309 (font_put_extra): New function.
18310 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18311 in FONT_EXTRA.
18312 (font_parse_fcname): Handle enumerated values (e.g. bold).
18313 Fix handling font size. Add QCname property that contains only
18314 unknown properties.
18315 (font_score): Change argument. Change caller. Pay attention to
18316 FONT_PIXEL_SIZE_QUANTUM.
18317 (font_sort_entites, font_list_entities, font_find_for_lface)
18318 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18319 (Ffont_spec): Add QCname property that contains only unknown properties.
18320
18321 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18322 include weight in listing pattern, instead check weight of each
18323 listed font. Don't include scalable in pattern. Pay attention to
18324 FONT_PIXEL_SIZE_QUANTUM.
18325
183262008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * font.c (font_parse_fcname): Fix parsing of point-size.
18329 (font_unparse_fcname): Produce symbolic names for style properties.
18330 (font_list_entities): Handle float size correctly.
18331 (font_open_by_name): Prefer `normal' property values if the name
18332 doesn't specify them.
18333
18334 * fontset.c (Finternal_char_font): Use font_get_name, not
18335 Ffont_xlfd_name.
18336
18337 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18338 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18339 pattern. Don't force scalable.
18340
18341 * xftfont.c (xftfont_open): For generating a name, start from
18342 96-byte buffer.
18343
183442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18345
18346 * frame.h (x_new_fontset2): Fix prototype.
18347
183482008-02-01 Kenichi Handa <handa@m17n.org>
18349
18350 * font.h (struct font_driver): Delete member parse_name.
18351 (font_match_p, font_get_spec, font_parse_fcname)
18352 (font_unparse_fcname): Extern them.
18353 (font_get_name): Adjust prototype.
18354
18355 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18356 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18357 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18358 unnecessary checks for weight, slant, and swidth.
18359 (font_parse_fcname): New function.
18360 (font_unparse_fcname): New function.
18361 (font_parse_name): New function.
18362 (font_match_p): New function.
18363 (font_get_name): Change return value to Lisp string.
18364 (font_get_spec): New function.
18365 (Qunspecified, Qignore_defface): Don't extern them.
18366 (font_find_for_lface): Assume that LFACE is fully specified.
18367 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18368 object, use it for FACE.
18369 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18370 driver->parse_name.
18371 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18372
18373 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18374 prototype.
18375
18376 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18377 argument F. Don't call Fnew_fontset. Instead, directly call
18378 make_fontset.
18379
18380 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18381
18382 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18383 of x_new_fontset2.
18384
18385 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18386 (Qsans__serif): New variables.
18387 (ftfont_generic_family_list): New variable.
18388 (syms_of_ftfont): Initialize the above variables.
18389 (ftfont_pattern_entity): Delete argument NAME.
18390 (ftfont_list_generic_family): New function.
18391 (ftfont_parse_name): Delete this function.
18392 (ftfont_list): Try generic family only when FcFontList found no font.
18393 (ftfont_list_family): Fix args to FcObjectSetBuild.
18394
18395 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18396 object in attrs[LFACE_FONT_INDEX].
18397 (set_lface_from_font_name): Cancel all changes for font-backend.
18398 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18399 function.
18400 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18401 font object in QCfont attribute.
18402 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18403 (realize_default_face) [USE_FONT_BACKEND]: Call
18404 set_lface_from_font_and_fontset.
18405
18406 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18407 "fixed", and signal error here if no suitable font was found.
18408
18409 * xfont.c (xfont_parse_name): Delete this function.
18410
18411 * xftfont.c (xftfont_open): Change coding style of error
18412 handling. Generate fontconfig's fontname pattern.
18413
18414 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18415 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18416
18417 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18418 Both args FONTSET and FONT_OBJECT must be existing ones.
18419
184202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18421
18422 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18423
184242008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18427
18428 * font.h (struct font): Fix typo.
18429
18430 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18431 XLFD_XXX_INDEX.
18432 (enum xlfd_field_mask): New enum.
18433 (intern_font_field): Changed argument. Change caller. If digits
18434 are followed by non-digits, return a symbol.
18435 (font_expand_wildcards): New function.
18436 (font_parse_xlfd): Fix wildcard handling.
18437 (Ffont_spec): If :name is specified, reflect the info in the other
18438 properties.
18439
18440 * ftfont.c (ftfont_pattern_entity): Fix typo.
18441 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18442 locale.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18447
18448 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18449 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18450 registry doesn't specify encoding part.
18451 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18452 (font_open_by_name): At first try parsing the name.
18453 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18454 as Lisp symbols.
18455
18456 * fontset.c (reorder_font_vector): Pay attention to the case that
18457 the 3rd element of font_def is nil.
18458 (fontset_font): For the default fontset, append one more fontset
18459 elements for a script-based font specification. Don't add script
18460 attribute on finding a font.
18461 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18462 font name.
18463 (fontset_ascii_font): If a font can't be opened, return nil.
18464
18465 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18466 (ftfont_pattern_entity): New function.
18467 (ftfont_get_cache): Assume that freetype_font_cache is already
18468 initialized.
18469 (ftfont_list): Handle the case that a file is specified in font
18470 name. Use ftfont_pattern_entity to generate entities.
18471 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18472 (syms_of_ftfont): Initialize freetype_font_cache.
18473
18474 * xftfont.c (xftfont_open): Make the font name fontconfig's
18475 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18476 (xftfont_close): Free font->font.name if not NULL.
18477
18478 * xfont.c (xfont_list): If script is specified for a font, return
18479 null_vector.
18480 (xfont_list_family): Declare argument type.
18481
18482 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18483 name, set LFACE_FONT (lface) to nil.
18484
18485 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18486 return Qnil.
18487
184882008-02-01 Kenichi Handa <handa@m17n.org>
18489
18490 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18491 (standard_args): Add "-enable-font-backend".
18492
184932008-02-01 Kenichi Handa <handa@m17n.org>
18494
18495 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18496 (struct xftdraw_list, xftdraw_list): Delete them.
18497 (register_xftdraw, check_xftdraw): Delete them.
18498 (xftfont_prepare_face): Don't call register_xftdraw.
18499 (xftfont_done_face): Don't call check_xftdraw.
18500 (xftfont_draw): Get background color only when with_background is
18501 nonzero.
18502
18503 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18504
185052008-02-01 Kenichi Handa <handa@m17n.org>
18506
18507 These changes are for the new font handling codes.
18508
18509 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18510 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18511 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18512 (FONTSRC, FONTOBJ): New variables.
18513 (obj): Add $(FONTOBJ).
18514 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18515 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18516 @LIBOTF_LIBS@.
18517 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18518 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18519
18520 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18521
18522 * character.h (Vscript_representative_chars): Extern it.
18523
18524 * character.c (Vscript_representative_chars): New variable.
18525 (syms_of_character): Declare it as a Lisp variable.
18526
18527 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18528 enable_font_backend is nonzero, accept the composition method
18529 COMPOSITION_WITH_GLYPH_STRING.
18530
18531 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18532 enumeration COMPOSITION_WITH_GLYPH_STRING.
18533
18534 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18535 members clip_x, clip_y, clip_width, and clip_height.
18536 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18537
18538 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18539 --enable-font-backend. Call syms_of_font.
18540
18541 * fns.c (assoc_no_quit): New function.
18542
18543 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18544 (face_for_font, new_fontset_from_font)
18545 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18546
18547 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18548 (fontset_font, fontset_ascii, face_for_char)
18549 (make_fontset_for_ascii_face, Ffont_info)
18550 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18551 is nonzero, use font-backend mechanism.
18552 (find_font_encoding): Make it non-static.
18553 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18554 New functions.
18555
18556 * frame.h (struct frame): New members resx and resy.
18557 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18558 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18559
18560 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18561 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18562
18563 * lisp.h (assoc_no_quit): Extern it.
18564
18565 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18566 Through out the file, use FONT_INFO_FROM_FACE instead of
18567 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18568 rif->per_char_metric.
18569 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18570 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18571 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18572 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18573 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18574 nonzero, use font-backend mechanism.
18575 (get_per_char_metric): New function.
18576
18577 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18578 (set_lface_from_font_name)
18579 (set_font_frame_param, free_realized_face)
18580 (prepare_face_for_display, clear_face_gcs)
18581 (Finternal_set_font_selection_order, realize_x_face)
18582 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18583 font-backend mechanism.
18584 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18585 (load_face_font) [USE_FONT_BACKEND]: Abort.
18586 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18587 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18588
18589 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18590 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18591 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18592 nonzero, register all available font drivers. Call
18593 x_default_font_parameter for deciding a font.
18594 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18595
18596 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18597 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18598 (x_set_glyph_string_clipping_exactly)
18599 (x_compute_glyph_string_overhangs)
18600 (x_draw_glyph_string_foreground)
18601 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18602 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18603 enable_font_backend is nonzero, use font-backend mechanism.
18604 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18605
186062008-02-01 Kenichi Handa <handa@m17n.org>
18607
18608 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18609 system_eol_type.
18610 (syms_of_coding): Initialize system_eol_type.
18611
18612 * process.c (Fset_process_coding_system): Inherit system's eol
18613 format if necessary.
18614
186152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18616
18617 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18618
186192008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 * coding.c (decode_eol): Pay attention to buffer relocation in
18622 del_range_2.
18623 (decode_coding): Call decode_eol before restoring undo_list.
18624
186252008-02-01 Kenichi Handa <handa@m17n.org>
18626
18627 * charset.c (Fdefine_charset_internal): Fix setting of
18628 emacs_mule_bytes.
18629
186302008-02-01 Kenichi Handa <handa@m17n.org>
18631
18632 * keyboard.c (read_char): Check if C is a character or not before
18633 looking up Vkeyboard_translate_table.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18638 condition to terminate the loop.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * coding.c (produce_composition): Compare charbuf[i] instead of
18643 args[i] against 0.
18644 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18645
186462008-02-01 Kenichi Handa <handa@m17n.org>
18647
18648 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18649 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18650 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18651 detect_coding.
18652 (emacs_mule_char): Handle old style (Emacs 20) component character
18653 of a composition.
18654 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18655 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18656 composition rule.
18657 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18658
186592008-02-01 Kenichi Handa <handa@m17n.org>
18660
18661 * coding.c (encode_coding_ccl): Allocate destination dynamically
18662 when necessary.
18663
186642008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18667 the loop. When quitted, show a proper error message.
18668
186692008-02-01 Kenichi Handa <handa@m17n.org>
18670
18671 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18672 src->clip_head and src->clip_tail temporarily instead of src->hl.
18673
18674 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18675 character sequence.
18676 (Fccl_execute_on_string): Use ASET, not XSET.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * coding.c (decode_coding): Fix the condition of terminating the
18685 decoding loop.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * data.c (Faset): On setting a character bigger than 255 in a
18690 unibyte string, signal an error instead of make the string multibyte.
18691
186922008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18695 made by a mapping table.
18696
186972008-02-01 Kenichi Handa <handa@m17n.org>
18698
18699 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18700 not.
18701 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18702 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18703
18704 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18705 s->face is NULL or not.
18706
187072008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18710 (x_draw_glyph_string): Fix drawing of right_overhang and
18711 left_overhang around/on cursor.
18712
18713 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * coding.c (Fdefine_coding_system_internal)
18722 (Fdefine_coding_system_alias): Avoid a duplicated element in
18723 Vcoding_system_alist.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18728
18729 * coding.c (Qcoding_system_define_form): New variable.
18730 (syms_of_coding): Intern and staticpro it.
18731 (Fcoding_system_p): Check Qcoding_system_define_form.
18732 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18733
18734 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18735 Fcoding_system_p.
18736 (CHECK_CODING_SYSTEM): If ID is not available, call
18737 Fcheck_coding_system.
18738 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18739 Try also Fcheck_coding_system.
18740
187412008-02-01 Kenichi Handa <handa@m17n.org>
18742
18743 * coding.c (code_conversion_restore): GCPRO arg.
18744
187452008-02-01 Kenichi Handa <handa@m17n.org>
18746
18747 * character.c (lisp_string_width): Check multibyteness of STRING.
18748
187492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18750
18751 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18752 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18753 (decode_mac_font_name): Use decode_coding_c_string instead of
18754 decode_coding.
18755 (x_load_font): Initialize fontp->fontset to -1. Set
18756 fontp->encoding_type.
18757
187582008-02-01 Kenichi Handa <handa@m17n.org>
18759
18760 * search.c (search_buffer): Give up BM search on case-fold-search
18761 if one of a target character has a case-equivalence of different
18762 byte length even if that target charcter is an ASCII.
18763 (simple_search): Fix calculation of byte length of matched text.
18764 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * coding.c (decode_coding): Fix handling of invalid bytes.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18773 Unicode characters.
18774
187752008-02-01 Kenichi Handa <handa@m17n.org>
18776
18777 * coding.c (encode_coding_object): If a pre-write-conversion
18778 function makes a new buffer, kill it.
18779
187802008-02-01 Kenichi Handa <handa@m17n.org>
18781
18782 * coding.c (QCascii_compatible_p): New variable.
18783 (syms_of_coding): Initialize it.
18784 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18785 calling string_char.
18786 (record_conversion_result): Add `default:' case.
18787 (coding_charset_list): Delete unused variable `coding_type'.
18788 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18789 property in the plist of the coding system.
18790 (Fcoding_system_put): Check QCascii_compatible_p.
18791
187922008-02-01 Miles Bader <miles@gnu.org>
18793
18794 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18795 removed calculation of frame `f', as it's now used.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18800 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18801 (UNIDATA): New variable.
18802 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18803 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18804 $(RUN_TEMACS) unconditionally.
18805
188062008-02-01 Kenichi Handa <handa@m17n.org>
18807
18808 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18809 (admindir): New variable.
18810 ($(lispsource)international/charprop.el): New target.
18811
188122008-02-01 Miles Bader <miles@gnu.org>
18813
18814 * character.c (chars-in-region): Remove obsolete function.
18815 (syms_of_character): Remove its initialization.
18816
188172008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18818
18819 * w32select.c (validate_coding_system)
18820 (setup_windows_coding_system): New functions.
18821 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18822 setup_windows_coding_system.
18823 (setup_config, Fw32_get_clipboard_data): Use
18824 validate_coding_system.
18825 (Fx_selection_exists): Move call to setup_config to a place
18826 where signals are allowed.
18827
18828 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18829 (Fcheck_coding_system): Add declarations.
18830
188312008-02-01 Kenichi Handa <handa@m17n.org>
18832
18833 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18834
188352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18836
18837 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18838 string as the second argument for x_new_fontset.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18843 (encode_coding_object): Use safe_call instead of call2.
18844
188452008-02-01 Kenichi Handa <handa@m17n.org>
18846
18847 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18848
18849 * Makefile.in (lisp): Include charprop.el.
18850
188512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18852
18853 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18854 Not sure if it's unnecessary.
18855
188562008-02-01 Steven Tamm <steventamm@mac.com>
18857
18858 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18859 some possibly unnecessary fontset checking code that crashed
18860 when creating a new frame.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18865 lookup_face.
18866
18867 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18868
18869 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18870
188712008-02-01 Kenichi Handa <handa@m17n.org>
18872
18873 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18874 (coding_charset_list): New function.
18875
18876 * coding.h (coding_charset_list): Extern it.
18877
188782008-02-01 Kenichi Handa <handa@m17n.org>
18879
18880 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18881 concatenation of family and registry.
18882
188832008-02-01 Kenichi Handa <handa@m17n.org>
18884
18885 * character.h (BYTE8_STRING): Fix typo.
18886
18887 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18888 string to multibyte (sync to HEAD).
18889
18890 * casefiddle.c (casify_region): Handle changes in byte-length
18891 using replace_range_2 (sync to HEAD).
18892
188932008-02-01 Andreas Schwab <schwab@suse.de>
18894
18895 * chartab.c (map_char_table): GCPRO table and arg.
18896
188972008-02-01 Kenichi Handa <handa@m17n.org>
18898
18899 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18900 already at limit.
18901
189022008-02-01 Kenichi Handa <handa@m17n.org>
18903
18904 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18905 instead of fast_c_string_match_ignore_case.
18906 (find_font_encoding): Change argument to Lisp_Object. Use
18907 fast_string_match_ignore_case instead of
18908 fast_c_string_match_ignore_case. Change caller.
18909
189102008-02-01 Kenichi Handa <handa@m17n.org>
18911
18912 * xdisp.c (get_next_display_element): In unibyte case, decide to
18913 display in octal form by checking a character by
18914 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18915
18916 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18917
18918 * character.c (unibyte_has_multibyte_table): New variable.
18919
18920 * character.h (unibyte_has_multibyte_table): Extern it.
18921 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18922
189232008-02-01 Kenichi Handa <handa@m17n.org>
18924
18925 * coding.c (encode_coding_iso_2022): Fix handling of charset
18926 annotation.
18927
189282008-02-01 Kenichi Handa <handa@m17n.org>
18929
18930 * coding.c (setup_coding_system): If coding_system is nil, use
18931 Qundecided.
18932 (Fterminal_coding_system): Return nil if terminal coding system is
18933 `undecided'.
18934 (syms_of_coding): Define coding-system `undecided' here. Setup
18935 terminal_coding as `undecided'.
18936
189372008-02-01 Kenichi Handa <handa@m17n.org>
18938
18939 * xdisp.c (message_dolog, set_message_1): Call
18940 unibyte_char_to_multibyte with arg type int.
18941
18942 * lread.c (read1): Fix reading of a char-table.
18943
18944 * print.c (print_object): Include sub char-table in circularities
18945 detection.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18950 Append the found sequences in car of ARGS instead of prepending.
18951
189522008-02-01 Kenichi Handa <handa@m17n.org>
18953
18954 * fileio.c (report_file_error): Make a unibyte string from
18955 strerror (errorno).
18956 (Fsubstitute_in_file_name): Fix the arg to
18957 unibyte_char_to_multibyte. It is evaluated twice.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18966 BOM is not found.
18967 (detect_coding, detect_coding_system): Optimization for ISO-2022
18968 when no 8-bit data is found.
18969
189702008-02-01 Jason Rumney <jasonr@gnu.org>
18971
18972 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18973
189742008-02-01 Kenichi Handa <handa@m17n.org>
18975
18976 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18977 CHARS.
18978
189792008-02-01 Steven Tamm <steventamm@mac.com>
18980
18981 * macterm.c (mac_encode_char): Add charset argument and update
18982 to use encoding_type.
18983 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18984 switch to pure fontset.
18985 (decode_mac_font_name): Temporarily remove decoding.
18986 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18987 (x_load_font): Temporarily remove encoding.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * xfaces.c (Fface_font): If frame is not on a window system,
18992 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18993 refer to face->font.
18994 (split_font_name_into_vector, build_font_name_from_vector)
18995 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18996 when HAVE_WINDOW_SYSTEM is defined.
18997
189982008-02-01 Kenichi Handa <handa@m17n.org>
18999
19000 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19001 (x_produce_glyphs): Fix setting of members of cmp in case
19002 cmp->glyph_len is zero.
19003
19004 * fontset.c (Fset_fontset_font): Fix docstring.
19005 (Ffontset_info): Make it backward compatible. New arg ALL.
19006
190072008-02-01 Kim F. Storm <storm@cua.dk>
19008
19009 * process.c (read_process_output): Grow decoding_buf when needed;
19010 this could cause a crash in allocate_string and compact_small_strings.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * coding.c (setup_coding_system): Set coding->common_flags
19019 correctly for raw-text.
19020 (consume_chars): On encoding unibyte text by raw-text, don't check
19021 multibyte form.
19022 (encode_coding): On encoding by raw-text, never use translation tables.
19023
19024 * fileio.c (e_write): Short cut for the case of no encoding.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * coding.c (detect_coding, detect_coding_system): Delete unused
19029 variables.
19030
190312008-02-01 Kenichi Handa <handa@m17n.org>
19032
19033 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19034 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19035
190362008-02-01 Kenichi Handa <handa@m17n.org>
19037
19038 * coding.c (Ffind_coding_systems_region_internal): Include
19039 raw-text and no-conversion in the result.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19044 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19045 FONT_DEF.
19046 (font_def_arg, add_arg, from_arg, to_arg): New args.
19047 (set_fontset_font): Change argument.
19048 (Fset_fontset_font): Fix for the case that TARGET is a script
19049 name and charset name.
19050 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19051
190522008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * fontset.c (fontset_font): Rename from fontset_face. Change return
19055 value.
19056 (face_suitable_for_char_p, face_for_char): Adjust for the change
19057 of fontset_font.
19058 (make_fontset_for_ascii_face): Fix setting of the fontset element
19059 for ASCII.
19060 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19061 to get a font name.
19062 (Ffontset_info): Adjust for the change of fontset_font.
19063
19064 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19065
19066 * character.h (LEADING_CODE_LATIN_1_MIN)
19067 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19068
190692008-02-01 Kenichi Handa <handa@m17n.org>
19070
19071 * editfns.c (check_translation): New function.
19072 (Ftranslate_region_internal): Handle M:N mapping.
19073
190742008-02-01 Kenichi Handa <handa@m17n.org>
19075
19076 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19077
190782008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19081 goto invalid_code.
19082 (decode_coding_iso_2022): Fix handling of invalid designation.
19083
19084 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19085 after calling code_conversion_save.
19086
190872008-02-01 Kenichi Handa <handa@m17n.org>
19088
19089 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19090
19091 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19092
19093 * fontset.c: Include "intervals.h".
19094 (fontset_face): Fix comparing of Lisp_Objects.
19095 (free_face_fontset, new_fontset_from_font_name): Fix
19096 Lisp_Object/int mixup.
19097
19098 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19099
19100 * coding.c: Add many prototypes for static functions.
19101 (get_translation_table): Allow max_lookup to be NULL.
19102 (decode_coding, Ffind_coding_systems_region_internal)
19103 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19104 get_translation_table with max_lookup NULL.
19105
191062008-02-01 Kenichi Handa <handa@m17n.org>
19107
19108 * coding.c (get_translation_table): Declare it as Lisp_Object.
19109 (LOOKUP_TRANSLATION_TABLE): New macro.
19110 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19111 instead of CHAR_TABLE_REF.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19116 annotation data format.
19117 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19118 Change arguments FROM and TO to single argument NCHARS. Change caller.
19119 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19120 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19121 (decode_coding_ccl, decode_coding_charset): Pay attention to
19122 coding->charbuf_used.
19123 (get_translation): New function.
19124 (produce_chars): New arguments translation_table and last_block.
19125 Translate characters here. Return number of carryover chars.
19126 Change caller.
19127 (produce_composition): New argument pos. Change caller.
19128 Adjust for the change of annotation data format.
19129 (produce_charset, produce_annotation): Likewise.
19130 (decode_coding, encode_coding): Don't call translate_chars.
19131 (consume_chars): New arg translation_table. Change caller.
19132 (translate_chars): Delete.
19133 (syms_of_coding): Make translation-table's number of extra slots 2.
19134
191352008-02-01 Kenichi Handa <handa@m17n.org>
19136
19137 * search.c (simple_search): Fix setting this_pos_byte in backward
19138 search.
19139
19140 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19141 byte sequence.
19142 (detect_coding_ccl): Fix setting of the variable valids.
19143
191442008-02-01 Kenichi Handa <handa@m17n.org>
19145
19146 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19147
19148 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19149
19150 * editfns.c (Ftranslate_region_internal): Rename from
19151 Ftranslate_region. Accept a char-table in TABLE.
19152 (syms_of_editfns): Defsubr Stranslate_region_internal.
19153
19154 * xfaces.c (set_lface_from_font_name): If a font is specified for
19155 a frame, generate a fontset from the font.
19156 (build_scalable_font_name): If the scalable font is requested for
19157 a specific size, don't change that size.
19158 (try_font_list): Try a scalable font also in the case that a
19159 pattern string is specified.
19160
191612008-02-01 Kenichi Handa <handa@m17n.org>
19162
19163 * xfaces.c (Fface_font): New optional arg CHARACTER.
19164
191652008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * charset.h (CHARSET_OFFSET): New macro.
19168
191692008-02-01 Kenichi Handa <handa@m17n.org>
19170
19171 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19172
19173 * fontset.c (fontset_face): Handle the case that repertory is a
19174 char-table.
19175 (find_font_encoding): Return nil for unknown encoding.
19176 (Fset_fontset_font): Ignore a font of unknown encoding.
19177
191782008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * keymap.c (describe_vector): Handle default value of a char table.
19181
19182 * fontset.c (fontset_face): Handle fallback fonts correctly.
19183 (Ffontset_info): Return infomation about fallback fonts.
19184
191852008-02-01 Kenichi Handa <handa@m17n.org>
19186
19187 * fontset.c (FONTSET_DEFAULT): New macro.
19188 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19189 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19190 the case that it is nil.
19191 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19192 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19193
19194 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19195 subset or superset.
19196
191972008-02-01 Kenichi Handa <handa@m17n.org>
19198
19199 * emacs.c (main): Call init_charset after syms_of_XXX.
19200
19201 * charset.c (Vcharset_map_directory): Delete.
19202 (Vcharset_map_path): New variable.
19203 (load_charset_map_from_file): Use Vcharset_map_path instead.
19204 (init_charset): Initialize Vcharset_map_path.
19205 (syms_of_charset): Delete declaration of "charset-map-directory",
19206 add declaration of "charset-map-path".
19207
192082008-02-01 Kenichi Handa <handa@m17n.org>
19209
19210 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19211 ASCII only string.
19212
19213 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19214
19215 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19216 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19217
192182008-02-01 Kenichi Handa <handa@m17n.org>
19219
19220 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19221
19222 * coding.c (QCmnemonic, QCdefalut_char)
19223 (QCdecode_translation_table, QCencode_translation_table)
19224 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19225 (get_translation_table): Return a list of translation tables if
19226 necessary.
19227 (decode_coding): Call get_translation_table with ENCODEP 0.
19228 (char_encodable_p): If translation_table is non-nil, always call
19229 translate_char.
19230 (Fdefine_coding_system_internal): Accept list of translation
19231 tables as :encode-translation-table and :decode-translation-table.
19232 (Fcoding_system_put): New function.
19233 (syms_of_coding): Declare new symbols. Defsubr
19234 Scoding_system_put.
19235 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19236 typically JISX0212.
19237
19238 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19239 when the charset is superset type.
19240
19241 * character.c (translate_char): Accept list of translation tables.
19242
192432008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19246 (CODING_ATTR_TRANS_TBL): New macro.
19247
19248 * coding.c (get_translation_table): New function.
19249 (translate_chars): Fix the bug of skipping annotation data.
19250 (decode_coding, encode_coding): Utilize get_translation_table.
19251 (char_encodable_p, Funencodable_char_position): Translate char if
19252 necessary.
19253 (Ffind_coding_systems_region_internal)
19254 (Fcheck_coding_systems_region): Setup translation table for encode
19255 in a coding system attribute vector in advance.
19256 (Fdefine_coding_system_internal): Allow a symbol as translation
19257 table. For shift-jis type coding system, allow 4th charset.
19258
192592008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19262
19263 * xdisp.c (get_next_display_element): Pass -1 as POS to
19264 FACE_FOR_CHAR if displaying a C-string.
19265
192662008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * composite.c (get_composition_id): Handle xoff and yoff in a
19269 composition rule.
19270
19271 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19272 (struct composition): New member lbearing and rbearing.
19273
19274 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19275 (x_get_glyph_overhangs): Handle a composition glyph.
19276 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19277
19278 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19279 composition glyph.
19280
192812008-02-01 Kenichi Handa <handa@m17n.org>
19282
19283 * print.c: Include charset.h.
19284 (Vprint_charset_text_property): New variable.
19285 (Qdefault): Extern it.
19286 (PRINT_STRING_NON_CHARSET_FOUND)
19287 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19288 (print_check_string_result): New variable.
19289 (print_check_string_charset_prop): New function.
19290 (print_prune_charset_plist): New variable.
19291 (print_prune_string_charset): New function.
19292 (print_object): Call print_prune_string_charset if
19293 Vprint_charset_text_property is not t.
19294 (print_interval): Print nothing if interval->plist is nil.
19295 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19296 variable. Init and staticpro print_prune_charset_plist.
19297
192982008-02-01 Kenichi Handa <handa@m17n.org>
19299
19300 * fontset.c (new_fontset_from_font_name): Use the specified font
19301 for all characters in the new fontset.
19302
19303 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19304 OBJECT args.
19305
19306 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19307 OBJECT args for composition too.
19308
19309 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19310 OBJECT args.
19311
193122008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19315
19316 * fontset.c (reorder_font_vector): Adjust for the change of
19317 FONT_DEF format.
19318 (fontset_face): New arg id. Change caller.
19319 (face_for_char): New args pos and object.
19320 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19321 (fs_query_fontset): Check NAME by Fassoc too.
19322 (Fset_fontset_font): Allow non-XLFD font name.
19323 (Ffontset_info): Adjust for the change of FONT_DEF format.
19324
19325 * fontset.h (face_for_char): Adjust prototype.
19326
19327 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19328 (append_space, extend_face_to_end_of_line)
19329 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19330 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19331
19332 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19333 POS and OBJECT args.
19334
19335 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19336 POS and OBJECT args.
19337
193382008-02-01 Jason Rumney <jasonr@gnu.org>
19339
19340 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19341 of GlobalAlloc'ed memory.
19342
193432008-02-01 Kenichi Handa <handa@m17n.org>
19344
19345 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19346
19347 * charset.h (charset_table_used): Delete extern.
19348
19349 * charset.c (charset_table_used): Make it static.
19350 (map_charset_chars): Fix args to c_function with.
19351
19352 * chartab.c (map_sub_char_table_for_charset): Fix args to
19353 c_function with.
19354
19355 * coding.h (enum coding_result_code): Delete
19356 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19357
19358 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19359 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19360 (Vlast_code_conversion_error): New variables.
19361 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19362 (ONE_MORE_BYTE): Record error if any instead of signaling an
19363 error. If non-ASCII multibyte char is found, return the negative
19364 value of the code. All callers changed to check it.
19365 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19366 (record_conversion_result): New function. Change all codes setting
19367 coding->result to call this function.
19368 (detect_coding_utf_8, decode_coding_utf_8)
19369 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19370 Don't use the local variable incomplete.
19371 (emacs_mule_char): Change the second arg to `const'.
19372 (decode_coding): Fix of flushing out unprocessed data.
19373 (make_conversion_work_buffer): Fix making of a work buffer.
19374 (decode_coding_object): Return coding->dst_object.
19375
19376 * fontset.c (set_fontset_font): Fix args.
19377
19378 * lisp.h (CHARACTERBITS): Define as 22.
19379
19380 * process.c (send_process): Be sure to set coding->src_multibyte.
19381
19382 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19383
193842008-02-01 Kenichi Handa <handa@m17n.org>
19385
19386 * xdisp.c (handle_auto_composed_prop): Give limit to
19387 Fnext_single_char_property_change.
19388
193892008-02-01 Kenichi Handa <handa@m17n.org>
19390
19391 * composite.c (syms_of_composite): Don't make the composition hash
19392 table weak.
19393
19394 * fontset.c (Fset_fontset_font): Fix docstring.
19395
19396 * lisp.h (detect_coding_system): Adjust prototype.
19397
19398 * fileio.c (kill_workbuf_unwind): Delete this function.
19399 (Finsert_file_contents): Adjust the call of detect_coding_system.
19400 Get conversion_buffer by code_conversion_save. Use the macro
19401 CODING_MAY_REQUIRE_DECODING. After decoding, update
19402 coding_system.
19403
19404 * coding.h (make_conversion_work_buffer): Delete extern.
19405 (code_conversion_save): Extern it.
19406
19407 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19408 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19409 (decode_coding_utf_8): Don't do eol converion.
19410 (detect_coding_utf_16): Check coding->src_chars, not
19411 coding->src_bytes. Add heuristics for those that have no signature.
19412 (decode_coding_emacs_mule, decode_coding_iso_2022)
19413 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19414 Don't do eol converion.
19415 (adjust_coding_eol_type): Return a new coding system.
19416 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19417 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19418 each change.
19419 (decode_coding): Pay attention to undo_list. Do eol conversion for
19420 all types of coding-systems (if necessary).
19421 (Vcode_conversion_work_buf_list): Delete it.
19422 (Vcode_conversion_reused_workbuf): Rename from
19423 Vcode_conversion_reused_work_buf.
19424 (Vcode_conversion_workbuf_name): New variable.
19425 (reused_workbuf_in_use): New variable.
19426 (make_conversion_work_buffer): Delete the arg DEPTH.
19427 (code_conversion_restore): Change argument to cons.
19428 (code_conversion_save): Delete the argument BUFFER. Change callers.
19429 (detect_coding_system): New argument src_chars. Change callers.
19430 Fix for utf-16 detection.
19431 (init_coding_once): Don't use ISO_carriage_return.
19432 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19433 reused_workbuf_in_use.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * keymap.c (store_in_keymap): Pay attention to the case that idx
19438 is a cons specifying a character range.
19439
194402008-02-01 Kenichi Handa <handa@m17n.org>
19441
19442 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19443 HANDLED_RECOMPUTE_PROPS.
19444
19445 * coding.c (Fdefine_coding_system_internal): Fix checking of
19446 ascii compatibility.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * charset.c (find_charsets_in_text): Delete unused locale variable.
19451 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19452
19453 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19454 Resync charset_list to Vemacs_mule_charset_list.
19455
19456 * keymap.c (store_in_keymap): Pay attention to the case that idx
19457 is a cons specifying a character range.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * composite.c (update_compositions): Bind inhibit-read-only, etc
19462 to t before calling remove-list-of-text-properties.
19463
19464 * print.c (print_object): Always print ASCII chars as is.
19465
194662008-02-01 Kenichi Handa <handa@m17n.org>
19467
19468 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19469
19470 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19471 is a char table.
19472
194732008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * xfaces.c (set_lface_from_font_name): Fix for the case that
19480 FONTNAME is not fontset name.
19481
194822008-02-01 Kenichi Handa <handa@m17n.org>
19483
19484 * fns.c (base64_encode_1): Fix previous change.
19485
194862008-02-01 Kenichi Handa <handa@m17n.org>
19487
19488 * fontset.c (set_fontset_font): New function.
19489 (Fset_fontset_font): If a font is specified for a charset, use
19490 map_charset_chars to store the font spec in a fontset.
19491
194922008-02-01 Kenichi Handa <handa@m17n.org>
19493
19494 * fontset.c (fontset_face): Create a fallback fontset on demand.
19495 (make_fontset): Don't create a fallback fontset here.
19496 (free_face_fontset): Free a fallback fontset (if any) too.
19497 (n_auto_fontsets): Delete this variable.
19498 (auto_fontset_alist): New variable.
19499 (new_fontset_from_font_name): Check auto_fontset_alist.
19500 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19501 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19502 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19503 Defsubr Sfontset_list_all.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * editfns.c (Fgoto_char): Fix docstring.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * insdel.c (insert_from_gap): Adjust intervals correctly.
19520
195212008-02-01 Jason Rumney <jasonr@gnu.org>
19522
19523 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19524 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19525 (w32_initialize): Try to load it.
19526 (x_get_font_repertory): Use it if available.
19527 (w32_encode_char): Add shortcut for unicode output.
19528
19529 * w32fns.c (w32_load_system_font): Default charset to -1.
19530 (x_to_w32_charset): Match all fonts for unicode.
19531 (w32_to_x_charset): New parameter matching. Don't return partial
19532 or wildcard charsets.
19533 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19534 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19535 (w32_to_x_font): Match charset to real charset.
19536 (enum_font_cb2): Always list unicode versions.
19537
19538 * makefile.w32-in (temacs): Increase EMHEAP.
19539
195402008-02-01 Jason Rumney <jasonr@gnu.org>
19541
19542 * w32term.c (w32_encode_char): New charset parameter.
19543 font_info.encoding becomes encoding_type.
19544 (x_get_font_repertory): New function. Warning: stub only!
19545 (x_new_font): Return quickly if font already set.
19546 (x_new_fontset): fontsetname parameter is Lisp_Object.
19547 Use new fs_query_fontset. Try new_fontset_from_font_name.
19548 Use fontset_name for return value.
19549
19550 * w32term.h: Declare x_get_font_repertory.
19551
19552 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19553 place of find_charset_in_text. Use encode_coding_object in place
19554 of encode_coding.
19555 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19556 decode_coding.
19557
19558 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19559 of x_new_fontset.
19560 (w32_load_system_font): Initialize charset as unicode.
19561 font_info.encoding becomes encoding_type.
19562 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19563 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19564 (syms_of_w32fns): Set get_font_repertory_func.
19565
19566 * w32console.c: Include character.h. Use terminal_encode_buffer
19567 from term.c.
19568 (write_glyphs): Use new version of encode_terminal_code. Use
19569 encode_coding_object in place of encode_coding.
19570
19571 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19572 encoding becomes encoding_type.
19573
19574 * term.c (terminal_encode_buffer): Make externally visible.
19575
19576 * makefile.w32-in: Add character.h dependancies.
19577 (character.o, chartab.o): New targets.
19578
195792008-02-01 Kenichi Handa <handa@m17n.org>
19580
19581 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19582 CODING_ID_EOL_TYPE.
19583
195842008-02-01 Andreas Schwab <schwab@suse.de>
19585
19586 * coding.c (produce_chars): Revert last change.
19587
195882008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * charset.h (charset_unicode): Extern it.
19591
19592 * charset.c (string_xstring_p): Check by (C >= 0x100).
19593 (find_charsets_in_text): Change format of the arc CHARSETS. New
19594 arg MULTIBYTE.
19595 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19596 change of find_charsets_in_text.
19597 (Fsplit_char): Fix doc. Never return unknown.
19598
19599 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19600
19601 * coding.c (Fdefine_coding_system_alias): Update
19602 Vcoding_system_list.
19603
19604 * fontset.c (load_font_get_repertory): Pay attention to the case
19605 that ENCODING of a font is specified by a char-table.
19606
19607 * xterm.c (x_get_font_repertory): Handle the case that the
19608 encoding of font is other than Unicode.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19613 if a character is encodable by the terminal coding system. If
19614 not, produces proper number of `?'s. Update
19615 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19616 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19621 variables.
19622 (encode_terminal_code): Change argument. Encode multiple
19623 characters at once. Store the result of encoding in
19624 terminal_encode_buffer.
19625 (write_glyphs, insert_glyphs): Adjust for the change of
19626 encode_terminal_code.
19627 (term_init): Initialize terminal_encode_buffer and
19628 terminal_encode_buf_size.
19629
19630 * coding.c (consume_chars): If coding->src_object is nil, don't
19631 check annotation.
19632
196332008-02-01 Kenichi Handa <handa@m17n.org>
19634
19635 * character.c (char_string): Use ASCII_CHAR_P instead of
19636 SINGLE_BYTE_CHAR_P.
19637
196382008-02-01 Kenichi Handa <handa@m17n.org>
19639
19640 * xdisp.c (handle_auto_composed_prop): Check if the last
19641 characters of auto-composed region is newly composed with the
19642 following characters.
19643 (handle_composition_prop): Fix checking of point being inside
19644 composition.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * fns.c (concat): Don't change multibyteness of the result by
19649 concatenating an 8-bit character.
19650
19651 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19652 multibyteness of the result when newelt is an 8-bit character.
19653
196542008-02-01 Dave Love <fx@gnu.org>
19655
19656 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19657 EMACS_INT.
19658
19659 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19660
19661 * xfaces.c (face_numeric_value): Declare dim size_t.
19662 (Finternal_lisp_face_equal_p): Remove unused f.
19663
19664 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19665 (MATRIX_ROW): Remove unused vars.
19666 (draw_glyphs, x_insert_glyphs, fast_find_position)
19667 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19668 byte/char counts.
19669
19670 * regex.c (regex_compile): Remove unused var.
19671
19672 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19673
19674 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19675 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19676
19677 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19678
19679 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19680
19681 * fileio.c (Fwrite_region): Remove unused var.
19682
19683 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19684 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19685
19686 * composite.c (Fremove_list_of_text_properties): Declare.
19687
19688 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19689 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19690 (coding_inherit_eol_type): Remove unused attrs.
19691 (detect_coding): Cast arg of detect_eol.
19692
19693 * charset.c (syms_of_charset): Remove unused var p.
19694 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19695 byte/char counts.
19696
19697 * casetab.c (set_case_table): Remove unused var.
19698
19699 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19700 unused vars.
19701
197022008-02-01 Dave Love <fx@gnu.org>
19703
19704 * xterm.c (x_bitmap_mask): Declare.
19705
197062008-02-01 Dave Love <fx@gnu.org>
19707
19708 * xterm.c (x_term_init): Fix type error.
19709
19710 * lisp.h: Add Funibyte_char_to_multibyte.
19711
19712 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19713 (Fset_coding_system_priority): Doc fix.
19714
19715 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19716
19717 * indent.c (check_composition): Make start and end EMACS_INT.
19718
19719 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19720
19721 * xdisp.c (handle_composition_prop, check_point_in_composition):
19722 Make buffer positions EMACS_INT.
19723
19724 * composite.c (find_composition, run_composition_function)
19725 (update_compositions, Ffind_composition_internal): Make buffer
19726 positions EMACS_INT.
19727
19728 * composite.h (find_composition, update_compositions): Make
19729 position args EMACS_INT.
19730
19731 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19732
19733 * intervals.c (get_property_and_range):
19734 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19735
19736 * unexalpha.c: Don't include varargs.h.
19737
197382008-02-01 Dave Love <fx@gnu.org>
19739
19740 * coding.h (ENCODE_UTF_8): New.
19741
19742 * Makefile.in (gtkutil.o): Depend on coding.h.
19743
19744 * coding.c (Fset_coding_system_priority): Doc fix.
19745
197462008-02-01 Kenichi Handa <handa@m17n.org>
19747
19748 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19749 the case of auto saving.
19750
197512008-02-01 Andreas Schwab <schwab@suse.de>
19752
19753 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19754 `range' from GC.
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * fileio.c (choose_write_coding_system): Return a decided coding system.
19763 (Fwrite_region): Set Vlast_coding_system_used to the return value
19764 of choose_write_coding_system.
19765
197662008-02-01 Kenichi Handa <handa@m17n.org>
19767
19768 * charset.c (Fset_charset_priority): Pay attention to duplicated
19769 arguments.
19770
19771 * coding.c (QCcategory): New variable.
19772 (syms_of_coding): Defsym it. Set all elements of
19773 Vcoding_category_table and their symbol values.
19774 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19775 coding-category-XXX, and coding-category-list.
19776 (Fdefine_coding_system_internal): Add category in the plist.
19777
197782008-02-01 Kenichi Handa <handa@m17n.org>
19779
19780 * callproc.c (Fcall_process): Handle carryover correctly.
19781
19782 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19783 (raw_text_coding_system): Check NILP (coding_system).
19784 (coding_inherit_eol_type): Check NILP (coding_system) and
19785 NILP (parent).
19786 (consume_chars): Fix for the case of raw-text.
19787
19788 * process.c (read_process_output): Handle carryover correctly.
19789
197902008-02-01 Dave Love <fx@gnu.org>
19791
19792 * regex.c (re_search_2): Fix last change.
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19797 target_multibyte. Even in a unibyte case, return a converted
19798 multibyte char.
19799 (GET_CHAR_AFTER): New macro.
19800 (PATFETCH): Translate via multibyte char.
19801 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19802 (SETUP_MULTIBYTE_RANGE): New macro.
19803 (regex_compile): Setup compiled code so that its multibyteness
19804 matches that of a target. Fix the handling of "[X-YZ]" using
19805 SETUP_MULTIBYTE_RANGE.
19806 (analyse_first) <charset>: For filling fastmap for all multibyte
19807 characters, don't check by BASE_LEADING_CODE_P.
19808 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19809 the same as RE_MULTIBYTE_P (bufp) now.
19810 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19811 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19812 (TRANSLATE_VIA_MULTIBYTE): New macro.
19813 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19814 It is the same as RE_MULTIBYTE_P (bufp) now.
19815 <exactn>: Translate via multibyte.
19816 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19817 translate it.
19818 <charset, charset_not>: Fetch a character by
19819 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19820 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19821 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19822 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19823 by GET_CHAR_AFTER.
19824 (bcmp_translate): Likewise.
19825
19826 * search.c (compile_pattern): Check the member target_multibyte,
19827 not the member multibyte of buf.
19828
19829 * lread.c (read1): While reading a string, set force_singlebyte
19830 and force_multibyte correctly.
19831
19832 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19833 up of unibyte_to_multibyte_table.
19834
198352008-02-01 Kenichi Handa <handa@m17n.org>
19836
19837 * coding.c (setup_coding_system): If coding has
19838 post-read-conversion or pre-write-conversion, set
19839 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19840 respectively.
19841 (decode_coding_gap): Run post-read-conversion if any.
19842
19843 * fileio.c (Finsert_file_contents): Even if we read into a
19844 unibyte buffer, check if we must decode the result or not.
19845
198462008-02-01 Kenichi Handa <handa@m17n.org>
19847
19848 * coding.c (make_conversion_work_buffer): Change the work buffer
19849 name to the same one as that of Emacs 21.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 * coding.h (make_conversion_work_buffer): Adjust prototype.
19854 (code_conversion_restore): Don't extern it.
19855
19856 * coding.c (detected_mask): Delete unused variable.
19857 (decode_coding_iso_2022): Pay attention to the byte sequence of
19858 CTEXT extended segment, and retain those bytes as is.
19859 (decode_coding_ccl): Delete unused variable `valids'.
19860 (setup_coding_system): Delete unused variable `category'.
19861 (consume_chars): Delete unused variable `category'. Make it work
19862 for non-multibyte case.
19863 (make_conversion_work_buffer): Change argument.
19864 (saved_coding): Delete unused variable.
19865 (code_conversion_restore): Don't check saved_coding->destination.
19866 (code_conversion_save): New function.
19867 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19868 instead of record_unwind_protect.
19869 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19870 (detect_coding_system): Delete unused variable `mask'.
19871 (Fdefine_coding_system_internal): Delete unused variable id.
19872
19873 * fileio.c (kill_workbuf_unwind): New function.
19874 (Finsert_file_contents): On replacing, call
19875 make_conversion_work_buffer with correct args, and call
19876 record_unwind_protect with the first arg kill_workbuf_unwind.
19877
19878 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19883 (fontset_add): Fix for the case that TO is less than TO1.
19884 (Ffontset_info): Don't use fallback fontset on checking the
19885 default fontset.
19886 (dump_fontset): New function for debugging.
19887
19888 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19889 coding_type is Qcharset.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19894 (map_char_table): Don't inherit the value from the parent on
19895 initializing VAL. Adjust for the above change.
19896
198972008-02-01 Kenichi Handa <handa@m17n.org>
19898
19899 * coding.c (Qsignature, Qendian): Delete these variables.
19900 (syms_of_coding): Don't initialize them.
19901 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19902 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19903 detect_info->found.
19904 (decode_coding_utf_16): Don't detect BOM here.
19905 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19906 is NOT utf_16_without_bom.
19907 (setup_coding_system): For a coding system of type utf-16, check
19908 if the attribute :endian is Qbig or not (not nil or not), and set
19909 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19910 (detect_coding): If coding type is utf-16 and BOM detection is
19911 required, detect it.
19912 (Fdefine_coding_system_internal): For a coding system of type
19913 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19914
199152008-02-01 Kenichi Handa <handa@m17n.org>
19916
19917 * coding.c (coding_set_source): Fix for the case that the current
19918 buffer is different from coding->src_object.
19919 (decode_coding_object): Don't use the conversion work buffer if
19920 DST_OBJECT is a buffer.
19921
199222008-02-01 Dave Love <fx@gnu.org>
19923
19924 * lread.c (read_emacs_mule_char) [len==2]: Index
19925 emacs_mule_charset correctly.
19926
199272008-02-01 Dave Love <fx@gnu.org>
19928
19929 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19930 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19931 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19932 treated specially.)
19933 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19934 (detected_mask): Remove Big5 bits.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 The following changes are to make the font rescaling facility
19939 compatible with Emacs 21.
19940
19941 * xfaces.c (Vface_font_rescale_alist): Rename from
19942 Vface_resizing_fonts.
19943 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19944 (font_rescale_ratio): Rename from font_resizing_ratio.
19945 (split_font_name): Set font->rescale_ratio.
19946 (better_font_p): Pay attention to font->rescale_ratio.
19947 (build_scalable_font_name): Likewise. Change RESX, and RESY
19948 fields.
19949 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19950
199512008-02-01 Kenichi Handa <handa@m17n.org>
19952
19953 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19954 (Qutf_16_le): Remove these variables.
19955 (syms_of_coding): Don't DEFSYM them.
19956 (decode_coding_utf_16): Fix handling of BOM.
19957 (encode_coding_utf_16): Fix handling of BOM.
19958
199592008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * fileio.c (Finsert_file_contents): On replacing, before decoding
19962 the file into the work buffer, set point of the work buffer to the end.
19963
199642008-02-01 Dave Love <fx@gnu.org>
19965
19966 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19967
199682008-02-01 Dave Love <fx@gnu.org>
19969
19970 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19971 and fix C types.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * xdisp.c (SKIP_GLYPHS): New macro.
19976 (set_cursor_from_row): Pay attention to string display properties.
19977
19978 * category.c (copy_category_entry): Fix for the case that RANGE
19979 is an integer.
19980
19981 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19982
19983 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19984
199852008-02-01 Kenichi Handa <handa@m17n.org>
19986
19987 * charset.c (Fcharset_id_internal): New function.
19988 (syms_of_charset): Defsubr it.
19989
19990 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19991 with the last arg charset_list acquired from coding.
19992 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19993 the attribute coding_attr_ccl_valids.
19994
19995 * coding.h (enum define_coding_ccl_arg_index): Set the first
19996 member coding_arg_ccl_decoder to coding_arg_max.
19997
19998 * ccl.h (ccl_driver): Adjust prototype.
19999
20000 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20001 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20002 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20003 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20004 last arg Qnil.
20005
200062008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20009 call encode_char.
20010
20011 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20012
200132008-02-01 Dave Love <fx@gnu.org>
20014
20015 * composite.c (syms_of_composite): Make composition_hash_table weak.
20016
200172008-02-01 Kenichi Handa <handa@m17n.org>
20018
20019 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20020 (font_name_registry): Don't extern them.
20021 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20022
20023 * fontset.h (Qfontset): Don't extern it.
20024 (new_fontset_from_font_name): Extern it.
20025
20026 * fontset.c: Give 8 extra slots to fontset objects.
20027 (Qfontset_info): New variable.
20028 (syms_of_fontset): Defsym it.
20029 (FONTSET_FALLBACK): New macro.
20030 (fontset_face): Try also the default fontset.
20031 (make_fontset): Realize a fallback fontset from the default fontset.
20032 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20033 using split_font_name_into_vector and build_font_name_from_vector.
20034 (Fset_fontset_font): Access the elements of font_spec by enum
20035 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20036 name by using split_font_name_into_vector.
20037 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20038 generate a proper font name from the fontset name. Update
20039 Vfontset_alias_alist.
20040 (n_auto_fontsets): New variable.
20041 (new_fontset_from_font_name): New function.
20042 (Ffont_info): Store the information about fonts generated from the
20043 default fontset in the first extra slot of the returned char-table.
20044
20045 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20046 (font_name_registry): Delete function.
20047 (split_font_name_into_vector): New function.
20048 (build_font_name_from_vector): New function.
20049 (font_list): The argument REGISTRY is now a list of registry names.
20050 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20051 specifies an explicit font name, return the name as is. Make a
20052 list of registy names.
20053
20054 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20055 of x_new_fontset.
20056 (Fx_create_frame): Don't call x_new_fontset here. Just use
20057 x_list_fonts to check the existence of fonts.
20058
20059 * xterm.h (x_new_fontset): Adjust prototype.
20060
20061 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20062 string. Use new_fontset_from_font_name to create a fontset from a
20063 font name.
20064
200652008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * syntax.c (Vfind_word_boundary_function_table): New name for
20068 Vnext_word_boundary_function_table.
20069 (find-word-boundary-function-table): New name for
20070 next-word-boundary-function-table.
20071
200722008-02-01 Dave Love <fx@gnu.org>
20073
20074 * Makefile.in: Fix some dependencies.
20075
20076 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20077 set it to nil before returning.
20078
20079 * composite.c (update_compositions): Fix type error.
20080
20081 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20082
200832008-02-01 Kenichi Handa <handa@m17n.org>
20084
20085 * xterm.c (x_new_font): Optimize for the case that the font is
20086 already set for the frame.
20087
200882008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * chartab.c (char_table_ascii): Check if the char table contents
20091 is sub-char-table or not.
20092 (char_table_set, char_table_set_range): Fix argument to
20093 char_table_ascii.
20094
20095 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20096 (detect_coding_utf_8, detect_coding_utf_16)
20097 (detect_coding_emacs_mule, detect_coding_iso_2022)
20098 (detect_coding_sjis, detect_coding_big5)
20099 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20100 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20101 sequence is valid in this coding system. Change callers.
20102 (MAX_ANNOTATION_LENGTH): New macro.
20103 (ADD_ANNOTATION_DATA): New macro.
20104 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20105 ADD_ANNOTATION_DATA. Change the format of annotation data.
20106 (ADD_CHARSET_DATA): New macro.
20107 (emacs_mule_char): New argument ID. Change callers.
20108 (decode_coding_emacs_mule, decode_coding_iso_2022)
20109 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20110 Produce charset annotation data in coding->charbuf.
20111 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20112 to charset annotation data in coding->charbuf.
20113 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20114 coding->common_flags if the coding system is iso-2022 based and
20115 uses designation.
20116 (produce_composition): Adjust for the new annotation data format.
20117 (produce_charset): New function.
20118 (produce_annotation): Handle charset annotation.
20119 (handle_composition_annotation, handle_charset_annotation): New
20120 functions.
20121 (consume_chars): Handle charset annotation. Utilize the above two
20122 functions.
20123 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20124 buffer, get the deleted text as a string and set
20125 coding->src_object to that string.
20126 (detect_coding, detect_coding_system): Use the new struct
20127 coding_detection_info.
20128
20129 * coding.h (struct coding_detection_info): New structure.
20130 (struct coding_system): Adjust prototype of the member `detector'.
20131 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20136
201372008-02-01 Dave Love <fx@gnu.org>
20138
20139 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20140 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20141 to new local and nullify apropos_accumulate before returning.
20142 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20143
201442008-02-01 Kenichi Handa <handa@m17n.org>
20145
20146 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20147 correctly.
e3eea1fc 20148
aac0c6e3
MR
201492008-02-01 Dave Love <fx@gnu.org>
20150
20151 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20152
201532008-02-01 Kenichi Handa <handa@m17n.org>
20154
20155 The following changes are to make character composition happen
20156 automatically on displaying.
20157
20158 * Makefile.in (lisp, shortlisp): Add composite.elc.
20159
20160 * composite.h (Qauto_composed, Vauto_composition_function)
20161 (Qauto_composition_function): Extern them.
20162
20163 * composite.c (Vcomposition_function_table)
20164 (Qcomposition_function_table): Delete variables.
20165 (Qauto_composed, Vauto_composition_function)
20166 (Qauto_composition_function): New variables.
20167 (run_composition_function): Don't call
20168 compose-chars-after-function.
20169 (update_compositions): Clear `auto-composed' text property.
20170 (compose_chars_in_text): Delete this function.
20171 (syms_of_composite): Staticpro Qauto_composed and
20172 Qauto_composition_function. Declare Vauto_composition_function as
20173 a Lisp variable.
20174
20175 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20176
20177 * xdisp.c (it_props): Add an entry for Qauto_composed.
20178 (handle_auto_composed_prop): New function.
20179
20180 * xselect.c (selection_data_to_lisp_data): Don't call
20181 compose_chars_in_text.
20182
201832008-02-01 Dave Love <fx@gnu.org>
20184
20185 * keyboard.c (read_char): Modify checking around use of
20186 Vkeyboard_translate_table.
20187
20188 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20189 and fix C types.
20190
201912008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20194 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20195 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20196 the case that the last byte is '\r' correctly.
20197 (decode_coding): Flush out the unprocessed data correctly.
20198 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20199
202002008-02-01 Dave Love <fx@gnu.org>
20201
20202 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20203 Add XK_ISO... case.
20204 (xaw_scroll_callback): Revert last change.
20205
202062008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20209
202102008-02-01 Kenichi Handa <handa@m17n.org>
20211
20212 * xfaces.c (Vface_resizing_fonts): New variable.
20213 (struct font_name): New member `resizing_ratio'.
20214 (font_resizing_ratio): New function.
20215 (split_font_name): Set font->resizing_ratio.
20216 (better_font_p): Pay attention to font->resizing_ratio.
20217 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20218 RESX, and RESY fields.
20219 (try_alternative_families): Try scalable fonts if
20220 Vscalable_fonts_allowed is not Qt.
20221 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20222
202232008-02-01 Dave Love <fx@gnu.org>
20224
20225 * xterm.c (xaw_scroll_callback): Cast correctly.
20226
202272008-02-01 Dave Love <fx@gnu.org>
20228
20229 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20230 (lispy_kana_keys): Comment out.
20231 (make_lispy_event) [XK_kana_A]: Comment out.
20232
20233 * xterm.c (xaw_scroll_callback): Cast call_data.
20234 (XTread_socket): Deal with ASCII keysyms.
20235 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20236
202372008-02-01 Dave Love <fx@gnu.org>
20238
20239 * xterm.c (Vx_keysym_table): New.
20240 (syms_of_xterm): Initialize it.
20241 (XTread_socket): Use it.
20242 From head: Eliminate incorrect optimization that tried to avoid
20243 decoding the output of X*LookupString.
20244 (x_get_font_repertory): Delete charset declaration.
20245
202462008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20249 return 0.
20250 (Fdefine_coding_system_internal): Setup
20251 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20252
202532008-02-01 Dave Love <fx@gnu.org>
20254
20255 * coding.c (Fcheck_coding_system): Doc fix.
20256
20257 * editfns.c (Finsert_byte): Return a proper value.
20258
202592008-02-01 Kenichi Handa <handa@m17n.org>
20260
20261 * coding.c (decode_coding): Fix args to translate_chars. Pay
20262 attention to Vstandard_translation_table_for_decode.
20263 (encode_coding): Fix args to translate_chars. Pay attention to
20264 Vstandard_translation_table_for_encode.
20265
20266 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20267 SINGLE_BYTE_CHAR_P.
20268
20269 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20270 not by SINGLE_BYTE_CHAR_P.
20271
20272 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20273 SINGLE_BYTE_CHAR_P.
20274
20275 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20276 SINGLE_BYTE_CHAR_P.
20277
20278 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20279 by SINGLE_BYTE_CHAR_P.
20280
20281 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20282 SINGLE_BYTE_CHAR_P.
20283
202842008-02-01 Dave Love <fx@gnu.org>
20285
20286 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20287
202882008-02-01 Dave Love <fx@gnu.org>
20289
20290 * fns.c (Flanginfo): Fix typo.
20291
20292 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20293
202942008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20297 (detect_coding_emacs_mule, detect_coding_iso_2022)
20298 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20299 incomplete byte sequence. Don't update *mask when correctly detected.
20300 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20301 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20302 (detect_coding, detect_coding_system): Adjust for the changes above.
20303
203042008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * character.c (char_string): Rename from
20307 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20308 (string_char): Rename from string_char.
20309
20310 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20311 if C is greater than MAX_3_BYTE_CHAR.
20312 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20313 string_char instead of string_char_with_unification.
20314
203152008-02-01 Dave Love <fx@gnu.org>
20316
20317 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * keymap.c (push_key_description): Pay attention to force_multibyte.
20322
20323 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20324
203252008-02-01 Dave Love <fx@gnu.org>
20326
20327 * charset.c (define_charset_internal): Rename `supprementary'.
20328
20329 * Makefile.in (lisp, shortlisp): Remove latin-N.
20330
203312008-02-01 Dave Love <fx@gnu.org>
20332
20333 * xfns.c (x_window, x_window): Use use_xim.
20334
20335 * xterm.c (use_xim): Initialize.
20336 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20337 (x_term_init): Maybe set use_xim.
20338
20339 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20340
203412008-02-01 Kenichi Handa <handa@m17n.org>
20342
20343 * search.c (search_buffer): Fix case-fold-search of multibyte
20344 characters.
20345 (boyer_moore): Rename the last argument to char_high_bits.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * xdisp.c (display_string): Fix for the case of zero width glyph.
20350
20351 * xfns.c (x_set_font): Change the error message of the case that
20352 x_new_fontset returns Qt.
20353
20354 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20355 (Finternal_set_lisp_face_attribute): Use signal_error for the
20356 error of invalid fontset.
20357
20358 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20359 fontset, return Qt.
20360
203612008-02-01 Dave Love <fx@gnu.org>
20362
20363 * unexelf.c (unexec): Make .got handling not SGI-specific.
20364
20365 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20366
20367 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20368
20369 * keyboard.c (read_key_sequence): Fix type error.
20370
20371 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20372 type error.
20373
20374 * fontset.c (fontset_add): Return Lisp_Object.
20375
203762008-02-01 Dave Love <fx@gnu.org>
20377
20378 * charset.h (charset_ordered_list_tick): Declare extern.
20379
203802008-02-01 Kenichi Handa <handa@m17n.org>
20381
20382 The following changes (and some of 2008-02-01 changes of mine) are
20383 for handling syntax, category, and case conversion for unibyte
20384 characters by converting them to multibyte on the fly. With these
20385 changes, we don't have to setup syntax and case tables for unibyte
20386 characters in each language environment.
20387
20388 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20389 multibyte if necessary.
20390
20391 * bytecode.c (Fbyte_code): Likewise.
20392
20393 * character.h (LEADING_CODE_LATIN_1_MIN)
20394 (LEADING_CODE_LATIN_1_MAX): New macros.
20395 (unibyte_to_multibyte_table): Extern it.
20396 (unibyte_char_to_multibyte): New macro.
20397 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20398 (CHAR_LEADING_CODE): New macro.
20399 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20400
20401 * character.c (unibyte_to_multibyte_table): New variable.
20402 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20403 (multibyte_char_to_unibyte): If C is an eight-bit character,
20404 convert it to the corresponding byte value.
20405
20406 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20407 not 1, signals an error. Update the elements of
20408 unibyte_to_multibyte_table.
20409 (init_charset_once): Initialize unibyte_to_multibyte_table.
20410 (syms_of_charset): Define the charset `iso-8859-1'.
20411
20412 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20413 as is without converting it to unibyte. In a unibyte buffer,
20414 convert C to multibyte before checking the syntax.
20415
20416 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20417
20418 * minibuf.c (Fminibuffer_complete_word): Use the macro
20419 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20420
20421 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20422
20423 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20424 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20425 that is zero, convert an eight-bit char to multibyte.
20426 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20427 non-emacs case.
20428 (PATFETCH): Convert an eight-bit char to multibyte.
20429 (HANDLE_UNIBYTE_RANGE): New macro.
20430 (regex_compile): Setup the compiled pattern for multibyte chars
20431 even if the given regex string is unibyte. Use PATFETCH_RAW
20432 instead of PATFETCH in many places. To handle `charset'
20433 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20434 only for ASCII chars.
20435 (analyse_first) <exactn>: Simplify because the compiled pattern
20436 is multibyte.
20437 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20438 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20439 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20440 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20441 multibyte always 1.
20442 (re_search_2): In emacs, set the locale variable multibyte to 1,
20443 otherwise to 0. New local variable target_multibyte. Check it
20444 to decide the multibyteness of STR1 and STR2. If
20445 target_multibyte is zero, convert unibyte chars to multibyte
20446 before translating and checking fastmap.
20447 (TARGET_CHAR_AND_LENGTH): New macro.
20448 (re_match_2_internal): In emacs, set the locale variable multibyte
20449 to 1, otherwise to 0. New local variable target_multibyte. Check
20450 it to decide the multibyteness of STR1 and STR2. Use
20451 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20452 <charset, charset_not>: If multibyte is nonzero, check fastmap
20453 only for ASCII chars. Call bcmp_translate with
20454 target_multibyte, not with multibyte.
20455 <begline>: Declare the local variable C as `unsigned'.
20456 (bcmp_translate): Change the last arg name to target_multibyte.
20457
20458 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20459 the regexp pattern and the matching target. Set cp->buf.multibyte
20460 to the multibyteness of the regexp pattern. Set
20461 cp->but.target_multibyte to the multibyteness of the matching target.
20462 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20463 FETCH_STRING_CHAR_ADVANCE.
20464 (Freplace_match): Convert unibyte chars to multibyte.
20465
20466 * syntax.c (char_quoted, back_comment, scan_words)
20467 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20468 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20469 unibyte chars to multibyte.
20470 (skip_chars): Delete the arg syntaxp, and move the code for
20471 handling syntaxes to skip_syntaxes. Change callers.
20472 Fix the case that the multibyteness of STRING and the current
20473 buffer doesn't match.
20474 (skip_syntaxes): New function.
20475 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20476 SINGLE_BYTE_CHAR_P.
20477
204782008-02-01 Kenichi Handa <handa@m17n.org>
20479
20480 * xfaces.c (QCfontset): New variable.
20481 (LFACE_FONTSET): New macro.
20482 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20483 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20484 (Finternal_set_lisp_face_attribute)
20485 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20486 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20487 check also LFACE_FONTSET_INDEX.
20488 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20489 attrs[LFACE_FONT_INDEX].
20490 (syms_of_xfaces): Intern and staticpro QCfontset.
20491
20492 * dispextern.h (enum lface_attribute_index): New member
20493 LFACE_FONTSET_INDEX.
20494
20495 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20496
204972008-02-01 Kenichi Handa <handa@m17n.org>
20498
20499 * coding.c (coding_set_destination): Fix coding->destination for
20500 the case converting a region.
20501 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20502 (encode_coding_object): Fix coding->dst_pos and
20503 coding->dst_pos_byte for the case converting a region.
20504
20505 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20506
20507 * character.h (BYTE8_STRING): New macro.
20508
20509 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20510
205112008-02-01 Kenichi Handa <handa@m17n.org>
20512
20513 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20514 characters by octal form.
20515
20516 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20517
20518 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20519 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20520 _fetch_multibyte_char_len.
20521 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20522
20523 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20524
20525 * casefiddle.c (casify_object): Simplify. Handle the case that
20526 the case conversion change the byte length.
20527 (casify_region): Likewise.
20528
20529 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20530
20531 * character.c (_fetch_multibyte_char_len): Delete this variable.
20532 (syms_of_character): Setup Vprintable_chars.
20533
20534 * editfns.c (Fchar_equal): Fix for the unibyte case.
20535 (Finsert_byte): New function.
20536 (syms_of_editfns): Defsubr it.
20537
20538 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20539 of direct code 0x3ffff.
20540
20541 * search.c (Freplace_match): Fix for the unibyte case.
20542
205432008-02-01 Kenichi Handa <handa@m17n.org>
20544
20545 * lread.c (safe_to_load_p): Fix the logic.
20546
20547 * syntax.c (scan_words): Don't treat characters belonging to
20548 different scripts as constituting a word.
20549
20550 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20551
20552 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20553
20554 * emacs.c (main): In the case of --unibyte, instead of aborting on
20555 finding non-empty buffer, make it unibyte.
20556
205572008-02-01 Kenichi Handa <handa@m17n.org>
20558
20559 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20560 to create a fontset.
20561
205622008-02-01 Dave Love <fx@gnu.org>
20563
20564 * character.c (Funibyte_char_to_multibyte): Doc fix.
20565
20566 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20567
205682008-02-01 Kenichi Handa <handa@m17n.org>
20569
20570 * fontset.c (fontset_add): Make the type `int'.
20571 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20572
20573 * character.c (unibyte_char_to_multibyte)
20574 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20575 charset_unibyte, not charset_primary.
20576
20577 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20578
20579 * charset.c (charset_unibyte): Rename from charset_primary.
20580 (Funibyte_charset): Rename from Fprimary_charset.
20581 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20582 (syms_of_charset): Adjust for the above changes.
20583
20584 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20585 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20586 it->multibyte_p is zero.
20587
20588 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20589 Delete extern.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * coding.c (Fdefine_coding_system_internal): Fix category setting
20594 for a coding system of type iso-2022.
20595
205962008-02-01 Kenichi Handa <handa@m17n.org>
20597
20598 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20599
206002008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * syntax.c (Vnext_word_boundary_function_table): New variable.
20603 (next-word-boundary-function-table): Declare it as a Lisp variable
20604 in syms_of_syntax.
20605 (scan_words): Call functions in Vnext_word_boundary_function_table
20606 if any.
20607
20608 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20609
20610 * fontset.c (fs_load_font): If fontp->charset is not negative,
20611 return fontp without setting its members.
20612
206132008-02-01 Dave Love <fx@gnu.org>
20614
20615 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20616
20617 * m/sparc.h (HAVE_ALLOCA): Delete.
20618
20619 * s/irix6-5.h: Don't include strings.h.
20620 (bcopy, bzero, bcmp): Don't undef.
20621
20622 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20623
20624 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20625 (TIOCSIGSEND): Don't test IRIX6.
20626 (bcopy, bzero, bcmp): Define conditionally.
20627
206282008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * buffer.c (Qas, Qmake, Qto): New variables.
20631 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20632 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20633
20634 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20635 we are inserting a process output into a multibyte buffer.
20636
20637 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20638 multibyte_char_to_unibyte.
20639
20640 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20641 by the primary charset, make it eight-bit char.
20642 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20643
20644 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20645 (charset_8_bit__control, charset_8_bit_graphic)
20646 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20647 (define_charset_internal): New function.
20648 (syms_of_charset): Call define_charset_internal for pre-defined
20649 charsets.
20650
20651 * charset.h (charset_8_bit): Extern it.
20652
20653 * coding.c (make_conversion_work_buffer): Adjust for the change
20654 of Fset_buffer_multibyte.
20655 (encode_coding_raw_text): Increment p0 in the loop.
20656
20657 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20658
20659 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20660 for the change of Fset_buffer_multibyte.
20661
20662 * fns.c (Fstring_to_multibyte): New function.
20663 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20664
206652008-02-01 Dave Love <fx@gnu.org>
20666
20667 * xfns.c (x_put_x_image): Declare args.
20668
20669 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20670 (try_font_list): Declare an arg.
20671
20672 * xdisp.c (message2_nolog, set_message): Declare an arg.
20673
20674 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20675
20676 * syntax.c (scan_sexps_forward): Declare an arg.
20677
20678 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20679 Declare an arg.
20680
20681 * lisp.h (Fnew_fontset): Declare.
20682
20683 * keymap.c (push_key_description): Call CHARACTERP correctly.
20684
20685 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20686 (face_for_char): Delete unused vars.
20687 (Fset_fontset_font): Doc fix. Delete unused vars.
20688
20689 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20690
20691 * composite.c (update_compositions): Declare arg.
20692
20693 * cm.c (calccost, cmgoto): Declare args.
20694
20695 * charset.c: Remove `emacs' conditional. Doc fixes.
20696 (map_char_table_for_charset): Declare.
20697
20698 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20699
20700 * ccl.c: Remove `emacs' conditional.
20701
207022008-02-01 Kenichi Handa <handa@m17n.org>
20703
20704 The following changes are to allow specifying multiple font
20705 patterns for a character range (specified by script or charset).
20706
20707 * Makefile.in (abbrev.o): Depend on syntax.h.
20708 (xfaces.o): Depend on charset.h.
20709
20710 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20711 SINGLE_BYTE_CHAR_P.
20712
20713 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20714
20715 * character.h (Vchar_script_table): Extern it.
20716
20717 * character.c (Vscript_alist): Delete.
20718 (Vchar_script_table, Qchar_script_table): New variable.
20719 (syms_of_character): Declare Vchar_script_table as a lisp variable
20720 and initialize it.
20721
20722 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20723 have property char-table-extra-slots, make no extra slot.
20724
20725 * dispextern.h (struct face): Delete member `charset'.
20726 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20727 SINGLE_BYTE_CHAR_P.
20728 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20729 Add prototypes.
20730 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20731 (generate_ascii_font_name): Rename from generate_ascii_font.
20732
20733 * fontset.h (get_font_repertory_func): New prototype.
20734 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20735 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20736
20737 * fontset.c (Qprepend, Qappend): New variables.
20738 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20739 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20740 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20741 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20742 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20743 (load_font_get_repertory): New functions.
20744 (fontset_set): Delete.
20745 (fontset_face): New arg FACE. Return face ID, not face.
20746 Complete re-write to handle new fontset structure. Change caller.
20747 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20748 (face_for_char): Don't call lookup_face.
20749 (make_fontset_for_ascii_face): New arg FACE.
20750 (fs_load_font): New arg CHARSET_ID. Don't check
20751 Vfont_encoding_alist here.
20752 (find_font_encoding): New function.
20753 (list_fontsets): Use STRINGP, not ! NILP.
20754 (accumulate_script_ranges): New function.
20755 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20756 re-written to handle new fontset structure.
20757 (Ffontset_font): Return a copy of element.
20758 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20759 docstring of font-encoding-alist.
20760
20761 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20762 (Fset_fotset_font): Fix arguments to 5.
20763
20764 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20765
20766 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20767 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20768 (highlight_trailing_whitespace): Adjust for the change of
20769 lookup_named_face.
20770
20771 * xfaces.c: Include charset.h.
20772 (load_face_font): Delete argument C. Change caller.
20773 (generate_ascii_font_name): Rename from generate_ascii_font.
20774 (font_name_registry): New function.
20775 (cache_face): Store ascii faces before non-ascii faces in buckets.
20776 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20777 Lookup only ascii faces.
20778 (lookup_non_ascii_face): New function.
20779 (lookup_named_face): Delete argument C. Change caller.
20780 (lookup_derived_face): Delete argument C. Change caller.
20781 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20782 a string, just call font_list with it.
20783 (choose_face_font): Delete arguments FACE and C. New arg
20784 FONT_SPEC. Change caller.
20785 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20786 Change caller.
20787 (realize_non_ascii_face): New function.
20788 (realize_x_face): Call load_face_font here.
20789 (realize_tty_face): Delete argument C. Change caller.
20790 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20791 get a face ID.
20792 (dump_realized_face): Don't print charset of FACE.
20793
20794 * xfns.c (x_set_font): Always call x_new_fontset and
20795 store_frame_parameter.
20796 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20797 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20798
20799 * xterm.h (x_get_font_repertory): Extern it.
20800
20801 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20802 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20803 it->multibyte_p is zero.
20804 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20805 (x_new_fontset): If FONTSETNAME doesn't match any existing
20806 fontsets, create a new one.
20807 (x_get_font_repertory): New function.
20808
208092008-02-01 Kenichi Handa <handa@m17n.org>
20810
20811 * coding.c (Ffind_coding_systems_region_internal): Detect an
20812 ASCII only string correctly.
20813
20814 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20815 version is 0.
20816
208172008-02-01 Kenichi Handa <handa@m17n.org>
20818
20819 * lread.c: Include "coding.h".
20820 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20821 (load_each_byte, unread_char): New variables.
20822 (readchar_backlog): Delete.
20823 (readchar): Return a character unless load_each_byte is nonzero.
20824 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20825 cons. If unread_char is not -1, simply return it.
20826 (unreadchar): Handle the case that readcharfun is
20827 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20828 (read_multibyte): Delete.
20829 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20830 (read_emacs_mule_char): New functions.
20831 (Fload): Even if the file doesn't have the extension ".elc", if
20832 safe_to_load_p returns a positive version number, assume that the
20833 file contains bytecompiled code. If the version is less than 22,
20834 load the file while decoding multibyte sequences by emacs-mule.
20835 (readevalloop): Don't use readchar_backlog.
20836 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20837 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20838 (read_escape): Delete the arg BYTEREP.
20839 (read1): Set load_each_byte to 1 temporarily while handling
20840 #@NUMBER. Don't call read_multibyte.
20841 (read_vector): Call Fread with a cons. If readcharfun is
20842 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20843 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20844 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20845 and Qload_force_doc_strings.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * xdisp.c (face_before_or_after_it_pos): Call
20850 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20851
208522008-02-01 Kenichi Handa <handa@m17n.org>
20853
20854 * character.h (TRAILING_CODE_P): New macro.
20855 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20856 (string_char_with_unification): Fix prototype.
20857 (Vscript_alist): Extern it.
20858
20859 * character.c (Vscript_alist): New variable.
20860 (string_char_with_unification, str_as_unibyte)
20861 (string_escape_byte8): Add `const' to local variables.
20862 (syms_of_character): Declare script-alist as a Lisp variable.
20863
20864 * charset.h (Vcharset_ordered_list): Extern it.
20865 (charset_ordered_list_tick): Extern it.
20866 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20867 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20868 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20869 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20870 (Funify_charset): Adjust for the change of Funify_charset.
20871
20872 * charset.c (charset_ordered_list_tick): New variable.
20873 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20874 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20875 deunify intead of unify a charset.
20876 (string_xstring_p): Add `const' to local variables.
20877 (find_charsets_in_text): Add `const' to arguments and local variables.
20878 (encode_char): Adjust for the change of Funify_charset. Fix
20879 detecting of invalid code.
20880 (Fset_charset_priority): Increment charset_ordered_list_tick.
20881 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20882 and TO_CODE.
20883
20884 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20885 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20886 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20887 (decode_coding_ccl, consume_chars)
20888 (Ffind_coding_systems_region_internal)
20889 (Fcheck_coding_systems_region): Add `const' to local variables.
20890
20891 * print.c (print_object): Use octal form for printing the
20892 contents of a bool vector.
20893
208942008-02-01 Dave Love <fx@gnu.org>
20895
20896 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20897 <version == 20>: Refuse to load.
20898
208992008-02-01 Dave Love <fx@gnu.org>
20900
20901 * fns.c: Move coding.h.
20902 (Qcodeset, Qdays, Qmonths): New.
20903 (concat): Use CHARACTERP instead of INTEGERP.
20904 (Flocale_codeset): Delete.
20905 (Flanginfo): New function.
20906 (syms_of_fns): Change accordingly.
20907
20908 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20909
209102008-02-01 Dave Love <fx@gnu.org>
20911
20912 * casetab.c (init_casetab_once, init_casetab_once): Fix
20913 CHAR_TABLE_SET call.
20914
20915 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20916
20917 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20918
20919 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20920 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20921 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20922
20923 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20924
20925 * coding.c (ENCODE_DESIGNATION, decode_eol)
20926 (make_conversion_work_buffer, code_conversion_restore)
20927 (Fdefine_coding_system_internal): Convert Lisp types.
20928 (code_conversion_restore): Use EQ, not ==.
20929 (Fencode_coding_string): Fix code_convert_string call.
20930
20931 * coding.h (code_convert_region): Fix prototype.
20932
20933 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20934
20935 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20936 (Ffontset_info): Convert Lisp types.
20937
20938 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20939
20940 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20941
20942 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20943
20944 * chartab.c: Include "...h", not <...h> in some cases.
20945
20946 * callproc.c (Fcall_process): Remove unused variables.
20947
209482008-02-01 Dave Love <fx@gnu.org>
20949
20950 * coding.c (Fset_coding_system_priority): Allow null arg list.
20951
209522008-02-01 Dave Love <fx@gnu.org>
20953
20954 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20955 (Fself_insert_and_exit): Use CHARACTERP.
20956
20957 * callproc.c (Fcall_process): Remove unused vars.
20958
20959 * xterm.c (XTread_socket): Add extra dead keysyms.
20960
20961 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20962
20963 * dispextern.h: Remove prototypes for redraw_frame,
20964 redraw_garbaged_frames.
20965
20966 * cmds.c (Fself_insert_command): Use CHARACTERP.
20967
20968 * chartab.c (make_sub_char_table): Remove unused var.
20969 (Fset_char_table_default, Fmap_char_table): Doc fix.
20970
20971 * keymap.c (access_keymap): Remove generic char code.
20972 (push_key_description): Use CHARACTERP.
20973
209742008-02-01 Dave Love <fx@gnu.org>
20975
20976 * charset.c: Doc fixes.
20977 (Funify_charset): Extra checking.
20978
209792008-02-01 Dave Love <fx@gnu.org>
20980
20981 * lread.c: Remove some unused variables.
20982 (safe_to_load_p): If safe, return the magic number version byte.
20983 (Fload): Maybe use load-with-code-conversion.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * category.c (Fmodify_category_entry): Don't modify the contents
20988 of category_set for characters out of the range. Avoid
20989 unnecessary modification.
20990
20991 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20992 Vchar_unify_table. The default value of the table is now nil.
20993
20994 * character.c (syms_of_character): Setup Vchar_width_table for
20995 eight-bit-control and raw-byte chars.
20996
20997 * charset.h (enum define_charset_arg_index): Delete
20998 charset_arg_parents and add charset_arg_subset and
20999 charset_arg_superset.
21000 (enum charset_attr_index): Delete charset_parents and add
21001 charset_subset and charset_superset.
21002 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21003 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21004 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21005 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21006 (CHARSET_SUPERSET): New macros.
21007 (charset_work): Extern it.
21008 (ENCODE_CHAR): Use charset_work.
21009 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21010 (map_charset_chars): Extern it.
21011
21012 * charset.c (load_charset_map): Set the default value of encoder
21013 and deunifier char-tables to nil.
21014 (map_charset_chars): Change argument. Change callers. Use
21015 map_char_table_for_charset instead of map_char_table.
21016 (Fmap_charset_chars): New optional args from_code and to_code.
21017 (Fdefine_charset_internal): Adjust for the change of
21018 `define-charset' (:parents -> :subset or :superset).
21019 (charset_work): New variable.
21020 (encode_char, syms_of_charset): Adjust for the change of
21021 Fdefine_charset_internal.
21022 (Ffind_charset_string): Setup the vector `charsets' correctly.
21023
21024 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21025 the previous change.
21026 (char_table_ref_and_range): Adjust for the above change.
21027 (map_sub_char_table_for_charset): New function.
21028 (map_char_table_for_charset): New function.
21029
21030 * keymap.c (describe_vector): Handle a char-table directly here.
21031 (describe_char_table): Delete.
21032
21033 * lisp.h (map_charset_chars): Delete.
21034
210352008-02-01 Dave Love <fx@gnu.org>
21036
21037 * fns.c (count_combining): Comment out (unused).
21038 (Flocale_codeset): New.
21039 (syms_of_fns): Defsubr it.
21040
21041 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21042 (size_t): Remove.
21043
210442008-02-01 Dave Love <fx@gnu.org>
21045
21046 * Makefile.in (chartab.o): Depend on charset.h.
21047
210482008-02-01 Kenichi Handa <handa@m17n.org>
21049
21050 * character.c (syms_of_character): Set the default value of
21051 Vprintable_chars to Qnil.
21052
210532008-02-01 Dave Love <fx@gnu.org>
21054
21055 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21056
210572008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * charset.c (load_charset_map): Handle the case that from < to
21060 correctly.
21061
21062 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21063 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21064 Pay attention to raw-8-bit chars.
21065
210662008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21069 It is not bytecompiled now.
21070
21071 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21072 (charset_jisx0208): New variables.
21073 (Fdefine_charset_internal): Setup them if appropriate.
21074 (init_charset_once): Initialize them to -1.
21075
21076 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21077 (charset_jisx0208): Extern them.
21078
21079 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21080 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21081 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21082 (setup_iso_safe_charsets): Fix arguments to Fassq.
21083 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21084 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21085 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21086 (encode_coding_iso_2022): Change the 1st arg to
21087 ENCODE_ISO_CHARACTER to a variable.
21088
210892008-02-01 Kenichi Handa <handa@m17n.org>
21090
21091 * charset.h (enum define_charset_arg_index): New enums
21092 charset_arg_min_code and charset_arg_max_code.
21093 (struct charset): New member char_index_offset.
21094
21095 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21096 Take charset->char_index_offset into account.
21097 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21098 args[charset_arg_max_code]. Setup charset.char_index_offset.
21099 (syms_of_charset): Fix args to Fdefine_charset_internal.
21100
211012008-02-01 Dave Love <fx@gnu.org>
21102
21103 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21104
211052008-02-01 Dave Love <fx@gnu.org>
21106
21107 * coding.c: Doc fixes.
21108 (Fcoding_system_aliases): Fix return value.
21109 (Qmac): Remove (duplicated) definition.
21110
211112008-02-01 Dave Love <fx@gnu.org>
21112
362654a6
JB
21113 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21114 New functions.
aac0c6e3
MR
21115
21116 * character.c (Fstring): Doc fix.
21117
21118 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21119
362654a6 21120 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21121 (font-encoding-alist): Doc fix.
21122
211232008-02-01 Dave Love <fx@gnu.org>
21124
21125 * term.c (costs_set): Declare static, non-initialized for pcc.
21126 (encode_terminal_code): Remove unused var.
21127
21128 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21129 for K&R.
21130
21131 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21132
21133 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21134 (suffixes): Move out of make_subsidiaries for K&R.
21135
21136 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21137
21138 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21139
211402008-02-01 Dave Love <fx@gnu.org>
21141
21142 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21143
21144 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21145
211462008-02-01 Yong Lu <lyongu@asia-infonet.com>
21147
21148 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21149
21150 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21151
211522008-02-01 Kenichi Handa <handa@m17n.org>
21153
21154 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21155 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21156
211572008-02-01 Kenichi Handa <handa@m17n.org>
21158
21159 * coding.c (decode_coding_charset): Adjust for the change of
21160 Fdefine_coding_system_internal.
21161 (Fdefine_coding_system_internal): For a coding system of
21162 `charset' type, store a list of charset IDs in
21163 `charset_attr_charset_valids' element of coding attributes.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21168 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21169 caller. Handle 2-byte and 3-byte charsets correctly.
21170 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21171 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21172 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21173 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21174 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21175 sequence.
21176 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21177 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21178 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21179 and alt&rule composition.
21180 (decode_coding_iso_2022): Handle composition correctly.
21181 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21182
21183 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21184 re-defining a charset. If the charset has :emacs-mule-id, setup
21185 emacs_mule_bytes.
21186 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21187
211882008-02-01 Kenichi Handa <handa@m17n.org>
21189
21190 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21191 (encode_coding_big5, encode_coding_charset): If coding requires safe
21192 encoding, produce a character specified by
21193 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21194
211952008-02-01 Dave Love <fx@gnu.org>
21196
21197 * xterm.c (XSetIMValues): Declare.
21198
21199 * process.c: Conditionally include sys/wait.h, pty.h.
21200
21201 * print.c (print_object): Fix print format for 64-bit systems.
21202
21203 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21204
21205 * buffer.c (emacs_strerror): Declare.
21206
21207 * fontset.c (Fclear_face_cache): Declare.
21208 (accumulate_font_info): Comment-out (unused).
21209 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21210 variables.
21211
21212 * character.h (string_escape_byte8): Declare.
21213
21214 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21215 unused vars.
21216 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21217 (Fmap_charset_chars): Doc fix.
21218
21219 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21220 (Fset_coding_system_priority, Fset_coding_system_priority)
21221 (Fdefine_coding_system_internal): Doc fix.
21222
212232008-02-01 Dave Love <fx@gnu.org>
21224
21225 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21226
212272008-02-01 Kenichi Handa <handa@m17n.org>
21228
21229 * character.c (string_escape_byte8): Make multibyte string with
21230 correct size.
21231
21232 * charset.c (Fmake_char): Delete unnecessary code.
21233
212342008-02-01 Kenichi Handa <handa@m17n.org>
21235
21236 * xfns.c (x_encode_text): Allocate coding.destination here, and
21237 call encode_coding_object with dst_object Qnil.
21238
21239 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21240 multibyte form correctly.
21241
21242 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21243 against Vfont_encoding_alist.
21244
21245 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21246 handling of charset list.
21247 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21248 (decode_coding_object): Move point to coding->dst_pos before
21249 calling post-read-conversion function.
21250 (encode_coding_object): Give correct arguments to
21251 pre-write-conversion. Ignore the return value of
21252 pre-write-conversion function. Pay attention to the case that
21253 pre-write-conversion changes the current buffer. If dst_object is
21254 Qt, even if coding->src_bytes is zero, allocate at least one byte
21255 to coding->destination.
21256
21257 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21258
21259 * charset.c (Fmake_char): Make it more backward compatible.
21260 (Fmap_charset_chars): Fix docstring.
21261
212622008-02-01 Dave Love <fx@gnu.org>
21263
21264 * coding.c: Doc fixes.
21265 (Fdefine_coding_system_alias): Use names, not symbols, in
21266 coding-system-alist.
21267
212682008-02-01 Kenichi Handa <handa@m17n.org>
21269
21270 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21271 of calling free_realized_face.
21272
212732008-02-01 Yong Lu <lyongu@asia-infonet.com>
21274
21275 * charset.c (read_hex): Don't treat SPC as a comment starter.
21276 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21277 (Fdecode_char): Fix typo.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * charset.h (struct charset): New member `code_space_mask'.
21282
21283 * coding.c (coding_set_source): Delete the local variable beg_byte.
21284 (encode_coding_charset, Fdefine_coding_system_internal):
21285 Delete the local variable charset.
21286 (Fdefine_coding_system_internal): Setup
21287 attrs[coding_attr_charset_valids] correctly.
21288
21289 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21290 member to check if CODE is valid or not.
21291 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21292 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21293 is within the range of charset->min_code and carset->max_code.
21294
212952008-02-01 Dave Love <fx@gnu.org>
21296
21297 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21298
21299 * dispextern.h (generate_ascii_font): Fix return type.
21300
21301 * xfaces.c (generate_ascii_font): Fix arg declaration.
21302
21303 * coding.c (coding_inherit_eol_type)
21304 (Fset_terminal_coding_system_internal)
21305 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21306
213072008-02-01 Kenichi Handa <handa@m17n.org>
21308
21309 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21310 multiple charsets correctly.
21311
213122008-02-01 Kenichi Handa <handa@m17n.org>
21313
21314 * search.c (boyer_moore): Fix handling of multibyte character
21315 translation.
21316
21317 * xdisp.c (display_mode_element): When the variable `elt' is
21318 changed, update `this' and `lisp_string'.
21319
213202008-02-01 Kenichi Handa <handa@m17n.org>
21321
21322 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21323
21324 * callproc.c (Fcall_process): Be sure to give the current buffer
21325 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21326
21327 * charset.c (struct charset_map_entries): New struct.
21328 (load_charset_map): Rename from parse_charset_map. New args
21329 entries and n_entries. Change caller.
21330 (load_charset_map_from_file): Rename from load_charset_map.
21331 Change caller. New arg control_flag. Call load_charset_map at
21332 the tail.
21333 (load_charset_map_from_vector): New function.
21334 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21335 (encode_char): If the charset is compact, change a character index
21336 to a code point.
21337
21338 * coding.c (coding_alloc_by_making_gap): Check the case that the
21339 source and destination are the same correctly.
21340 (decode_coding_raw_text): Set coding->consumed_char and
21341 coding->consumed to 0.
21342 (produce_chars): If coding->chars_at_source is nonzero, update
21343 coding->consumed_char and coding->consumed before calling
21344 alloc_destination.
21345 (Fdefine_coding_system_alias): Register ALIAS in
21346 Vcoding_system_alist.
21347 (syms_of_coding): Define `no-conversion' coding system at the tail.
21348
21349 * fileio.c (Finsert_file_contents): Set coding_system instead of
21350 val. If the current buffer is multibyte, always call
21351 decode_coding_gap.
21352
21353 * xfaces.c (try_font_list): Give higher priority to fontset's
21354 family than face's family.
21355
213562008-02-01 Kenichi Handa <handa@m17n.org>
21357
21358 * callproc.c (Fcall_process): Be sure to give the current buffer
21359 to decode_coding_c_string.
21360
21361 * xfaces.c (try_font_list): Give a family specified in a fontset
21362 higher priority than a family specified in a face.
21363
213642008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21367 Fix arguments to insert_from_buffer.
21368
21369 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21370
213712008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21374 (decode_coding_gap): Set coding->dst_multibyte correctly.
21375
213762008-02-01 Kenichi Handa <handa@m17n.org>
21377
21378 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21379 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21380 (encode_coding_utf_16): Substitute coding->default_char for
21381 non-Unicode characters.
21382 (decode_coding): Don't call record_insert here.
21383 (setup_coding_system): Initialize `surrogate' of
21384 coding->spec.utf_16 to 0.
21385 (EMIT_ONE_BYTE): Fix for multibyte case.
21386
21387 * insdel.c (insert_from_gap): Call record_insert.
21388
213892008-02-01 Kenichi Handa <handa@m17n.org>
21390
21391 * casefiddle.c (casify_region): Fix multibyte case.
21392
21393 * character.c (c_string_width): Add return type `int'.
21394 (char_string_with_unification): Delete arg ADVANCED.
21395
21396 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21397 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21398 (CHAR_STRING_ADVANCE): Make it do-while statement.
21399
21400 * chartab.c (sub_char_table_set_range): Optimize for the case
21401 DEPTH == 3. Add workaround code for a GCC optimization bug.
21402
21403 * charset.c (parse_charset_map): Remove an unused variable.
21404
21405 * coding.c: Delete unused variables.
21406
21407 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21408 earlier. If inserted is zero and the coding system doesn't
21409 require flushing, don't call decode_coding_gap.
21410
21411 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21412
214132008-02-01 Kenichi Handa <handa@m17n.org>
21414
21415 The following changes are for using Unicode as an internal
21416 character model, and use UTF-8 format for buffer/string
21417 representation.
21418
21419 * .gdbinit (xchartable): Adjust for the change of char table structure.
21420 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21421
21422 * Makefile.in (obj): Add character.o and chartab.o.
21423 (lisp, shortlisp): Remove utf-8.elc.
21424 (*.o): For many files, change dependency on charset.h to
21425 character.h, and add dependency on character.h.
21426 (character.o, chartab.o): New targets.
21427
21428 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21429 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21430 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21431 of "charset.h".
21432
21433 * dired.c, filelock.c: Include "character.h".
21434
21435 * alloc.c: Include "character.h" instead of "charset.h".
21436 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21437 (syms_of_alloc): Remove defsubr for Smake_char_table.
21438
21439 * buffer.c: Include "character.h" instead of "charset.h", don't
21440 include "coding.h".
21441 (Fset_buffer_multibyte): Adjust for UTF-8.
21442
21443 * buffer.h: EXFUN Fbuffer_live_p.
21444
21445 * callproc.c: Include "character.h" instead of "charset.h".
21446 (Fcall_process): Big change for the new code-conversion APIs.
21447
21448 * casetab.c: Include "character.h" instead of "charset.h".
21449 (set_canon, set_identity, shuffle): Adjust for the new
21450 map_char_table spec.
21451 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21452 accessing the char table structure.
21453
21454 * chartab.c: New file that implements char table.
21455
21456 * category.c: Include "character.h".
21457 (copy_category_entry): New function.
21458 (copy_category_table): Call map_char_table and copy_category_entry.
21459 (Fmake_category_table): Initialize all top-level slots.
21460 (char_category_set): New function.
21461 (modify_lower_category_set): Delete.
21462 (Fmodify_category_entry): Call char_table_ref_and_range.
21463
21464 * category.h (CATEGORY_SET): Just call char_category_set.
21465
21466 * ccl.c: Include "character.h".
21467 (Qccl, Qcclp): New variables.
21468 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21469 it's less than 256.
21470 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21471 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21472 and DST type.
21473 (ccl_driver): Change types of argument, adjust code accordingly.
21474 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21475 ccl_driver.
21476 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21477
21478 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21479 New members src_multibyte, dst_multibyte, consumed, and produced.
21480 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21481 (CODING_SPEC_CCL_PROGRAM): New macro.
21482 (ccl_driver): Update prototype.
21483 (Qccl, Qcclp, Fccl_program_p): Extern them.
21484 (CHECK_CCL_PROGRAM): New macro.
21485
21486 * character.c, character.h, chartab.c: New files.
21487
21488 * charset.c: Mostly re-written. Move character and multibyte sequence
21489 handling codes to character.c.
21490
21491 * charset.h: Mostly re-written. Move character and multibyte sequence
21492 handling codes to character.h.
21493
21494 * coding.c, coding.h: Mostly re-written.
21495
21496 * composite.c: Include "character.h" instead of "charset.h".
21497 (CHAR_WIDTH): Move to character.h.
21498 (HASH_KEY, HASH_VALUE): Delete.
21499
21500 * composite.h (enum composition_method): Change order of enumeration
21501 symbols.
21502
21503 * data.c: Include "character.h" instead of "charset.h".
21504 (Faref): Call CHAR_TABLE_REF for a char table.
21505 (Faset): Call CHAR_TABLE_SET for a char table.
21506
21507 * dispextern.h (free_realized_face, check_face_attribytes)
21508 (generate_ascii_font): Extern them.
21509 (free_realized_multibyte_face): Delete extern.
21510
21511 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21512 table structure.
21513
21514 * editfns.c: Include "character.h" instead of "charset.h".
21515 (Fchar_to_string): Always call CHAR_STRING.
21516
21517 * emacs.c (main): Call init_charset_once, init_charset,
21518 syms_of_chartab, and syms_of_character.
21519
21520 * fileio.c: Include "character.h" instead of "charset.h".
21521 (Finsert_file_contents): Big change for the new code-conversion API.
21522 (choose_write_coding_system, Fwrite_region): Likewise.
21523 (build_annotations_2): Delete.
21524 (e_write): Big change for the new code-conversion API.
21525
21526 * fns.c: Include "character.h" instead of "charset.h".
21527 (copy_sub_char_table): Move to chartab.c.
21528 (Fcopy_sequence): Call copy_char_table for a char table.
21529 (concat): Delete codes calling count_multibyte.
21530 (string_char_to_byte, string_byte_to_char): Adjust for the new
21531 multibyte form.
21532 (internal_equal): Adjust for the change of char table structure.
21533 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21534 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21535 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21536 (char_table_translate, optimize_sub_char_table)
21537 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21538 chartab.c.
21539 (char_table_ref_and_index): Delete.
21540 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21541 (Fmd5): Call preferred_coding_system instead of accessing
21542 Vcoding_category_list. Adjust for the new code-conversion API.
21543 (syms_of_fns): Move defsubr for char table related functions to
21544 chartab.c.
21545
21546 * fontset.c: Mostly re-written.
21547
21548 * fontset.h (struct font_info): Change type of the member encoding_type.
21549 (enum FONT_SPEC_INDEX): New enum.
21550 (fontset_font_pattern, fs_load_font): Update prototype.
21551 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21552
21553 * indent.c: Include "character.h" instead of "charset.h".
21554 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21555
21556 * insdel.c: Include "character.h" instead of "charset.h".
21557 (copy_text): Don't refer to Vnonascii_translation_table.
21558 (insert_from_gap): New function.
21559
21560 * keyboard.c: Include "character.h" instead of "charset.h".
21561 (command_loop_1): Never call direct_output_forward_char before
21562 a non-ASCII character.
21563 (read_char): If Vkeyboard_translate_table is a char table, always
21564 translate a character.
21565
21566 * keymap.c: Include "character.h".
21567 (store_in_keymap): Handle the case that IDX is a cons.
21568 (Fdefine_key): Handle the case that KEY is a cons and the car part
21569 is also a cons (range).
21570 (push_key_description): Adjust for the new character code.
21571 (describe_vector): Call describe_char_table for a char table.
21572 (describe_char_table): New function.
21573
21574 * keymap.h (describe_char_table): Extern it.
21575
21576 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21577 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21578 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21579 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21580 Delete.
21581 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21582 structure.
21583 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21584 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21585 (CHARTAB_SIZE_BITS_3): New macros.
21586 (chartab_size): Extern it.
21587 (struct Lisp_Char_Table): Re-design.
21588 (struct Lisp_Sub_Char_Table): New structure.
21589 (HASH_KEY, HASH_VALUE): Move from fns.c.
21590 (CHARACTERBITS): Define as 22.
21591 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21592 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21593 (GC_SUB_CHAR_TABLE_P): New macro.
21594 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21595 (code_convert_string_norecord): Deleted extern.
21596 (init_character_once, syms_of_character, init_charset)
21597 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21598
21599 * lread.c: Include "character.h".
21600 (read_multibyte): New arg NBYTES.
21601 (read_escape): Change the meaning of returned *BYTEREP.
21602 (to_multibyte): Delete.
21603 (read1): Adjust the handling of char table and string.
21604
21605 * print.c: Include "character.h" instead of "charset.h".
21606 (print_string): Convert 8-bit raw bytes to octal form by
21607 string_escape_byte8.
21608 (print_object): Adjust for the new multibyte form. Print 8-bit
21609 raw bytes always in octal form. Handle sub char table correctly.
21610
21611 * process.c: Include "character.h" instead of "charset.h".
21612 (read_process_output, send_process): Adjust for the new
21613 code-conversion API.
21614
21615 * puresize.h (BASE_PURESIZE): Increase.
21616
21617 * regex.c: Include "character.h" instead of "charset.h".
21618 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21619 (regex_compile): Accept a range whose starting and ending
21620 character have different leading bytes.
21621 (analyse_first): Adjust for the above change.
21622
21623 * search.c: Include "character.h" instead of "charset.h".
21624 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21625 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21626
21627 * syntax.c: Include "character.h" instead of "charset.h".
21628 (syntax_parent_lookup): Delete.
21629 (Fmodify_syntax_entry): Accept a cons as CHAR.
21630 (skip_chars): Adjust for the new multibyte form.
21631 (init_syntax_once): Call char_table_set_range instead of directly
21632 accessing the structure of a char table.
21633
21634 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21635 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21636 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21637 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21638
21639 * term.c: Include "buffer.h" and "character.h".
21640 (encode_terminal_code, write_glyphs): Adjust for the new
21641 code-conversion API.
21642 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21643
21644 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21645
21646 * xdisp.c: Include "character.h".
21647 (get_next_display_element): Adjust for the new multibyte form.
21648 (disp_char_vector): Adjust for the new char table structure.
21649 (decode_mode_spec_coding): Adjust for the new structure of
21650 coding system.
21651 (decode_mode_spec): Adjust for the new code-conversion API.
21652
21653 * xfaces.c: Include "character.h" instead of "charset.h".
21654 (load_face_font): Adjust for the change of choose_face_font and
21655 FS_LOAD_FONT.
21656 (generate_ascii_font): New function.
21657 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21658 (set_font_frame_param): Adjust for the change of choose_face_font.
21659 (free_realized_face): Make it public.
21660 (free_realized_faces_for_fontset): Rename from
21661 free_realized_multibyte_face. Free also faces realized for ASCII.
21662 (choose_face_font): Change arguments. Adjust for the change of
21663 fontset_font_pattern and FS_LOAD_FONT.
21664
21665 * xfns.c: Include "character.h".
21666 (x_encode_text): Adjust for the new code-conversion API.
21667
21668 * xselect.c: Don't include "charset.h".
21669 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21670
21671 * xterm.c: Include "character.h".
21672 (x_encode_char): New argument CHARSET. Change caller.
21673 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21674 Call ENCODE_CHAR instead of SPLIT_CHAR.
21675 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21676 CHAR_WIDTH instead of CHARSET_WIDTH.
21677 (XTread_socket): Adjust for the new code-conversion API.
21678 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21679 (x_load_font): Adjust for the change of struct font.
21680
216812008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21682
21683 * xfaces.c (face_at_buffer_position): Remove unused vars.
21684
216852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21686
21687 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21688 Fix overflow checking.
21689
216902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21691
21692 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21693 Cancel previous change.
21694
216952008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21696
21697 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21698 ccl->eight_bit_control. Fix check for buffer overflow.
21699 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21700 (ccl_driver): Initialize extra_bytes to 0.
21701
217022008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21703
21704 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21705 return it ORed with ctrl_modifier.
21706
217072008-01-29 Miles Bader <miles@gnu.org>
21708
21709 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21710
217112008-01-28 Jason Rumney <jasonr@gnu.org>
21712
21713 * w32.c (stat): Don't double check for networked drive.
21714
217152008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21716
21717 * window.c (run_window_configuration_change_hook): New function.
21718 Code extracted from set_window_buffer. Set the selected frame.
21719 (set_window_buffer): Use it.
21720 * window.h (run_window_configuration_change_hook): Declare.
21721 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21722
21723 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21724
217252008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21726
21727 * Makefile.in: Remove references to unused macros.
21728
217292008-01-26 Eli Zaretskii <eliz@gnu.org>
21730
21731 * w32.c (g_b_init_get_sid_sub_authority)
21732 (g_b_init_get_sid_sub_authority_count): New static variables.
21733 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21734 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21735 (init_user_info): Use them to retrieve uid and gid.
21736 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21737 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21738 st_uid and st_gid of the file.
21739
217402008-01-26 Jason Rumney <jasonr@gnu.org>
21741
21742 * w32.c (logon_network_drive): New function.
21743 (stat): Use it.
21744
217452008-01-26 Chong Yidong <cyd@stupidchicken.com>
21746
21747 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21748 invisible text covered with an ellipsis.
21749
217502008-01-25 Richard Stallman <rms@gnu.org>
21751
21752 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21753 jump back to beginning. Move some other initializations after that.
21754 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21755 New variables.
21756 (syms_of_xdisp): Init them.
21757
21758 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21759
21760 * buffer.c (reset_buffer_local_variables):
21761 Implement `permanent-local-hook'.
21762 (Qpermanent_local_hook): New variable.
21763 (syms_of_buffer): Init and staticpro it.
21764
217652008-01-25 Michael Albinus <michael.albinus@gmx.de>
21766
21767 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21768
217692008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21770
21771 * fns.c (Fclrhash): Return TABLE.
21772
217732008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21774
21775 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21776 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21777 is set even without positional changes.
21778 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21779
21780 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21781
217822008-01-23 Jason Rumney <jasonr@gnu.org>
21783
21784 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21785
21786 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21787 the unicode range available in MULE by locale-coding-system.
21788 Improve dbcs lead byte detection. Set event timestamp and modifiers
21789 earlier.
21790
217912008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21792
21793 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21794 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21795 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21796 when used on child processes.
21797
217982008-01-21 Michael Albinus <michael.albinus@gmx.de>
21799
21800 * dbusbind.c (Fdbus_method_return_internal): Rename from
21801 Fdbus_method_return.
21802 (Fdbus_unregister_object): Move to dbus.el.
21803 (Fdbus_call_method, Fdbus_method_return_internal)
21804 (Fdbus_send_signal): Improve debug messages.
21805
218062008-01-20 Martin Rudalics <rudalics@gmx.at>
21807
21808 * undo.c (undo_inhibit_record_point): New variable.
21809 (syms_of_undo): Initialize it.
21810 (record_point): Don't record point when undo_inhibit_record_point
21811 is set.
21812
218132008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21814
21815 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21816
21817 * xdisp.c (Qauto_hscroll_mode): New var.
21818 (syms_of_xdisp): Initialize it.
21819 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21820 window's buffer.
21821 (hscroll_windows): Don't check automatic_hscrolling_p here.
21822
21823 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21824 vscroll if we're setting window-buffer to the value it already has.
21825
218262008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21827
21828 * m/intel386.h: Remove references to XENIX.
21829
218302008-01-17 Andreas Schwab <schwab@suse.de>
21831
21832 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21833 instead of HAVE_X86_64_LIB64_DIR.
21834 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21835
218362008-01-17 Glenn Morris <rgm@gnu.org>
21837
21838 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21839 to HAVE_X86_64_LIB64_DIR.
21840
218412008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21842
21843 * s/irix3-3.h:
21844 * s/irix4-0.h:
21845 * s/386-ix.h:
21846 * s/domain.h:
21847 * s/hpux9-x11r4.h:
21848 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21849
21850 * sysdep.c: Remove code containing references to symbols defined
21851 by unsupported systems.
21852
218532008-01-16 Glenn Morris <rgm@gnu.org>
21854
21855 * coding.c (select-safe-coding-system-function): Doc fix.
21856
218572008-01-15 Glenn Morris <rgm@gnu.org>
21858
21859 * config.in: Revert 2008-01-13 change: this is a generated file.
21860
218612008-01-13 Tom Tromey <tromey@redhat.com>
21862
21863 * lisp.h: Fix typo.
21864
218652008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21866
21867 * m/sequent-ptx.h:
21868 * m/sequent.h:
21869 * s/ptx.h:
21870 * s/ptx4-2.h:
21871 * s/ptx4.h: Remove files for systems no longer supported.
21872
21873 * callproc.c (Fcall_process): Fix previous change.
21874
218752008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21876
21877 * unexsunos4.c: Remove file, system not supported anymore.
21878
21879 * m/mips.h:
21880 * m/intel386.h:
21881 * callproc.c:
21882 * config.in:
21883 * ecrt0.c:
21884 * emacs.c:
21885 * fileio.c:
21886 * frame.c:
21887 * getpagesize.h:
21888 * keyboard.c:
21889 * lread.c:
21890 * process.c:
21891 * puresize.h:
21892 * sysdep.c:
21893 * systty.h:
21894 * syswait.h:
21895 * unexec.c:
21896 * xdisp.c:
21897 * alloc.c: Remove code containing references to symbols defined by
21898 unsupported systems.
21899
219002008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21901
21902 * coding.c (detect_coding_mask): Fix previous change.
21903
219042008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21905
21906 * coding.c (detect_coding_iso2022): New arg
21907 latin_extra_code_state. Allow Latin extra codes only
21908 when *latin_extra_code_state is nonzero.
21909 (detect_coding_mask): If there is a NULL byte, detect the encoding
21910 as UTF-16 or binary. If Latin extra codes exist, detect the
21911 encoding as ISO-2022 only when there's no other proper encoding is
21912 found.
21913
219142008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21915
21916 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21917 #ifdef MAC_OS.
21918
219192008-01-08 Richard Stallman <rms@gnu.org>
21920
21921 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21922
219232008-01-06 Nick Roberts <nickrob@snap.net.nz>
21924
21925 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21926 menu bar in parentheses.
21927
219282008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21929
21930 * m/7300.h:
21931 * m/acorn.h:
21932 * m/alliant-2800.h:
21933 * m/alliant.h:
21934 * m/alliant1.h:
21935 * m/alliant4.h:
21936 * m/altos.h:
21937 * m/amdahl.h:
21938 * m/apollo.h:
21939 * m/att3b.h:
21940 * m/aviion-intel.h:
21941 * m/aviion.h:
21942 * m/celerity.h:
21943 * m/clipper.h:
21944 * m/cnvrgnt.h:
21945 * m/convex.h:
21946 * m/cydra5.h:
21947 * m/delta88k.h:
21948 * m/dpx2.h:
21949 * m/dual.h:
21950 * m/elxsi.h:
21951 * m/f301.h:
21952 * m/gould-np1.h:
21953 * m/gould.h:
21954 * m/i860.h:
21955 * m/ibmps2-aix.h:
21956 * m/ibmrt-aix.h:
21957 * m/ibmrt.h:
21958 * m/irist.h:
21959 * m/is386.h:
21960 * m/isi-ov.h:
21961 * m/mega68.h:
21962 * m/mg1.h:
21963 * m/news-r6.h:
21964 * m/news-risc.h:
21965 * m/news.h:
21966 * m/nh3000.h:
21967 * m/nh4000.h:
21968 * m/ns16000.h:
21969 * m/ns32000.h:
21970 * m/nu.h:
21971 * m/orion.h:
21972 * m/orion105.h:
21973 * m/paragon.h:
21974 * m/pfa50.h:
21975 * m/plexus.h:
21976 * m/pyramid.h:
21977 * m/pyrmips.h:
21978 * m/sh3el.h:
21979 * m/sps7.h:
21980 * m/sr2k.h:
21981 * m/stride.h:
21982 * m/sun1.h:
21983 * m/sun2.h:
21984 * m/sun3-68881.h:
21985 * m/sun3-fpa.h:
21986 * m/sun3-soft.h:
21987 * m/sun3.h:
21988 * m/sun386.h:
21989 * m/symmetry.h:
21990 * m/tad68k.h:
21991 * m/tahoe.h:
21992 * m/targon31.h:
21993 * m/tek4300.h:
21994 * m/tekxd88.h:
21995 * m/tower32.h:
21996 * m/tower32v3.h:
21997 * m/ustation.h:
21998 * m/wicat.h:
21999 * m/xps100.h:
22000 * s/cxux.h:
22001 * s/cxux7.h:
22002 * s/dgux.h:
22003 * s/dgux4.h:
22004 * s/dgux5-4-3.h:
22005 * s/dgux5-4r2.h:
22006 * s/esix.h:
22007 * s/esix5r4.h:
22008 * s/hiuxmpp.h:
22009 * s/hiuxwe2.h:
22010 * s/iris3-5.h:
22011 * s/iris3-6.h:
22012 * s/isc2-2.h:
22013 * s/isc3-0.h:
22014 * s/isc4-0.h:
22015 * s/isc4-1.h:
22016 * s/newsos5.h:
22017 * s/newsos6.h:
22018 * s/osf1.h:
22019 * s/osf5-0.h:
22020 * s/riscix1-1.h:
22021 * s/riscix12.h:
22022 * s/sco4.h:
22023 * s/sco5.h:
22024 * s/sunos4-0.h:
22025 * s/sunos4-1.h:
22026 * s/sunos413.h:
22027 * s/sunos4shr.h:
22028 * s/umax.h:
22029 * s/unipl5-2.h:
22030 * s/xenix.h:
22031 * cxux-crt0.s:
22032 * unexapollo.c:
22033 * unexconvex.c:
22034 * unexenix.c:
22035 * unexsni.c: Remove files for systems no longer supported.
22036
22037 * m/intel386.h: Remove references to unsupported systems.
22038
22039 * w32.c (get_emacs_configuration): Remove reference to i860.
22040
22041 * sysdep.c: Remove dead code.
22042
220432008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22044
22045 * s/rtu.h:
22046 * m/masscomp.h: Remove files. Platform is obsolete.
22047
220482008-01-04 Michael Albinus <michael.albinus@gmx.de>
22049
22050 * dbusbind.c (Fdbus_method_return): New function.
22051 (xd_read_message): Add the serial number to the event.
22052 (Fdbus_register_method): Activate the function.
22053
220542008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22055
22056 * keyboard.c (read_key_sequence): Fix typo.
22057
220582008-01-03 Michael Albinus <michael.albinus@gmx.de>
22059
22060 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22061 (xd_signature, xd_append_arg): Handle element type detection for
22062 empty arrays.
22063 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22064 SDATA () calls; this must be solved more general.
22065 (Fdbus_register_signal): Use SBYTES instead of strlen.
22066
220672008-01-03 Magnus Henoch <magnus@zemdatav>
22068
22069 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22070 unsigned int for byte values (necessary for big-endian platform).
22071 (Fdbus_call_method): Handle the case of no returned arguments.
22072
220732007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22074
22075 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22076
220772007-12-31 Magnus Henoch <mange@freemail.hu>
22078
22079 * dbusbind.c (xd_signature): Signature of variant is just "v".
22080
220812007-12-30 Michael Albinus <michael.albinus@gmx.de>
22082
22083 * dbusbind.c: Fix several errors and compiler warnings.
22084 Reported by Tom Tromey <tromey@redhat.com>.
22085 (XD_ERROR, XD_DEBUG_MESSAGE)
22086 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22087 (xd_append_arg): Part for basic D-Bus types rewritten.
22088 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22089 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22090 appropriate.
22091 (xd_read_message): Return Qnil. Don't signal an error; it is not
22092 useful during event reading.
22093 (Fdbus_register_signal): Signal an error if the check for
22094 FUNCTIONP fails.
22095 (Fdbus_register_method): New function. The implementation is not
22096 complete, the call of the function signals an error therefore.
22097 (Fdbus_unregister_object): New function, renamed from
22098 Fdbus_unregister_signal. The initial check signals an error, if
22099 the object is not well formed.
22100
221012007-12-30 Richard Stallman <rms@gnu.org>
22102
22103 * textprop.c (get_char_property_and_overlay):
22104 Signal error if POSITION is out of range in a buffer.
22105
221062007-12-29 Martin Rudalics <rudalics@gmx.at>
22107
22108 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22109 because the original parameters are in pure storage now.
22110
221112007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22112
22113 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22114
221152007-12-22 Eli Zaretskii <eliz@gnu.org>
22116
22117 * callint.c (syms_of_callint) <command-history>: Add reference to
22118 history-length in the doc string.
22119
221202007-12-17 Jason Rumney <jasonr@gnu.org>
22121
22122 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22123 before passing as wParam.
22124
221252007-12-22 Michael Albinus <michael.albinus@gmx.de>
22126
22127 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22128 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22129 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22130 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22131 as number.
22132 (Fdbus_call_method): Fix docstring.
22133
221342007-12-21 Michael Albinus <michael.albinus@gmx.de>
22135
22136 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22137 New macros.
22138 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22139 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22140 Simplify.
22141 (xd_signature): New function.
22142 (xd_append_arg): Compute also signatures. Major rewrite.
22143 (xd_retrieve_arg): Make debug messages friendly.
22144 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22145 Check for signatures of arguments.
22146
221472007-12-19 Michael Albinus <michael.albinus@gmx.de>
22148
22149 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22150 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22151 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22152 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22153 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22154 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22155 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22156 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22157 (xd_retrieve_value): Remove. Functionality included in ...
22158 (xd_append_arg): New function.
22159 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22160
221612007-12-16 Michael Albinus <michael.albinus@gmx.de>
22162
22163 * dbusbind.c (top): Include <stdio.h>.
22164 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22165 dbus_message_new_method_call and dbus_message_new_signal.
22166 (Fdbus_register_signal): Rename unique_name to uname.
22167 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22168 non-existing unique name. Fix typos in matching rule. Return an
22169 object which is useful in Fdbus_unregister_signal.
22170 (Fdbus_unregister_signal): Reimplementation, in order to remove
22171 only the corresponding entry.
22172 (Vdbus_registered_functions_table): Change the order of entries.
22173 Apply these changes in xd_read_message and Fdbus_register_signal.
22174
221752007-12-16 Andreas Schwab <schwab@suse.de>
22176
22177 * fileio.c (Finsert_file_contents): Fix overflow check to not
22178 depend on undefined integer overflow.
22179
221802007-12-14 Jason Rumney <jasonr@gnu.org>
22181
22182 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22183 for characters above 127.
22184
221852007-12-13 Jason Rumney <jasonr@gnu.org>
22186
22187 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22188 before dereferencing array.
22189 (lookup_vk_code): Remove zero comparison.
22190
221912007-12-14 Michael Albinus <michael.albinus@gmx.de>
22192
22193 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22194 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22195 Use `unsigned int' instead of `uint'.
22196 (xd_read_message, Fdbus_register_signal): Split expressions into
22197 multiple lines before operators "&&" and "||", according to the
22198 GNU Coding Standards.
22199
222002007-12-14 Eli Zaretskii <eliz@gnu.org>
22201
22202 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22203
222042007-12-12 Juri Linkov <juri@jurta.org>
22205
22206 * buffer.c (Frename_buffer): In interactive spec replace
22207 `read-buffer' with `read-string' that uses `buffer-name-history'
22208 as history, and the current buffer's name as default.
22209
222102007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22211
22212 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22213 manipulating the backtrace manually.
22214 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22215 (struct backtrace, backtrace_list): Remove.
22216 (command_loop_1): Remove dead var `no_direct'.
22217
22218 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22219 preserve non-built-in buffer-local variables.
22220 (Fkill_all_local_variables): Don't re-create&re-set permanent
22221 buffer-local variables.
22222
222232007-12-09 Juri Linkov <juri@jurta.org>
22224
22225 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22226 Lisp code that uses `read-buffer' with current buffer as default.
22227
222282007-12-08 Michael Albinus <michael.albinus@gmx.de>
22229
22230 * dbusbind.c (xd_read_message): Generate an event for every
22231 registered handler. There might be several handlers registered
22232 for the same signal.
22233 (Fdbus_register_signal): Don't overwrite a registration for the
22234 same signal. Add a new registration if handlers are different.
22235 (Vdbus_registered_functions_table): Rework doc string.
22236
222372007-12-07 Michael Albinus <michael.albinus@gmx.de>
22238
22239 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22240 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22241 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22242 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22243 Unify argument lists.
22244 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22245 arguments and hash table keys. Use unique name for service.
22246 (Fdbus_unregister_signal): Remove checks.
22247 (Vdbus_registered_functions_table): Fix doc string.
22248
222492007-12-05 Magnus Henoch <mange@freemail.hu>
22250
22251 * process.c (make_process): Initialize pty_flag to 0.
22252
222532007-12-05 Jason Rumney <jasonr@gnu.org>
22254
22255 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22256 specified XBMs.
22257
222582007-12-05 Richard Stallman <rms@gnu.org>
22259
22260 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22261
222622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22263
22264 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22265 New variable.
22266 (mac_try_close_socket) [MAC_OSX]: New function.
22267 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22268 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22269
22270 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22271 Use mac_try_close_socket.
22272
222732007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22274
22275 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22276 reloc_base.
22277 (copy_dysymtab): Compute relocation base here.
22278 (rebase_reloc_address) [__ppc64__]: New function.
22279 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22280 changed.
22281
222822007-12-05 Jason Rumney <jasonr@gnu.org>
22283
22284 * w32proc.c (sys_spawnve): Quote args with wildcards.
22285
222862007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22287
22288 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22289 __objc_* sections.
22290 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22291
222922007-12-05 Michael Albinus <michael.albinus@gmx.de>
22293
22294 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22295 Move check for Vdbus_registered_functions_table to
22296 xd_read_queued_messages.
22297 (xd_read_queued_messages): Protect xd_read_message calls by
22298 internal_condition_case_1.
22299
223002007-12-04 Michael Albinus <michael.albinus@gmx.de>
22301
22302 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22303 Qdbus_system_bus and Qdbus_session_bus, respectively.
22304 (Vdbus_intern_symbols): Remove.
22305 (Vdbus_registered_functions_table): New hash table.
22306 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22307 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22308 Rewrite in order to manage registered functions by hash table
22309 Vdbus_registered_functions_table.
22310
223112007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22312
22313 * xterm.c: Update URL to Window Manager Specification in comment.
22314
223152007-12-02 Michael Albinus <michael.albinus@gmx.de>
22316
22317 * config.in (HAVE_DBUS): Add.
22318
22319 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22320 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22321 (obj): Add $(DBUS_OBJ).
22322 (LIBES): Add $(DBUS_LIBS).
22323 (dbusbind.o): New target.
22324
22325 * dbusbind.c: New file.
22326
22327 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22328
22329 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22330 (Qdbus_event): New Lisp symbol.
22331 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22332 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22333 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22334
22335 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22336
223372007-12-01 Richard Stallman <rms@gnu.org>
22338
22339 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22340
223412007-11-30 Jason Rumney <jasonr@gnu.org>
22342
22343 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22344 (w32con_reset_terminal_modes): Clear screen buffer.
22345 (w32_face_attributes): Don't use color indexes that are out of range.
22346 Only reverse the default colors.
22347
22348 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22349 WINDOWSNT.
22350
22351 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22352
223532007-11-29 Jason Rumney <jasonr@gnu.org>
22354
22355 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22356 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22357 if the terminal colors are initialized.
22358 (unspecified_fg, unspecified_bg): Remove unused declarations.
22359
223602007-11-29 Andreas Schwab <schwab@suse.de>
22361
22362 * keyboard.c (apply_modifiers): Fix typo.
22363
223642007-11-29 Richard Stallman <rms@gnu.org>
22365
22366 * keymap.c (Fcurrent_local_map): Doc fix.
22367
223682007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22369
22370 * s/gnu-kfreebsd.h: New file.
22371
223722007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22373
22374 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22375 Don't cast redundantly.
22376
22377 * keyboard.c (KEY_TO_CHAR): New macro.
22378 (parse_modifiers, apply_modifiers): Accept integer arguments.
22379 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22380 for chars and symbol keys.
22381 After doing such remapping, apply function-key-map again.
22382
223832007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22384
22385 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22386 compiled anymore.
22387
223882007-11-26 Andreas Schwab <schwab@suse.de>
22389
22390 * process.c (list_processes_1): Fix indentation level of the
22391 command column.
22392
223932007-11-23 Andreas Schwab <schwab@suse.de>
22394
22395 * editfns.c (Fformat): Handle %c specially since it requires the
22396 argument to be of type int.
22397
223982007-11-23 Markus Triska <markus.triska@gmx.at>
22399
22400 * emacs.c (main): Call init_editfns before init_process, since
22401 init_process sets Vprocess_connection_type depending on OS release.
22402
224032007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22404
22405 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22406 (find_symbol_value): Use do_symval_forwarding.
22407
22408 * data.c (set_internal): Set the value in the `cons-cell' (for
22409 Buffer_Local_values) not only for frame-local variables.
22410
224112007-11-22 Andreas Schwab <schwab@suse.de>
22412
22413 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22414 values to sprintf.
22415 * keymap.c (Fsingle_key_description): Likewise.
22416 * print.c (print_object): Likewise.
22417
224182007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22419
22420 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22421 file for image is nil.
22422
224232007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22424
22425 * term.c: Include stdarg.h.
22426 (fatal): Implement using varargs.
22427 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22428
224292007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22430
22431 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22432 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22433 Update call to buffer_slot_type_mismatch.
22434 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22435 (buffer_slot_type_mismatch): Update.
22436 * buffer.c (buffer_local_types): Remove.
22437 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22438 (defvar_per_buffer): Set the type in the buffer_objfwd.
22439
224402007-11-21 Jason Rumney <jasonr@gnu.org>
22441
22442 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22443 CreateFileMapping returns NULL on failure.
22444
224452007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22446
22447 * search.c (Fset_match_data): Remove the `evaporate' feature.
22448 (unwind_set_match_data): Don't use the `evaporate' feature.
22449
224502007-11-21 Jason Rumney <jasonr@gnu.org>
22451
22452 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22453
22454 * w32console.c (w32con_write_glyphs): Remove unused variables.
22455
224562007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22457
22458 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22459
22460 * s/darwin.h (MULTI_KBOARD): Remove.
22461
22462 * macfns.c (x_create_tip_frame, Fx_create_frame)
22463 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22464
224652007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22466
22467 * buffer.c (Fbuffer_local_value): Remove redundant test.
22468 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22469 than in `current-buffer' to match the comment.
22470 Do the swap using swap_in_global_binding.
22471
22472 * data.c (store_symval_forwarding, set_internal):
22473 * eval.c (specbind): Remove dead code.
22474
22475 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22476 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22477 Since we do not want to see internal Lisp_*fwd objects here.
22478
224792007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22480
22481 * sysdep.c (init_system_name): Use getaddrinfo if available.
22482
22483 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22484 (x_scroll_bar_note_movement): start, end, with, height in struct
22485 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22486
224872007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22488
22489 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22490
224912007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22492
22493 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22494 This undoes Richard's change of 14-Oct-2002.
22495
22496 * alloc.c (allocate_other_vector):
22497 * lisp.h (allocate_other_vector): Remove.
22498
22499 * window.c (struct save_window_data): Move non-lisp data to the end
22500 and make it `int' rather than Lisp_Object.
22501 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22502 Done wrap/unwrap integer values.
22503 (Fset_window_configuration, compare_window_configurations):
22504 Update use of fields to their new types.
22505
22506 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22507 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22508 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22509 (SET_SCROLL_BAR_X_WINDOW): Remove.
22510 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22511 Access the new x_window field directly.
22512 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22513 Don't wrap/unwrap integers into Lisp_Objects.
22514 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22515 (x_scroll_bar_report_motion):
22516 Don't wrap/unwrap integers into Lisp_Objects.
22517 (x_term_init): Use SDATA.
22518 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22519 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22520 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22521 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22522 * xfns.c (x_set_background_color):
22523 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22524 Access the new x_window field directly.
22525
22526 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22527 (allocate_pseudovector): Make non-static.
22528
22529 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22530 (allocate_pseudovector): Declare.
22531 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22532
225332007-11-15 Andreas Schwab <schwab@suse.de>
22534
22535 * editfns.c (Fformat): Correctly format EMACS_INT values.
22536 Also take precision into account when formatting an integer.
22537
22538 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22539
225402007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22541
22542 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22543 (syms_of_keyboard): Defsubr it.
22544
22545 * data.c (swap_in_global_binding): Fix longstanding bug where
22546 store_symval_forwarding was not called with the right second argument,
22547 thus causing objfwd-ing from being dropped.
22548
225492007-11-14 Juanma Barranquero <lekktu@gmail.com>
22550
22551 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22552 (Fx_display_pixel_height, Fx_display_planes)
22553 (Fx_display_color_cells, Fx_server_max_request_size)
22554 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22555 (Fx_display_visual_class, Fx_display_save_under):
22556 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22557 (Fx_display_pixel_height, Fx_display_planes)
22558 (Fx_display_color_cells, Fx_server_max_request_size)
22559 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22560 (Fx_display_mm_height, Fx_display_mm_width)
22561 (Fx_display_backing_store, Fx_display_visual_class)
22562 (Fw32_select_font, Fx_display_save_under):
22563 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22564 (Fx_display_pixel_height, Fx_display_planes)
22565 (Fx_display_color_cells, Fx_server_max_request_size)
22566 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22567 (Fx_display_save_under): Fix typos in docstrings.
22568
225692007-11-14 Juanma Barranquero <lekktu@gmail.com>
22570
22571 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22572 corresponding to deleted entries; they are an implementation detail.
22573 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22574 Remove variables.
22575 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22576 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22577 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22578 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22579 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22580 (Fw32_define_rgb_color, Fw32_load_color_file)
22581 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22582 Fix typos in docstrings.
22583 (Fx_server_version): Reflow docstring.
22584 (Fw32_shell_execute): Doc fixes.
22585
225862007-11-13 Juanma Barranquero <lekktu@gmail.com>
22587
22588 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22589 if w32_parse_hot_key returned nil.
22590
225912007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22592
22593 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22594
225952007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22596
aac0c6e3
MR
22597 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22598
22599 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22600
22601 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22602 Remove W32_SCROLL_BAR_CLICK_EVENT.
22603
22604 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22605 Add MULTIMEDIA_KEY_EVENT.
22606
22607 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22608 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22609 (make_lispy_event) [WINDOWSNT]: Use it to translate
22610 MULTIMEDIA_KEY_EVENT.
22611
22612 * w32term.h (WM_APPCOMMAND): Define if not already.
22613 (GET_APPCOMMAND_LPARAM): Likewise.
22614
22615 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22616 WM_APPCOMMAND.
22617
22618 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22619 (syms_of_w32fns): Export and initialize it.
22620 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22621
226222007-11-09 Chong Yidong <cyd@stupidchicken.com>
22623
22624 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22625 twice.
22626
22627 * xdisp.c (handle_face_prop): Fix last change.
22628
226292007-11-09 Richard Stallman <rms@gnu.org>
22630
22631 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22632 not just for after-strings and before-strings.
22633 Call face_for_overlay_string and pass the overlay to it.
22634 (handle_display_prop): Determine whether property came from an overlay.
22635 Pass OVERLAY arg to handle_single_display_spec.
22636 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22637 (load_overlay_strings): Fill in it->string_overlays.
22638 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22639
22640 * xfaces.c (face_for_overlay_string): Function renamed from
22641 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22642
22643 * dispextern.h (struct it): New elt string_overlays.
22644 New elt from_overlay, also in stack.
22645 Rearrange a few elements.
22646 (face_for_overlay_string): Decl renamed from
22647 face_at_buffer_position_no_overlays, and add argument.
22648
226492007-11-09 Richard Stallman <rms@gnu.org>
22650
22651 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22652 to get the base face for an overlay string.
22653
22654 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22655
22656 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22657
22658 * xdisp.c (handle_stop): Move some code out of loop.
22659
226602007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22661
22662 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22663 Fix conversion from Lisp object to ATSUFontID.
22664
226652007-11-09 Jason Rumney <jasonr@gnu.org>
22666
22667 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22668
226692007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22670
22671 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22672 Don't assume regions are aligned to page boundary.
22673 (print_load_command_name): Add LC_UUID if defined.
22674
226752007-11-09 Richard Stallman <rms@gnu.org>
22676
22677 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22678
226792007-11-07 Jason Rumney <jasonr@gnu.org>
22680
22681 * s/windows95.h: Remove.
22682
226832007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22684
22685 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22686 abort with a message on unhandled store_type values.
22687
226882007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22689
22690 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22691 Remove HAVE_X11R5 and HAVE_X11R4.
22692
226932007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22694
22695 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22696
226972007-11-01 Johan Bockgård <bojohan@gnu.org>
22698
22699 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22700 Don't set s->stippled_p here, since it has already been set by
22701 x_set_glyph_string_gc from x_draw_glyph_string.
22702
227032007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22704
22705 * sunfns.c: Remove file.
22706
22707 * m/sun386.h:
22708 * m/sun2.h:
22709 * m/sparc.h: Remove Sun windows code.
22710
227112007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22712
22713 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22714 (init_keyboard): Set current_kboard's window-system to nil.
22715 (tty_read_avail_input): Typo.
22716 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22717
227182007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22719
22720 * s/usg5-4.h:
22721 * s/usg5-3.h:
22722 * s/ptx.h:
22723 * m/is386.h:
22724 * m/ibmps2-aix.h:
22725 * Makefile.in: Remove all mentions of X10.
22726
22727 * dispnew.c (syms_of_display): Don't mention version 10.
22728
227292007-10-28 Juanma Barranquero <lekktu@gmail.com>
22730
22731 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22732 ($(BLD)/abbrev.$(O)): Remove.
22733
227342007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22735
22736 Rewrite abbrev.c in Elisp.
22737 * image.c (Qcount): Don't declare as extern.
22738 (syms_of_image): Initialize and staticpro `Qcount'.
22739 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22740 * emacs.c (main): Don't call syms_of_abbrev.
22741 * Makefile.in (obj): Remove abbrev.o.
22742 (abbrev.o): Remove.
22743 * abbrev.c: Remove.
22744
227452007-10-26 Martin Rudalics <rudalics@gmx.at>
22746
22747 * window.c (window_min_size_2): Don't count header-line.
22748
227492007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22750
22751 * frame.h (struct frame): Move all bit fields after the first bit
22752 field to take advantage of the available space. Group all the
22753 chars together to reduce wasted space due to padding.
22754
227552007-10-26 Juanma Barranquero <lekktu@gmail.com>
22756
22757 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22758
22759 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22760 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22761 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22762 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22763 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22764 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22765 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22766 (last_marked, mark_object_loop_halt): Make static.
22767
22768 * frame.c (syms_of_frame) <delete-frame-functions>:
22769 Fix typo in docstring.
22770
227712007-10-25 Juanma Barranquero <lekktu@gmail.com>
22772
22773 * w32.c (init_environment): Fix tiny memory leak.
22774 (w32_get_resource): Remove unused variable `ok'.
22775
227762007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22777
22778 Make `window-system' into a keyboard-local variable (rather than
22779 frame-local as done originally by multi-tty).
22780
22781 * keyboard.h (struct kboard): Add Vwindow_system.
22782 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22783 (mark_kboards): Mark Vwindow_system.
22784
22785 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22786 (init_display): Don't set the obsolete `window-system' frame-param.
22787
22788 * xterm.c (x_term_init):
22789 * w32term.c (w32_create_terminal):
22790 * term.c (init_tty): Set Vwindow_system.
22791 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22792 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22793
22794 * xfns.c (Fx_create_frame, x_create_tip_frame):
22795 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22796 * macfns.c (Fx_create_frame):
22797 Don't set the obsolete `window-system' frame-param.
22798
22799 * frame.h (Qwindow_system): Remove.
22800 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22801 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22802
228032007-10-24 Richard Stallman <rms@gnu.org>
22804
22805 * frame.c (x_figure_window_size): For fullscreen case,
22806 set USPosition | PPosition without clobbering rest of window_prompting.
22807
22808 * keyboard.c (Fcurrent_idle_time): Doc fix.
22809
22810 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22811
228122007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22813
22814 * process.c (unwind_request_sigio): Only define if __ultrix__.
22815
22816 * callproc.c (child_setup): Remove spurious *.
22817
22818 * lisp.h (Fget_text_property): Declare.
22819 (have_menus_p): Declare it here rather than in sys-dep header files.
22820 * macterm.h (have_menus_p):
22821 * msdos.h (have_menus_p):
22822 * xterm.h (have_menus_p): Remove.
22823
22824 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22825 (Fmake_variable_frame_local): Just check the variable's const-ness
22826 rather than checking nil or t.
22827
228282007-10-22 Jason Rumney <jasonr@gnu.org>
22829
22830 * w32fns.c: Include math.h.
22831 (w32_abort): Declaration moved to nt/config.nt.
22832
22833 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22834 (abort): Redefinition moved to nt/config.nt.
22835
22836 * m/windowsnt.h: Remove.
22837
228382007-10-22 Juanma Barranquero <lekktu@gmail.com>
22839
22840 * emacs.c (Fdump_emacs): Fix typo in message.
22841 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22842 <installation-directory>: Reflow docstring.
22843
228442007-10-22 Juri Linkov <juri@jurta.org>
22845
22846 * minibuf.c: Allow minibuffer default to be a list of default values.
22847 With empty input use the first element of this list as returned default.
22848 (string_to_object)
22849 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22850 (read_minibuf): If defalt is cons, set histstring to its car.
22851 (Fread_string): If default_value is cons, set val to its car.
22852 (Fread_buffer): If def is cons, use its car.
22853 (Fcompleting_read): If defalt is cons, set val to its car.
22854
228552007-10-21 Michael Albinus <michael.albinus@gmx.de>
22856
22857 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22858
228592007-10-20 Juanma Barranquero <lekktu@gmail.com>
22860
22861 * doc.c (Fdocumentation): Check for advice in all cases.
22862
228632007-10-19 Chong Yidong <cyd@stupidchicken.com>
22864
22865 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22866
228672007-10-19 Richard Stallman <rms@gnu.org>
22868
22869 * doc.c (Fdocumentation): Check for and handle an advised function.
22870
228712007-10-19 Juanma Barranquero <lekktu@gmail.com>
22872
22873 * process.c (Fset_process_filter): Doc fix.
22874
228752007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22876
22877 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22878 which caused key-translation-map to applied repeatedly (thus breaking
22879 double-mode).
22880
228812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22882
22883 * xselect.c (x_own_selection, x_handle_selection_clear)
22884 (x_clear_frame_selections):
22885 * w32menu.c (list_of_panes, list_of_items):
22886 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22887 * textprop.c (validate_plist, interval_has_all_properties)
22888 (interval_has_some_properties, interval_has_some_properties_list)
22889 (add_properties, text_property_list):
22890 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22891 * minibuf.c (Fassoc_string):
22892 * macselect.c (x_own_selection, x_clear_frame_selections)
22893 (Fx_disown_selection_internal):
22894 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22895 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22896
228972007-10-17 Chong Yidong <cyd@stupidchicken.com>
22898
22899 * process.c: Link to libs for calling res_init() if available.
22900 (Fmake_network_process): Call res_init() before getaddrinfo or
22901 gethostbyname, if possible.
22902
229032007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22904
22905 * lread.c (read1): Set pvectype for char_tables.
22906
22907 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22908 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22909 Add type checks.
22910 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22911
22912 * alloc.c (free_misc): Use XMISCTYPE.
22913 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22914
229152007-10-17 Glenn Morris <rgm@gnu.org>
22916
22917 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22918 (syms_of_minibuf): Add Qcompletion_ignore_case.
22919 * dired.c (Qcompletion_ignore_case): Change to external.
22920 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22921 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22922 (Fread_file_name): Use it rather than intern'ing.
22923
22924 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22925 (Fread_coding_system): Ignore case of user input.
22926
229272007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22928
22929 * xdisp.c (handle_display_prop): Ignore display specs after
22930 replacing one when string text is being replaced.
22931 (handle_single_display_spec): Pretend as if characters with display
22932 property haven't been consumed only when buffer text is being replaced.
22933
229342007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22935
22936 * xfns.c (Fx_create_frame, Fx_display_list):
22937 * window.c (window_fixed_size_p, enlarge_window)
22938 (shrink_window_lowest_first):
22939 * macterm.c (init_font_name_table):
22940 * macfns.c (Fx_create_frame, Fx_display_list):
22941 * lread.c (close_load_descs):
22942 * keyboard.c (read_char_x_menu_prompt):
22943 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22944 * coding.c (code_convert_region_unwind): Test the type of an object
22945 rather than just !NILP before extracting data from it.
22946
22947 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22948
22949 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22950 (XMISCANY): New macro.
22951 (XMISCTYPE): Use it.
22952 (struct Lisp_Misc_Any): New type.
22953 (union Lisp_Misc): Use it.
22954 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22955 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22956 (find_symbol_value, set_internal, default_value, Fset_default)
22957 (Fmake_variable_buffer_local, Fmake_local_variable)
22958 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22959 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22960 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22961 * alloc.c (allocate_buffer): Set the size and tag.
22962 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22963 Use XMISCANY.
22964 (die): Follow the GNU convention for error messages.
22965 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22966 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22967 tag any more.
22968 (set_buffer_internal_1):
22969 * frame.c (store_frame_param):
22970 * eval.c (specbind):
22971 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22972
22973 * doc.c (Fsnarf_documentation): Simplify.
22974
229752007-10-14 Juanma Barranquero <lekktu@gmail.com>
22976
22977 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22978 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22979
229802007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22981
22982 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22983
229842007-10-14 Juanma Barranquero <lekktu@gmail.com>
22985
22986 * eval.c (do_autoload): Don't save autoloads.
22987
22988 * data.c (Ffset): Save autoload of the function being set.
22989
229902007-10-07 John Paul Wallington <jpw@pobox.com>
22991
22992 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22993 parameter before setting up faces.
22994
229952007-10-13 Eli Zaretskii <eliz@gnu.org>
22996
22997 * ccl.c (Fregister_code_conversion_map):
22998 * keyboard.c (append_tool_bar_item): Reformat last change.
22999
23000 * lisp.h (eabs): Rename from `abs'. All callers changed.
23001
230022007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23003
23004 * buffer.c (add_overlay_mod_hooklist):
23005 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23006 * fontset.c (make_fontset):
23007 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23008 (append_tool_bar_item):
23009 * macmenu.c (grow_menu_items):
23010 * w32menu.c (grow_menu_items):
23011 * xmenu.c (grow_menu_items): Use larger_vector.
23012
230132007-10-13 Eli Zaretskii <eliz@gnu.org>
23014
23015 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23016 selected frame'' on MSDOS).
23017
230182007-10-12 Martin Rudalics <rudalics@gmx.at>
23019
23020 * frame.c (Qexplicit_name): New variable.
23021 (x_report_frame_params): Report it in parameter alist.
23022 (syms_of_frame): Intern and staticpro it.
23023
230242007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23025
23026 * macfns.c (x_create_tip_frame): Set terminal for frame.
23027
230282007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23029
23030 * frame.c (Qenvironment): Remove.
23031 (syms_of_frame) <Qenvironment>: Don't initialize.
23032 (Fdelete_frame): Don't treat the `environment' param specially.
23033 * frame.h (Qenvironment): Don't declare.
23034 * callproc.c (set_initial_environment): Don't set unused frame param.
23035
23036 * frame.c (Fframe_with_environment): Remove.
23037 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23038
23039 * lisp.h (Fframe_with_environment): Don't declare.
23040
230412007-10-10 Juanma Barranquero <lekktu@gmail.com>
23042
23043 * indent.c (indent_tabs_mode, last_known_column)
23044 (last_known_column_modified): Make static.
23045 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23046
230472007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23048
23049 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23050
230512007-10-09 Jason Rumney <jasonr@gnu.org>
23052
23053 * w32term.c (x_set_window_size): Disable code that attempts to tell
23054 Lisp code about a size change before it actually happens.
23055
230562007-10-09 Richard Stallman <rms@gnu.org>
23057
23058 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23059 return HANDLED_RETURN.
23060
230612007-10-08 Martin Rudalics <rudalics@gmx.at>
23062
23063 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23064 when there's an unread command event.
23065
23066 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23067 window autoselection act appropriately when leaving selected frame.
23068 (syms_of_frame): Initialize focus_follows_mouse.
23069 * frame.h (focus_follows_mouse): Extern it.
23070 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23071 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23072 * msdos.c (dos_rawgetc): Likewise.
23073 * w32term.c (w32_read_socket): Likewise.
23074 * xterm.c (handle_one_xevent): Likewise.
23075 * xdisp.c (syms_of_xdisp): In doc-string of
23076 mouse-autoselect-window mention focus-follows-mouse.
23077
230782007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23079
23080 * macterm.c (mac_load_query_font): Fix missing return value.
23081 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23082 Add BLOCK_INPUT.
23083
230842007-10-08 Richard Stallman <rms@gnu.org>
23085
23086 * xdisp.c (get_window_cursor_type): Implement documented behavior
23087 for cursor-in-non-selected-windows = t.
23088
230892007-10-08 Jason Rumney <jasonr@gnu.org>
23090
23091 * w32.c (w32_get_resource): Always close registry keys.
23092
230932007-10-08 Jason Rumney <jasonr@gnu.org>
23094
23095 * makefile.w32-in (LIBS): Add COMCTL32.
23096
23097 * w32fns.c (globals_of_w32fns): Init common controls.
23098
230992007-10-08 Richard Stallman <rms@gnu.org>
23100
23101 * image.c (our_memory_buffer): Rename from omfib_buffer.
23102
231032007-10-08 Richard Stallman <rms@gnu.org>
23104
23105 * buffer.c (Foverlays_at): Doc fix.
23106
231072007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23108
23109 * fns.c (Fplist_put): Preserve uneven tail data.
23110
231112007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23112
23113 * termhooks.h (enum event_kind): Remove trailing comma.
23114
23115 * frame.h (enum): Remove trailing comma.
23116
231172007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23118
23119 * w32proc.c (delete_child): Don't terminate threads of zombies.
23120
231212007-10-08 Martin Rudalics <rudalics@gmx.at>
23122
23123 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23124
23125 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23126 last-repeatable-command.
23127 (init_kboard): Initialize Vlast_repeatable_command.
23128 (command_loop_1): Set it to real_this_command unless that was
23129 bound to an input event.
23130 (mark_kboards): Mark it.
23131
231322007-10-08 Richard Stallman <rms@gnu.org>
23133
23134 * eval.c (condition-case): Doc fix.
23135
231362007-10-08 Masatake YAMATO <jet@gyve.org>
23137
23138 * xfaces.c (tty_supports_face_attributes_p): Fix code
23139 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23140 was copied and not edited.
23141
231422007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23143
23144 Add new `input-decode-map' keymap and use it for terminal
23145 escape sequences.
23146 * keyboard.h (struct kboard): Add Vinput_decode_map.
23147 Remove Vlocal_key_translation_map.
23148 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23149 (init_kboard): Init input-decode-map.
23150 Replace local-key-translation-map back with key-translation-map.
23151 (syms_of_keyboard): Declare input-decode-map.
23152 Remove local-key-translation-map. Update docstrings.
23153 (mark_kboards): Mark Vinput_decode_map.
23154 Don't mark Vlocal_key_translation_map.
23155 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23156 Replace local-key-translation-map back with key-translation-map.
23157 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23158 Bind in input-decode-map rather than function-key-map.
23159
23160 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23161 This was made redundant by the previous introduction of XSETPVECTYPE.
23162
231632007-10-09 Richard Stallman <rms@gnu.org>
23164
23165 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23166
231672007-09-29 Richard Stallman <rms@gnu.org>
23168
23169 * eval.c (internal_condition_case_2, internal_condition_case_1)
23170 (internal_condition_case): Reenable abort if x_catching_errors ()
23171 to see if that really happens and why.
23172
231732007-10-06 Andreas Schwab <schwab@suse.de>
23174
23175 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23176
231772007-10-04 Juanma Barranquero <lekktu@gmail.com>
23178
23179 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23180
231812007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23182
23183 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23184
231852007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23186
23187 * window.h (struct window):
23188 * window.c (struct save_window_data, struct saved_window):
23189 * termhooks.h (struct terminal):
23190 * process.h (struct Lisp_Process):
23191 * frame.h (struct frame):
23192 * buffer.h (struct buffer):
23193 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23194 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23195 The size field of (pseudo)vectors is now unsigned.
23196 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23197
23198 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23199 Turn `count' into an integer.
23200
23201 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23202 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23203 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23204 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23205 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23206
23207 * alloc.c (allocate_pseudovector): New fun.
23208 (ALLOCATE_PSEUDOVECTOR): New macro.
23209 (allocate_window, allocate_terminal, allocate_frame)
23210 (allocate_process): Use it.
23211 (mark_vectorlike): New function.
23212 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23213 (mark_terminals): Use it.
23214 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23215 (Fmake_byte_code): Use XSETPVECTYPE.
23216
23217 * frame.c (Fframe_parameters): Minor simplification.
23218
23219 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23220
23221 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23222
23223 * buffer.c (Fget_buffer_create, init_buffer_once):
23224 * lread.c (defsubr):
23225 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23226
23227 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23228 defined differently in the m/*.h files.
23229 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23230 (XSETPVECTYPE): New macro.
23231 (XSETPSEUDOVECTOR): Use it.
23232
23233 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23234 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23235
23236 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23237 * lread.c (defvar_per_buffer):
23238 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23239
23240 * window.c (candidate_window_p): Only consider as visible frames that
23241 are on the same terminal.
23242
23243 * m/ibms390x.h (MARKBIT): Remove unused macro.
23244
232452007-10-01 Juanma Barranquero <lekktu@gmail.com>
23246
23247 * lread.c (Fload): Fix typo in docstring.
23248
232492007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23250
23251 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23252 of a non-zero value can't yield zero.
23253
232542007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23255
23256 * term.c (term_clear_mouse_face, term_mouse_highlight)
23257 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23258
23259 * print.c (safe_debug_print): Use XHASH.
23260
23261 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23262 Lisp elements such as tags.
23263 (XHASH): New macro.
23264 (EQ): Use it.
23265 (SREF, SSET, STRING_COPYIN): Use SDATA.
23266 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23267
23268 * alloc.c (mark_terminal): Remove left-over declaration.
23269 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23270 (allocate_vectorlike): Remove type argument. Adjust callers.
23271 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23272 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23273
23274 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23275 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23276 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23277 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23278 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23279 Use them.
23280
23281 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23282 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23283 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23284
232852007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23286
23287 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23288 loaded by default.
23289
232902007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23291
23292 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23293 on this tty.
23294 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23295
23296 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23297 Update all users.
23298 (handle_one_term_event): Use Gpm_DrawPointer.
23299 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23300 Signal errors instead of returning nil. Always return nil.
23301 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23302 Make it a noop if gpm-mouse was not activated.
23303 (syms_of_term): Update names.
23304
233052007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23306
23307 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23308 (init_sys_modes): Check that gpm_tty is the current tty.
23309
23310 * alloc.c (allocate_terminal): Set the vector size to only count the
23311 lisp fields. Initialize those to nil.
23312 (mark_object): Don't treat terminals specially.
23313 (mark_terminal): Remove.
23314 (mark_terminals): Use mark_object instead.
23315
23316 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23317 the GC to the beginning.
23318
23319 * indent.h:
23320 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23321
23322 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23323
233242007-09-25 Jason Rumney <jasonr@gnu.org>
23325
23326 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23327
23328 * w32console.c (create_w32cons_output): Remove.
23329
23330 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23331
23332 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23333 (reset_sys_modes): Use reset_terminal_modes_hook.
23334
233352007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * eval.c (do_autoload): Don't output any message.
23338
233392007-09-24 Juri Linkov <juri@jurta.org>
23340
23341 * emacs.c (standard_args): Change priority of "--no-splash"
23342 from 40 to 3. Add "--no-desktop" with the same priority.
23343
233442007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23345
23346 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23347 and optimize the case where they are all 1.
23348
233492007-09-23 Johannes Weiner <hannes@saeurebad.de>
23350
23351 * lisp.h (abs): Define if not defined.
23352 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23353 Don't define `abs', since it's defined in lisp.h.
23354
233552007-09-22 Eli Zaretskii <eliz@gnu.org>
23356
23357 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23358 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23359 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23360 (init_tty): Use DEV_TTY instead of "/dev/tty".
23361 [WINDOWSNT]: No need to protect from NAME arg being null.
23362
233632007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23364
23365 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23366 up the tty state.
23367
233682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23369
23370 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23371 (gpm_tty): Change its type.
23372 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23373 (gpm_tty): Change its type and initialize it.
23374 (Fterm_open_connection): Check the frame is indeed a tty.
23375 Use the new gpm_tty.
23376 (Fterm_close_connection): Use the new gpm_tty.
23377 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23378 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23379
233802007-09-21 Juanma Barranquero <lekktu@gmail.com>
23381
23382 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23383 underline_color, to draw strike-through.
23384
233852007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23386
23387 * lisp.h (allocate_terminal): Declare.
23388
23389 * window.c (candidate_window_p): Consider frames that are being placed
23390 by the user as somewhere between visible and iconified.
23391 (window_loop): Prefer windows on the current frame.
23392 (Fselect_window): Move the use of select-frame to the beginning so we
23393 can just delegate all the work (it'll call us back anyway).
23394
23395 * frame.c (Qdisplay_environment_variable):
23396 * frame.h (Qdisplay_environment_variable): Delete.
23397
23398 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23399 of the first arg, since that value may be a union.
23400
23401 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23402 parameter rather than Qdisplay_environment_variable. If all else
23403 fails, look for DISPLAY in initial-environment.
23404
234052007-09-21 Glenn Morris <rgm@gnu.org>
23406
23407 * Makefile.in (emacstool): Remove target.
23408 (lisp, shortlisp): Remove termdev.elc.
23409
234102007-09-21 Markus Triska <markus.triska@gmx.at>
23411
23412 * xterm.c (x_delete_display): Compile session management conditionally.
23413
234142007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23415
23416 * callproc.c (getenv_internal_1): New function.
23417 (getenv_internal): Use it.
23418 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23419
23420 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23421 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23422 (Fset_terminal_parameter): Work with dead terminals as well.
23423 (Fmodify_terminal_parameters): Remove.
23424
23425 * terminal.c (get_terminal): Handle terminals.
23426 Make sure the terminal returned is live.
23427 (create_terminal): Use allocate_terminal.
23428 (mark_terminals): Move to alloc.c.
23429 (delete_terminal): Use terminal->name as liveness status.
23430 NULL out fields after freeing their contents.
23431 Don't deallocate the object.
23432 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23433 rather than an int.
23434 (Fterminal_live_p): Accept non-integer arguments.
23435 (Fterminal_list): Return terminal objects rather than an ints.
23436
23437 * alloc.c (enum mem_type): New member for `terminal' objects.
23438 (allocate_terminal): New function.
23439 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23440 Handle terminals.
23441 (mark_terminal): New fun.
23442 (mark_terminals): Move from terminal.c.
23443
23444 * term.c (get_tty_terminal): Don't treat output_initial specially.
23445 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23446 (delete_tty): Use terminal->name as liveness status.
23447
23448 * termhooks.h (struct terminal): Make it into a pseudovector.
23449 Remove `deleted' replaced by checking `name's nullness.
23450
23451 * print.c (print_object): Handle terminals.
23452
23453 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23454 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23455
23456 * frame.c (make_terminal_frame):
23457 * keyboard.c (tty_read_avail_input):
23458 * w32term.c (x_delete_terminal):
23459 * xfns.c (Fx_create_frame, x_create_tip_frame):
23460 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23461
234622007-09-20 Glenn Morris <rgm@gnu.org>
23463
23464 * process.c (Fmake_network_process): Doc fix.
23465
234662007-09-19 Jason Rumney <jasonr@gnu.org>
23467
23468 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23469
234702007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23471
23472 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23473 Fix a C warning regarding variable constness.
23474
23475 * xterm.c (handle_one_xevent): Fix a C warning.
23476
234772007-09-18 Jason Rumney <jasonr@gnu.org>
23478
23479 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23480
234812007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23482
23483 * gtkutil.c (gdpy_def): New variable.
23484 (xg_initialize): Initialize gdpy_def.
23485 (xg_display_close): If no other display exists, set gdpy_def to a
23486 new connection.
23487
234882007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23489
23490 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23491 when we have no file name for the icon.
23492 (xg_tool_bar_expose_callback): Remove.
23493 (xg_create_tool_bar): Don't connect expose signal to
23494 xg_tool_bar_expose_callback.
23495 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23496
234972007-09-16 Andreas Schwab <schwab@suse.de>
23498
23499 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23500 values instead of zapping them.
23501
235022007-09-14 Glenn Morris <rgm@gnu.org>
23503
23504 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23505 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23506 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23507 scope and rename to omfib_buffer for clarity.
23508 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23509
235102007-09-14 Kenichi Handa <handa@m17n.org>
23511
23512 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23513
235142007-09-13 Jason Rumney <jasonr@gnu.org>
23515
23516 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23517
23518 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23519
23520 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23521 (mac_term_init): Call here instead, passing rif.
23522
235232007-09-13 Glenn Morris <rgm@gnu.org>
23524
23525 * s/hpux.h: No longer define `static' as nothing.
23526
235272007-09-13 Johan Bockgård <bojohan@gnu.org>
23528
23529 * callint.c (Fcall_interactively): Remove unused var `fun'.
23530
235312007-09-12 Romain Francoise <romain@orebokech.com>
23532
23533 * window.c (prefer_window_split_horizontally, display_buffer):
23534 Revert 2007-09-08 change.
23535
235362007-09-12 Glenn Morris <rgm@gnu.org>
23537
23538 * alloca.c: Remove file.
23539 * Makefile.in (alloca): Do not undef.
23540 (allocaobj, alloca.o): Remove.
23541 (otherobj): Remove allocaobj.
23542 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23543 * regex.c (C_ALLOCA): Remove all references and code that was only
23544 used when this was defined.
23545 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23546 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23547 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23548
23549 * Makefile.in (SOURCES, unlock, relock): Delete.
23550
23551 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23552 (menu_grab_callback): All uses changed.
23553
23554 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23555 (x_reply_selection_request): All uses changed.
23556
235572007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23558
23559 * lread.c (load_warn_old_style_backquotes): Change message to look
23560 better when it appears in the middle of byte-compiler messages.
23561
235622007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23563
23564 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23565
23566 * xterm.c (x_create_terminal): Add comment.
23567
23568 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23569
235702007-09-10 Richard Stallman <rms@gnu.org>
23571
23572 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23573
235742007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23575
23576 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23577 (DEFUN): Document `intspec', use it instead of `prompt'.
23578
23579 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23580
23581 * data.c (Finteractive_form): If the interactive specification starts
23582 with a `(', use it as a Lisp form.
23583
23584 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23585 name and file modes.
23586
23587 * callint.c (Fcall_interactively): Comment fixes.
23588
235892007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23590
23591 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23592 and compiled functions.
23593
235942007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23595
23596 * window.c (prefer_window_split_horizontally): New variable.
23597 (display_buffer): Consider splitting window horizontally depending
23598 on prefer_window_split_horizontally.
23599
236002007-09-08 Eli Zaretskii <eliz@gnu.org>
23601
23602 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23603
236042007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23605
23606 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23607
23608 * frame.c (x_set_frame_parameters): Check number is positive before
23609 using XFASTINT.
23610
23611 * window.c (freeze_window_start): Don't presume selected_window holds
23612 a window object.
23613 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23614
236152007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23616
23617 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23618
236192007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23620
23621 * window.c (Vsplit_window_preferred_function): New var.
23622 (Fdisplay_buffer): Use it.
23623 (syms_of_window): Export, and initialize it.
23624
236252007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23626
23627 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23628
236292007-09-06 Glenn Morris <rgm@gnu.org>
23630
23631 * gtkutil.c (menu_grab_callback) <cnt>:
23632 * xselect.c (x_reply_selection_request) <cnt>: Move static
23633 variable to file scope.
23634
236352007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23636
23637 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23638 consistent values of selected_frame and selected_window.
23639
236402007-09-04 Jason Rumney <jasonr@gnu.org>
23641
23642 * w32console.c (initialize_w32_display): Zero unused hooks.
23643
236442007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23645
23646 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23647 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23648
236492007-09-04 Jason Rumney <jasonr@gnu.org>
23650
23651 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23652 in w32console.c. Set up input. Remove XXX comments that have been
23653 confirmed as correct.
23654
23655 * s/ms-w32.h (MULTI_KBOARD): Define.
23656
23657 * w32console.c (one_and_only_w32cons): Remove.
23658 (initialize_w32_display): Take terminal argument.
23659
23660 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23661 initialize_w32_display.
23662 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23663
23664 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23665
23666 * keyboard.c (discard_mouse_events): Discard it.
23667 (make_lispy_event): Translate it to a lisp event.
23668 (lispy_wheel_names): Add wheel-left and right events.
23669 (syms_of_keyboard): Enlarge wheel_syms.
23670
23671 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23672 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23673
23674 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23675
23676 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23677 from WM_MOUSEHWHEEL.
23678 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23679
23680 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23681 terminal.
23682
23683 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23684 keyboard for the terminal.
23685
236862007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23687
23688 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23689 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23690 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23691 and resume-tty-function to resume-tty-hook.
23692 (Fsuspend_tty, Fresume_tty): Use new names.
23693
236942007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23695
23696 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23697 if it starts with "n:".
23698
236992007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23700
23701 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23702
237032007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23704
23705 * frame.h:
23706 * frame.c (Qterm_environment_variable): Remove.
23707 (syms_of_frame): Don't init and staticpro it.
23708
23709 * callproc.c (getenv_internal): Remove special case for $TERM.
23710
23711 * callproc.c (Vinitial_environment): New variable.
23712 (set_initial_environment): Initialize it.
23713 (syms_of_callproc): Declare it.
23714 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23715 TERM under which a process runs is never related to the TERM in which
23716 Emacs is running.
23717
237182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23719
23720 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23721 * s/darwin.h: ... do it here.
23722
237232007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23724
23725 * lisp.h (set_initial_environment): Rename from set_global_environment.
23726
23727 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23728 removed by mistake on the multi-tty branch.
23729
23730 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23731 (Fmodify_frame_parameters): Return a value.
23732
23733 * image.c (png_load): Comment-out var only used in commented-out code.
23734
23735 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23736 before passing it to mark_object.
23737
23738 * xfaces.c (internal_resolve_face_name): Return a value.
23739 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23740
23741 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23742 (x_icon): Comment-out var only used in commented-out code.
23743
237442007-08-29 Romain Francoise <romain@orebokech.com>
23745
23746 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23747 QUIT hasn't been provided.
23748
237492007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23750
23751 * callproc.c (child_setup, getenv_internal): Use the
23752 display-environment-variable and term-environment-variable frame params.
23753 (set_initial_environment): Initialise Vprocess_environment.
23754
23755 * config.in: Disable multi-keyboard support on a mac.
23756
23757 * frame.c (Qterm_environment_variable)
23758 (Qdisplay_environment_variable): New variables.
23759 (syms_of_frame): Intern and staticpro them.
23760 (Fmake_terminal_frame): Disable output method test.
23761
23762 * frame.h: Declare them here.
23763
23764 * macfns.c (x_set_mouse_color): Get rif from the frame.
23765 (x_set_tool_bar_lines): Don't use updating_frame.
23766 (mac_window): Add 2 new parameters for consistency with other systems.
23767 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23768 frame parameters following what is done in X11 and w32. Don't use
23769 FRAME_MAC_DISPLAY_INFO.
23770 (Fx_open_connection, start_hourglass): Remove window-system check.
23771 (x_create_tip_frame): Get the keyboard from the terminal.
23772
23773 * macmenu.c: Reorder includes.
23774 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23775
23776 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23777 terminal parameter.
23778 (x_clear_frame): Add a frame parameter.
23779 (note_mouse_movement): Get rif from the frame.
23780 (mac_term_init): Initialize the terminal.
23781 (mac_initialize): Make static and move terminal initialization ...
23782 (mac_create_terminal): ... to this new function.
23783
23784 * macterm.h (struct mac_display_info): Add terminal.
23785 (mac_initialize): Delete declaration.
23786
23787 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23788
23789 * sysdep.c: Comment out text after #endif.
23790
23791 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23792 is defined. Better initialize ttys in windows. Use terminal
23793 specific mouse_position_hook.
23794
23795 * termhooks.h (union display_info): Add mac_display_info.
23796
23797 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23798 Set the default minibuffer frame, window_system and the rest of the
23799 frame parameters following what is done in X11.
23800
23801 * w32term.c (w32_initialize): Make static.
23802
23803 * xselect.c (x_handle_selection_clear): Only access
23804 terminal->kboard when MULTI_KBOARD is defined.
23805
23806 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23807 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23808
238092007-08-29 Jason Rumney <jasonr@gnu.org>
23810
23811 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23812 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23813
23814 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23815 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23816
23817 * keyboard.c (restore_kboard_configuration): Only define when
23818 MULTI_KBOARD defined.
23819
23820 * makefile.w32-in: Update dependancies from Makefile.in.
23821 (OBJ1): Add terminal.$(O)
23822
23823 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23824 Don't define function body.
23825 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23826
23827 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23828
23829 * w32.c (request_sigio, unrequest_sigio): Remove.
23830
23831 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23832 (w32con_clear_frame, w32con_clear_end_of_line)
23833 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23834 (w32con_delete_glyphs, w32con_set_terminal_window)
23835 (scroll_line, w32_sys_ring_bell): Add frame arg.
23836 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23837 Add terminal arg.
23838 (PICK_FRAME): Remove.
23839 (w32con_write_glyphs): Use frame specific terminal coding.
23840 (one_and_only_w32cons): New global variable.
23841 (initialize_w32_display): Use it for storing hooks.
23842 (create_w32cons_output): New function.
23843
23844 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23845 arg a frame.
23846
23847 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23848 Set window_system.
23849 (x_set_tool_bar_lines): Don't use updating_frame.
23850 (Fx_create_frame): Set terminal and ref count.
23851 (Fx_open_connection): Remove window-system check.
23852
23853 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23854
23855 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23856 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23857 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23858 Add frame arg.
23859 (x_delete_terminal, w32_create_terminal): New functions.
23860 (w32_term_init): Create a terminal.
23861 (w32_initialize): Move terminal specific initialization to
23862 w32_create_terminal.
23863
23864 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23865 (w32_clear_rect, w32_clear_area): Use background from frame.
23866 (w32_display_info): Add terminal.
23867 (w32_sys_ring_bell, x_delete_display): Declare here.
23868
23869 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23870
23871 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23872
238732007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23874
23875 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23876 Fix get_named_tty calls for the controlling tty.
23877
238782007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23879
194d44e7 23880 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23881
238822007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23883
23884 * term.c (tty_insert_glyphs): Add missing first parameter.
23885
238862007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23887
23888 * buffer.c (Fbuffer_list, Fbury_buffer):
23889 Take frame->buried_buffer_list into account.
23890
23891 * cm.c (current_tty): New variable, for cmputc().
23892 (cmputc): Use it.
23893 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23894 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23895 (cmgoto): Add tty parameter. Pass it on to calccost().
23896 Use emacs_tputs() instead of tputs().
23897
23898 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23899 tputs().
23900 (current_tty): New variable, for cmputc().
23901 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23902
23903 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23904 (internal_condition_case, internal_condition_case_1)
23905 (internal_condition_case_2): Don't abort when x_catching_errors.
23906
23907 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23908 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23909 prevent crashes caused by bogus longjmps in read_char.
23910
23911 * keymap.h (Fset_keymap_parent): Add EXFUN.
23912
23913 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23914 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23915 Remove redundant definition.
23916
23917 * macfns.c (x_set_mouse_color, x_make_gc):
23918 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23919
23920 * w32term.c (x_free_frame_resources):
23921 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23922 (w32_initialize): Use the accessor macros for terminal characteristics.
23923
23924 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23925 Use the accessor macros for terminal characteristics.
23926 * msdos.c (internal_terminal_init): Use the accessor macros for
23927 terminal characteristics.
23928 (ScreenVisualBell, internal_terminal_init):
23929 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23930
23931 * termopts.h (no_redraw_on_reenter): Declare.
23932
23933 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23934 (mark_terminals, mark_ttys): Declare.
23935 (Fgarbage_collect): Call them.
23936 (mark_object): Mark buried_buffer_list.
23937
23938 * prefix-args.c: Include stdlib.h for exit.
23939
23940 * syssignal.h: Add comment.
23941
23942 * indent.c: Include stdio.h.
23943
23944 * window.h (Vinitial_window_system): Declare.
23945 (Vwindow_system): Delete declaration.
23946
23947 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23948
23949 * image.c (lookup_image): Don't initialize `c' until the xasserts
23950 have been run.
23951
23952 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23953 FRAME_FOREGROUND_PIXEL.
23954
23955 * print.c (print_preprocess): Don't lose print_depth levels while
23956 iterating.
23957
23958 * widget.c (update_from_various_frame_slots):
23959 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23960
23961 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23962 frames.
23963 (window_internal_height): Remove bogus make_number call.
23964 (init_window_once): Call make_terminal_frame with two zero parameters.
23965
23966 * fileio.c (Fread_file_name): Update comment.
23967
23968 * callint.c (Fcall_interactively):
23969 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23970 Make sure it is correctly unwound.
23971
23972 * xsmfns.c (x_session_close): New function.
23973
23974 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23975 Delete declarations.
23976
23977 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23978 (x_output): Remove background_pixel and foreground_pixel fields.
23979 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23980 (x_delete_device, x_session_close): Declare.
23981
23982 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23983 (read_filtered_event): Call `read_char' with a local
23984 `wrong_kboard_jmpbuf'.
23985
23986 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23987 Don't call single_kboard_state. Use FRAME_RIF.
23988
23989 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23990 systems.
23991
23992 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23993 (Fframe_with_environment, Fset_input_meta_mode)
23994 (Fset_quit_char): EXFUN.
23995 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23996 (init_sys_modes, reset_sys_modes): Update prototypes.
23997 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23998
23999 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24000 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24001 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24002 Delete declarations.
24003 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24004 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24005 New declarations.
24006
24007 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24008 already does that during init_display(). Call syms_of_keymap
24009 before syms_of_keyboard. Call `syms_of_terminal'.
24010 Call set_initial_environment, not set_process_environment.
24011 (shut_down_emacs): Call reset_all_sys_modes() instead of
24012 reset_sys_modes().
24013
24014 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24015 (internal_resolve_face_name, resolve_face_name_error): New functions.
24016 (resolve_face_name): Protect against loops and errors thrown by Fget.
24017 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24018 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24019
24020 * scroll.c: Replace CURTTY() with local variables throughout the
24021 file (where applicable).
24022 (calculate_scrolling, calculate_direct_scrolling)
24023 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24024 characteristics.
24025
24026 * keymap.c (Vfunction_key_map): Remove.
24027 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24028 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24029 (Vkey_translation_map): Remove.
24030 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24031 (Fdescribe_buffer_bindings)
24032 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24033 Update for terminal-local key-translation-map.
24034
24035 * Makefile.in (callproc.o): Update dependencies.
24036 (lisp, shortlisp): Add termdev.elc.
24037 (obj): Add terminal.o.
24038 (terminal.o): Add dependencies.
24039 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24040 (data.o, fns.o): Add termhooks.h dependency.
24041 (SOME_MACHINE_LISP): Add dnd.elc.
24042 (minibuf.o): Fix typo.
24043 Update dependencies.
24044
24045 * data.c (do_symval_forwarding, store_symval_forwarding)
24046 (find_symbol_value): Use the selected frame's keyboard, not
24047 current_kboard.
24048
24049 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24050 Vwindow_system.
24051
24052 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24053 Fmenu_bar_open.
24054 (syms_of_xmenu): Update defsubr.
24055 (mouse_position_for_popup, Fx_popup_menu)
24056 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24057 (set_frame_menubar, free_frame_menubar)
b97439ce 24058 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24059 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24060 an X frame.
24061
24062 * xselect.c (x_own_selection): Abort if not an X frame.
24063 (some_frame_on_display): Check if it is an X frame.
24064 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24065
24066 * coding.c: Include frame.h and termhooks.h.
24067 (terminal_coding, keyboard_coding): Delete.
24068 (Fset_terminal_coding_system_internal)
24069 (Fset_keyboard_coding_system_internal)
24070 (Fkeyboard_coding_system)
24071 (Fterminal_coding_system): Add a terminal parameter.
24072 Get terminal_coding from the terminal.
24073 (init_coding_once): Don't call setup_coding_system here.
24074
24075 * dispextern.h (set_scroll_region, turn_off_insert)
24076 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24077 (tty_clear_end_of_line, tty_setup_colors)
24078 (delete_tty, updating_frame)
24079 (produce_special_glyphs, produce_glyphs, write_glyphs)
24080 (insert_glyphs): Remove.
24081 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24082 (tty_turn_off_highlight, get_tty_size): Add declaration.
24083 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24084
24085 * frame.h (enum output_method): Add output_initial.
24086 (struct x_output): Delete.
24087 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24088 Access foreground_pixel and background_pixel directly from the frame.
24089 (tty_display): Delete.
24090 (struct frame): Add buried_buffer_list, foreground_pixel,
24091 background_pixel and terminal. Delete kboard.
24092 (union output_data): Add tty.
24093 (FRAME_KBOARD): Get the kboard from the terminal.
24094 (FRAME_INITIAL_P): New macro.
24095 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24096 (Qterm_environment_variable, Qdisplay_environment_variable)
24097 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24098 New declarations.
24099
24100 * termchar.h (tty_output, tty_display_info): New structures.
24101 (tty_list): Declare.
24102 (FRAME_TTY, CURTTY): New macros.
24103 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24104 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24105 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24106 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24107
24108 * callproc.c: Include frame.h and termhooks.h, for terminal
24109 parameters.
24110 (add_env): New function.
24111 (child_setup): Use it.
24112 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24113 (getenv_internal): Fix get_terminal_param call.
24114 (Fgetenv_internal, egetenv): Update doc.
24115 (syms_of_callproc): Initialize Vprocess_environment to nil.
24116 Register and initialize them. Remove obsolete defvars. Update doc
24117 strings.
24118 (child_setup): Handle Vlocal_environment_variables.
24119 (getenv_internal): Add terminal parameter.
24120 Handle Vlocal_environment_variables.
24121 (Fgetenv_internal): Add terminal parameter.
24122 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24123 environment in a frame (not terminal) parameter. Update doc strings.
24124 (set_initial_environment): Rename from set_global_environment.
24125 Store Emacs environment in initial frame parameter.
24126
24127 * xdisp.c (redisplay_internal): Update references to
24128 `previous_terminal_frame'.
24129 (display_mode_line, Fformat_mode_line): Replace calls to
24130 `push_frame_kboard' with `push_kboard'.
24131 (get_glyph_string_clip_rects): Add extra parentheses and
24132 braces to prevent compiler warnings.
24133 (calc_pixel_width_or_height): Add xassert to check that the
24134 frame is alive. Don't call `lookup_image' on a termcap frame.
24135 (message2_nolog, message3_nolog, redisplay_internal)
24136 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24137 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24138 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24139 (Fx_display_pixel_width, Fx_display_pixel_height)
24140 (Fx_display_planes, Fx_display_color_cells)
24141 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24142 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24143 (Fx_display_backing_store, Fx_display_visual_class)
24144 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24145 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24146
24147 * xfns.c (x_set_foreground_color x_set_background_color)
24148 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24149 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24150 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24151 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24152 terminal that is being deleted.
24153 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24154 frame parameter, and make sure it overrides any user-supplied setting.
24155 (Fx_close_connection, Fx_synchronize): Unify argument names with
24156 the rest of the DEFUNs.
24157
24158 * dispnew.c (Fsend_string_to_terminal): Update call to
24159 `get_tty_terminal'.
24160 (Fredraw_frame, Fsend_string_to_terminal)
24161 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24162 FRAME_TERMCAP_P and FRAME_TTY.
24163 (window_change_signal): Don't believe width/height values that are
24164 impossibly small.
24165 (Vinitial_window_system): Rename from Vwindow_system.
24166 (termscript, Wcm, rif): Delete.
24167
24168 * termhooks.h (struct terminal): New struct containing the
24169 previously global text display hooks and new members NAME,
24170 DELETED and PARAM_ALIST.
24171 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24172 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24173 (FRAME_RIF): New macros.
24174 (get_terminal_param, get_device): New declarations.
24175 (termscript): Delete declaration.
24176
24177 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24178 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24179 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24180 FRAME_FOREGROUND_PIXEL.
24181 (x_fully_uncatch_errors): Disable definition.
24182 (x_scroll_bar_expose): Fix reference to foreground pixel.
24183 (XTread_socket): Disable loop on all X displays.
24184 (x_delete_terminal): Don't set terminal->deleted and let
24185 delete_terminal delete the frames on the terminal.
24186 (x_delete_display): Doc update to reflect changes in
24187 delete_terminal.
24188 (x_display_info) <terminal>: Move member earlier in the struct.
24189 (deleting_tty): Remove old variable.
24190 (Fsuspend_tty): Call clear_tty_hooks.
24191 (Fresume_tty, init_tty): Call set_tty_hooks.
24192 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24193 errors on X frames.
24194 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24195 (handle_one_xevent): Initialize `f' to NULL.
24196 (x_delete_terminal, x_create_terminal): New functions.
24197 (XTset_terminal_modes, XTreset_terminal_modes)
24198 (XTread_socket, x_connection_closed, x_term_init)
24199 (x_term_init, x_delete_display): Add terminal parameter.
24200 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24201 X connections.
24202
24203 * frame.c: Include termchar.h.
24204 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24205 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24206 (Qdisplay_environment_variable): New vars.
24207 (Fframep): Deal with output_initial.
24208 (Fframe-live-p): Doc fix.
24209 (Fwindow-system): New function.
24210 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24211 (make_terminal_frame): Don't create frames on a terminal that is
24212 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24213 (store_frame_param): Check for found_for_frame before calling XFRAME.
24214 (Fmake_terminal_frame): Handle NULL tty names correctly.
24215 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24216 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24217 frames to refer to a deleted frame in their 'environment parameter.
24218 (Fframe_with_environment): New function.
24219 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24220 (get_future_frame_param): New function.
24221 (Fmake_terminal_frame): Use it.
24222 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24223
24224 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24225 * sysdep.c (reset_sys_modes): Update for renames.
24226
24227 * keyboard.c (tty_read_avail_input): New function.
24228 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24229 (syms_of_keyboard): Defsubr them.
24230 (Fset_input_meta_mode, Fset_quit_char): New functions.
24231 (Fset_input_mode): Split to above functions.
24232 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24233 parameter. Use it in call to `read_char'.
24234 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24235 Set wrong_kboard_jmpbuf correctly in recursive calls.
24236 Use current_kboard to access Vkeyboard_translate_table.
24237 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24238 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24239 Update longjmp invocations. Remember the original current_kboard,
24240 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24241 changes it. Comment out unnecessary calls to
24242 `record_single_kboard_state' and `any_kboard_state'.
24243 Update recursive calls.
24244 (wrong_kboard_jmpbuf): Remove global variable.
24245 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24246 Handle deleted interrupted_kboards correctly; that is a legal
24247 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24248 and read_char calls. Abort if interrupted_kboard died in read_char.
24249 (any_kboard_state, single_kboard_state)
24250 (push_frame_kboard): Remove function.
24251 (pop_kboard): Switch out of single_kboard mode if the kboard has
24252 been deleted. Remove unused variable. Help debugging by not
24253 changing current_kboard unnecessarily. Set current_kboard to the
24254 kboard of the selected frame when the stored kboard object has
24255 been deleted before pop_kboard.
24256 (temporarily_switch_to_single_kboard): Change first parameter to a
24257 frame pointer. Throw an error when caller wants to change kboards
24258 while in single_kboard mode. Don't push_kboard if we weren't in
24259 single kboard state. Don't pop_kboard if we popped into any
24260 kboard state.
24261 (restore_kboard_configuration): Abort if pop_kboard changed the
24262 kboard in single_kboard mode. Call pop_kboard only after setting
24263 up single_kboard mode.
24264 (Frecursive_edit): Switch to single_kboard mode only in nested
24265 command loops.
24266 (cmd_error, command_loop, command_loop_1, timer_check):
24267 Comment out unnecessary call to `any_kboard_state' and
24268 `record_single_kboard_state'.
24269 (delete_kboard): Exit single_kboard mode if we have just deleted
24270 that kboard. Use FRAME_KBOARD.
24271 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24272 `fatal_error_signal'.
24273 (record_single_kboard_state): Don't push_kboard if we weren't in
24274 single kboard state. Don't pop_kboard if we popped into any
24275 kboard state.
24276 (push_frame_kboard): Rename to push_kboard.
24277 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24278 (read_avail_input): Read input from all terminals.
24279 (mark_kboards): Also mark Vkeyboard_translate_table.
24280 (kbd_buffer_store_event_hold): Simplify condition.
24281 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24282 (Vkeyboard_translate_table): Move to struct kboard.
24283 (init_kboard): Initialize Vkeyboard_translate_table.
24284 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24285 Vkeyboard_translate_table. Update doc strings. Update docs of
24286 local-function-key-map and function-key-map.
24287
24288 * terminal.c: New file.
24289
24290 * term.c: Include errno.h.
24291 (Vring_bell_function, device_list, initial_device)
24292 (next_device_id, ring_bell, update_begin, update_end)
24293 (set_terminal_window, cursor_to, raw_cursor_to)
24294 (clear_to_end, clear_frame, clear_end_of_line)
24295 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24296 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24297 (syms_of_term): Move their initialization to terminal.c.
24298 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24299 (Ftty_display_color_cells)
24300 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24301 (clear_tty_hooks, set_tty_hooks)
24302 (init_tty, maybe_fatal): New functions.
24303 (Ftty_type): Return nil if terminal is not on a tty instead of
24304 throwing an error. Doc update.
24305 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24306 Doc update. Initialize new subrs and variables.
24307 (delete_tty): Use terminal->deleted.
24308 (tty_set_terminal_modes): Rename from set_terminal_modes.
24309 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24310 (set_scroll_region): Rename to `tty_set_scroll_region'.
24311 (turn_on_insert): Rename to `tty_turn_on_insert'.
24312 (turn_off_insert): Rename to `tty_turn_off_insert'.
24313 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24314 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24315 (toggle_highligh): Rename to `tty_toggle_highlight'.
24316 (background_highlight): Rename to `tty_background_highlight'.
24317 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24318 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24319 (tty_set_scroll_region, tty_background_highlight)
24320 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24321 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24322 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24323 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24324 Add static modifier.
24325 (tty_reset_terminal_modes, tty_set_terminal_window)
24326 (tty_set_scroll_region, tty_background_highlight)
24327 (tty_highlight_if_desired, tty_cursor_to)
24328 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24329 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24330 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24331 renames.
24332
243332007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24334
24335 * keyboard.c: Qrtl is new.
24336 (parse_tool_bar_item): Handle :rtl keyword.
24337 (syms_of_keyboard): Intern :rtl keyword.
24338
24339 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24340
24341 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24342 so no Lisp code is executed.
24343 (file_for_image, find_rtl_image): New functions.
24344 (xg_get_image_for_pixmap): Use file_for_image.
24345 (update_frame_tool_bar): If direction is RTL, use RTL image if
24346 defined. Use Gtk stock images if defined.
24347
243482007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24349
24350 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24351 for nonexistent or zero-width glyph in composition glyph.
24352
243532007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24354
24355 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24356
24357 * xdisp.c (Finvisible_p): New function.
24358 (syms_of_xdisp): defsubr it.
24359
243602007-08-24 Juanma Barranquero <lekktu@gmail.com>
24361
24362 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24363 Doc fixes.
24364
243652007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24366
24367 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24368
243692007-08-24 Martin Rudalics <rudalics@gmx.at>
24370
24371 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24372 whether decoding has modified buffer contents.
24373
243742007-08-24 Jason Rumney <jasonr@gnu.org>
24375
24376 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24377 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24378 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24379 (init_svg_functions) [HAVE_NTGUI]: New function.
24380 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24381 (svg_load_image): Use them.
24382 (svg_load_image) [HAVE_NTGUI]: Implement background.
24383
243842007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24385
24386 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24387 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24388 (LIBX): Remove @RSVG_LIBS@.
24389 (LIBES): Add $(RSVG_LIBS).
24390
24391 * image.c (svg_load_image): Blend with specified background if exists.
24392 Use IMAGE_BACKGROUND. Add Mac OS Support.
24393
24394 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24395 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24396 Remove macros.
24397 [MAC_OSX] (socket_callback): Do nothing.
24398 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24399 ReceiveNextEvent.
24400 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24401 socket_callback.
24402 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24403
244042007-08-22 Glenn Morris <rgm@gnu.org>
24405
24406 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24407
244082007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24409
24410 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24411
24412 * image.c: Add support for SVG images. Some additional comments
24413 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24414 (svg_image_p): New function to test for SVG image.
24415 (svg_load): New function to load SVG image.
24416 (svg_load_image): New function, helper for svg_load.
24417 (Qsvg): New Lisp_object.
24418 (svg_keyword_index): New enum.
24419 (svg_format): New static `image_keyword' struct.
24420 (svg_type): New static `image_type' struct.
24421 (librsvg/rsvg.h): Include it.
24422
244232007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24424
24425 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24426
244272007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24428
24429 * lread.c (Qold_style_backquotes): New var.
24430 (syms_of_lread): Init and staticpro it.
24431 (load_warn_old_style_backquotes): New fun.
24432 (Fload): Use them to warn about old style backquotes.
24433 (end_of_file_error, Fload): Remove unused vars.
24434
24435 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24436
24437 * lread.c (Vold_style_backquotes): New var.
24438 (syms_of_lread): Init and export it to Elisp.
24439 (read1): Set it when we find an old-style (back)quote.
24440
244412007-08-22 Jason Rumney <jasonr@gnu.org>
24442
24443 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24444
244452007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24446
24447 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24448
244492007-08-19 Richard Stallman <rms@gnu.org>
24450
24451 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24452
244532007-08-19 Andreas Schwab <schwab@suse.de>
24454
24455 * alloc.c (pure): Round PURESIZE up.
24456
244572007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24458
24459 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24460 active frame.
24461
244622007-08-16 Richard Stallman <rms@gnu.org>
24463
24464 * eval.c (Fcommandp): Add parens to clarify.
24465
24466 * minibuf.c (Fall_completions): Use enum for type of table.
24467
24468 * emacs.c (USAGE2): Improve text.
24469
244702007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24471
24472 * term.c (tty_default_color_capabilities): Declare static
24473 variables in file scope, to avoid HPUX compiler problem.
24474
244752007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24476
24477 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24478 to gtk_toolbar_insert.
24479
244802007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24481
24482 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24483
24484 * insdel.c (reset_var_on_error): New fun.
24485 (signal_before_change, signal_after_change):
24486 Use it to reset (after|before)-change-functions to nil in case of error.
24487 Bind inhibit-modification-hooks to t.
24488 Don't bind (after|before)-change-functions to nil while they run.
24489
244902007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24491
24492 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24493 filling pixmap with stippled background.
24494
244952007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24496
24497 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24498 Don't use invisible frame as parent window for repositioning.
24499
245002007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24501
24502 * print.c (new_backquote_output): Rename from old_backquote_output.
24503 (print): Inverse its logic (according to its name) so as to match the
24504 behavior of new_backquote_flag in lread.c.
24505
245062007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24507
24508 * gmalloc.c (posix_memalign): New function.
24509
24510 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24511 ActivateControl/DeactivateControl here.
24512 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24513 frame-notice-user-settings is non-nil.
24514 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24515 for kEventParamFMFontStyle.
24516 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24517 mac_pass_command_to_system and mac_pass_control_to_system here.
24518 (XTread_socket): Call ActivateControl/DeactivateControl here.
24519 (XTread_socket) [TARGET_API_MAC_CARBON]:
24520 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24521 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24522 for window repositioning.
24523
245242007-08-08 Glenn Morris <rgm@gnu.org>
24525
24526 * Replace `iff' in doc-strings and comments.
24527
245282007-08-07 Chong Yidong <cyd@stupidchicken.com>
24529
24530 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24531
245322007-08-07 Martin Rudalics <rudalics@gmx.at>
24533
24534 * fileio.c (Finsert_file_contents): Run format-decode and
24535 after_insert_file_functions on entire buffer when REPLACE is
24536 non-nil and inhibit modification_hooks and point_motion_hooks.
24537 For consistency, run after_insert_file_functions iff something
24538 got inserted. Move signal_after_change and update_compositions
24539 after code running after_insert_file_functions. Make sure that
24540 undo_list doesn't record intermediate steps of the decoding process.
24541
245422007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24543
24544 * emacs.c (main)
24545 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24546 Call malloc_enable_thread on interactive startup.
24547
24548 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24549 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24550 [USE_PTHREAD]: Conditionalize with it.
24551 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24552 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24553 New functions.
24554
245552007-08-06 Chong Yidong <cyd@stupidchicken.com>
24556
24557 * xdisp.c (redisplay_window): When restoring original buffer
24558 position, make sure it is still valid.
24559
24560 * image.c (png_load): Ignore png-supplied background color.
24561
245622007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24563
24564 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24565 Use kCFAbsoluteTimeIntervalSince1970.
24566
24567 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24568 New variable.
24569 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24570 event loop should be quit.
24571 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24572 Quit dialog event loop if quit_dialog_event_loop is set.
24573
24574 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24575 (Selection): New typedef. Use instead of ScrapRef.
24576 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24577 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24578 (mac_clear_selection): Rename from clear_scrap.
24579 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24580 scrap_has_target_type. All uses changed.
24581 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24582 (mac_selection_has_target_p): New functions.
24583 (mac_put_selection_value): Rename from put_scrap_string.
24584 (mac_get_selection_value): Rename from get_scrap_string.
24585 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24586 (put_scrap_private_timestamp, scrap_has_target_type)
24587 (get_scrap_private_timestamp): Remove functions.
24588 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24589 (x_own_selection, x_get_local_selection):
24590 Use mac_valid_selection_value_p.
24591 (x_own_selection): Don't use put_scrap_private_timestamp.
24592 Record OWNERSHIP-INFO into Vselection_alist instead.
24593 (x_get_local_selection): Don't check type if request is local.
24594 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24595 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24596
245972007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24598
24599 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24600 add comment explaining why.
24601
246022007-08-03 Richard Stallman <rms@gnu.org>
24603
24604 * fileio.c (Fvisited_file_modtime): Use make_time.
24605
246062007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24607
24608 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24609 build.
24610
246112007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24612
24613 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24614
246152007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24616
24617 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24618
246192007-07-30 Richard Stallman <rms@gnu.org>
24620
24621 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24622
246232007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24624
24625 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24626
246272007-07-28 Nick Roberts <nickrob@snap.net.nz>
24628
24629 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24630 remote default-directory.
24631
24632 * buffer.c (mode-line-format): Update doc string.
24633
246342007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24635
24636 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24637 scroll bar gap.
24638 (x_scroll_bar_create): Set bar->fringe_extended_p.
24639 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24640 on frame edge. Check fringe background extension. Don't clear
24641 extended fringe background area.
24642
24643 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24644 (w32_fill_area): Enclose multiple statements with do ... while (0).
24645
24646 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24647 Extend fringe background to scroll bar gap.
24648 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24649 Set bar->fringe_extended_p.
24650 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24651 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24652 background extension. Don't clear extended fringe background area.
24653
24654 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24655 New member fringe_extended_p.
24656
246572007-07-25 Glenn Morris <rgm@gnu.org>
24658
24659 * Relicense all FSF files to GPLv3 or later.
24660
24661 * COPYING: Switch to GPLv3.
24662
246632007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24664
24665 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24666
24667 * data.c (Finteractive_form): Check for the presence of an
24668 `interactive-form' symbol property more thoroughly.
24669
24670 * data.c (Finteractive_form): Use an `interactive-form' property if
24671 present, analogous to the function-documentation property.
24672
246732007-07-24 Jason Rumney <jasonr@gnu.org>
24674
24675 * w32fns.c (x_real_positions): Get real position from OS instead of
24676 calculating it.
24677
246782007-07-23 Jason Rumney <jasonr@gnu.org>
24679
24680 * filelock.c (current_lock_owner): Allow for @ sign in username.
24681
246822007-07-22 Nick Roberts <nickrob@snap.net.nz>
24683
24684 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24685 remote default-directory.
24686
24687 * buffer.c (mode-line-format): Describe above case in doc string.
24688
246892007-07-20 Eli Zaretskii <eliz@gnu.org>
24690
24691 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24692 Define if not defined.
24693
246942007-07-18 Jason Rumney <jasonr@gnu.org>
24695
24696 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24697
246982007-07-18 Richard Stallman <rms@gnu.org>
24699
24700 * data.c (Fsetq_default): Doc fix.
24701
24702 * eval.c (Fsetq): Doc fix.
24703
247042007-07-18 Juanma Barranquero <lekktu@gmail.com>
24705
24706 * coding.c (Ffind_operation_coding_system):
24707 * eval.c (For, Fand): Doc fixes.
24708 Reported by Johan Bockgård.
24709
247102007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24711
24712 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24713
24714 * xterm.h: Declare x_ewmh_activate_frame.
24715
24716 * xterm.c (x_ewmh_activate_frame): New function.
24717 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24718
247192007-07-17 Martin Rudalics <rudalics@gmx.at>
24720
24721 * window.c (Fdisplay_buffer): If largest or LRU window is the
24722 only window, split it even if it is not eligible for splitting.
24723 This restores the original behavior broken by the 2007-07-15
24724 change.
24725
247262007-07-17 Glenn Morris <rgm@gnu.org>
24727
24728 * abbrev.c (abbrev_check_chars): New function.
24729 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24730 Call abbrev_check_chars to check abbrev characters are word
24731 constituents. Doc fix.
24732
247332007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24734
24735 * process.c (Fstart_process, Fmake_network_process)
24736 (read_process_output): Fix up last changes.
24737
247382007-07-16 Eli Zaretskii <eliz@gnu.org>
24739
24740 * makefile.w32-in (clean): Don't delete *~.
24741
247422007-07-16 Andreas Schwab <schwab@suse.de>
24743
24744 * window.c (Fdisplay_buffer): Use NILP.
24745 (Fset_window_scroll_bars): Likewise.
24746
247472007-07-15 Martin Rudalics <rudalics@gmx.at>
24748
24749 * window.c (window_min_size_2): New function.
24750 (window_min_size_1, size_window, Fdisplay_buffer)
24751 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24752 windows without mode- or header-lines when window-min-height is
24753 too small.
24754 (size_window): Reset nodelete_p after testing it, following an
24755 earlier note by Kim F. Storm.
24756 (display_buffer): Do not set split_height_threshold to twice the
24757 value of window_min_height to avoid changing the value of a
24758 customizable variable. Rather explicitly check whether the
24759 height of the window that shall be splitted is at least as large
24760 as split_height_threshold.
24761 (Fwindow_full_width_p): New defun.
24762 (syms_of_window): Defsubr it.
24763
24764 * window.h: Add EXFUN for Fwindow_full_width_p.
24765
247662007-07-14 Jason Rumney <jasonr@gnu.org>
24767
24768 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24769
247702007-07-14 Richard Stallman <rms@gnu.org>
24771
24772 * eval.c (maybe_call_debugger): New function.
24773 (find_handler_clause): Use maybe_call_debugger.
24774 Call it when the handler says `debug'.
24775 Eliminate DEBUGGER_VALUE_PTR.
24776 (Fsignal): Eliminate debugger_value.
24777 (Qdebug): New variable.
24778 (syms_of_eval): Initialize it.
24779
247802007-07-14 Juanma Barranquero <lekktu@gmail.com>
24781
24782 * eval.c (Fprogn):
24783 * keyboard.c (Ftrack_mouse):
24784 * print.c (Fwith_output_to_temp_buffer):
24785 * window.c (Fsave_window_excursion): Doc fix.
24786
247872007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24788
24789 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24790
247912007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24792
24793 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24794 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24795 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24796 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24797 Remove unused encoding_carryover.
24798 * process.c: Adjust all functions accordingly.
24799
248002007-07-12 Richard Stallman <rms@gnu.org>
24801
24802 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24803
248042007-07-11 Jason Rumney <jasonr@gnu.org>
24805
24806 * makefile.w32-in (LIBS): Include OLE32.
24807
24808 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24809 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24810
248112007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24812
24813 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24814 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24815 from a Lisp_Object into a bare pointer.
24816 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24817 Adjust the code correspondingly.
24818
24819 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24820
24821 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24822 (term_show_mouse_face): Remove unused var `j'.
24823 (handle_one_term_event): Remove unused vars `i' and `j'.
24824 Don't cast return value of ttyname since it's not necessary.
24825
248262007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24827
24828 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24829 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24830
24831 * fns.c (map_char_table): Use an array of int for `indices' rather than
24832 an array of Lisp_Objects (which are only ever integers anyway).
24833 (Fmap_char_table): Update caller.
24834 * lisp.h: Update prototype.
24835 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24836 * fontset.c (Ffontset_info):
24837 * casetab.c (set_case_table): Update callers.
24838
24839 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24840
24841 * keymap.c (struct accessible_keymaps_data)
24842 (struct where_is_internal_data): New structures.
24843 (accessible_keymaps_1, where_is_internal_1): Use them to change
24844 interface to adhere to the one used by map_keymap.
24845 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24846 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24847
24848 * keymap.h (map_keymap_function_t): More informative prototype.
24849
248502007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24851
24852 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24853 (looking_at_1): Don't change search_regs and last_thing_searched
24854 if `inhibit-changing-match-data' is non-nil.
24855 (string_match_1, search_buffer, set_search_regs): Likewise.
24856 (syms_of_search): Add Lisp level definition for
24857 `inhibit-changing-match-data' and set it to nil.
24858 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24859 start and end of the match, instead of using values in search_regs.
24860
248612007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24862
24863 * minibuf.c (Fcompleting_read): New value `confirm-only'
24864 for `require-match'.
24865
248662007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24867
24868 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24869 part of the 2007-06-27 change to syms_of_fileio.
24870
248712007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24872
24873 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24874 Check WINDOWP before using XWINDOW. Consolidate return statements.
24875
248762007-06-27 Richard Stallman <rms@gnu.org>
24877
24878 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24879
248802007-06-27 Juanma Barranquero <lekktu@gmail.com>
24881
24882 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24883
248842007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24885
24886 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24887 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24888 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24889 (_free_internal, memalign): Use them.
24890 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24891 Initialize to PTHREAD_MUTEX_INITIALIZER.
24892 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24893 (morecore_nolock): Rename from morecore. All uses changed.
24894 Use only nolock versions of internal allocation functions.
24895 (_malloc_internal_nolock, _realloc_internal_nolock)
24896 (_free_internal_nolock): New functions created from
24897 _malloc_internal, _realloc_internal, and _free_internal.
24898 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24899 Copy hook value to automatic variable before its use.
24900 (memalign): Copy hook value to automatic variable before its use.
24901
249022007-06-26 Kenichi Handa <handa@m17n.org>
24903
24904 * coding.c (Ffind_operation_coding_system): Docstring improved.
24905 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24906
249072007-06-25 David Kastrup <dak@gnu.org>
24908
24909 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24910 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24911 cater for additional parameter.
24912
24913 * keymap.h: Adjust number of parameters to `current-active-maps'.
24914
24915 * doc.c (Fsubstitute_command_keys): Adjust call of
24916 `current-active-maps'.
24917
249182007-06-25 David Kastrup <dak@gnu.org>
24919
24920 * callint.c (Fcall_interactively): Make the parsing of interactive
24921 specs somewhat more readable.
24922
249232007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24924
24925 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24926 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24927 if extended background has already been filled.
24928
249292007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24930
24931 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24932 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24933
24934 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24935 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24936 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24937 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24938 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24939 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24940 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24941 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24942 Run timers during dialog popup.
24943 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24944
249452007-06-21 Jason Rumney <jasonr@gnu.org>
24946
24947 * image.c (convert_mono_to_color_image): Swap fore and background.
24948
249492007-06-20 Jason Rumney <jasonr@gnu.org>
24950
24951 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24952 (w32_free_bdf_font): Unmap memory not handle.
24953
249542007-06-20 Sam Steingold <sds@gnu.org>
24955
24956 * gmalloc.c (__morecore): Fix the declaration to comply with the
24957 definition.
24958
249592007-06-20 Juanma Barranquero <lekktu@gmail.com>
24960
24961 * w32term.c (w32_delete_display): Remove leftover declaration.
24962 (w32_define_cursor, w32_initialize): Make static.
24963
24964 * w32.c (_wsa_errlist): Fix typo in error message.
24965 (init_environment): Ignore any environment variable from the
24966 registry having a null value.
24967
249682007-06-20 Glenn Morris <rgm@gnu.org>
24969
24970 * Makefile.in (LIBGIF): Default to -lgif.
24971
249722007-06-17 Jason Rumney <jasonr@gnu.org>
24973
24974 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24975 unicode strings.
24976
249772007-06-16 Juanma Barranquero <lekktu@gmail.com>
24978
24979 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24980 Fix typo in docstring.
24981
249822007-06-16 Eli Zaretskii <eliz@gnu.org>
24983
24984 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24985 and their keybindings.
24986
249872007-06-15 Chong Yidong <cyd@stupidchicken.com>
24988
24989 * composite.c (update_compositions): Fix last fix.
24990
249912007-06-14 Jason Rumney <jasonr@gnu.org>
24992
24993 * w32.c (get_process_times_fn): New function pointer.
24994 (globals_of_w32): Intialize it if present in kernel32.dll.
24995 (w32_get_internal_run_time): New function.
24996
24997 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24998
249992007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25000
25001 * composite.c (update_compositions): Check the validness of
25002 compositions.
25003
250042007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25005
25006 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25007 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25008
25009 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25010 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25011
25012 * macgui.h (USE_MAC_TOOLBAR): New define.
25013
25014 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25015 Return immediately unless popup is activated.
25016
25017 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25018 background to scroll bar gap.
25019 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25020 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25021 scroll bars on frame edge. Check fringe background extension.
25022 Don't clear extended fringe background area.
25023 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25024 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25025 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25026 [USE_MAC_TOOLBAR]: New macros.
25027 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25028 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25029 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25030 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25031 [USE_MAC_TOOLBAR]: New functions.
25032 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25033 manually if previous repositioning has failed.
25034 (mac_handle_keyboard_event): Use precomputed event kind.
25035 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25036 as tool bar item click. Handle mouse movement over tool bar items.
25037
25038 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25039 toolbar_win_gravity.
25040 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25041 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25042 Add externs.
25043
25044 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25045 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25046
250472007-06-14 Chong Yidong <cyd@stupidchicken.com>
25048
25049 * image.c (search_image_cache): Remove unused variable.
25050
250512007-06-13 Chong Yidong <cyd@stupidchicken.com>
25052
25053 * xfns.c, xmenu.c: Link to xaw3d if available.
25054
250552007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25056
25057 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25058 frame_foreground and frame_background.
25059
25060 * image.c (lookup_image): Save frame foreground and background colors.
25061 (search_image_cache): Check if saved and current frame colors match.
25062
250632007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25064
25065 * regex.c (regex_compile): Remove the `regnum' counter.
25066 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25067
250682007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25069
25070 * term.c: Include intervals.h to declare Fget_text_property.
25071
250722007-06-10 Jason Rumney <jasonr@gnu.org>
25073
25074 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25075
250762007-06-08 Juanma Barranquero <lekktu@gmail.com>
25077
25078 * callint.c (Fcall_interactively):
25079 * editfns.c (Fdelete_and_extract_region):
25080 * fileio.c (Fread_file_name):
25081 * fns.c (Fmapconcat):
25082 * keyboard.c (cmd_error_internal):
25083 * keymap.c (Fkey_description):
25084 * lread.c (openp):
25085 * minibuf.c (read_minibuf):
25086 * search.c (wordify):
25087 * sunfns.c (sel_read):
25088 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25089 * xfns.c (x_default_scroll_bar_color_parameter):
25090 * xmenu.c (menu_help_callback):
25091 * xselect.c (Fx_get_atom_name):
25092 * xterm.c (x_term_init): Use empty_unibyte_string.
25093
250942007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25095
25096 * alloc.c (init_strings): Initialize canonical empty strings.
25097 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25098 canonical empty string when the requested size is 0.
25099
25100 * emacs.c (empty_unibyte_string): Rename from empty_string.
25101 (empty_multibyte_string): New canonical empty string.
25102 (syms_of_emacs): Don't initialize empty_string.
25103
25104 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25105 string, if appropriate.
25106 (empty_unibyte_string, empty_multibyte_string): New externs.
25107 (empty_string): Remove extern.
25108
25109 * lread.c (syms_of_lread): Use empty_unibyte_string.
25110
251112007-06-07 Jason Rumney <jasonr@gnu.org>
25112
25113 * s/ms-w32.h: Don't define HAVE_TZNAME.
25114
25115 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25116
251172007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25118
25119 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25120
25121 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25122 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25123
25124 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25125 Don't call next handler.
25126 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25127 Remove argument. Install handler to application.
25128 (set_frame_menubar): Don't change deep_p.
25129 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25130 FRAME_OUTER_TO_INNER_DIFF_Y.
25131 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25132 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25133 [HAVE_DIALOGS]: New macros.
25134 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25135 Use them.
25136 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25137
25138 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25139 init_service_handler. All callers changed. Return OSStatus value.
25140
25141 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25142 All callers changed so as not to call SetPortWindowPort.
25143 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25144 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25145 mac_draw_string_common.
25146 (mac_draw_image_string_qd): Likewise.
25147 (mac_draw_string_common): Use them. Add INLINE.
25148 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25149 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25150 GetGlobalMouse.
25151 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25152 and FRAME_OUTER_TO_INNER_DIFF_Y.
25153 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25154 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25155 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25156 repositioning window to mac_handle_window_event.
25157 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25158 saving window location to mac_handle_window_event
25159 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25160 (install_menu_target_item_handler): Remove argument in extern.
25161 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25162 Also accept command events.
25163 (do_keystroke): New function created from XTread_socket.
25164 (init_command_handler): Remove functions.
25165 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25166 and save window location by kEventWindowShowing and kEventWindowHiding
25167 handlers here. Don't call next handler for window state change and
25168 focus events.
25169 (mac_handle_application_event, mac_handle_keyboard_event)
25170 [TARGET_API_MAC_CARBON]: New functions.
25171 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25172 kEventWindowShowing and kEventWindowHiding events. Move installation
25173 of mouse, font, text input and menu target item handlers to
25174 install_application_handler.
25175 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25176 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25177 New function.
25178 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25179 Register it.
25180 (XTread_socket) [TARGET_API_MAC_CARBON]:
25181 Consolidate SendEventToEventTarget calls.
25182 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25183 Move application activation handler to mac_handle_application_event.
25184 Move keyboard handler to mac_handle_keyboard_event.
25185 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25186 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25187 init_command_handler. Call install_application_handler.
25188
25189 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25190 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25191
251922007-06-07 Glenn Morris <rgm@gnu.org>
25193
25194 * emacs.c (main): Use `emacs-copyright' in --version output.
25195
251962007-06-06 Chong Yidong <cyd@stupidchicken.com>
25197
25198 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25199
252002007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25201
25202 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25203
25204 * macgui.h: Replace WindowPtr with WindowRef.
25205
25206 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25207 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25208 Replace ControlHandle with ControlRef.
25209 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25210
25211 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25212 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25213 Replace ControlHandle with ControlRef.
25214 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25215 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25216
25217 * macterm.h (struct scroll_bar): Rename member control_handle_low
25218 and control_handle_high to control_ref_low and control_ref_high.
25219 All uses changed.
25220 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25221 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25222 respectively. All uses changed.
25223 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25224 (install_window_handler, remove_window_handler): Replace WindowPtr
25225 with WindowRef in externs.
25226
252272007-06-05 Juanma Barranquero <lekktu@gmail.com>
25228
25229 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25230
252312007-06-03 Nick Roberts <nickrob@snap.net.nz>
25232
25233 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25234
25235 * frame.c (Fmouse_position, Fmouse_pixel_position):
25236 Condition on HAVE_GPM too.
25237
25238 * term.c (term_mouse_highlight): Remove unused variables.
25239 (Fterm_open_connection): Set gpm_zerobased to 1.
25240 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25241 Use zero based co-ordinates.
25242 (handle_one_term_event): Report a drag as mouse movement too.
25243
25244 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25245
252462007-06-03 Chong Yidong <cyd@stupidchicken.com>
25247
25248 * image.c (search_image_cache): New function. Require background
25249 color match if background color is unspecified in the image spec.
25250 (uncache_image, lookup_image): Use it.
25251
252522007-06-01 Juanma Barranquero <lekktu@gmail.com>
25253
25254 * window.c (Fshrink_window): Reflow docstring.
25255
252562007-06-02 Chong Yidong <cyd@stupidchicken.com>
25257
25258 * Version 22.1 released.
25259
252602007-06-01 Richard Stallman <rms@gnu.org>
25261
25262 * xfns.c (x_encode_text): Add GCPRO.
25263
252642007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25265
25266 * xfns.c (x_set_name_internal): Save encoded name before
25267 x_encode_text in case string data is relocated.
25268
252692007-05-31 Richard Stallman <rms@gnu.org>
25270
25271 * buffer.c (syms_of_buffer): Doc fix.
25272
252732007-05-30 Nick Roberts <nickrob@snap.net.nz>
25274
25275 * sysdep.c (init_sys_modes): Add rather than replace with
25276 O_NONBLOCK.
25277
25278 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25279 term_mouse_moveto.
25280
25281 * termhooks.h (term_mouse_moveto): New extern.
25282
25283 * term.c (mouse_face_window): Rename...
25284 (Qmouse_face_window): ...to this.
25285 (term_show_mouse_face, term_clear_mouse_face)
25286 (term_mouse_highlight): Use Qmouse_face_window.
25287 (term_mouse_moveto): New function.
25288 (term_mouse_position): Make it work.
25289 (syms_of_term): Uncomment assignment to mouse_position_hook.
25290 Staticpro Qmouse_face_window.
25291
252922007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25293
25294 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25295 around current_column call.
25296
252972007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25298
25299 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25300 * xdisp.c (next_element_from_buffer):
25301 * window.c (delete_window):
25302 * term.c (term_mouse_highlight):
25303 * msdos.c (getdefdir):
25304 * macterm.c (mac_create_bitmap_from_bitmap_data)
25305 (init_font_name_table):
25306 * fns.c (Fsxhash):
25307 * data.c (Fmake_local_variable):
25308 * ccl.c (ccl_driver): Likewise.
25309
253102007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25311
25312 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25313 Call mac_wakeup_from_rne on window size change.
25314
253152007-05-25 Chong Yidong <cyd@stupidchicken.com>
25316
25317 * image.c (uncache_image): Fix typo.
25318
253192007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25320
25321 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25322
253232007-05-22 Richard Stallman <rms@gnu.org>
25324
25325 * xterm.c (x_connection_closed): Remove NO_RETURN.
25326
253272007-05-22 Martin Rudalics <rudalics@gmx.at>
25328
25329 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25330
253312007-05-21 Chong Yidong <cyd@stupidchicken.com>
25332
25333 * image.c (uncache_image): New function.
25334 (Fimage_refresh): New function.
25335
253362007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25337
25338 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25339
253402007-05-20 Nick Roberts <nickrob@snap.net.nz>
25341
25342 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25343 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25344
253452007-05-20 Nick Roberts <nickrob@snap.net.nz>
25346
25347 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25348 conditional on [HAVE_GPM_H].
25349
253502007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25351
25352 * syntax.c (skip_chars): Update syntax-table only after we checked that
25353 the new location is valid.
25354
253552007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25356
25357 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25358 mac_get_window_bounds.
25359
253602007-05-20 Nick Roberts <nickrob@snap.net.nz>
25361
25362 * Makefile.in (LIBGPM): Allow it to be set from configure.
25363 If set then link Emacs with it.
25364
25365 * config.in: Regenerate.
25366
25367 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25368 New externs.
25369
25370 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25371 Include gpm.h.
25372 (handle_one_term_event, term_gpm): New externs.
25373
25374 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25375 and allow it to be interrupted by SIGIO.
25376
25377 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25378 (wait_reading_process_output): Wait on gpm_fd too.
25379 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25380 (add_gpm_wait_descriptor_called_flag): New variable.
25381 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25382
25383 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25384 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25385 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25386 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25387 (make_lispy_event): Add case GPM_CLICK_EVENT.
25388 (read_avail_input): Handle mouse input.
25389
25390 * term.c (write_glyphs_with_face): New function.
25391 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25392 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25393 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25394 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25395 (last_mouse_x, last_mouse_y): New variables.
25396 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25397 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25398 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25399 (Fterm_close_connection): New functions.
25400 (term_init): Initialise mouse_face_window.
25401
254022007-05-19 Chong Yidong <cyd@stupidchicken.com>
25403
25404 * xdisp.c (redisplay_window): If first window line is a
25405 continuation line, recompute the new window start instead of
25406 recentering.
25407
254082007-05-18 Glenn Morris <rgm@gnu.org>
25409
25410 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25411 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25412
254132007-05-17 Glenn Morris <rgm@gnu.org>
25414
25415 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25416
254172007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25418
25419 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25420 dead key repeat and up events.
25421
254222007-05-14 Chong Yidong <cyd@stupidchicken.com>
25423
25424 * image.c (pbm_load): Check image size for monochrome pbm.
25425
254262007-05-13 Chong Yidong <cyd@stupidchicken.com>
25427
25428 * xterm.c (XTread_socket): Revert last change.
25429
254302007-05-12 Chong Yidong <cyd@stupidchicken.com>
25431
25432 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25433
25434 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25435
254362007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25437
25438 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25439 mixup (YAILOM).
25440
254412007-05-07 Andreas Schwab <schwab@suse.de>
25442
25443 * keymap.c (Flookup_key): Fix typo in last change.
25444
254452007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25446
25447 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25448 mapping for unibyte strings.
25449
254502007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25451
25452 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25453 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25454
254552007-04-29 Richard Stallman <rms@gnu.org>
25456
25457 * insdel.c (replace_range): For undo, record insertion first.
25458
254592007-04-29 Andreas Schwab <schwab@suse.de>
25460
25461 * lisp.h (VECSIZE): Use OFFSETOF.
25462
254632007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25464
25465 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25466 disabled lines.
25467
254682007-04-28 Richard Stallman <rms@gnu.org>
25469
25470 * lread.c (read_escape): In a string, \s is always space.
25471
254722007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25473
25474 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25475
25476 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25477 submenu for menu bar items.
25478
25479See ChangeLog.10 for earlier changes.
25480
25481;; Local Variables:
25482;; coding: utf-8
25483;; add-log-time-zone-rule: t
aac0c6e3
MR
25484;; End:
25485
e3eb1dae 25486 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25487
25488 This file is part of GNU Emacs.
25489
25490 GNU Emacs is free software: you can redistribute it and/or modify
25491 it under the terms of the GNU General Public License as published by
25492 the Free Software Foundation, either version 3 of the License, or
25493 (at your option) any later version.
25494
25495 GNU Emacs is distributed in the hope that it will be useful,
25496 but WITHOUT ANY WARRANTY; without even the implied warranty of
25497 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25498 GNU General Public License for more details.
25499
25500 You should have received a copy of the GNU General Public License
25501 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25502
25503;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40